Class Polygon2DTess
java.lang.Object
com.gaia3d.basic.geometry.tessellator.Polygon2DTess
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoint
(Point2DTess point2DTess) float
calculateNormal2D
(List<Integer> resultConcaveIndices) int
int
getNextIdx
(int currIdx) getPoint
(int index) int
int
getPrevIdx
(int currIdx) getSegment2DTess
(int idx, Segment2DTess resultSegment) void
getTrianglesIndicesAsConvexPolygon
(List<Integer> resultConvexIndices) boolean
isSegmentIntersectingPolygon
(Segment2DTess segment, double error) void
removePoint
(int i) void
reverse()
void
void
splitPolygon
(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)
-