Class Polygon2DTess
java.lang.Object
com.gaia3d.basic.geometry.tessellator.Polygon2DTess
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoint(Point2DTess point2DTess) floatcalculateNormal2D(List<Integer> resultConcaveIndices) intintgetNextIdx(int currIdx) getPoint(int index) intintgetPrevIdx(int currIdx) getSegment2DTess(int idx, Segment2DTess resultSegment) voidgetTrianglesIndicesAsConvexPolygon(List<Integer> resultConvexIndices) booleanisSegmentIntersectingPolygon(Segment2DTess segment, double error) voidremovePoint(int i) voidreverse()voidvoidsplitPolygon(int idx1, int idx2, List<Polygon2DTess> resultSplittedPolygons)
-
Field Details
-
points
-
boundingRect
-
-
Constructor Details
-
Polygon2DTess
-
-
Method Details
-
getPoint
-
getTrianglesIndicesAsConvexPolygon
-
setPointsIdxInList
public void setPointsIdxInList() -
reverse
public void reverse() -
calculateNormal2D
-
getPointsCount
public int getPointsCount() -
getSegment2DTess
-
isSegmentIntersectingPolygon
-
getNextIdx
public int getNextIdx(int currIdx) -
getPrevIdx
public int getPrevIdx(int currIdx) -
getBoundingRectangle
-
getMostLeftDownPoint2DIdx
public int getMostLeftDownPoint2DIdx() -
splitPolygon
-
addPoint
-
removePoint
public void removePoint(int i)
-