| Modifier and Type | Field and Description |
|---|---|
| private final Vector2 | |
| private static final int | |
| private final ShortArray | |
| private final IntArray | |
| private static final int | |
| private static final int | |
| private final ShortArray | |
| private final ShewchukExactPredicates | |
| private final IntArray | |
| private float[] | |
| private final ShortArray |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | circumCircle(float[] points, int end, double xp, double yp, int p1, int p2, int p3)
Returns INSIDE if point xp,yp is inside the circumcircle of the triangle (p1,p2,p3). |
| private int | circumCircleReal(double xp, double yp, double x1, double y1, double x2, double y2, double x3, double y3)
In-circle test for a triangle of three real vertices. |
| public ShortArray | |
| public ShortArray | |
| public ShortArray | Returns: triples of indices into the points that describe the triangles in clockwise order. Note the returned array is reused for later calls to the same method.x,y pairs describing points. Duplicate points will result in undefined behavior. points, int offset, int count, boolean If false, the points will be sorted by the x coordinate, which is required by the triangulation algorithm. If
sorting is done the input array is not modified, the returned indices are for the input array, and count*2
additional working memory is needed. sorted)Triangulates the given point cloud to a list of triangle indices that make up the Delaunay triangulation. |
| private int | |
| private void | sort(float[] values, int
Number of indices, must be even. count)Sorts x,y pairs of values by the x value. |
| public void | trim(ShortArray triangles, float[] points, float[] hull, int offset, int count)
Removes all triangles with a centroid outside the specified hull, which may be concave. |
| centroid | back to summary |
|---|---|
| private final Vector2 centroid | |
| COMPLETE | back to summary |
|---|---|
| private static final int COMPLETE | |
| completedTriangles | back to summary |
|---|---|
| private final ShortArray completedTriangles | |
| edges | back to summary |
|---|---|
| private final IntArray edges | |
| INCOMPLETE | back to summary |
|---|---|
| private static final int INCOMPLETE | |
| INSIDE | back to summary |
|---|---|
| private static final int INSIDE | |
| originalIndices | back to summary |
|---|---|
| private final ShortArray originalIndices | |
| predicates | back to summary |
|---|---|
| private final ShewchukExactPredicates predicates | |
| quicksortStack | back to summary |
|---|---|
| private final IntArray quicksortStack | |
| sortedPoints | back to summary |
|---|---|
| private float[] sortedPoints | |
| triangles | back to summary |
|---|---|
| private final ShortArray triangles | |
| DelaunayTriangulator | back to summary |
|---|---|
| public DelaunayTriangulator() | |
| circumCircle | back to summary |
|---|---|
| private int circumCircle(float[] points, int end, double xp, double yp, int p1, int p2, int p3) Returns INSIDE if point xp,yp is inside the circumcircle of the triangle (p1,p2,p3). Returns COMPLETE if xp is to the right of the entire circumcircle. Otherwise returns INCOMPLETE. Note: a point on the circumcircle edge is considered outside. Indices >= end refer to ghost super-triangle vertices at infinity. The number of ghost vertices in the triple selects the test:
| |
| circumCircleReal | back to summary |
|---|---|
| private int circumCircleReal(double xp, double yp, double x1, double y1, double x2, double y2, double x3, double y3) In-circle test for a triangle of three real vertices. | |
| computeTriangles | back to summary |
|---|---|
| public ShortArray computeTriangles(FloatArray points, boolean sorted) | |
| computeTriangles | back to summary |
|---|---|
| public ShortArray computeTriangles(float[] polygon, boolean sorted) | |
| computeTriangles | back to summary |
|---|---|
| public ShortArray computeTriangles(float[] points, int offset, int count, boolean sorted) Triangulates the given point cloud to a list of triangle indices that make up the Delaunay triangulation.
| |
| quicksortPartition | back to summary |
|---|---|
| private int quicksortPartition(final float[] values, int lower, int upper, short[] originalIndices) | |
| sort | back to summary |
|---|---|
| private void sort(float[] values, int count) Sorts x,y pairs of values by the x value.
| |
| trim | back to summary |
|---|---|
| public void trim(ShortArray triangles, float[] points, float[] hull, int offset, int count) Removes all triangles with a centroid outside the specified hull, which may be concave. Note some triangulations may have triangles whose centroid is inside the hull but a portion is outside. | |