Class SFCGAL::PolyhedralSurface#
ClassList > SFCGAL > PolyhedralSurface
#include <PolyhedralSurface.h>
Inherits the following classes: SFCGAL::Surface
Public Types#
Type | Name |
---|---|
typedef boost::ptr_vector< Polygon >::const_iterator | const_iterator |
typedef const Polygon & | const_reference |
typedef boost::ptr_vector< Polygon >::iterator | iterator |
typedef Polygon & | reference |
typedef Polygon | value_type |
Public Functions#
Type | Name |
---|---|
PolyhedralSurface () |
|
PolyhedralSurface (const std::vector< Polygon > & polygons) |
|
PolyhedralSurface (const std::unique_ptr< Geometry > & geometry) |
|
PolyhedralSurface (const Polyhedron & poly) |
|
PolyhedralSurface (const Mesh & sm) |
|
PolyhedralSurface (const InexactMesh & inexactMesh) |
|
PolyhedralSurface (const PolyhedralSurface & other) |
|
void | accept (GeometryVisitor & visitor) override |
void | accept (ConstGeometryVisitor & visitor) override const |
void | addPatch (const Polygon & polygon) |
void | addPatch (Polygon * polygon) |
void | addPatchs (const PolyhedralSurface & polyhedralSurface) |
void | addPolygon (const Polygon & polygon) |
void | addPolygon (Polygon * polygon) |
void | addPolygons (const PolyhedralSurface & polyhedralSurface) |
iterator | begin () |
const_iterator | begin () const |
PolyhedralSurface * | 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 | numPolygons () const |
PolyhedralSurface & | operator= (PolyhedralSurface other) |
const Polygon & | patchN (size_t const & n) const |
Polygon & | patchN (size_t const & n) |
const Polygon & | polygonN (size_t const & n) const |
Polygon & | polygonN (size_t const & n) |
void | push_back (const Polygon & polygon) |
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 Polygon & patch, size_t const & n) |
void | setPatchN (Polygon * patch, size_t const & n) |
auto | swapXY () override |
std::unique_ptr< Polyhedron > | toPolyhedron_3 () const |
TriangulatedSurface | toTriangulatedSurface () const |
~PolyhedralSurface () |
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 PolyhedralSurface in SFA modeled as a Polygon soup
Todo
do better than a "polygon soup" or add topological view?
Public Types Documentation#
typedef const_iterator#
typedef boost::ptr_vector<Polygon>::const_iterator SFCGAL::PolyhedralSurface::const_iterator;
typedef const_reference#
using SFCGAL::PolyhedralSurface::const_reference = const Polygon &;
typedef iterator#
typedef boost::ptr_vector<Polygon>::iterator SFCGAL::PolyhedralSurface::iterator;
typedef reference#
using SFCGAL::PolyhedralSurface::reference = Polygon &;
typedef value_type#
using SFCGAL::PolyhedralSurface::value_type = Polygon;
Public Functions Documentation#
function PolyhedralSurface [1/7]#
SFCGAL::PolyhedralSurface::PolyhedralSurface ()
Empty PolyhedralSurface constructor
function PolyhedralSurface [2/7]#
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const std::vector< Polygon > & polygons
)
Constructor with a vector of polygons
function PolyhedralSurface [3/7]#
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const std::unique_ptr< Geometry > & geometry
)
Constructor with a Geometry
function PolyhedralSurface [4/7]#
template<typename Polyhedron>
inline SFCGAL::PolyhedralSurface::PolyhedralSurface (
const Polyhedron & poly
)
Constructor from a Polyhedron (detail::MarkedPolyhedron or CGAL::Polyhedron_3)
function PolyhedralSurface [5/7]#
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const Mesh & sm
)
Constructor from a CGAL::Surface_mesh
function PolyhedralSurface [6/7]#
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const InexactMesh & inexactMesh
)
function PolyhedralSurface [7/7]#
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const PolyhedralSurface & other
)
Copy constructor
function accept [1/2]#
void SFCGAL::PolyhedralSurface::accept (
GeometryVisitor & visitor
) override
function accept [2/2]#
void SFCGAL::PolyhedralSurface::accept (
ConstGeometryVisitor & visitor
) override const
function addPatch [1/2]#
void SFCGAL::PolyhedralSurface::addPatch (
const Polygon & polygon
)
add a patch to the PolyhedralSurface
function addPatch [2/2]#
void SFCGAL::PolyhedralSurface::addPatch (
Polygon * polygon
)
add a patch to the PolyhedralSurface
function addPatchs#
void SFCGAL::PolyhedralSurface::addPatchs (
const PolyhedralSurface & polyhedralSurface
)
add patches from an other PolyhedralSurface
function addPolygon [1/2]#
void SFCGAL::PolyhedralSurface::addPolygon (
const Polygon & polygon
)
add a polygon to the PolyhedralSurface
Deprecated
see addPatch()
function addPolygon [2/2]#
void SFCGAL::PolyhedralSurface::addPolygon (
Polygon * polygon
)
add a polygon to the PolyhedralSurface
Deprecated
see addPatch()
function addPolygons#
void SFCGAL::PolyhedralSurface::addPolygons (
const PolyhedralSurface & polyhedralSurface
)
add polygons from an other PolyhedralSurface
Deprecated
see addPatchs()
function begin [1/2]#
inline iterator SFCGAL::PolyhedralSurface::begin ()
function begin [2/2]#
inline const_iterator SFCGAL::PolyhedralSurface::begin () const
function clone#
PolyhedralSurface * SFCGAL::PolyhedralSurface::clone () override const
function coordinateDimension#
int SFCGAL::PolyhedralSurface::coordinateDimension () override const
function dimension#
int SFCGAL::PolyhedralSurface::dimension () override const
function dropM#
auto SFCGAL::PolyhedralSurface::dropM () override
function dropZ#
auto SFCGAL::PolyhedralSurface::dropZ () override
function end [1/2]#
inline iterator SFCGAL::PolyhedralSurface::end ()
function end [2/2]#
inline const_iterator SFCGAL::PolyhedralSurface::end () const
function geometryType#
std::string SFCGAL::PolyhedralSurface::geometryType () override const
function geometryTypeId#
GeometryType SFCGAL::PolyhedralSurface::geometryTypeId () override const
function is3D#
bool SFCGAL::PolyhedralSurface::is3D () override const
function isEmpty#
bool SFCGAL::PolyhedralSurface::isEmpty () override const
function isMeasured#
bool SFCGAL::PolyhedralSurface::isMeasured () override const
function numPatches#
inline auto SFCGAL::PolyhedralSurface::numPatches () const
[SFA/OGC]Returns the number of patches
Warning:
PolyhedralSurface is treated as one geometry. numGeometries returns 1 or 0 for empty PolyhedralSurface
function numPolygons#
inline size_t SFCGAL::PolyhedralSurface::numPolygons () const
[SFA/OGC]Returns the number of polygons
Warning:
PolyhedralSurface is treated as one geometry. numGeometries returns 1 or 0 for empty PolyhedralSurface
Deprecated
see numPatches
See also: numGeometries()
function operator=#
PolyhedralSurface & SFCGAL::PolyhedralSurface::operator= (
PolyhedralSurface other
)
assign operator
function patchN [1/2]#
inline const Polygon & SFCGAL::PolyhedralSurface::patchN (
size_t const & n
) const
[SFA/OGC]Returns the n-th patch
function patchN [2/2]#
inline Polygon & SFCGAL::PolyhedralSurface::patchN (
size_t const & n
)
[SFA/OGC]Returns the n-th patch
function polygonN [1/2]#
inline const Polygon & SFCGAL::PolyhedralSurface::polygonN (
size_t const & n
) const
[SFA/OGC]Returns the n-th polygon
Deprecated
see patchN()
function polygonN [2/2]#
inline Polygon & SFCGAL::PolyhedralSurface::polygonN (
size_t const & n
)
[SFA/OGC]Returns the n-th polygon
Deprecated
see patchN()
function push_back#
inline void SFCGAL::PolyhedralSurface::push_back (
const Polygon & polygon
)
function serialize#
template<class Archive>
inline void SFCGAL::PolyhedralSurface::serialize (
Archive & ar,
const unsigned int
)
Serializer
function setPatchN [1/4]#
void SFCGAL::PolyhedralSurface::setPatchN (
const Geometry & geometry,
size_t const & n
)
Sets the n-th Geometry, starting at zero It needs to be a polygon.
function setPatchN [2/4]#
void SFCGAL::PolyhedralSurface::setPatchN (
Geometry * geometry,
size_t const & n
)
Sets the n-th Geometry, starting at zero It needs to be a polygon. The ownership of the polygon is taken. The caller is not responsible anymore of its deallocation.
function setPatchN [3/4]#
void SFCGAL::PolyhedralSurface::setPatchN (
const Polygon & patch,
size_t const & n
)
Sets the n-th Patch, starting at zero
function setPatchN [4/4]#
void SFCGAL::PolyhedralSurface::setPatchN (
Polygon * patch,
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::PolyhedralSurface::swapXY () override
function toPolyhedron_3#
template<typename K, typename Polyhedron>
inline std::unique_ptr< Polyhedron > SFCGAL::PolyhedralSurface::toPolyhedron_3 () const
Convert to CGAL::Polyhedron_3
function toTriangulatedSurface#
TriangulatedSurface SFCGAL::PolyhedralSurface::toTriangulatedSurface () const
Convert PolyhedralSurface to TriangulatedSurface
function ~PolyhedralSurface#
SFCGAL::PolyhedralSurface::~PolyhedralSurface ()
destructor
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/PolyhedralSurface.h