Class GaiaMesh

All Implemented Interfaces:
Serializable

public class GaiaMesh extends MeshStructure implements Serializable
A class that represents a mesh of a Gaia object. It contains the primitives. The primitives are used for rendering.
See Also:
  • Constructor Details

    • GaiaMesh

      public GaiaMesh()
  • Method Details

    • getBoundingBox

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

      public void toGaiaBufferSets(List<GaiaBufferDataSet> bufferSets, org.joml.Matrix4d transformMatrix)
    • doNormalLengthUnitary

      public void doNormalLengthUnitary()
    • deleteNormals

      public void deleteNormals()
    • translate

      public void translate(org.joml.Vector3d translation)
    • clear

      public void clear()
    • clone

      public GaiaMesh clone()
    • 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()
    • deleteDegeneratedFaces

      public void deleteDegeneratedFaces()
    • extractPrimitives

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