GEOS  3.6.2
Public Member Functions | Static Public Member Functions
geos::triangulate::DelaunayTriangulationBuilder Class Reference

#include <DelaunayTriangulationBuilder.h>

List of all members.

Public Member Functions

 DelaunayTriangulationBuilder ()
void setSites (const geom::Geometry &geom)
void setSites (const geom::CoordinateSequence &coords)
void setTolerance (double tolerance)
quadedge::QuadEdgeSubdivisiongetSubdivision ()
std::auto_ptr
< geom::MultiLineString
getEdges (const geom::GeometryFactory &geomFact)
std::auto_ptr
< geom::GeometryCollection
getTriangles (const geom::GeometryFactory &geomFact)

Static Public Member Functions

static geom::CoordinateSequenceextractUniqueCoordinates (const geom::Geometry &geom)
static void unique (geom::CoordinateSequence &coords)
static
IncrementalDelaunayTriangulator::VertexList * 
toVertices (const geom::CoordinateSequence &coords)
static geom::Envelope envelope (const geom::CoordinateSequence &coords)

Detailed Description

A utility class which creates Delaunay Triangulations from collections of points and extract the resulting triangulation edges or triangles as geometries.

Author:
JTS: Martin Davis
Benjamin Campbell

Constructor & Destructor Documentation

Creates a new triangulation builder.


Member Function Documentation

Computes the Envelope of a collection of Coordinates.

Parameters:
coordsa List of Coordinates
Returns:
the envelope of the set of coordinates

Extracts the unique Coordinates from the given Geometry.

Parameters:
geomthe geometry to extract from
Returns:
a List of the unique Coordinates. Caller takes ownership of the returned object.

Gets the edges of the computed triangulation as a MultiLineString.

Parameters:
geomFactthe geometry factory to use to create the output
Returns:
the edges of the triangulation. The caller takes ownership of the returned object.

Gets the quadedge::QuadEdgeSubdivision which models the computed triangulation.

Returns:
the subdivision containing the triangulation

Gets the faces of the computed triangulation as a GeometryCollection of Polygon.

Parameters:
geomFactthe geometry factory to use to create the output
Returns:
the faces of the triangulation. The caller takes ownership of the returned object.

Sets the sites (vertices) which will be triangulated. All vertices of the given geometry will be used as sites.

Parameters:
geomthe geometry from which the sites will be extracted.

Sets the sites (vertices) which will be triangulated from a collection of Coordinates.

Parameters:
geoma CoordinateSequence.

Sets the snapping tolerance which will be used to improved the robustness of the triangulation computation. A tolerance of 0.0 specifies that no snapping will take place.

Parameters:
tolerancethe tolerance distance to use
static IncrementalDelaunayTriangulator::VertexList* geos::triangulate::DelaunayTriangulationBuilder::toVertices ( const geom::CoordinateSequence coords) [static]

Converts all Coordinates in a collection to Vertexes.

Parameters:
coordsthe coordinates to convert
Returns:
a List of Vertex objects. Call takes ownership of returned object.

The documentation for this class was generated from the following file: