|
SFCGAL 2.0.0
|
A GeometrySet represents a set of CGAL primitives. More...
#include <GeometrySet.h>
Public Types | |
| typedef std::set< CollectionElement< typename Point_d< Dim >::Type > > | PointCollection |
| typedef std::set< CollectionElement< typename Segment_d< Dim >::Type > > | SegmentCollection |
| typedef std::list< CollectionElement< typename Surface_d< Dim >::Type > > | SurfaceCollection |
| typedef std::list< CollectionElement< typename Volume_d< Dim >::Type > > | VolumeCollection |
Public Member Functions | |
| GeometrySet () | |
| GeometrySet (const Geometry &g) | |
| Construct a GeometrySet from a SFCGAL::Geometry. | |
| GeometrySet (const typename TypeForDimension< Dim >::Point &g, int flags=0) | |
| Construct a GeometrySet from a Point. | |
| GeometrySet (const typename TypeForDimension< Dim >::Segment &g, int flags=0) | |
| Construct a GeometrySet from a Segment. | |
| GeometrySet (const typename TypeForDimension< Dim >::Surface &g, int flags=0) | |
| Construct a GeometrySet from a Surface. | |
| GeometrySet (const typename TypeForDimension< Dim >::Volume &g, int flags=0) | |
| Construct a GeometrySet from a Volume. | |
| void | merge (const GeometrySet< Dim > &g) |
| Add primitives from another set. | |
| void | addGeometry (const Geometry &g) |
| Add a geometry by decomposing it into CGAL primitives. | |
| void | addPrimitive (const PrimitiveHandle< Dim > &p) |
| add a primitive from a PrimitiveHandle to the set | |
| void | addPrimitive (const CGAL::Object &o, bool pointsAsRing=false) |
| add a primitive from a CGAL::Object to the set pointsAsRing : if set to true, build a polygon if o is a vector of points | |
| void | addPrimitive (const typename TypeForDimension< Dim >::Point &g, int flags=0) |
| add a point to the set | |
| template<class IT> | |
| void | addPoints (IT ibegin, IT iend) |
| void | collectPoints (const PrimitiveHandle< Dim > &b) |
| collect all points of b and add them to the point list | |
| void | addPrimitive (const typename TypeForDimension< Dim >::Segment &g, int flags=0) |
| add a segment to the set | |
| template<class IT> | |
| void | addSegments (IT ibegin, IT iend) |
| void | addPrimitive (const typename TypeForDimension< Dim >::Surface &g, int flags=0) |
| add a surface to the set | |
| template<class IT> | |
| void | addSurfaces (IT ibegin, IT iend) |
| void | addPrimitive (const typename TypeForDimension< Dim >::Volume &g, int flags=0) |
| add a volume to the set | |
| template<class IT> | |
| void | addVolumes (IT ibegin, IT iend) |
| int | dimension () const |
| Get the maximum geometry dimension of the set -1 : empty 0 : there are points 1 : there are segments 2 : there are surfaces 3 : there are volumes. | |
| void | addBoundary (const typename TypeForDimension< Dim >::Surface &surface) |
| Add the boundary (segments) of a surface. | |
| void | addBoundary (const typename TypeForDimension< Dim >::Volume &volume) |
| Add the boundary (surfaces) of a volume. | |
| void | computeBoundingBoxes (typename HandleCollection< Dim >::Type &handles, typename BoxCollection< Dim >::Type &boxes) const |
| Compute all bounding boxes and handles of the set. | |
| PointCollection & | points () |
| const PointCollection & | points () const |
| SegmentCollection & | segments () |
| const SegmentCollection & | segments () const |
| SurfaceCollection & | surfaces () |
| const SurfaceCollection & | surfaces () const |
| VolumeCollection & | volumes () |
| const VolumeCollection & | volumes () const |
| bool | hasPoints () const |
| Returns true if the set holds points. | |
| bool | hasSegments () const |
| Returns true if the set holds segments. | |
| bool | hasSurfaces () const |
| Returns true if the set holds surfaces. | |
| bool | hasVolumes () const |
| Returns true if the set holds volumes. | |
| std::unique_ptr< Geometry > | recompose () const |
| convert the set to a SFCGAL::Geometry | |
| void | filterCovered (GeometrySet< Dim > &output) const |
| Filter (remove) primitives that are already covered by others. | |
| void | addPrimitive (const PrimitiveHandle< 2 > &p) |
| void | addPrimitive (const PrimitiveHandle< 3 > &p) |
| void | addPrimitive (const CGAL::Object &o, bool pointsAsRing) |
| void | addPrimitive (const CGAL::Object &o, bool pointsAsRing) |
| void | addPrimitive (const TypeForDimension< 2 >::Surface &p, int flags) |
| void | addPrimitive (const TypeForDimension< 3 >::Surface &p, int flags) |
| void | addPrimitive (const TypeForDimension< 2 >::Volume &, int) |
| void | addPrimitive (const TypeForDimension< 3 >::Volume &p, int flags) |
| auto | hasSurfaces () const -> bool |
| auto | hasSurfaces () const -> bool |
| auto | hasVolumes () const -> bool |
| auto | hasVolumes () const -> bool |
| void | addBoundary (const TypeForDimension< 2 >::Surface &surface) |
| void | addBoundary (const TypeForDimension< 3 >::Surface &) |
| auto | dimension () const -> int |
| auto | dimension () const -> int |
A GeometrySet represents a set of CGAL primitives.
Primitive are either of dimension 0 (points), dimension 1 (segments), dimension 2 (surfaces, a.k.a. polygon or triangles) or dimension 3 (polyhedron)
| typedef std::set<CollectionElement<typename Point_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::PointCollection |
| typedef std::set<CollectionElement<typename Segment_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::SegmentCollection |
| typedef std::list<CollectionElement<typename Surface_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::SurfaceCollection |
| typedef std::list<CollectionElement<typename Volume_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::VolumeCollection |
|
default |
| SFCGAL::detail::GeometrySet< Dim >::GeometrySet | ( | const Geometry & | g | ) |
Construct a GeometrySet from a SFCGAL::Geometry.
| SFCGAL::detail::GeometrySet< Dim >::GeometrySet | ( | const typename TypeForDimension< Dim >::Point & | g, |
| int | flags = 0 ) |
Construct a GeometrySet from a Point.
| SFCGAL::detail::GeometrySet< Dim >::GeometrySet | ( | const typename TypeForDimension< Dim >::Segment & | g, |
| int | flags = 0 ) |
Construct a GeometrySet from a Segment.
| SFCGAL::detail::GeometrySet< Dim >::GeometrySet | ( | const typename TypeForDimension< Dim >::Surface & | g, |
| int | flags = 0 ) |
Construct a GeometrySet from a Surface.
| SFCGAL::detail::GeometrySet< Dim >::GeometrySet | ( | const typename TypeForDimension< Dim >::Volume & | g, |
| int | flags = 0 ) |
Construct a GeometrySet from a Volume.
| void SFCGAL::detail::GeometrySet< 2 >::addBoundary | ( | const TypeForDimension< 2 >::Surface & | surface | ) |
| void SFCGAL::detail::GeometrySet< 3 >::addBoundary | ( | const TypeForDimension< 3 >::Surface & | ) |
| void SFCGAL::detail::GeometrySet< Dim >::addBoundary | ( | const typename TypeForDimension< Dim >::Surface & | surface | ) |
Add the boundary (segments) of a surface.
| void SFCGAL::detail::GeometrySet< Dim >::addBoundary | ( | const typename TypeForDimension< Dim >::Volume & | volume | ) |
Add the boundary (surfaces) of a volume.
| void SFCGAL::detail::GeometrySet< Dim >::addGeometry | ( | const Geometry & | g | ) |
Add a geometry by decomposing it into CGAL primitives.
|
inline |
| void SFCGAL::detail::GeometrySet< 2 >::addPrimitive | ( | const CGAL::Object & | o, |
| bool | pointsAsRing ) |
| void SFCGAL::detail::GeometrySet< 3 >::addPrimitive | ( | const CGAL::Object & | o, |
| bool | pointsAsRing ) |
| void SFCGAL::detail::GeometrySet< Dim >::addPrimitive | ( | const CGAL::Object & | o, |
| bool | pointsAsRing = false ) |
add a primitive from a CGAL::Object to the set pointsAsRing : if set to true, build a polygon if o is a vector of points
| void SFCGAL::detail::GeometrySet< 2 >::addPrimitive | ( | const PrimitiveHandle< 2 > & | p | ) |
| void SFCGAL::detail::GeometrySet< 3 >::addPrimitive | ( | const PrimitiveHandle< 3 > & | p | ) |
| void SFCGAL::detail::GeometrySet< Dim >::addPrimitive | ( | const PrimitiveHandle< Dim > & | p | ) |
add a primitive from a PrimitiveHandle to the set
| void SFCGAL::detail::GeometrySet< 2 >::addPrimitive | ( | const TypeForDimension< 2 >::Surface & | p, |
| int | flags ) |
| void SFCGAL::detail::GeometrySet< 2 >::addPrimitive | ( | const TypeForDimension< 2 >::Volume & | , |
| int | ) |
| void SFCGAL::detail::GeometrySet< 3 >::addPrimitive | ( | const TypeForDimension< 3 >::Surface & | p, |
| int | flags ) |
| void SFCGAL::detail::GeometrySet< 3 >::addPrimitive | ( | const TypeForDimension< 3 >::Volume & | p, |
| int | flags ) |
| void SFCGAL::detail::GeometrySet< Dim >::addPrimitive | ( | const typename TypeForDimension< Dim >::Point & | g, |
| int | flags = 0 ) |
add a point to the set
| void SFCGAL::detail::GeometrySet< Dim >::addPrimitive | ( | const typename TypeForDimension< Dim >::Segment & | g, |
| int | flags = 0 ) |
add a segment to the set
| void SFCGAL::detail::GeometrySet< Dim >::addPrimitive | ( | const typename TypeForDimension< Dim >::Surface & | g, |
| int | flags = 0 ) |
add a surface to the set
| void SFCGAL::detail::GeometrySet< Dim >::addPrimitive | ( | const typename TypeForDimension< Dim >::Volume & | g, |
| int | flags = 0 ) |
add a volume to the set
|
inline |
|
inline |
|
inline |
| void SFCGAL::detail::GeometrySet< Dim >::collectPoints | ( | const PrimitiveHandle< Dim > & | b | ) |
collect all points of b and add them to the point list
| void SFCGAL::detail::GeometrySet< Dim >::computeBoundingBoxes | ( | typename HandleCollection< Dim >::Type & | handles, |
| typename BoxCollection< Dim >::Type & | boxes ) const |
Compute all bounding boxes and handles of the set.
| int SFCGAL::detail::GeometrySet< Dim >::dimension | ( | ) | const |
Get the maximum geometry dimension of the set -1 : empty 0 : there are points 1 : there are segments 2 : there are surfaces 3 : there are volumes.
| auto SFCGAL::detail::GeometrySet< 3 >::dimension | ( | ) | const->int |
| auto SFCGAL::detail::GeometrySet< 2 >::dimension | ( | ) | const->int |
| void SFCGAL::detail::GeometrySet< Dim >::filterCovered | ( | GeometrySet< Dim > & | output | ) | const |
Filter (remove) primitives that are already covered by others.
| auto SFCGAL::detail::GeometrySet< Dim >::hasPoints | ( | ) | const |
Returns true if the set holds points.
| auto SFCGAL::detail::GeometrySet< Dim >::hasSegments | ( | ) | const |
Returns true if the set holds segments.
| bool SFCGAL::detail::GeometrySet< Dim >::hasSurfaces | ( | ) | const |
Returns true if the set holds surfaces.
| auto SFCGAL::detail::GeometrySet< 3 >::hasSurfaces | ( | ) | const->bool |
| auto SFCGAL::detail::GeometrySet< 2 >::hasSurfaces | ( | ) | const->bool |
| bool SFCGAL::detail::GeometrySet< Dim >::hasVolumes | ( | ) | const |
Returns true if the set holds volumes.
| auto SFCGAL::detail::GeometrySet< 3 >::hasVolumes | ( | ) | const->bool |
| auto SFCGAL::detail::GeometrySet< 2 >::hasVolumes | ( | ) | const->bool |
| void SFCGAL::detail::GeometrySet< Dim >::merge | ( | const GeometrySet< Dim > & | g | ) |
Add primitives from another set.
|
inline |
|
inline |
| auto SFCGAL::detail::GeometrySet< Dim >::recompose | ( | ) | const |
convert the set to a SFCGAL::Geometry
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |