Package com.gaia3d.basic.halfedge
Class HalfEdgeScene
java.lang.Object
com.gaia3d.basic.halfedge.HalfEdgeScene
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateBoundingBox(GaiaBoundingBox resultBBox) voidvoidvoidclassifyFacesIdByPlane(PlaneType planeType, org.joml.Vector3d planePosition) clone()cloneByClassifyId(int classifyId) booleancutByPlane(PlaneType planeType, org.joml.Vector3d planePosition, double error) intvoiddeleteFacesWithClassifyId(int classifyId) voidvoidvoiddoTrianglesReduction(DecimateParameters decimateParameters) voiddoTrianglesReductionOneIteration(DecimateParameters decimateParameters) extractPrimitives(List<HalfEdgePrimitive> resultPrimitives) extractSurfaces(List<HalfEdgeSurface> resultHalfEdgeSurfaces) intvoidgetIntersectedFacesByPlane(PlaneType planeType, org.joml.Vector3d planePosition, List<HalfEdgeFace> resultFaces, double error) intgetUsedMaterialsIds(List<Integer> resultMaterialsIds) getUsingMaterialsWithTextures(List<GaiaMaterial> resultMaterials) voidstatic HalfEdgeScenevoidvoidvoidscissorTexturesByMotherScene(List<GaiaMaterial> motherMaterials) voidvoidsetMaterialId(int materialId) voidvoidvoidvoidtranslate(org.joml.Vector3d translation) voidvoidvoidvoidvoidweldVertices(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) void
-
Constructor Details
-
HalfEdgeScene
public HalfEdgeScene()
-
-
Method Details
-
readFile
public static HalfEdgeScene readFile(String folderPathString, String fileName) throws FileNotFoundException - Throws:
FileNotFoundException
-
doTrianglesReduction
-
getCopyMaterials
-
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
-
extractPrimitives
-
removeDeletedObjects
public void removeDeletedObjects() -
cutByPlane
-
getIntersectedFacesByPlane
public void getIntersectedFacesByPlane(PlaneType planeType, org.joml.Vector3d planePosition, List<HalfEdgeFace> resultFaces, double error) -
calculateArea
public double calculateArea() -
calculateBoundingBox
-
translate
public void translate(org.joml.Vector3d translation) -
splitFacesByBestObliqueCameraDirectionToProject
public void splitFacesByBestObliqueCameraDirectionToProject() -
translateToOrigin
public void translateToOrigin() -
getBoundingBox
-
classifyFacesIdByPlane
-
writeFile
- Throws:
FileNotFoundException
-
clone
-
cloneByClassifyId
-
deleteDegeneratedFaces
public int deleteDegeneratedFaces() -
scissorTextures
public void scissorTextures() -
scissorTexturesByMotherScene
-
getTrianglesCount
public int getTrianglesCount() -
setBoxTexCoordsXY
-
getUsedMaterialsIds
-
calculateNormals
public void calculateNormals() -
getUsingMaterialsWithTextures
-
setMaterialId
public void setMaterialId(int materialId) -
weldVertices
public void weldVertices(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) -
doTrianglesReductionOneIteration
-
updateVerticesList
public void updateVerticesList() -
updateFacesList
public void updateFacesList() -
makeSkirt
public void makeSkirt() -
translateTexCoordsToPositiveQuadrant
public void translateTexCoordsToPositiveQuadrant() -
getFacesCount
public int getFacesCount()
-