Class DelaunayTriangulation
java.lang.Object
org.openjump.core.graph.delauneySimplexInsert.Triangulation
org.openjump.core.graph.delauneySimplexInsert.DelaunayTriangulation
A 2D Delaunay Triangulation (DT) with incremental site insertion.
This is not the fastest way to build a DT, but it's a reasonable way
to build the DT incrementally and it makes a nice interactive display.
There are several O(n log n) methods, but they require that either (1)
the sites are all known initially or (2) the sites are inserted in random
order.
- Author:
- Paul Chew Created July 2005. Derived from an earlier, messier version.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDelaunayTriangulation(org.openjump.core.graph.delauneySimplexInsert.Simplex triangle) Constructor. -
Method Summary
Methods inherited from class Triangulation
contains, iterator, neighborOpposite, neighbors, printStuff, size, toString, update
-
Field Details
-
debug
public boolean debug
-
-
Constructor Details
-
DelaunayTriangulation
public DelaunayTriangulation(org.openjump.core.graph.delauneySimplexInsert.Simplex triangle) Constructor. All sites must fall within the initial triangle.- Parameters:
triangle- the initial triangle
-
-
Method Details
-
locate
Locate the triangle with point (a Pnt) inside (or on) it.- Parameters:
point- the Pnt to locate- Returns:
- triangle (Simplex
) that holds the point; null if no such triangle
-
delaunayPlace
-
main
Main program; used for testing.
-