Class GaiaNode

All Implemented Interfaces:
Serializable

public class GaiaNode extends NodeStructure implements 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 Details

  • Method Details

    • addChild

      public void addChild(GaiaNode child)
    • removeChild

      public void removeChild(GaiaNode child)
    • addMesh

      public void addMesh(GaiaMesh mesh)
    • removeMesh

      public void removeMesh(GaiaMesh mesh)
    • getBoundingBox

      public GaiaBoundingBox getBoundingBox(org.joml.Matrix4d parentTransformMatrix)
    • 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

      public GaiaNode clone()
    • clear

      public void clear()
    • extractMeshes

      public void extractMeshes(List<GaiaMesh> resultMeshes)
    • extractNodesWithContents

      public void extractNodesWithContents(List<GaiaNode> resultNodes)
    • extractGaiaFaces

      public List<GaiaFace> extractGaiaFaces(List<GaiaFace> resultFaces)
    • deleteObjects

      public void deleteObjects()
    • doNormalLengthUnitary

      public void doNormalLengthUnitary()
    • deleteNormals

      public void deleteNormals()
    • deleteDegeneratedFaces

      public void deleteDegeneratedFaces()
    • extractPrimitives

      public void extractPrimitives(List<GaiaPrimitive> resultPrimitives)
    • getFacesCount

      public int getFacesCount()