Class Polygon2DTess

java.lang.Object
com.gaia3d.basic.geometry.tessellator.Polygon2DTess

public class Polygon2DTess extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getPoint

      public Point2DTess getPoint(int index)
    • getTrianglesIndicesAsConvexPolygon

      public void getTrianglesIndicesAsConvexPolygon(List<Integer> resultConvexIndices)
    • setPointsIdxInList

      public void setPointsIdxInList()
    • reverse

      public void reverse()
    • calculateNormal2D

      public float calculateNormal2D(List<Integer> resultConcaveIndices)
    • getPointsCount

      public int getPointsCount()
    • getSegment2DTess

      public Segment2DTess getSegment2DTess(int idx, Segment2DTess resultSegment)
    • isSegmentIntersectingPolygon

      public boolean isSegmentIntersectingPolygon(Segment2DTess segment, double error)
    • getNextIdx

      public int getNextIdx(int currIdx)
    • getPrevIdx

      public int getPrevIdx(int currIdx)
    • getBoundingRectangle

      public GaiaRectangle getBoundingRectangle()
    • getMostLeftDownPoint2DIdx

      public int getMostLeftDownPoint2DIdx()
    • splitPolygon

      public void splitPolygon(int idx1, int idx2, List<Polygon2DTess> resultSplittedPolygons)
    • addPoint

      public void addPoint(Point2DTess point2DTess)
    • removePoint

      public void removePoint(int i)