public class NGTriangleMesh
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
faces |
private int[] |
facesFromAndLengthIndices |
private int[] |
faceSmoothingGroups |
private int[] |
faceSmoothingGroupsFromAndLengthIndices |
private Mesh |
mesh |
private boolean |
meshDirty |
private float[] |
normals |
private int[] |
normalsFromAndLengthIndices |
private float[] |
points |
private int[] |
pointsFromAndLengthIndices |
private float[] |
texCoords |
private int[] |
texCoordsFromAndLengthIndices |
private boolean |
userDefinedNormals |
Constructor and Description |
---|
NGTriangleMesh() |
Modifier and Type | Method and Description |
---|---|
(package private) Mesh |
createMesh(ResourceFactory rf) |
boolean |
isUserDefinedNormals() |
(package private) void |
setFacesByRef(int[] faces) |
(package private) void |
setFaceSmoothingGroupsByRef(int[] faceSmoothingGroups) |
(package private) void |
setNormalsByRef(float[] normals) |
(package private) void |
setPointsByRef(float[] points) |
(package private) void |
setTexCoordsByRef(float[] texCoords) |
void |
setUserDefinedNormals(boolean userDefinedNormals) |
void |
syncFaces(IntegerArraySyncer array) |
void |
syncFaceSmoothingGroups(IntegerArraySyncer array) |
void |
syncNormals(FloatArraySyncer array) |
void |
syncPoints(FloatArraySyncer array) |
void |
syncTexCoords(FloatArraySyncer array) |
(package private) int[] |
test_getFaces() |
(package private) int[] |
test_getFaceSmoothingGroups() |
(package private) Mesh |
test_getMesh() |
(package private) float[] |
test_getNormals() |
(package private) float[] |
test_getPoints() |
(package private) float[] |
test_getTexCoords() |
(package private) boolean |
validate() |
private boolean meshDirty
private Mesh mesh
private boolean userDefinedNormals
private float[] points
private int[] pointsFromAndLengthIndices
private float[] normals
private int[] normalsFromAndLengthIndices
private float[] texCoords
private int[] texCoordsFromAndLengthIndices
private int[] faces
private int[] facesFromAndLengthIndices
private int[] faceSmoothingGroups
private int[] faceSmoothingGroupsFromAndLengthIndices
Mesh createMesh(ResourceFactory rf)
boolean validate()
void setPointsByRef(float[] points)
void setNormalsByRef(float[] normals)
void setTexCoordsByRef(float[] texCoords)
void setFacesByRef(int[] faces)
void setFaceSmoothingGroupsByRef(int[] faceSmoothingGroups)
public void setUserDefinedNormals(boolean userDefinedNormals)
public boolean isUserDefinedNormals()
public void syncPoints(FloatArraySyncer array)
public void syncNormals(FloatArraySyncer array)
public void syncTexCoords(FloatArraySyncer array)
public void syncFaces(IntegerArraySyncer array)
public void syncFaceSmoothingGroups(IntegerArraySyncer array)
int[] test_getFaceSmoothingGroups()
int[] test_getFaces()
float[] test_getPoints()
float[] test_getNormals()
float[] test_getTexCoords()
Mesh test_getMesh()