Package com.gaia3d.basic.halfedge
Class HalfEdgePrimitive
java.lang.Object
com.gaia3d.basic.halfedge.HalfEdgePrimitive
- 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) void
cutByPlane
(PlaneType planeType, org.joml.Vector3d planePosition, double error) void
decimate
(DecimateParameters decimateParameters) int
void
deleteFacesWithClassifyId
(int classifyId) void
void
extractSurfaces
(List<HalfEdgeSurface> resultHalfEdgeSurfaces) int
void
getIntersectedFacesByPlane
(PlaneType planeType, org.joml.Vector3d planePosition, List<HalfEdgeFace> resultFaces, double error) getTexCoordinateBoundingRectangle
(GaiaRectangle resultRectangle) int
void
getUsedMaterialsIds
(List<Integer> resultMaterialsIds) void
getWestEastSouthNorthVertices
(GaiaBoundingBox bbox, List<HalfEdgeVertex> westVertices, List<HalfEdgeVertex> eastVertices, List<HalfEdgeVertex> southVertices, List<HalfEdgeVertex> northVertices, double error) void
readFile
(ObjectInputStream inputStream) void
void
scissorTextures
(List<GaiaMaterial> materials) void
scissorTexturesByMotherScene
(List<GaiaMaterial> thisMaterials, List<GaiaMaterial> motherMaterials) void
void
setMaterialId
(int materialId) void
void
void
transformPoints
(org.joml.Matrix4d finalMatrix) void
translate
(org.joml.Vector3d translation) void
void
void
void
weldVertices
(double error, boolean checkTexCoord, boolean checkNormal, boolean checkColor, boolean checkBatchId) void
writeFile
(ObjectOutputStream outputStream)
-
Constructor Details
-
HalfEdgePrimitive
public HalfEdgePrimitive()
-
-
Method Details
-
getVertices
-
calculateVertices
-
calculateNormals
public void calculateNormals() -
deleteObjects
public void deleteObjects() -
checkSandClockFaces
public void checkSandClockFaces() -
transformPoints
public void transformPoints(org.joml.Matrix4d finalMatrix) -
cutByPlane
-
calculateBoundingBox
-
getBoundingBox
-
classifyFacesIdByPlane
-
removeDeletedObjects
public void removeDeletedObjects() -
setObjectIdsInList
public void setObjectIdsInList() -
writeFile
-
readFile
-
extractSurfaces
-
deleteFacesWithClassifyId
public void deleteFacesWithClassifyId(int classifyId) -
scissorTextures
-
scissorTexturesByMotherScene
public void scissorTexturesByMotherScene(List<GaiaMaterial> thisMaterials, List<GaiaMaterial> motherMaterials) -
cloneByClassifyId
-
clone
-
getTrianglesCount
public int getTrianglesCount() -
setBoxTexCoordsXY
-
getUsedMaterialsIds
-
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
-
splitFacesByBestObliqueCameraDirectionToProject
public void splitFacesByBestObliqueCameraDirectionToProject() -
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() -
getTexCoordinateBoundingRectangle
-
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)
-