Package | Description |
---|---|
org.locationtech.jts.triangulate.polygon |
Classes for triangulating polygons.
|
org.locationtech.jts.triangulate.tri |
Classes for representing a planar triangulation as a set of linked triangles.
|
Modifier and Type | Method and Description |
---|---|
List<Tri> |
ConstrainedDelaunayTriangulator.getTriangles()
Gets the triangulation as a list of
Tri s. |
List<Tri> |
PolygonTriangulator.getTriangles()
Gets the triangulation as a list of
Tri s. |
Modifier and Type | Method and Description |
---|---|
static Tri |
Tri.create(Coordinate[] pts)
Creates a triangle from an array with three vertex coordinates.
|
static Tri |
Tri.create(Coordinate p0,
Coordinate p1,
Coordinate p2)
Creates a triangle with the given vertices.
|
Tri |
Tri.getAdjacent(int index)
Gets the triangle adjacent to an edge.
|
Tri |
Tri.split(Coordinate p)
Spits a triangle by a point located inside the triangle.
|
Modifier and Type | Method and Description |
---|---|
int |
Tri.getIndex(Tri tri)
Gets the edge index which a triangle is adjacent to (if any),
based on the adjacent triangle link.
|
boolean |
Tri.isAdjacent(Tri tri)
Tests if a triangle is adjacent to some edge of this triangle.
|
void |
Tri.setAdjacent(Coordinate pt,
Tri tri)
Sets the triangle adjacent to the edge originating
at a given vertex.
|
void |
Tri.setAdjacent(Tri tri0,
Tri tri1,
Tri tri2)
Sets the adjacent triangles.
|
void |
Tri.setTri(int edgeIndex,
Tri tri)
Sets the triangle adjacent to an edge.
|
Modifier and Type | Method and Description |
---|---|
static double |
Tri.area(List<? extends Tri> triList)
Computes the area of a set of Tris.
|
static void |
TriangulationBuilder.build(List<? extends Tri> triList)
Computes the triangulation of a set of
Tri s. |
int |
Tri.degree(int index,
List<? extends Tri> triList)
Computes the degree of a Tri vertex, which is the number of tris containing it.
|
void |
Tri.remove(List<? extends Tri> triList)
Removes this tri from the triangulation containing it.
|
static Geometry |
Tri.toGeometry(Collection<Tri> tris,
GeometryFactory geomFact)
Creates a
GeometryCollection of Polygon s
representing the triangles in a list. |
static void |
Tri.validate(List<Tri> triList)
Validates a list of Tris.
|
Copyright © 2022. All rights reserved.