SFCGAL 1.4.1
|
A TriangulatedSurface in SFA modeled as a Triangle soup. More...
#include <TriangulatedSurface.h>
Public Types | |
typedef boost::ptr_vector< Triangle >::iterator | iterator |
typedef boost::ptr_vector< Triangle >::const_iterator | const_iterator |
Public Member Functions | |
TriangulatedSurface () | |
Empty TriangulatedSurface constructor. | |
TriangulatedSurface (const std::vector< Triangle > &triangle) | |
Constructor with a vector of triangles. | |
TriangulatedSurface (const TriangulatedSurface &other) | |
Copy constructor. | |
TriangulatedSurface & | operator= (TriangulatedSurface other) |
assign operator | |
~TriangulatedSurface () | |
destructor | |
virtual TriangulatedSurface * | 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) | |
size_t | numTriangles () const |
[SFA/OGC]Returns the number of points | |
const Triangle & | triangleN (size_t const &n) const |
[SFA/OGC]Returns the n-th point | |
Triangle & | triangleN (size_t const &n) |
[SFA/OGC]Returns the n-th point | |
void | addTriangle (const Triangle &triangle) |
add a Triangle to the TriangulatedSurface | |
void | addTriangle (Triangle *triangle) |
add a Triangle to the TriangulatedSurface | |
void | addTriangles (const TriangulatedSurface &other) |
add triangles from an other TriangulatedSurface | |
virtual size_t | numGeometries () const |
[OGC/SFA]Gets the number of geometries in a collection of geometries | |
virtual const Triangle & | geometryN (size_t const &n) const |
[OGC/SFA]Returns the n-th geometry | |
virtual Triangle & | geometryN (size_t const &n) |
[OGC/SFA]Returns the n-th geometry | |
void | reserve (const size_t &n) |
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<typename K , typename Polyhedron > | |
std::unique_ptr< Polyhedron > | toPolyhedron_3 () const |
Converts a TriangulatedSurface to a CGAL::Polyhedron_3. | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Serializer. | |
template<typename K , typename Polyhedron > | |
auto | toPolyhedron_3 () const -> std::unique_ptr< Polyhedron > |
![]() | |
virtual | ~Surface () |
destructor | |
![]() | |
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 | |
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 | |
![]() | |
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 | |
![]() | |
bool | validityFlag_ |
A TriangulatedSurface in SFA modeled as a Triangle soup.
typedef boost::ptr_vector<Triangle>::const_iterator SFCGAL::TriangulatedSurface::const_iterator |
typedef boost::ptr_vector<Triangle>::iterator SFCGAL::TriangulatedSurface::iterator |
SFCGAL::TriangulatedSurface::TriangulatedSurface | ( | ) |
Empty TriangulatedSurface constructor.
SFCGAL::TriangulatedSurface::TriangulatedSurface | ( | const std::vector< Triangle > & | triangle | ) |
Constructor with a vector of triangles.
|
default |
Copy constructor.
|
default |
destructor
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
inline |
add a Triangle to the TriangulatedSurface
|
inline |
add a Triangle to the TriangulatedSurface
void SFCGAL::TriangulatedSurface::addTriangles | ( | const TriangulatedSurface & | other | ) |
add triangles from an other TriangulatedSurface
|
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::TriangulatedSurface::operator= | ( | TriangulatedSurface | other | ) |
assign operator
void SFCGAL::TriangulatedSurface::reserve | ( | const size_t & | n | ) |
|
inline |
Serializer.
std::unique_ptr< Polyhedron > SFCGAL::TriangulatedSurface::toPolyhedron_3 | ( | ) | const |
Converts a TriangulatedSurface to a CGAL::Polyhedron_3.
auto SFCGAL::TriangulatedSurface::toPolyhedron_3 | ( | ) | const -> std::unique_ptr<Polyhedron> |
|
inline |
[SFA/OGC]Returns the n-th point
|
inline |
[SFA/OGC]Returns the n-th point