public static class DelaunayTriangulator.Triangle
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
DelaunayTriangulator.Triangle |
getAdjacentTriangle(int vi)
Returns the triangle adjacent to the edge between vertices
vi
and (vi+1)%3. |
int |
getAdjacentTriangleIndex(int vi)
Returns the index (with respect to all triangles in the triangulation)
of the triangle adjacent to the edge between vertices
vi and
(vi+1)%3. |
int |
getIndex()
Returns the index of this triangle with respect to all triangles
in the triangulation.
|
Vector2d |
getPoint(int vi)
Returns the point (from the input point set) for the
vi-th
vertex in this triangle. |
int |
getPointIndex(int vi)
Returns the index (with respect to the original point set)
corresponding to the
vi-th vertex in this triangle. |
public DelaunayTriangulator.Triangle getAdjacentTriangle(int vi)
vi
and (vi+1)%3. Returns null if there is no adjacent
triangle.vi - local vertex index, in the range 0 to 2nullpublic int getAdjacentTriangleIndex(int vi)
vi and
(vi+1)%3. Returns -1 if there is no adjacent triangle.vi - local vertex index, in the range 0 to 2public Vector2d getPoint(int vi)
vi-th
vertex in this triangle. Vertices are arranged counter-clockwise
around the triangle.vi - local vertex index, in the range 0 to 2public int getPointIndex(int vi)
vi-th vertex in this triangle. Vertices
are arranged counter-clockwise around the triangle.vi - local vertex index, in the range 0 to 2.public int getIndex()