Package com.gaia3d.basic.model
Class GaiaMesh
java.lang.Object
com.gaia3d.basic.model.structure.MeshStructure
com.gaia3d.basic.model.GaiaMesh
- All Implemented Interfaces:
Serializable
A class that represents a mesh of a Gaia object.
It contains the primitives.
The primitives are used for rendering.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
clear()
clone()
void
void
void
void
extractGaiaFaces
(List<GaiaFace> resultFaces) void
extractPrimitives
(List<GaiaPrimitive> resultPrimitives) float[]
int
getBoundingBox
(org.joml.Matrix4d transform) byte[]
int
int
int[]
int
float[]
int
float[]
int
float[]
int
long
void
void
void
toGaiaBufferSets
(List<GaiaBufferDataSet> bufferSets, org.joml.Matrix4d transformMatrix) void
transformPoints
(org.joml.Matrix4d finalMatrix) void
translate
(org.joml.Vector3d translation) void
void
weldVertices
(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId)
-
Constructor Details
-
GaiaMesh
public GaiaMesh()
-
-
Method Details
-
getBoundingBox
-
getTriangleCount
public long getTriangleCount() -
getIndices
public int[] getIndices() -
getPositionsCount
public int getPositionsCount() -
getPositions
public float[] getPositions() -
getNormalsCount
public int getNormalsCount() -
getNormals
public float[] getNormals() -
getTexcoordsCount
public int getTexcoordsCount() -
getTexcoords
public float[] getTexcoords() -
getBatchIdsCount
public int getBatchIdsCount() -
getBatchIds
public float[] getBatchIds() -
getColorsCount
public int getColorsCount() -
getColors
public byte[] getColors() -
getIndicesCount
public int getIndicesCount() -
toGaiaBufferSets
-
doNormalLengthUnitary
public void doNormalLengthUnitary() -
deleteNormals
public void deleteNormals() -
translate
public void translate(org.joml.Vector3d translation) -
clear
public void clear() -
clone
-
weldVertices
public void weldVertices(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) -
unWeldVertices
public void unWeldVertices() -
extractGaiaFaces
-
deleteObjects
public void deleteObjects() -
deleteDegeneratedFaces
public void deleteDegeneratedFaces() -
extractPrimitives
-
makeTriangleFaces
public void makeTriangleFaces() -
transformPoints
public void transformPoints(org.joml.Matrix4d finalMatrix) -
makeTriangularFaces
public void makeTriangularFaces() -
getFacesCount
public int getFacesCount() -
calculateNormal
public void calculateNormal() -
calculateVertexNormals
public void calculateVertexNormals()
-