Class HalfEdgeNode

java.lang.Object
com.gaia3d.basic.halfedge.HalfEdgeNode
All Implemented Interfaces:
Serializable

public class HalfEdgeNode extends Object implements Serializable
See Also:
  • Constructor Details

    • HalfEdgeNode

      public HalfEdgeNode()
  • Method Details

    • deleteObjects

      public void deleteObjects()
    • checkSandClockFaces

      public void checkSandClockFaces()
    • calculateNormals

      public void calculateNormals()
    • getFinalTransformMatrix

      public org.joml.Matrix4d getFinalTransformMatrix()
    • spendTransformationMatrix

      public void spendTransformationMatrix()
    • cutByPlane

      public void cutByPlane(PlaneType planeType, org.joml.Vector3d planePosition, double error)
    • removeDeletedObjects

      public void removeDeletedObjects()
    • extractSurfaces

      public List<HalfEdgeSurface> extractSurfaces(List<HalfEdgeSurface> resultHalfEdgeSurfaces)
    • calculateBoundingBox

      public GaiaBoundingBox calculateBoundingBox(GaiaBoundingBox resultBBox)
    • getBoundingBox

      public GaiaBoundingBox getBoundingBox()
    • classifyFacesIdByPlane

      public void classifyFacesIdByPlane(PlaneType planeType, org.joml.Vector3d planePosition)
    • deleteFacesWithClassifyId

      public void deleteFacesWithClassifyId(int classifyId)
    • cloneByClassifyId

      public HalfEdgeNode cloneByClassifyId(int classifyId)
    • clone

      public HalfEdgeNode clone()
    • writeFile

      public void writeFile(ObjectOutputStream outputStream)
    • readFile

      public void readFile(ObjectInputStream inputStream)
    • scissorTextures

      public void scissorTextures(List<GaiaMaterial> materials)
    • scissorTexturesByMotherScene

      public void scissorTexturesByMotherScene(List<GaiaMaterial> materials, List<GaiaMaterial> motherMaterials)
    • getTrianglesCount

      public int getTrianglesCount()
    • setBoxTexCoordsXY

      public void setBoxTexCoordsXY(GaiaBoundingBox box)
    • getUsedMaterialsIds

      public void getUsedMaterialsIds(List<Integer> resultMaterialsIds)
    • setMaterialId

      public void setMaterialId(int materialId)
    • weldVertices

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

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

      public void decimate(DecimateParameters decimateParameters)
    • splitFacesByBestObliqueCameraDirectionToProject

      public void splitFacesByBestObliqueCameraDirectionToProject()
    • extractPrimitives

      public void extractPrimitives(List<HalfEdgePrimitive> resultPrimitives)
    • getWestEastSouthNorthVertices

      public void getWestEastSouthNorthVertices(GaiaBoundingBox bbox, List<HalfEdgeVertex> westVertices, List<HalfEdgeVertex> eastVertices, List<HalfEdgeVertex> southVertices, List<HalfEdgeVertex> northVertices, double error)
    • calculateArea

      public double calculateArea()
    • deleteDegeneratedFaces

      public int deleteDegeneratedFaces()
    • translateTexCoordsToPositiveQuadrant

      public void translateTexCoordsToPositiveQuadrant()
    • updateVerticesList

      public void updateVerticesList()
    • updateFacesList

      public void updateFacesList()
    • getFacesCount

      public int getFacesCount()
    • getIntersectedFacesByPlane

      public void getIntersectedFacesByPlane(PlaneType planeType, org.joml.Vector3d planePosition, List<HalfEdgeFace> resultFaces, double error)