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

    • 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)
    • weldVertices

      public void weldVertices(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId)
    • unWeldVertices

      public void unWeldVertices()
    • extractGaiaFaces

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

      public void deleteObjects()
    • doNormalLengthUnitary

      public void doNormalLengthUnitary()
    • deleteNormals

      public void deleteNormals()
    • deleteDegeneratedFaces

      public void deleteDegeneratedFaces()
    • getFinalVerticesCopy

      public void getFinalVerticesCopy(org.joml.Matrix4d parentTMat, List<GaiaVertex> finalVertices)
    • extractPrimitives

      public void extractPrimitives(List<GaiaPrimitive> resultPrimitives)
    • 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()