SFCGAL 2.0.0
SFCGAL::algorithm::SurfaceGraph Class Reference

Represents a polyhedral surface as a graph where faces are nodes and egde are graph edges. More...

#include <connection.h>

Inheritance diagram for SFCGAL::algorithm::SurfaceGraph:

Public Types

typedef size_t VertexIndex
typedef size_t FaceIndex
typedef std::map< Coordinate, VertexIndexCoordinateMap
typedef std::map< std::pair< VertexIndex, VertexIndex >, std::pair< FaceIndex, FaceIndex > > EdgeMap
typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS > FaceGraph

Public Member Functions

 SurfaceGraph (const PolyhedralSurface &s)
 SurfaceGraph (const TriangulatedSurface &tin)
const EdgeMapedgeMap () const
const FaceGraphfaceGraph () const
const Validity isValid () const

Static Public Attributes

static const size_t INVALID_INDEX = std::numeric_limits<size_t>::max()

Detailed Description

Represents a polyhedral surface as a graph where faces are nodes and egde are graph edges.

Precondition
the polygons are valid
Todo
unittest

Member Typedef Documentation

◆ CoordinateMap

◆ EdgeMap

◆ FaceGraph

typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS> SFCGAL::algorithm::SurfaceGraph::FaceGraph

◆ FaceIndex

◆ VertexIndex

Constructor & Destructor Documentation

◆ SurfaceGraph() [1/2]

SFCGAL::algorithm::SurfaceGraph::SurfaceGraph ( const PolyhedralSurface & s)

◆ SurfaceGraph() [2/2]

SFCGAL::algorithm::SurfaceGraph::SurfaceGraph ( const TriangulatedSurface & tin)

Member Function Documentation

◆ edgeMap()

const EdgeMap & SFCGAL::algorithm::SurfaceGraph::edgeMap ( ) const
inline

◆ faceGraph()

const FaceGraph & SFCGAL::algorithm::SurfaceGraph::faceGraph ( ) const
inline

◆ isValid()

const Validity SFCGAL::algorithm::SurfaceGraph::isValid ( ) const
inline

Member Data Documentation

◆ INVALID_INDEX

const size_t SFCGAL::algorithm::SurfaceGraph::INVALID_INDEX = std::numeric_limits<size_t>::max()
static