org.h2gis.h2spatialext.function.spatial.mesh
Class DelaunayData

java.lang.Object
  extended by org.h2gis.h2spatialext.function.spatial.mesh.DelaunayData

public class DelaunayData
extends Object

This class is used to collect all data used to compute a mesh based on a Delaunay triangulation

Author:
Erwan Bocher

Constructor Summary
DelaunayData()
          Create a mesh data structure to collect points and edges that will be used by the Delaunay Triangulation
 
Method Summary
 ArrayList<org.jdelaunay.delaunay.geometries.DEdge> getDelaunayEdges()
          Gives the collection of edges
 List<org.jdelaunay.delaunay.geometries.DPoint> getDelaunayPoints()
          Gives the collection of points
 void put(com.vividsolutions.jts.geom.Geometry geom)
          Put a geometry into the data array of points.
 void put(com.vividsolutions.jts.geom.Geometry geom, boolean isConstrained)
          Put a geometry into the data array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelaunayData

public DelaunayData()
Create a mesh data structure to collect points and edges that will be used by the Delaunay Triangulation

Method Detail

put

public void put(com.vividsolutions.jts.geom.Geometry geom,
                boolean isConstrained)
         throws org.jdelaunay.delaunay.error.DelaunayError
Put a geometry into the data array. Set true to populate the list of points and edges, needed for the ContrainedDelaunayTriangulation. Set false to populate only the list of points. Note the z-value is forced to O when it's equal to NaN.

Parameters:
geom -
isConstrained -
Throws:
org.jdelaunay.delaunay.error.DelaunayError

put

public void put(com.vividsolutions.jts.geom.Geometry geom)
         throws org.jdelaunay.delaunay.error.DelaunayError
Put a geometry into the data array of points. If you want to build a constrained Delaunay triangulation, use the method put(Geometry geom, boolean isConstrained). Note the z-value is forced to O when it's equal to NaN.

Parameters:
geom -
Throws:
org.jdelaunay.delaunay.error.DelaunayError

getDelaunayEdges

public ArrayList<org.jdelaunay.delaunay.geometries.DEdge> getDelaunayEdges()
Gives the collection of edges

Returns:

getDelaunayPoints

public List<org.jdelaunay.delaunay.geometries.DPoint> getDelaunayPoints()
Gives the collection of points

Returns:


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.