Class GaiaFace

All Implemented Interfaces:
Serializable

public class GaiaFace extends FaceStructure implements Serializable
A class that represents a face of a Gaia object. It contains the indices and the face normal. The face normal is calculated by the indices and the vertices.
See Also:
  • Constructor Details

    • GaiaFace

      public GaiaFace()
  • Method Details

    • calculateFaceNormal

      public void calculateFaceNormal(List<GaiaVertex> vertices)
    • getBoundingBox

      public GaiaBoundingBox getBoundingBox(List<GaiaVertex> vertices, GaiaBoundingBox resultBoundingBox)
    • validateNormal

      public boolean validateNormal(org.joml.Vector3d normal)
    • calcNormal

      public org.joml.Vector3d calcNormal(org.joml.Vector3d p1, org.joml.Vector3d p2, org.joml.Vector3d p3)
    • calcNormal

      public org.joml.Vector3d calcNormal(GaiaVertex vertex1, GaiaVertex vertex2, GaiaVertex vertex3)
    • clear

      public void clear()
    • clone

      public GaiaFace clone()
    • hasCoincidentIndices

      public boolean hasCoincidentIndices(GaiaFace face)
    • calculateArea

      public double calculateArea(List<GaiaVertex> vertices)
    • isDegenerated

      public boolean isDegenerated(List<GaiaVertex> vertices)
    • getTriangleFaces

      public List<GaiaFace> getTriangleFaces(List<GaiaFace> resultGaiaFaces)