public final class GeometryIndexed
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GeometryIndexed.FaceDescription |
static class |
GeometryIndexed.FaceIndexed |
static class |
GeometryIndexed.FaceStorage |
static class |
GeometryIndexed.SmoothGroupHelper |
static class |
GeometryIndexed.VertexIndexed |
| Constructor and Description |
|---|
GeometryIndexed(LightingMode lighting,
boolean remapAttribIndex) |
GeometryIndexed(LightingMode lighting,
boolean remapAttribIndex,
boolean remapAttribIndexForNormals) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillGeometry(Mesh mesh,
VertexData vertexDataIn) |
void |
fillGeometry(Mesh mesh,
VertexData vertexDataIn,
boolean autoFree) |
void |
fillTargets(Mesh mesh,
java.util.HashMap<java.lang.String,VertexData> targets) |
static void |
fixNormalOrientation(Mesh mesh)
Fix normal orientation of the
Mesh, don't browse childs |
void |
setFaces(GeometryIndexed.FaceDescription faceStorage) |
void |
setFaces(GeometryIndexed.FaceStorage faceStorage)
Not optimized, use
setFaces(FaceDescription) instead |
void |
setFaces(int[] positions,
int[] texCoordsOpt,
int[] normalsOpt,
int[] skinOpt,
boolean smoothGroup,
int materialID) |
void |
setFaces(int[] positions,
int[] textureCoords,
int[] normalsOpt,
int[] skin,
long[] smoothGroups,
int materialID) |
void |
setFaces(int[] positions,
int[] texCoords,
int[] normalsOpt,
long[] smoothGroupsOpt,
java.util.HashMap<java.lang.Integer,int[]> materialToFaces) |
void |
setSmoothAngle(float smoothAngleRadians) |
public GeometryIndexed(LightingMode lighting, boolean remapAttribIndex)
public GeometryIndexed(LightingMode lighting, boolean remapAttribIndex, boolean remapAttribIndexForNormals)
public final void setSmoothAngle(float smoothAngleRadians)
smoothAngleRadians - angle in radianspublic void setFaces(GeometryIndexed.FaceStorage faceStorage)
setFaces(FaceDescription) insteadpublic void setFaces(GeometryIndexed.FaceDescription faceStorage)
public void setFaces(int[] positions,
int[] texCoords,
int[] normalsOpt,
long[] smoothGroupsOpt,
java.util.HashMap<java.lang.Integer,int[]> materialToFaces)
positions - texCoords - smoothGroupsOpt - optional, null if no smooth groupsmaterialToFaces - associate material ID and faceIDpublic void setFaces(int[] positions,
int[] texCoordsOpt,
int[] normalsOpt,
int[] skinOpt,
boolean smoothGroup,
int materialID)
public void setFaces(int[] positions,
int[] textureCoords,
int[] normalsOpt,
int[] skin,
long[] smoothGroups,
int materialID)
public final void fillGeometry(Mesh mesh, VertexData vertexDataIn)
public final void fillGeometry(Mesh mesh, VertexData vertexDataIn, boolean autoFree)
public final void fillTargets(Mesh mesh, java.util.HashMap<java.lang.String,VertexData> targets)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com