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 TypeMethodDescriptiondouble
calculateBoundingBox
(GaiaBoundingBox resultBBox) void
void
void
classifyFacesIdByPlane
(PlaneType planeType, org.joml.Vector3d planePosition) clone()
cloneByClassifyId
(int classifyId) boolean
cutByPlane
(PlaneType planeType, org.joml.Vector3d planePosition, double error) void
decimate
(DecimateParameters decimateParameters) int
void
deleteFacesWithClassifyId
(int classifyId) void
void
extractPrimitives
(List<HalfEdgePrimitive> resultPrimitives) extractSurfaces
(List<HalfEdgeSurface> resultHalfEdgeSurfaces) int
void
getIntersectedFacesByPlane
(PlaneType planeType, org.joml.Vector3d planePosition, List<HalfEdgeFace> resultFaces, double error) int
getUsedMaterialsIds
(List<Integer> resultMaterialsIds) getUsingMaterialsWithTextures
(List<GaiaMaterial> resultMaterials) void
static HalfEdgeScene
void
void
void
scissorTexturesByMotherScene
(List<GaiaMaterial> motherMaterials) void
void
setMaterialId
(int materialId) void
void
void
void
translate
(org.joml.Vector3d translation) void
void
void
void
void
weldVertices
(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
-
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) -
decimate
-
updateVerticesList
public void updateVerticesList() -
updateFacesList
public void updateFacesList() -
makeHorizontalSkirt
public void makeHorizontalSkirt() -
translateTexCoordsToPositiveQuadrant
public void translateTexCoordsToPositiveQuadrant() -
getFacesCount
public int getFacesCount()
-