|
SFCGAL 2.3.0
|
Represents a polyhedral surface as a graph where faces are nodes and egde are graph edges. More...
#include <connection.h>
Public Types | |
| using | VertexIndex = size_t |
| Vertex index type for identifying vertices in the surface graph. | |
| using | FaceIndex = size_t |
| Face index type for identifying faces in the surface graph. | |
| using | CoordinateMap = std::map<Coordinate, VertexIndex> |
| Map type for associating coordinates with vertex indices. | |
| using | EdgeMap |
| Map type for storing edges and their adjacent faces. | |
| using | FaceGraph |
| Graph type representing face adjacency relationships. | |
Public Member Functions | |
| SurfaceGraph (const PolyhedralSurface &surface) | |
| Construct from PolyhedralSurface. | |
| SurfaceGraph (const TriangulatedSurface &triangulatedSurface) | |
| Construct from TriangulatedSurface. | |
| const EdgeMap & | edgeMap () const |
| Get the edge map. | |
| const FaceGraph & | faceGraph () const |
| Get the face adjacency graph. | |
| const Validity | isValid () const |
| Check if the surface graph is valid. | |
Static Public Attributes | |
| static const size_t | INVALID_INDEX = std::numeric_limits<size_t>::max() |
| Constant representing an invalid index value. | |
Represents a polyhedral surface as a graph where faces are nodes and egde are graph edges.
| using SFCGAL::algorithm::SurfaceGraph::CoordinateMap = std::map<Coordinate, VertexIndex> |
Map type for associating coordinates with vertex indices.
Map type for storing edges and their adjacent faces.
Graph type representing face adjacency relationships.
| using SFCGAL::algorithm::SurfaceGraph::FaceIndex = size_t |
Face index type for identifying faces in the surface graph.
| using SFCGAL::algorithm::SurfaceGraph::VertexIndex = size_t |
Vertex index type for identifying vertices in the surface graph.
| SFCGAL::algorithm::SurfaceGraph::SurfaceGraph | ( | const PolyhedralSurface & | surface | ) |
Construct from PolyhedralSurface.
| surface | The polyhedral surface to construct the graph from |
| Exception | if surface is not connected |
| SFCGAL::algorithm::SurfaceGraph::SurfaceGraph | ( | const TriangulatedSurface & | triangulatedSurface | ) |
Construct from TriangulatedSurface.
| triangulatedSurface | The triangulated surface to construct the graph from |
| Exception | if surface is not connected |
|
inline |
Get the edge map.
|
inline |
Get the face adjacency graph.
|
inline |
Check if the surface graph is valid.
|
static |
Constant representing an invalid index value.