public class DTriangulationForJTS
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
debug |
Constructor and Description |
---|
DTriangulationForJTS(java.util.ArrayList pointList) |
DTriangulationForJTS(java.util.ArrayList pointList,
com.vividsolutions.jts.geom.Envelope envelope) |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double x,
double y) |
void |
addPoints(java.util.ArrayList pointList) |
java.util.ArrayList |
drawAllCircles()
Draw all the empty circles (one for each triangle) of the DT.
|
java.util.ArrayList |
drawAllDelaunay()
Draw all the Delaunay edges.
|
java.util.ArrayList |
drawAllSites()
Draw all the sites (i.e., the input points) of the DT.
|
java.util.ArrayList |
drawAllVoronoi()
Draw all the Voronoi edges.
|
DelaunayTriangulation |
getDelaunayTriangulation() |
java.util.ArrayList |
getInitialSimmplexAsJTSPoints() |
com.vividsolutions.jts.geom.Geometry |
getThiessenBoundingBox()
the size of the box has been empirically defined to get "undistorted"
outer thiessen polygons
|
java.util.ArrayList |
getThiessenPolys()
Method returns thiessen polygons within a empirically enlarged
bounding box around the point set.
|
public DTriangulationForJTS(java.util.ArrayList pointList)
public DTriangulationForJTS(java.util.ArrayList pointList, com.vividsolutions.jts.geom.Envelope envelope)
pointList
- envelope
- the envelope my extend the initial point cloud and result in a larger initial simplexpublic void addPoints(java.util.ArrayList pointList)
public void addPoint(double x, double y)
public java.util.ArrayList drawAllDelaunay()
public java.util.ArrayList drawAllVoronoi()
public java.util.ArrayList drawAllSites()
public java.util.ArrayList drawAllCircles()
public DelaunayTriangulation getDelaunayTriangulation()
public java.util.ArrayList getInitialSimmplexAsJTSPoints()
public com.vividsolutions.jts.geom.Geometry getThiessenBoundingBox()
public java.util.ArrayList getThiessenPolys()
Note: "thiesen" and "voronoi" is exchangeable.