SFCGAL 2.0.0
|
A PolyhedralSurface in SFA modeled as a Polygon soup. More...
#include <PolyhedralSurface.h>
Public Types | |
typedef boost::ptr_vector< Polygon >::iterator | iterator |
typedef boost::ptr_vector< Polygon >::const_iterator | const_iterator |
Public Member Functions | |
PolyhedralSurface () | |
Empty PolyhedralSurface constructor. | |
PolyhedralSurface (const std::vector< Polygon > &polygons) | |
Constructor with a vector of polygons. | |
PolyhedralSurface (const std::unique_ptr< Geometry > &geometry) | |
Constructor with a Geometry. | |
template<typename Polyhedron> | |
PolyhedralSurface (const Polyhedron &poly) | |
Constructor from a Polyhedron (detail::MarkedPolyhedron or CGAL::Polyhedron_3) | |
PolyhedralSurface (const Mesh &sm) | |
Constructor from a CGAL::Surface_mesh. | |
PolyhedralSurface (const PolyhedralSurface &other) | |
Copy constructor. | |
PolyhedralSurface & | operator= (PolyhedralSurface other) |
assign operator | |
~PolyhedralSurface () | |
destructor | |
virtual PolyhedralSurface * | clone () const |
Get a deep copy of the geometry. | |
virtual std::string | geometryType () const |
[OGC/SFA]returns the geometry type | |
virtual GeometryType | geometryTypeId () const |
Returns a code corresponding to the type. | |
virtual int | dimension () const |
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...) | |
virtual int | coordinateDimension () const |
[OGC/SFA]returns the dimension of the coordinates | |
virtual bool | isEmpty () const |
[OGC/SFA]test if geometry is empty | |
virtual bool | is3D () const |
[OGC/SFA]test if geometry is 3d | |
virtual bool | isMeasured () const |
[OGC/SFA]test if geometry is measured (has an m) | |
TriangulatedSurface | toTriangulatedSurface () const |
Convert PolyhedralSurface to TriangulatedSurface. | |
size_t | numPolygons () const |
[SFA/OGC]Returns the number of points | |
const Polygon & | polygonN (size_t const &n) const |
[SFA/OGC]Returns the n-th point | |
Polygon & | polygonN (size_t const &n) |
[SFA/OGC]Returns the n-th point | |
void | addPolygon (const Polygon &polygon) |
add a polygon to the PolyhedralSurface | |
void | addPolygon (Polygon *polygon) |
add a polygon to the PolyhedralSurface | |
void | addPolygons (const PolyhedralSurface &polyhedralSurface) |
add polygons from an other PolyhedralSurface | |
virtual size_t | numGeometries () const |
[OGC/SFA]Gets the number of geometries in a collection of geometries | |
virtual const Polygon & | geometryN (size_t const &n) const |
[OGC/SFA]Returns the n-th geometry | |
virtual Polygon & | geometryN (size_t const &n) |
[OGC/SFA]Returns the n-th geometry | |
template<typename K, typename Polyhedron> | |
std::unique_ptr< Polyhedron > | toPolyhedron_3 () const |
Convert to CGAL::Polyhedron_3. | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
virtual void | accept (GeometryVisitor &visitor) |
[visitor]dispatch visitor | |
virtual void | accept (ConstGeometryVisitor &visitor) const |
[visitor]dispatch visitor | |
template<class Archive> | |
void | serialize (Archive &ar, const unsigned int) |
Serializer. | |
Public Member Functions inherited from SFCGAL::Surface | |
virtual | ~Surface () |
destructor | |
Public Member Functions inherited from SFCGAL::Geometry | |
Geometry () | |
Default constructor. | |
Geometry (const Geometry &)=default | |
Copy constructor. | |
Geometry & | operator= (const Geometry &other)=default |
Copy assignemnt operator. | |
virtual | ~Geometry ()=default |
Destructor. | |
void | forceValidityFlag (bool validity) |
Force the state of the validity flag. | |
bool | hasValidityFlag () const |
Returns the validity flag. | |
std::string | asText (const int &numDecimals=-1) const |
[OGC/SFA]returns the WKT string | |
std::string | asWkb (boost::endian::order wkbOrder=boost::endian::order::native, bool asHex=false) const |
[OGC/SFA]returns the WKB string | |
Envelope | envelope () const |
[OGC/SFA]Returns a polygon representing the BBOX of the geometry | |
virtual std::unique_ptr< Geometry > | boundary () const |
[OGC/SFA]Returns the boundary of the geometry | |
double | distance (const Geometry &other) const |
Computes the distance to an other geometry. | |
double | distance3D (const Geometry &other) const |
Computes the 3D distance to an other geometry. | |
void | round (const long &scale=1) |
round the geometry with a corresponding scale factor | |
auto | almostEqual (const Geometry &, const double tolerance) const -> bool |
Equality operator. | |
template<typename Derived> | |
bool | is () const |
Tests if geometry is of "Derived" type given as template parameter. | |
template<typename Derived> | |
const Derived & | as () const |
Downcast to a "Derived" class. | |
template<typename Derived> | |
Derived & | as () |
Downcast to a "Derived" class. | |
template<class Archive> | |
void | serialize (Archive &, const unsigned int) |
Serializer. |
Additional Inherited Members | |
Protected Member Functions inherited from SFCGAL::Surface | |
Surface () | |
[OGC/SFS]"The area of this Surface, as measured in the spatial reference
system of this Surface" | |
Surface (Surface const &other) | |
no copy constructor | |
Protected Attributes inherited from SFCGAL::Geometry | |
bool | validityFlag_ = false |
A PolyhedralSurface in SFA modeled as a Polygon soup.
typedef boost::ptr_vector<Polygon>::const_iterator SFCGAL::PolyhedralSurface::const_iterator |
typedef boost::ptr_vector<Polygon>::iterator SFCGAL::PolyhedralSurface::iterator |
|
default |
Empty PolyhedralSurface constructor.
SFCGAL::PolyhedralSurface::PolyhedralSurface | ( | const std::vector< Polygon > & | polygons | ) |
Constructor with a vector of polygons.
SFCGAL::PolyhedralSurface::PolyhedralSurface | ( | const std::unique_ptr< Geometry > & | geometry | ) |
Constructor with a Geometry.
|
inline |
Constructor from a Polyhedron (detail::MarkedPolyhedron or CGAL::Polyhedron_3)
SFCGAL::PolyhedralSurface::PolyhedralSurface | ( | const Mesh & | sm | ) |
Constructor from a CGAL::Surface_mesh.
|
default |
Copy constructor.
|
default |
destructor
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
void SFCGAL::PolyhedralSurface::addPolygon | ( | const Polygon & | polygon | ) |
add a polygon to the PolyhedralSurface
void SFCGAL::PolyhedralSurface::addPolygon | ( | Polygon * | polygon | ) |
add a polygon to the PolyhedralSurface
void SFCGAL::PolyhedralSurface::addPolygons | ( | const PolyhedralSurface & | polyhedralSurface | ) |
add polygons from an other PolyhedralSurface
|
inline |
|
inline |
|
virtual |
Get a deep copy of the geometry.
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]returns the dimension of the coordinates
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...)
Reimplemented from SFCGAL::Surface.
|
inline |
|
inline |
|
virtual |
[OGC/SFA]Returns the n-th geometry
Reimplemented from SFCGAL::Geometry.
|
virtual |
[OGC/SFA]Returns the n-th geometry
Reimplemented from SFCGAL::Geometry.
|
virtual |
[OGC/SFA]returns the geometry type
Implements SFCGAL::Geometry.
|
virtual |
|
virtual |
[OGC/SFA]test if geometry is 3d
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]test if geometry is empty
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]test if geometry is measured (has an m)
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]Gets the number of geometries in a collection of geometries
Reimplemented from SFCGAL::Geometry.
|
inline |
[SFA/OGC]Returns the number of points
auto SFCGAL::PolyhedralSurface::operator= | ( | PolyhedralSurface | other | ) |
assign operator
|
inline |
[SFA/OGC]Returns the n-th point
|
inline |
[SFA/OGC]Returns the n-th point
|
inline |
Serializer.
|
inline |
Convert to CGAL::Polyhedron_3.
auto SFCGAL::PolyhedralSurface::toTriangulatedSurface | ( | ) | const |
Convert PolyhedralSurface to TriangulatedSurface.