public final class FacesIndexed
extends java.lang.Object
implements com.bonzaiengine.model.reader.util.EarClippingTriangulation.TriangleStorage
| Modifier and Type | Field and Description |
|---|---|
protected VertexIndexed.Array |
indices |
protected java.lang.Float |
smoothAngleRadians |
protected long[] |
smoothGroups |
| Constructor and Description |
|---|
FacesIndexed(int facesCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVertex(int positionID,
int texCoordID,
int texCoord2ID,
int normalID,
int colorID,
int skinID) |
GeometryData |
convertGeometry(java.lang.Object materialID,
LightingMode lighting,
float lightingSmoothAngle,
VertexData vertexData,
boolean positionHasNoDuplicate) |
int |
getNumFaces() |
protected long |
getSmoothGroups(int faceID) |
protected int |
getVertexNormal(int index) |
protected int |
getVertexNormal(int faceID,
int vertexID) |
protected int |
getVertexPosition(int index) |
protected int |
getVertexPosition(int faceID,
int vertexID) |
void |
setDefaultSmoothGroups(boolean defaultSmoothGroups) |
void |
setSmoothGroups(long smoothGroups) |
protected void |
setVertexNormal(int index,
int normalID) |
protected void |
setVertexNormal(int faceID,
int vertexID,
int normalID) |
void |
storePolygon(long smoothGroup,
VertexIndexed.Array polygon,
IndexedData<Vec3> positions) |
void |
storePolygonWithOrientation(long smoothGroup,
VertexIndexed.Array polygon,
Vec3 polygonOrientation,
IndexedData<Vec3> positions) |
void |
storeTriangle(long smoothGroup,
VertexIndexed.Array list,
int index0,
int index1,
int index2) |
protected VertexIndexed.Array indices
protected long[] smoothGroups
protected java.lang.Float smoothAngleRadians
public int getNumFaces()
protected int getVertexPosition(int faceID,
int vertexID)
protected int getVertexPosition(int index)
protected int getVertexNormal(int faceID,
int vertexID)
protected int getVertexNormal(int index)
protected void setVertexNormal(int faceID,
int vertexID,
int normalID)
protected void setVertexNormal(int index,
int normalID)
public void setSmoothGroups(long smoothGroups)
protected long getSmoothGroups(int faceID)
public void setDefaultSmoothGroups(boolean defaultSmoothGroups)
public void addVertex(int positionID,
int texCoordID,
int texCoord2ID,
int normalID,
int colorID,
int skinID)
public void storePolygonWithOrientation(long smoothGroup,
VertexIndexed.Array polygon,
Vec3 polygonOrientation,
IndexedData<Vec3> positions)
public void storePolygon(long smoothGroup,
VertexIndexed.Array polygon,
IndexedData<Vec3> positions)
public void storeTriangle(long smoothGroup,
VertexIndexed.Array list,
int index0,
int index1,
int index2)
storeTriangle in interface com.bonzaiengine.model.reader.util.EarClippingTriangulation.TriangleStoragepublic GeometryData convertGeometry(java.lang.Object materialID, LightingMode lighting, float lightingSmoothAngle, VertexData vertexData, boolean positionHasNoDuplicate)
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