Skip to content

Class SFCGAL::algorithm::ConsistentOrientationBuilder

ClassList > SFCGAL > algorithm > ConsistentOrientationBuilder

More...

  • #include <ConsistentOrientationBuilder.h>

Public Types

Type Name
typedef graph::GeometryGraph::directed_edge_descriptor directed_edge_descriptor
typedef graph::GeometryGraph::edge_descriptor edge_descriptor
typedef graph::GeometryGraph::vertex_descriptor vertex_descriptor

Public Functions

Type Name
ConsistentOrientationBuilder ()
void addTriangle (const Triangle & triangle)
void addTriangulatedSurface (const TriangulatedSurface & triangulatedSurface)
TriangulatedSurface buildTriangulatedSurface ()
const std::set< size_t > & neighbors (const size_t & n) const
size_t numTriangles () const
Triangle triangleN (const size_t & n) const

Detailed Description

Make orientation consistent in a triangle set

Public Types Documentation

typedef directed_edge_descriptor

typedef graph::GeometryGraph::directed_edge_descriptor SFCGAL::algorithm::ConsistentOrientationBuilder::directed_edge_descriptor;

typedef edge_descriptor

typedef graph::GeometryGraph::edge_descriptor SFCGAL::algorithm::ConsistentOrientationBuilder::edge_descriptor;

typedef vertex_descriptor

typedef graph::GeometryGraph::vertex_descriptor SFCGAL::algorithm::ConsistentOrientationBuilder::vertex_descriptor;

Public Functions Documentation

function ConsistentOrientationBuilder

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

default constructor


function addTriangle

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

add a Triangle


function addTriangulatedSurface

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

add a TriangulatedSurface


function buildTriangulatedSurface

TriangulatedSurface SFCGAL::algorithm::ConsistentOrientationBuilder::buildTriangulatedSurface () 

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

Exception:


function neighbors

const std::set< size_t > & SFCGAL::algorithm::ConsistentOrientationBuilder::neighbors (
    const size_t & n
) const

[advanced]use after buildTriangulatedSurface


function numTriangles

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

returns the number of triangles


function triangleN

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

returns the n-th triangle



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/algorithm/ConsistentOrientationBuilder.h