SFCGAL 2.0.0
|
Make orientation consistent in a triangle set. More...
#include <ConsistentOrientationBuilder.h>
Public Member Functions | |
ConsistentOrientationBuilder () | |
default constructor | |
void | addTriangle (const Triangle &triangle) |
add a Triangle | |
void | addTriangulatedSurface (const TriangulatedSurface &triangulatedSurface) |
add a TriangulatedSurface | |
TriangulatedSurface | buildTriangulatedSurface () |
get the resulting TriangulatedSurface where each connected part has consistent orientation. | |
size_t | numTriangles () const |
returns the number of triangles | |
Triangle | triangleN (const size_t &n) const |
returns the n-th triangle | |
const std::set< size_t > & | neighbors (const size_t &n) const |
[advanced]use after buildTriangulatedSurface |
Make orientation consistent in a triangle set.
typedef graph::GeometryGraph::directed_edge_descriptor SFCGAL::algorithm::ConsistentOrientationBuilder::directed_edge_descriptor |
typedef graph::GeometryGraph::edge_descriptor SFCGAL::algorithm::ConsistentOrientationBuilder::edge_descriptor |
typedef graph::GeometryGraph::vertex_descriptor SFCGAL::algorithm::ConsistentOrientationBuilder::vertex_descriptor |
SFCGAL::algorithm::ConsistentOrientationBuilder::ConsistentOrientationBuilder | ( | ) |
default constructor
void SFCGAL::algorithm::ConsistentOrientationBuilder::addTriangle | ( | const Triangle & | triangle | ) |
add a Triangle
void SFCGAL::algorithm::ConsistentOrientationBuilder::addTriangulatedSurface | ( | const TriangulatedSurface & | triangulatedSurface | ) |
add a TriangulatedSurface
auto SFCGAL::algorithm::ConsistentOrientationBuilder::buildTriangulatedSurface | ( | ) |
get the resulting TriangulatedSurface where each connected part has consistent orientation.
SFCGAL::Exception | if 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
|
inline |
returns the number of triangles
auto SFCGAL::algorithm::ConsistentOrientationBuilder::triangleN | ( | const size_t & | n | ) | const |
returns the n-th triangle