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 TypeMethodDescriptionvoidvoidvoidclear()clone()voidvoidvoidvoidextractGaiaFaces(List<GaiaFace> resultFaces) voidextractMeshes(List<GaiaMesh> resultMeshes) voidextractNodesWithContents(List<GaiaNode> resultNodes) voidextractPrimitives(List<GaiaPrimitive> resultPrimitives) getBoundingBox(org.joml.Matrix4d parentTransformMatrix) intlongvoidrecalculate transformvoidremoveChild(GaiaNode child) voidremoveMesh(GaiaMesh mesh) voidtoGaiaBufferSets(List<GaiaBufferDataSet> bufferSets, org.joml.Matrix4d parentTransformMatrix) voidtranslate(org.joml.Vector3d translation)
-
Constructor Details
-
GaiaNode
-
-
Method Details
-
addChild
-
removeChild
-
addMesh
-
removeMesh
-
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
-
extractGaiaFaces
-
deleteObjects
public void deleteObjects() -
doNormalLengthUnitary
public void doNormalLengthUnitary() -
deleteNormals
public void deleteNormals() -
deleteDegeneratedFaces
public void deleteDegeneratedFaces() -
extractPrimitives
-
getFacesCount
public int getFacesCount()
-