Class HalfEdgeDecimaterUtils
java.lang.Object
com.gaia3d.basic.geometry.modifier.halfedge.HalfEdgeDecimaterUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandecideIfCollapseCheckingFaces(HalfEdge halfEdge, List<HalfEdge>[] outgoingEdgesByVertexId, Map<HalfEdgeVertex, List<HalfEdgeVertex>> mapVertexToSamePosVertices, double maxDiffAngDeg, double maxAspectRatio, double smallHedgeSize) static voidgetFacesImplicatedWithHalfEdge(HalfEdge hedge, List<HalfEdgeFace> resultFacesA, List<HalfEdgeFace> resultFacesB, List<HalfEdge>[] outgoingEdgesByVertexId) getHalfEdgesSortedByLength(List<HalfEdge> resultHalfEdgesSortedByLength, List<HalfEdge> halfEdges) static Map<HalfEdgeFace, List<HalfEdge>> getMapFaceToHalfEdges(Map<HalfEdgeFace, List<HalfEdge>> resultMapFaceToHalfEdges, List<HalfEdge> halfEdges) getMapHalfEdgeToDirection(Map<HalfEdge, org.joml.Vector3d> resultMapHalfEdgeToDirection, List<HalfEdge> halfEdges) static Map<HalfEdgeVertex, List<HalfEdgeVertex>> getMapVertexToSamePosVertices(Map<HalfEdgeVertex, List<HalfEdgeVertex>> resultMapVertexToSamePosVertices, List<HalfEdgeVertex> vertices, boolean checkTexCoords) getOutgoingEdgesByVertexIdExact(List<HalfEdge> halfEdges, int verticesCount)
-
Constructor Details
-
HalfEdgeDecimaterUtils
public HalfEdgeDecimaterUtils()
-
-
Method Details
-
getMapHalfEdgeToDirection
-
getHalfEdgesSortedByLength
-
getOutgoingEdgesByVertexIdExact
-
getMapFaceToHalfEdges
public static Map<HalfEdgeFace,List<HalfEdge>> getMapFaceToHalfEdges(Map<HalfEdgeFace, List<HalfEdge>> resultMapFaceToHalfEdges, List<HalfEdge> halfEdges) -
getMapVertexToSamePosVertices
public static Map<HalfEdgeVertex,List<HalfEdgeVertex>> getMapVertexToSamePosVertices(Map<HalfEdgeVertex, List<HalfEdgeVertex>> resultMapVertexToSamePosVertices, List<HalfEdgeVertex> vertices, boolean checkTexCoords) -
getFacesImplicatedWithHalfEdge
public static void getFacesImplicatedWithHalfEdge(HalfEdge hedge, List<HalfEdgeFace> resultFacesA, List<HalfEdgeFace> resultFacesB, List<HalfEdge>[] outgoingEdgesByVertexId) -
decideIfCollapseCheckingFaces
public static boolean decideIfCollapseCheckingFaces(HalfEdge halfEdge, List<HalfEdge>[] outgoingEdgesByVertexId, Map<HalfEdgeVertex, List<HalfEdgeVertex>> mapVertexToSamePosVertices, double maxDiffAngDeg, double maxAspectRatio, double smallHedgeSize)
-