|
SFCGAL
2.3.0
|
Make orientation consistent in a triangle set. More...
#include <ConsistentOrientationBuilder.h>
Public Types | |
| using | vertex_descriptor = graph::GeometryGraph::vertex_descriptor |
| Vertex descriptor type for geometry graph. More... | |
| using | edge_descriptor = graph::GeometryGraph::edge_descriptor |
| Edge descriptor type for geometry graph. More... | |
| using | directed_edge_descriptor = graph::GeometryGraph::directed_edge_descriptor |
| Directed edge descriptor type for geometry graph. More... | |
Public Member Functions | |
| ConsistentOrientationBuilder () | |
| default constructor More... | |
| void | addTriangle (const Triangle &triangle) |
| Add a Triangle to the builder. More... | |
| void | addTriangulatedSurface (const TriangulatedSurface &triangulatedSurface) |
| Add a TriangulatedSurface to the builder. 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 |
| Get the neighbors of the n-th triangle (advanced usage) More... | |
Make orientation consistent in a triangle set.
| using SFCGAL::algorithm::ConsistentOrientationBuilder::directed_edge_descriptor = graph::GeometryGraph::directed_edge_descriptor |
Directed edge descriptor type for geometry graph.
| using SFCGAL::algorithm::ConsistentOrientationBuilder::edge_descriptor = graph::GeometryGraph::edge_descriptor |
Edge descriptor type for geometry graph.
| using SFCGAL::algorithm::ConsistentOrientationBuilder::vertex_descriptor = graph::GeometryGraph::vertex_descriptor |
Vertex descriptor type for geometry graph.
| SFCGAL::algorithm::ConsistentOrientationBuilder::ConsistentOrientationBuilder | ( | ) |
default constructor
| void SFCGAL::algorithm::ConsistentOrientationBuilder::addTriangle | ( | const Triangle & | triangle | ) |
Add a Triangle to the builder.
| triangle | The triangle to add |
| void SFCGAL::algorithm::ConsistentOrientationBuilder::addTriangulatedSurface | ( | const TriangulatedSurface & | triangulatedSurface | ) |
Add a TriangulatedSurface to the builder.
| triangulatedSurface | The triangulated surface to add |
| 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 |
Get the neighbors of the n-th triangle (advanced usage)
| n | Index of the triangle |
|
inline |
Returns the number of triangles.
| auto SFCGAL::algorithm::ConsistentOrientationBuilder::triangleN | ( | const size_t & | n | ) | const |
Returns the n-th triangle.
| n | Index of the triangle to retrieve |
1.8.10