SFCGAL  1.3.0
Public Types | Public Member Functions | List of all members
SFCGAL::algorithm::ConsistentOrientationBuilder Class Reference

Make orientation consistent in a triangle set. More...

#include <ConsistentOrientationBuilder.h>

Public Types

typedef graph::GeometryGraph::vertex_descriptor vertex_descriptor
 
typedef graph::GeometryGraph::edge_descriptor edge_descriptor
 
typedef graph::GeometryGraph::directed_edge_descriptor directed_edge_descriptor
 

Public Member Functions

 ConsistentOrientationBuilder ()
 default constructor More...
 
void addTriangle (const Triangle &triangle)
 add a Triangle More...
 
void addTriangulatedSurface (const TriangulatedSurface &triangulatedSurface)
 add a TriangulatedSurface More...
 
TriangulatedSurface buildTriangulatedSurface ()
 get the resulting TriangulatedSurface where each connected part has consistent orientation. More...
 
size_t numTriangles () const
 returns the number of triangles More...
 
Triangle triangleN (const size_t &n) const
 returns the n-th triangle More...
 
const std::set< size_t > & neighbors (const size_t &n) const
 [advanced]use after buildTriangulatedSurface More...
 

Detailed Description

Make orientation consistent in a triangle set.

Member Typedef Documentation

Constructor & Destructor Documentation

SFCGAL::algorithm::ConsistentOrientationBuilder::ConsistentOrientationBuilder ( )

default constructor

Member Function Documentation

void SFCGAL::algorithm::ConsistentOrientationBuilder::addTriangle ( const Triangle triangle)

add a Triangle

void SFCGAL::algorithm::ConsistentOrientationBuilder::addTriangulatedSurface ( const TriangulatedSurface triangulatedSurface)
TriangulatedSurface SFCGAL::algorithm::ConsistentOrientationBuilder::buildTriangulatedSurface ( )

get the resulting TriangulatedSurface where each connected part has consistent orientation.

Exceptions
SFCGAL::Exceptionif such a TriangulatedSurface can't be built
const std::set< size_t >& SFCGAL::algorithm::ConsistentOrientationBuilder::neighbors ( const size_t &  n) const

[advanced]use after buildTriangulatedSurface

size_t SFCGAL::algorithm::ConsistentOrientationBuilder::numTriangles ( ) const
inline

returns the number of triangles

Triangle SFCGAL::algorithm::ConsistentOrientationBuilder::triangleN ( const size_t &  n) const

returns the n-th triangle