public final class GeometryIndexed
extends java.lang.Object
Mesh from various vertex and face data representation| Modifier and Type | Class and Description |
|---|---|
static class |
GeometryIndexed.FaceDescription |
static class |
GeometryIndexed.FaceStorage |
| Modifier and Type | Field and Description |
|---|---|
protected Faces[] |
facesBuilded |
protected FacesIndexed[] |
facesByMaterials |
protected LightingMode |
lighting |
protected float |
lightingSmoothAngle |
protected java.lang.Object[] |
materials |
protected com.bonzaiengine.model.reader.util.NormalGenerator |
normalGenerator |
| Constructor and Description |
|---|
GeometryIndexed(LightingMode lighting,
float lightingSmoothAngle) |
| Modifier and Type | Method and Description |
|---|---|
Array<GeometryData> |
buildGeometry(VertexData vertexDataIn,
boolean positionHasNoDuplicate) |
Array<GeometryData> |
buildGeometry(VertexData vertexDataIn,
boolean positionHasNoDuplicate,
boolean autoFree) |
Array<GeometryData> |
buildGeometry(VertexDataBuilder vertexDataBuilder) |
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 faceDescription) |
void |
setFaces(GeometryIndexed.FaceStorage faceStorage) |
void |
setFaces(int[] positions,
int[] textureCoords,
int[] normalsOpt,
int[] skin,
long[] smoothGroups,
java.lang.Object materialID) |
void |
setFaces(int[] positions,
int[] texCoordsOpt,
int[] normalsOpt,
int[] skinOpt,
java.lang.Object materialID) |
void |
setFaces(int[] positions,
int[] texCoords,
int[] normalsOpt,
long[] smoothGroupsOpt,
java.util.HashMap<java.lang.Object,int[]> materialToFaces) |
void |
setFaces(java.lang.Object[] materials,
FacesIndexed[] faces) |
protected void |
setFaces(java.lang.Object materials,
FacesIndexed faces) |
protected final LightingMode lighting
protected final float lightingSmoothAngle
protected java.lang.Object[] materials
protected FacesIndexed[] facesByMaterials
protected Faces[] facesBuilded
protected com.bonzaiengine.model.reader.util.NormalGenerator normalGenerator
public GeometryIndexed(LightingMode lighting, float lightingSmoothAngle)
public void setFaces(GeometryIndexed.FaceStorage faceStorage)
public void setFaces(GeometryIndexed.FaceDescription faceDescription)
public void setFaces(int[] positions,
int[] texCoords,
int[] normalsOpt,
long[] smoothGroupsOpt,
java.util.HashMap<java.lang.Object,int[]> materialToFaces)
smoothGroupsOpt - optional, null if no smooth groupsmaterialToFaces - associate material ID and faceIDpublic void setFaces(int[] positions,
int[] texCoordsOpt,
int[] normalsOpt,
int[] skinOpt,
java.lang.Object materialID)
public void setFaces(int[] positions,
int[] textureCoords,
int[] normalsOpt,
int[] skin,
long[] smoothGroups,
java.lang.Object materialID)
public void setFaces(java.lang.Object[] materials,
FacesIndexed[] faces)
protected void setFaces(java.lang.Object materials,
FacesIndexed faces)
public final Array<GeometryData> buildGeometry(VertexDataBuilder vertexDataBuilder)
public final Array<GeometryData> buildGeometry(VertexData vertexDataIn, boolean positionHasNoDuplicate)
public final Array<GeometryData> buildGeometry(VertexData vertexDataIn, boolean positionHasNoDuplicate, boolean autoFree)
public final void fillTargets(Mesh mesh, java.util.HashMap<java.lang.String,VertexData> targets)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com