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 boost::ptr_vector< Polygon >::iterator | iterator |
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 PolyhedralSurface & other) |
|
virtual void | accept (GeometryVisitor & visitor) [visitor]dispatch visitor |
virtual void | accept (ConstGeometryVisitor & visitor) const [visitor]dispatch visitor |
void | addPolygon (const Polygon & polygon) |
void | addPolygon (Polygon * polygon) |
void | addPolygons (const PolyhedralSurface & polyhedralSurface) |
iterator | begin () |
const_iterator | begin () const |
virtual PolyhedralSurface * | clone () const Get a deep copy of the geometry. |
virtual int | coordinateDimension () const |
virtual int | dimension () const |
iterator | end () |
const_iterator | end () const |
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 |
virtual std::string | geometryType () const [OGC/SFA]returns the geometry type |
virtual GeometryType | geometryTypeId () const Returns a code corresponding to the type. |
virtual bool | is3D () const |
virtual bool | isEmpty () const |
virtual bool | isMeasured () const |
virtual size_t | numGeometries () const [OGC/SFA]Gets the number of geometries in a collection of geometries |
size_t | numPolygons () const |
PolyhedralSurface & | operator= (PolyhedralSurface other) |
const Polygon & | polygonN (size_t const & n) const |
Polygon & | polygonN (size_t const & n) |
void | serialize (Archive & ar, const unsigned int) |
std::unique_ptr< Polyhedron > | toPolyhedron_3 () const |
TriangulatedSurface | toTriangulatedSurface () const |
~PolyhedralSurface () |
Public Functions inherited from SFCGAL::Surface
See SFCGAL::Surface
Type | Name |
---|---|
virtual int | dimension () const |
virtual | ~Surface () |
Public Functions inherited from SFCGAL::Geometry
See SFCGAL::Geometry
Type | Name |
---|---|
Geometry () Default constructor. |
|
Geometry (const Geometry &) = default Copy constructor. |
|
virtual void | accept (GeometryVisitor & visitor) = 0 [visitor]dispatch visitor |
virtual void | accept (ConstGeometryVisitor & visitor) const = 0 [visitor]dispatch visitor |
auto | almostEqual (const Geometry & other, const double tolerance) const |
const Derived & | as () const Downcast to a "Derived" class. |
Derived & | as () Downcast to a "Derived" class. |
std::string | asText (const int & numDecimals=-1) const |
std::string | asWkb (boost::endian::order wkbOrder=boost::endian::order::native, bool asHex=false) const |
virtual std::unique_ptr< Geometry > | boundary () const [OGC/SFA]Returns the boundary of the geometry |
virtual Geometry * | clone () const = 0 Get a deep copy of the geometry. |
virtual int | coordinateDimension () const = 0 |
virtual int | dimension () const = 0 |
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. |
Envelope | envelope () const |
void | forceValidityFlag (bool validity) |
virtual const Geometry & | geometryN (size_t const & n) const [OGC/SFA]Returns the n-th geometry |
virtual Geometry & | geometryN (size_t const & n) [OGC/SFA]Returns the n-th geometry |
virtual std::string | geometryType () const = 0 [OGC/SFA]returns the geometry type |
virtual GeometryType | geometryTypeId () const = 0 Returns a code corresponding to the type. |
bool | hasValidityFlag () const |
bool | is () const Tests if geometry is of "Derived" type given as template parameter. |
virtual bool | is3D () const = 0 |
virtual bool | isEmpty () const = 0 |
virtual bool | isMeasured () const = 0 |
virtual size_t | numGeometries () const [OGC/SFA]Gets the number of geometries in a collection of geometries |
Geometry & | operator= (const Geometry & other) = default Copy assignemnt operator. |
void | round (const long & scale=1) round the geometry with a corresponding scale factor |
void | serialize (Archive &, const unsigned int) |
virtual | ~Geometry () = default Destructor. |
Protected Attributes inherited from SFCGAL::Geometry
See SFCGAL::Geometry
Type | Name |
---|---|
bool | validityFlag_ = = false |
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 iterator
typedef boost::ptr_vector<Polygon>::iterator SFCGAL::PolyhedralSurface::iterator;
Public Functions Documentation
function PolyhedralSurface [1/6]
SFCGAL::PolyhedralSurface::PolyhedralSurface ()
Empty PolyhedralSurface constructor
function PolyhedralSurface [2/6]
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const std::vector< Polygon > & polygons
)
Constructor with a vector of polygons
function PolyhedralSurface [3/6]
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const std::unique_ptr< Geometry > & geometry
)
Constructor with a Geometry
function PolyhedralSurface [4/6]
template<typename Polyhedron>
inline SFCGAL::PolyhedralSurface::PolyhedralSurface (
const Polyhedron & poly
)
Constructor from a Polyhedron (detail::MarkedPolyhedron or CGAL::Polyhedron_3)
function PolyhedralSurface [5/6]
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const Mesh & sm
)
Constructor from a CGAL::Surface_mesh
function PolyhedralSurface [6/6]
SFCGAL::PolyhedralSurface::PolyhedralSurface (
const PolyhedralSurface & other
)
Copy constructor
function accept [1/2]
virtual void SFCGAL::PolyhedralSurface::accept (
GeometryVisitor & visitor
)
Implements SFCGAL::Geometry::accept
function accept [2/2]
virtual void SFCGAL::PolyhedralSurface::accept (
ConstGeometryVisitor & visitor
) const
Implements SFCGAL::Geometry::accept
function addPolygon [1/2]
void SFCGAL::PolyhedralSurface::addPolygon (
const Polygon & polygon
)
add a polygon to the PolyhedralSurface
function addPolygon [2/2]
void SFCGAL::PolyhedralSurface::addPolygon (
Polygon * polygon
)
add a polygon to the PolyhedralSurface
function addPolygons
void SFCGAL::PolyhedralSurface::addPolygons (
const PolyhedralSurface & polyhedralSurface
)
add polygons from an other PolyhedralSurface
function begin [1/2]
inline iterator SFCGAL::PolyhedralSurface::begin ()
function begin [2/2]
inline const_iterator SFCGAL::PolyhedralSurface::begin () const
function clone
virtual PolyhedralSurface * SFCGAL::PolyhedralSurface::clone () const
Implements SFCGAL::Geometry::clone
function coordinateDimension
virtual int SFCGAL::PolyhedralSurface::coordinateDimension () const
[OGC/SFA]returns the dimension of the coordinates
Precondition:
suppose no mix of 2D/3D coordinates
Implements SFCGAL::Geometry::coordinateDimension
function dimension
virtual int SFCGAL::PolyhedralSurface::dimension () const
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...)
Warning:
empty geometries provide the dimension corresponding to the object
Implements SFCGAL::Surface::dimension
function end [1/2]
inline iterator SFCGAL::PolyhedralSurface::end ()
function end [2/2]
inline const_iterator SFCGAL::PolyhedralSurface::end () const
function geometryN [1/2]
[OGC/SFA]Returns the n-th geometry
virtual const Polygon & SFCGAL::PolyhedralSurface::geometryN (
size_t const & n
) const
Warning:
*this for Point, LineString, Polygon, Triangle
Implements SFCGAL::Geometry::geometryN
function geometryN [2/2]
[OGC/SFA]Returns the n-th geometry
virtual Polygon & SFCGAL::PolyhedralSurface::geometryN (
size_t const & n
)
Warning:
*this for Point, LineString, Polygon, Triangle
Implements SFCGAL::Geometry::geometryN
function geometryType
[OGC/SFA]returns the geometry type
virtual std::string SFCGAL::PolyhedralSurface::geometryType () const
Warning:
use CamelCase (LineString, not LINESTRING)
Implements SFCGAL::Geometry::geometryType
function geometryTypeId
Returns a code corresponding to the type.
virtual GeometryType SFCGAL::PolyhedralSurface::geometryTypeId () const
Warning:
not standard
Implements SFCGAL::Geometry::geometryTypeId
function is3D
virtual bool SFCGAL::PolyhedralSurface::is3D () const
[OGC/SFA]test if geometry is 3d
Precondition:
suppose no mix of 2D/3D coordinates
Implements SFCGAL::Geometry::is3D
function isEmpty
virtual bool SFCGAL::PolyhedralSurface::isEmpty () const
[OGC/SFA]test if geometry is empty
Implements SFCGAL::Geometry::isEmpty
function isMeasured
virtual bool SFCGAL::PolyhedralSurface::isMeasured () const
[OGC/SFA]test if geometry is measured (has an m)
Precondition:
suppose no mix of M/!M points
Implements SFCGAL::Geometry::isMeasured
function numGeometries
[OGC/SFA]Gets the number of geometries in a collection of geometries
virtual size_t SFCGAL::PolyhedralSurface::numGeometries () const
Warning:
1 for Point, LineString, Polygon, Triangle
Implements SFCGAL::Geometry::numGeometries
function numPolygons
inline size_t SFCGAL::PolyhedralSurface::numPolygons () const
[SFA/OGC]Returns the number of points
Deprecated
see numGeometries
function operator=
PolyhedralSurface & SFCGAL::PolyhedralSurface::operator= (
PolyhedralSurface other
)
assign operator
function polygonN [1/2]
inline const Polygon & SFCGAL::PolyhedralSurface::polygonN (
size_t const & n
) const
[SFA/OGC]Returns the n-th point
Deprecated
see geometryN()
function polygonN [2/2]
inline Polygon & SFCGAL::PolyhedralSurface::polygonN (
size_t const & n
)
[SFA/OGC]Returns the n-th point
Deprecated
see geometryN()
function serialize
template<class Archive>
inline void SFCGAL::PolyhedralSurface::serialize (
Archive & ar,
const unsigned int
)
Serializer
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