Class SFCGAL::TriangulatedSurface#
ClassList > SFCGAL > TriangulatedSurface
#include <TriangulatedSurface.h>
Inherits the following classes: SFCGAL::Surface
Public Types#
Type | Name |
---|---|
typedef boost::ptr_vector< Triangle >::const_iterator | const_iterator |
typedef boost::ptr_vector< Triangle >::iterator | iterator |
Public Functions#
Type | Name |
---|---|
TriangulatedSurface () |
|
TriangulatedSurface (const std::vector< Triangle > & triangle) |
|
TriangulatedSurface (const TriangulatedSurface & other) |
|
void | accept (GeometryVisitor & visitor) override |
void | accept (ConstGeometryVisitor & visitor) override const |
void | addPatch (const Triangle & patch) |
void | addPatch (Triangle * patch) |
void | addPatchs (const TriangulatedSurface & other) |
void | addTriangle (const Triangle & triangle) |
void | addTriangle (Triangle * triangle) |
void | addTriangles (const TriangulatedSurface & other) |
iterator | begin () |
const_iterator | begin () const |
TriangulatedSurface * | clone () override const |
int | coordinateDimension () override const |
int | dimension () override const |
auto | dropM () override |
auto | dropZ () override |
iterator | end () |
const_iterator | end () const |
std::string | geometryType () override const |
GeometryType | geometryTypeId () override const |
bool | is3D () override const |
bool | isEmpty () override const |
bool | isMeasured () override const |
auto | numPatches () const |
size_t | numTriangles () const |
TriangulatedSurface & | operator= (TriangulatedSurface other) |
auto | patchN (size_t const & n) const |
auto | patchN (size_t const & n) |
void | reserve (const size_t & n) |
void | serialize (Archive & ar, const unsigned int) |
void | setPatchN (const Geometry & geometry, size_t const & n) |
void | setPatchN (Geometry * geometry, size_t const & n) |
void | setPatchN (const Triangle & triangle, size_t const & n) |
void | setPatchN (Triangle * triangle, size_t const & n) |
auto | swapXY () override |
std::unique_ptr< Polyhedron > | toPolyhedron_3 () const Converts a TriangulatedSurface to a CGAL::Polyhedron_3. |
auto | toPolyhedron_3 () const |
const Triangle & | triangleN (size_t const & n) const |
Triangle & | triangleN (size_t const & n) |
~TriangulatedSurface () |
Public Functions inherited from SFCGAL::Surface#
See SFCGAL::Surface
Type | Name |
---|---|
int | dimension () override const |
virtual | ~Surface () |
Protected Functions inherited from SFCGAL::Surface#
See SFCGAL::Surface
Type | Name |
---|---|
Surface () |
|
Surface (Surface const & other) |
Detailed Description#
A TriangulatedSurface in SFA modeled as a Triangle soup
Todo
do better than a "triangle soup" or add topological view?
Public Types Documentation#
typedef const_iterator#
typedef boost::ptr_vector<Triangle>::const_iterator SFCGAL::TriangulatedSurface::const_iterator;
typedef iterator#
typedef boost::ptr_vector<Triangle>::iterator SFCGAL::TriangulatedSurface::iterator;
Public Functions Documentation#
function TriangulatedSurface [1/3]#
SFCGAL::TriangulatedSurface::TriangulatedSurface ()
Empty TriangulatedSurface constructor
function TriangulatedSurface [2/3]#
SFCGAL::TriangulatedSurface::TriangulatedSurface (
const std::vector< Triangle > & triangle
)
Constructor with a vector of triangles
function TriangulatedSurface [3/3]#
SFCGAL::TriangulatedSurface::TriangulatedSurface (
const TriangulatedSurface & other
)
Copy constructor
function accept [1/2]#
void SFCGAL::TriangulatedSurface::accept (
GeometryVisitor & visitor
) override
function accept [2/2]#
void SFCGAL::TriangulatedSurface::accept (
ConstGeometryVisitor & visitor
) override const
function addPatch [1/2]#
inline void SFCGAL::TriangulatedSurface::addPatch (
const Triangle & patch
)
add a Patch to the TriangulatedSurface
function addPatch [2/2]#
inline void SFCGAL::TriangulatedSurface::addPatch (
Triangle * patch
)
add a Patch to the TriangulatedSurface
function addPatchs#
void SFCGAL::TriangulatedSurface::addPatchs (
const TriangulatedSurface & other
)
add patchs from an other TriangulatedSurface
function addTriangle [1/2]#
inline void SFCGAL::TriangulatedSurface::addTriangle (
const Triangle & triangle
)
add a Triangle to the TriangulatedSurface
Deprecated
see addPatch()
function addTriangle [2/2]#
inline void SFCGAL::TriangulatedSurface::addTriangle (
Triangle * triangle
)
add a Triangle to the TriangulatedSurface
Deprecated
see addPatch()
function addTriangles#
void SFCGAL::TriangulatedSurface::addTriangles (
const TriangulatedSurface & other
)
add triangles from an other TriangulatedSurface
Deprecated
see addPatchs()
function begin [1/2]#
inline iterator SFCGAL::TriangulatedSurface::begin ()
function begin [2/2]#
inline const_iterator SFCGAL::TriangulatedSurface::begin () const
function clone#
TriangulatedSurface * SFCGAL::TriangulatedSurface::clone () override const
function coordinateDimension#
int SFCGAL::TriangulatedSurface::coordinateDimension () override const
function dimension#
int SFCGAL::TriangulatedSurface::dimension () override const
function dropM#
auto SFCGAL::TriangulatedSurface::dropM () override
function dropZ#
auto SFCGAL::TriangulatedSurface::dropZ () override
function end [1/2]#
inline iterator SFCGAL::TriangulatedSurface::end ()
function end [2/2]#
inline const_iterator SFCGAL::TriangulatedSurface::end () const
function geometryType#
std::string SFCGAL::TriangulatedSurface::geometryType () override const
function geometryTypeId#
GeometryType SFCGAL::TriangulatedSurface::geometryTypeId () override const
function is3D#
bool SFCGAL::TriangulatedSurface::is3D () override const
function isEmpty#
bool SFCGAL::TriangulatedSurface::isEmpty () override const
function isMeasured#
bool SFCGAL::TriangulatedSurface::isMeasured () override const
function numPatches#
inline auto SFCGAL::TriangulatedSurface::numPatches () const
[SFA/OGC]Returns the number of patches
Deprecated
see numGeometries()
function numTriangles#
inline size_t SFCGAL::TriangulatedSurface::numTriangles () const
[SFA/OGC]Returns the number of points
Deprecated
see numPatches()
function operator=#
TriangulatedSurface & SFCGAL::TriangulatedSurface::operator= (
TriangulatedSurface other
)
assign operator
function patchN [1/2]#
auto SFCGAL::TriangulatedSurface::patchN (
size_t const & n
) const
[SFA/OGC]Returns the n-th patch
function patchN [2/2]#
auto SFCGAL::TriangulatedSurface::patchN (
size_t const & n
)
[SFA/OGC]Returns the n-th patch
function reserve#
void SFCGAL::TriangulatedSurface::reserve (
const size_t & n
)
function serialize#
template<class Archive>
inline void SFCGAL::TriangulatedSurface::serialize (
Archive & ar,
const unsigned int
)
Serializer
function setPatchN [1/4]#
void SFCGAL::TriangulatedSurface::setPatchN (
const Geometry & geometry,
size_t const & n
)
Sets the n-th Geometry, starting at zero It needs to be a triangle.
function setPatchN [2/4]#
void SFCGAL::TriangulatedSurface::setPatchN (
Geometry * geometry,
size_t const & n
)
Sets the n-th Geometry, starting at zero It needs to be a triangle. The ownership of the polygon is taken. The caller is not responsible anymore of its deallocation.
function setPatchN [3/4]#
void SFCGAL::TriangulatedSurface::setPatchN (
const Triangle & triangle,
size_t const & n
)
Sets the n-th Patch, starting at zero
function setPatchN [4/4]#
void SFCGAL::TriangulatedSurface::setPatchN (
Triangle * triangle,
size_t const & n
)
Sets the n-th Patch, starting at zero The ownership of the polygon is taken. The caller is not responsible anymore of its deallocation.
function swapXY#
auto SFCGAL::TriangulatedSurface::swapXY () override
function toPolyhedron_3 [1/2]#
Converts a TriangulatedSurface to a CGAL::Polyhedron_3.
template<typename K, typename Polyhedron>
std::unique_ptr< Polyhedron > SFCGAL::TriangulatedSurface::toPolyhedron_3 () const
function toPolyhedron_3 [2/2]#
template<typename K, typename Polyhedron>
auto SFCGAL::TriangulatedSurface::toPolyhedron_3 () const
function triangleN [1/2]#
inline const Triangle & SFCGAL::TriangulatedSurface::triangleN (
size_t const & n
) const
[SFA/OGC]Returns the n-th point
Deprecated
see patchN()
function triangleN [2/2]#
inline Triangle & SFCGAL::TriangulatedSurface::triangleN (
size_t const & n
)
[SFA/OGC]Returns the n-th point
Deprecated
see patchN()
function ~TriangulatedSurface#
SFCGAL::TriangulatedSurface::~TriangulatedSurface ()
destructor
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/TriangulatedSurface.h