SFCGAL  1.3.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
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 = size_t( -1 )
 

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

typedef std::map< std::pair < VertexIndex, VertexIndex > , std::pair< FaceIndex, FaceIndex > > SFCGAL::algorithm::SurfaceGraph::EdgeMap
typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS > SFCGAL::algorithm::SurfaceGraph::FaceGraph

Constructor & Destructor Documentation

SFCGAL::algorithm::SurfaceGraph::SurfaceGraph ( const PolyhedralSurface s)
SFCGAL::algorithm::SurfaceGraph::SurfaceGraph ( const TriangulatedSurface tin)

Member Function Documentation

const EdgeMap& SFCGAL::algorithm::SurfaceGraph::edgeMap ( ) const
inline
const FaceGraph& SFCGAL::algorithm::SurfaceGraph::faceGraph ( ) const
inline
const Validity SFCGAL::algorithm::SurfaceGraph::isValid ( ) const
inline

Member Data Documentation

const size_t SFCGAL::algorithm::SurfaceGraph::INVALID_INDEX = size_t( -1 )
static