org.osm2world.core.math.algorithms
public final class Poly2TriTriangulationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<TriangleXZ> |
triangulate(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
triangulates of a polygon with holes.
|
static List<TriangleXZ> |
triangulateFast(SimplePolygonXZ outerPolygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
variant of
triangulate(SimplePolygonXZ, Collection, Collection, Collection)
that does not validate the input. |
public static final List<TriangleXZ> triangulate(SimplePolygonXZ outerPolygon, Collection<SimplePolygonXZ> holes, Collection<LineSegmentXZ> segments, Collection<VectorXZ> points) throws TriangulationException
TriangulationException
- if triangulation failspublic static final List<TriangleXZ> triangulateFast(SimplePolygonXZ outerPolygon, Collection<SimplePolygonXZ> holes, Collection<LineSegmentXZ> segments, Collection<VectorXZ> points) throws TriangulationException
triangulate(SimplePolygonXZ, Collection, Collection, Collection)
that does not validate the input. This is obviously faster,
but the caller needs to make sure that there are no problems.TriangulationException
- if triangulation fails