org.osm2world.core.math.algorithms
public final class JTSTriangulationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<TriangleXZ> |
triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes)
triangulation of a polygon with holes, based on a
conforming delaunay triangulation
|
static List<TriangleXZ> |
triangulate(SimplePolygonXZ polygon,
Collection<SimplePolygonXZ> holes,
Collection<LineSegmentXZ> segments,
Collection<VectorXZ> points)
variant of
triangulate(SimplePolygonXZ, Collection)
that accepts some unconnected points within the polygon area
and will try to create triangle vertices at these points. |
public static final List<TriangleXZ> triangulate(SimplePolygonXZ polygon, Collection<SimplePolygonXZ> holes)
public static final List<TriangleXZ> triangulate(SimplePolygonXZ polygon, Collection<SimplePolygonXZ> holes, Collection<LineSegmentXZ> segments, Collection<VectorXZ> points)
triangulate(SimplePolygonXZ, Collection)
that accepts some unconnected points within the polygon area
and will try to create triangle vertices at these points.
It will also accept line segment as edges that must be integrated
into the resulting triangulation.