|
SFCGAL
2.3.0
|
Compute the boundary for a Geometry. More...
#include <BoundaryVisitor.h>
Public Member Functions | |
| void | visit (const Point &g) override |
| Visit a Point geometry to compute its boundary. More... | |
| void | visit (const LineString &g) override |
| Visit a LineString geometry to compute its boundary. More... | |
| void | visit (const Polygon &g) override |
| Visit a Polygon geometry to compute its boundary. More... | |
| void | visit (const Triangle &g) override |
| Visit a Triangle geometry to compute its boundary. More... | |
| void | visit (const Solid &g) override |
| Visit a Solid geometry to compute its boundary. More... | |
| void | visit (const MultiPoint &g) override |
| Visit a MultiPoint geometry to compute its boundary. More... | |
| void | visit (const MultiLineString &g) override |
| Visit a MultiLineString geometry to compute its boundary. More... | |
| void | visit (const MultiPolygon &g) override |
| Visit a MultiPolygon geometry to compute its boundary. More... | |
| void | visit (const MultiSolid &g) override |
| Visit a MultiSolid geometry to compute its boundary. More... | |
| void | visit (const GeometryCollection &g) override |
| Visit a GeometryCollection to compute its boundary. More... | |
| void | visit (const PolyhedralSurface &g) override |
| Visit a PolyhedralSurface geometry to compute its boundary. More... | |
| void | visit (const TriangulatedSurface &g) override |
| Visit a TriangulatedSurface geometry to compute its boundary. More... | |
| void | visit (const NURBSCurve &g) override |
| Process NURBSCurve for boundary calculation. More... | |
| Geometry * | releaseBoundary () |
| get the boundary More... | |
Public Member Functions inherited from SFCGAL::ConstGeometryVisitor | |
| virtual | ~ConstGeometryVisitor () |
| Default destructor for ConstGeometryVisitor. More... | |
| virtual void | visit (const Geometry &geometry) |
| Apply this visitor to a generic const Geometry reference. More... | |
Protected Member Functions | |
| void | getBoundaryFromLineStrings (const graph::GeometryGraph &g) |
| get the boundary vertices for a set of LineString in a GeometryGraph More... | |
| void | getBoundaryFromPolygons (const graph::GeometryGraph &g) |
| get the boundary edges for a set of Polygons in a GeometryGraph More... | |
Compute the boundary for a Geometry.
boundary( Point ) : GEOMETRYCOLLECTION EMPTY boundary( LineString ) : either GEOMETRYCOLLECTION EMPTY is the LineString is closed, or MULTIPOINT(2) boundary( Polygon ) : LINESTRING | MULTILINESTRING (polygon rings) boundary( Triangle ) : either GEOMETRYCOLLECTION EMPTY is the LineString is closed, or MULTIPOINT(2)
boundary( MultiPoint ) : GEOMETRYCOLLECTION EMPTY boundary( MultiLineString ) : either GEOMETRYCOLLECTION EMPTY or single occurance points
@ŧodo Solid
MultiPolygon, PolyhedralSurface, TriangulatedSurface (same graph algorithm, edges without parallel or opposite)
MultiSolid : faced elimination
|
protected |
get the boundary vertices for a set of LineString in a GeometryGraph
| g | The GeometryGraph containing LineStrings |
|
protected |
get the boundary edges for a set of Polygons in a GeometryGraph
| g | The GeometryGraph containing Polygons |
| auto SFCGAL::algorithm::BoundaryVisitor::releaseBoundary | ( | ) |
get the boundary
Releases and returns the visitor's current boundary geometry.
If the visitor holds an internal boundary, ownership of that Geometry is transferred to the caller and the visitor no longer retains it. If no internal boundary exists, a newly allocated empty GeometryCollection is returned.
|
overridevirtual |
Visit a Point geometry to compute its boundary.
| g | The Point geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a LineString geometry to compute its boundary.
| g | The LineString geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a Polygon geometry to compute its boundary.
| g | The Polygon geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a Triangle geometry to compute its boundary.
| g | The Triangle geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a Solid geometry to compute its boundary.
| g | The Solid geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a MultiPoint geometry to compute its boundary.
| g | The MultiPoint geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a MultiLineString geometry to compute its boundary.
| g | The MultiLineString geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a MultiPolygon geometry to compute its boundary.
| g | The MultiPolygon geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a MultiSolid geometry to compute its boundary.
| g | The MultiSolid geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a GeometryCollection to compute its boundary.
| g | The GeometryCollection to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a PolyhedralSurface geometry to compute its boundary.
| g | The PolyhedralSurface geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Visit a TriangulatedSurface geometry to compute its boundary.
| g | The TriangulatedSurface geometry to visit |
Implements SFCGAL::ConstGeometryVisitor.
|
overridevirtual |
Process NURBSCurve for boundary calculation.
Compute and set the boundary for a NURBSCurve.
| g | The NURBSCurve geometry to process |
If the curve is empty or its start and end coordinates are identical, the visitor clears the internal boundary. Otherwise the boundary is set to a MultiPoint containing copies of the curve's start and end points.
Reimplemented from SFCGAL::ConstGeometryVisitor.
1.8.10