Package com.gaia3d.basic.model
Class GaiaNode
java.lang.Object
com.gaia3d.basic.model.structure.NodeStructure
com.gaia3d.basic.model.GaiaNode
- All Implemented Interfaces:
Serializable
A class that represents a node of a Gaia object.
It contains the meshes and children.
The meshes are used for rendering.
The children are used for hierarchical structure.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
clear()
clone()
void
void
void
void
extractGaiaFaces
(List<GaiaFace> resultFaces) void
extractMeshes
(List<GaiaMesh> resultMeshes) void
extractNodesWithContents
(List<GaiaNode> resultNodes) void
extractPrimitives
(List<GaiaPrimitive> resultPrimitives) getBoundingBox
(org.joml.Matrix4d parentTransformMatrix) int
org.joml.Matrix4d
void
getFinalVerticesCopy
(org.joml.Matrix4d parentTMat, List<GaiaVertex> finalVertices) long
void
void
void
recalculate transformvoid
void
toGaiaBufferSets
(List<GaiaBufferDataSet> bufferSets, org.joml.Matrix4d parentTransformMatrix) void
translate
(org.joml.Vector3d translation) void
void
weldVertices
(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId)
-
Constructor Details
-
GaiaNode
-
-
Method Details
-
getBoundingBox
-
recalculateTransform
public void recalculateTransform()recalculate transform -
toGaiaBufferSets
public void toGaiaBufferSets(List<GaiaBufferDataSet> bufferSets, org.joml.Matrix4d parentTransformMatrix) -
getTriangleCount
public long getTriangleCount() -
translate
public void translate(org.joml.Vector3d translation) -
clone
-
clear
public void clear() -
extractMeshes
-
extractNodesWithContents
-
weldVertices
public void weldVertices(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) -
unWeldVertices
public void unWeldVertices() -
extractGaiaFaces
-
deleteObjects
public void deleteObjects() -
doNormalLengthUnitary
public void doNormalLengthUnitary() -
deleteNormals
public void deleteNormals() -
deleteDegeneratedFaces
public void deleteDegeneratedFaces() -
getFinalVerticesCopy
-
extractPrimitives
-
makeTriangleFaces
public void makeTriangleFaces() -
getFinalTransformMatrix
public org.joml.Matrix4d getFinalTransformMatrix() -
spendTranformMatrix
public void spendTranformMatrix() -
makeTriangularFaces
public void makeTriangularFaces() -
getFacesCount
public int getFacesCount() -
calculateNormal
public void calculateNormal() -
calculateVertexNormals
public void calculateVertexNormals()
-