|
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. More... | |
| using | FaceIndex = size_t |
| Face index type for identifying faces in the surface graph. More... | |
| using | CoordinateMap = std::map< Coordinate, VertexIndex > |
| Map type for associating coordinates with vertex indices. More... | |
| using | EdgeMap = std::map< std::pair< VertexIndex, VertexIndex >, std::pair< FaceIndex, FaceIndex >> |
| Map type for storing edges and their adjacent faces. More... | |
| using | FaceGraph = boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS > |
| Graph type representing face adjacency relationships. More... | |
Public Member Functions | |
| SurfaceGraph (const PolyhedralSurface &surface) | |
| Construct from PolyhedralSurface. More... | |
| SurfaceGraph (const TriangulatedSurface &triangulatedSurface) | |
| Construct from TriangulatedSurface. More... | |
| const EdgeMap & | edgeMap () const |
| Get the edge map. More... | |
| const FaceGraph & | faceGraph () const |
| Get the face adjacency graph. More... | |
| const Validity | isValid () const |
| Check if the surface graph is valid. More... | |
Static Public Attributes | |
| static const size_t | INVALID_INDEX = std::numeric_limits<size_t>::max() |
| Constant representing an invalid index value. More... | |
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.
| using SFCGAL::algorithm::SurfaceGraph::EdgeMap = std::map<std::pair<VertexIndex, VertexIndex>, std::pair<FaceIndex, FaceIndex>> |
Map type for storing edges and their adjacent faces.
| using SFCGAL::algorithm::SurfaceGraph::FaceGraph = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS> |
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.
1.8.10