Class PolygonTriangulator
java.lang.Object
org.locationtech.jts.triangulate.polygon.PolygonTriangulator
Computes a triangulation of each polygon in a
Geometry.
A polygon triangulation is a non-overlapping set of triangles which
cover the polygon and have the same vertices as the polygon.
The priority is on performance rather than triangulation quality,
so that the output may contain many narrow triangles.
Holes are handled by joining them to the shell to form a (self-touching) polygon shell with no holes. Although invalid, this can be triangulated effectively.
For better-quality triangulation use ConstrainedDelaunayTriangulator.
- Author:
- Martin Davis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the triangulation as aof triangularinvalid reference
GeometryCollectionPolygons.Gets the triangulation as a list ofTris.static Geometrytriangulate(Geometry geom) Computes a triangulation of each polygon in a geometry.
-
Constructor Details
-
PolygonTriangulator
Constructs a new triangulator.- Parameters:
inputGeom- the input geometry
-
-
Method Details
-
triangulate
-
getResult
-
getTriangles
-