Class HalfEdgeScene

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

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

    • HalfEdgeScene

      public HalfEdgeScene()
  • Method Details

    • readFile

      public static HalfEdgeScene readFile(String folderPathString, String fileName) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • getCopyMaterials

      public List<GaiaMaterial> getCopyMaterials()
    • getGaiaBoundingBox

      public GaiaBoundingBox getGaiaBoundingBox()
    • deleteObjects

      public void deleteObjects()
    • deleteNoUsedMaterials

      public void deleteNoUsedMaterials()
    • checkSandClockFaces

      public void checkSandClockFaces()
    • spendTransformationMatrix

      public void spendTransformationMatrix()
    • deleteFacesWithClassifyId

      public void deleteFacesWithClassifyId(int classifyId)
    • TEST_cutScene

      public void TEST_cutScene()
    • extractSurfaces

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

      public List<HalfEdgePrimitive> extractPrimitives(List<HalfEdgePrimitive> resultPrimitives)
    • removeDeletedObjects

      public void removeDeletedObjects()
    • cutByPlane

      public boolean cutByPlane(PlaneType planeType, org.joml.Vector3d planePosition, double error)
    • getIntersectedFacesByPlane

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

      public double calculateArea()
    • calculateBoundingBox

      public GaiaBoundingBox calculateBoundingBox(GaiaBoundingBox resultBBox)
    • translate

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

      public void splitFacesByBestObliqueCameraDirectionToProject()
    • translateToOrigin

      public void translateToOrigin()
    • getBoundingBox

      public GaiaBoundingBox getBoundingBox()
    • classifyFacesIdByPlane

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

      public void writeFile(String folderPathString, String fileName) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • clone

      public HalfEdgeScene clone()
    • cloneByClassifyId

      public HalfEdgeScene cloneByClassifyId(int classifyId)
    • deleteDegeneratedFaces

      public int deleteDegeneratedFaces()
    • scissorTextures

      public void scissorTextures()
    • scissorTexturesByMotherScene

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

      public int getTrianglesCount()
    • setBoxTexCoordsXY

      public void setBoxTexCoordsXY(GaiaBoundingBox box)
    • getUsedMaterialsIds

      public List<Integer> getUsedMaterialsIds(List<Integer> resultMaterialsIds)
    • calculateNormals

      public void calculateNormals()
    • getUsingMaterialsWithTextures

      public List<GaiaMaterial> getUsingMaterialsWithTextures(List<GaiaMaterial> resultMaterials)
    • setMaterialId

      public void setMaterialId(int materialId)
    • weldVertices

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

      public void decimate(DecimateParameters decimateParameters)
    • updateVerticesList

      public void updateVerticesList()
    • updateFacesList

      public void updateFacesList()
    • makeHorizontalSkirt

      public void makeHorizontalSkirt()
    • translateTexCoordsToPositiveQuadrant

      public void translateTexCoordsToPositiveQuadrant()
    • getFacesCount

      public int getFacesCount()