Skip to content

Class SFCGAL::detail::GeometrySet

template <int Dim>

ClassList > SFCGAL > detail > GeometrySet

More...

  • #include <GeometrySet.h>

Public Types

Type Name
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 Functions

Type Name
GeometrySet ()
GeometrySet (const Geometry & g)
GeometrySet (const typename TypeForDimension< Dim >::Point & g, int flags=0)
GeometrySet (const typename TypeForDimension< Dim >::Segment & g, int flags=0)
GeometrySet (const typename TypeForDimension< Dim >::Surface & g, int flags=0)
GeometrySet (const typename TypeForDimension< Dim >::Volume & g, int flags=0)
void addBoundary (const typename TypeForDimension< Dim >::Surface & surface)
void addBoundary (const typename TypeForDimension< Dim >::Volume & volume)
void addBoundary (const TypeForDimension< 2 >::Surface & surface)
void addBoundary (const TypeForDimension< 3 >::Surface &)
void addGeometry (const Geometry & g)
void addPoints (IT ibegin, IT iend)
void addPrimitive (const PrimitiveHandle< Dim > & p)
void addPrimitive (const CGAL::Object & o, bool pointsAsRing=false)
void addPrimitive (const typename TypeForDimension< Dim >::Point & g, int flags=0)
void addPrimitive (const typename TypeForDimension< Dim >::Segment & g, int flags=0)
void addPrimitive (const typename TypeForDimension< Dim >::Surface & g, int flags=0)
void addPrimitive (const typename TypeForDimension< Dim >::Volume & g, int flags=0)
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)
void addSegments (IT ibegin, IT iend)
void addSurfaces (IT ibegin, IT iend)
void addVolumes (IT ibegin, IT iend)
void collectPoints (const PrimitiveHandle< Dim > & b)
void computeBoundingBoxes (typename HandleCollection< Dim >::Type & handles, typename BoxCollection< Dim >::Type & boxes) const
int dimension () const
auto dimension () const
auto dimension () const
void filterCovered (GeometrySet< Dim > & output) const
bool hasPoints () const
bool hasSegments () const
bool hasSurfaces () const
auto hasSurfaces () const
auto hasSurfaces () const
bool hasVolumes () const
auto hasVolumes () const
auto hasVolumes () const
void merge (const GeometrySet< Dim > & g)
PointCollection & points ()
const PointCollection & points () const
std::unique_ptr< Geometry > recompose () const
SegmentCollection & segments ()
const SegmentCollection & segments () const
SurfaceCollection & surfaces ()
const SurfaceCollection & surfaces () const
VolumeCollection & volumes ()
const VolumeCollection & volumes () const

Detailed Description

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)

Public Types Documentation

typedef PointCollection

typedef std::set<CollectionElement<typename Point_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::PointCollection;

typedef SegmentCollection

typedef std::set<CollectionElement<typename Segment_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::SegmentCollection;

typedef SurfaceCollection

typedef std::list<CollectionElement<typename Surface_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::SurfaceCollection;

typedef VolumeCollection

typedef std::list<CollectionElement<typename Volume_d<Dim>::Type> > SFCGAL::detail::GeometrySet< Dim >::VolumeCollection;

Public Functions Documentation

function GeometrySet [1/6]

SFCGAL::detail::GeometrySet::GeometrySet () 

function GeometrySet [2/6]

SFCGAL::detail::GeometrySet::GeometrySet (
    const Geometry & g
) 

Construct a GeometrySet from a SFCGAL::Geometry


function GeometrySet [3/6]

SFCGAL::detail::GeometrySet::GeometrySet (
    const typename TypeForDimension < Dim >::Point & g,
    int flags=0
) 

Construct a GeometrySet from a Point


function GeometrySet [4/6]

SFCGAL::detail::GeometrySet::GeometrySet (
    const typename TypeForDimension < Dim >::Segment & g,
    int flags=0
) 

Construct a GeometrySet from a Segment


function GeometrySet [5/6]

SFCGAL::detail::GeometrySet::GeometrySet (
    const typename TypeForDimension < Dim >::Surface & g,
    int flags=0
) 

Construct a GeometrySet from a Surface


function GeometrySet [6/6]

SFCGAL::detail::GeometrySet::GeometrySet (
    const typename TypeForDimension < Dim >::Volume & g,
    int flags=0
) 

Construct a GeometrySet from a Volume


function addBoundary [1/4]

void SFCGAL::detail::GeometrySet::addBoundary (
    const typename TypeForDimension < Dim >::Surface & surface
) 

Add the boundary (segments) of a surface


function addBoundary [2/4]

void SFCGAL::detail::GeometrySet::addBoundary (
    const typename TypeForDimension < Dim >::Volume & volume
) 

Add the boundary (surfaces) of a volume


function addBoundary [3/4]

void SFCGAL::detail::GeometrySet::addBoundary (
    const TypeForDimension < 2 >::Surface & surface
) 

function addBoundary [4/4]

void SFCGAL::detail::GeometrySet::addBoundary (
    const TypeForDimension < 3 >::Surface &
) 

function addGeometry

void SFCGAL::detail::GeometrySet::addGeometry (
    const Geometry & g
) 

Add a geometry by decomposing it into CGAL primitives


function addPoints

template<class IT>
inline void SFCGAL::detail::GeometrySet::addPoints (
    IT ibegin,
    IT iend
) 

function addPrimitive [1/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const PrimitiveHandle < Dim > & p
) 

add a primitive from a PrimitiveHandle to the set


function addPrimitive [2/14]

void SFCGAL::detail::GeometrySet::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


function addPrimitive [3/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const typename TypeForDimension < Dim >::Point & g,
    int flags=0
) 

add a point to the set


function addPrimitive [4/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const typename TypeForDimension < Dim >::Segment & g,
    int flags=0
) 

add a segment to the set


function addPrimitive [5/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const typename TypeForDimension < Dim >::Surface & g,
    int flags=0
) 

add a surface to the set


function addPrimitive [6/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const typename TypeForDimension < Dim >::Volume & g,
    int flags=0
) 

add a volume to the set


function addPrimitive [7/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const PrimitiveHandle < 2 > & p
) 

function addPrimitive [8/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const PrimitiveHandle < 3 > & p
) 

function addPrimitive [9/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const CGAL::Object & o,
    bool pointsAsRing
) 

function addPrimitive [10/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const CGAL::Object & o,
    bool pointsAsRing
) 

function addPrimitive [11/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const TypeForDimension < 2 >::Surface & p,
    int flags
) 

function addPrimitive [12/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const TypeForDimension < 3 >::Surface & p,
    int flags
) 

function addPrimitive [13/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const TypeForDimension < 2 >::Volume &,
    int
) 

function addPrimitive [14/14]

void SFCGAL::detail::GeometrySet::addPrimitive (
    const TypeForDimension < 3 >::Volume & p,
    int flags
) 

function addSegments

template<class IT>
inline void SFCGAL::detail::GeometrySet::addSegments (
    IT ibegin,
    IT iend
) 

function addSurfaces

template<class IT>
inline void SFCGAL::detail::GeometrySet::addSurfaces (
    IT ibegin,
    IT iend
) 

function addVolumes

template<class IT>
inline void SFCGAL::detail::GeometrySet::addVolumes (
    IT ibegin,
    IT iend
) 

function collectPoints

void SFCGAL::detail::GeometrySet::collectPoints (
    const PrimitiveHandle < Dim > & b
) 

collect all points of b and add them to the point list


function computeBoundingBoxes

void SFCGAL::detail::GeometrySet::computeBoundingBoxes (
    typename HandleCollection < Dim >::Type & handles,
    typename BoxCollection < Dim >::Type & boxes
) const

Compute all bounding boxes and handles of the set


function dimension [1/3]

int SFCGAL::detail::GeometrySet::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


function dimension [2/3]

auto SFCGAL::detail::GeometrySet::dimension () const

function dimension [3/3]

auto SFCGAL::detail::GeometrySet::dimension () const

function filterCovered

void SFCGAL::detail::GeometrySet::filterCovered (
    GeometrySet < Dim > & output
) const

Filter (remove) primitives that are already covered by others


function hasPoints

bool SFCGAL::detail::GeometrySet::hasPoints () const

Returns true if the set holds points


function hasSegments

bool SFCGAL::detail::GeometrySet::hasSegments () const

Returns true if the set holds segments


function hasSurfaces [1/3]

bool SFCGAL::detail::GeometrySet::hasSurfaces () const

Returns true if the set holds surfaces


function hasSurfaces [2/3]

auto SFCGAL::detail::GeometrySet::hasSurfaces () const

function hasSurfaces [3/3]

auto SFCGAL::detail::GeometrySet::hasSurfaces () const

function hasVolumes [1/3]

bool SFCGAL::detail::GeometrySet::hasVolumes () const

Returns true if the set holds volumes


function hasVolumes [2/3]

auto SFCGAL::detail::GeometrySet::hasVolumes () const

function hasVolumes [3/3]

auto SFCGAL::detail::GeometrySet::hasVolumes () const

function merge

void SFCGAL::detail::GeometrySet::merge (
    const GeometrySet < Dim > & g
) 

Add primitives from another set


function points [1/2]

inline PointCollection & SFCGAL::detail::GeometrySet::points () 

function points [2/2]

inline const PointCollection & SFCGAL::detail::GeometrySet::points () const

function recompose

std::unique_ptr< Geometry > SFCGAL::detail::GeometrySet::recompose () const

convert the set to a SFCGAL::Geometry


function segments [1/2]

inline SegmentCollection & SFCGAL::detail::GeometrySet::segments () 

function segments [2/2]

inline const SegmentCollection & SFCGAL::detail::GeometrySet::segments () const

function surfaces [1/2]

inline SurfaceCollection & SFCGAL::detail::GeometrySet::surfaces () 

function surfaces [2/2]

inline const SurfaceCollection & SFCGAL::detail::GeometrySet::surfaces () const

function volumes [1/2]

inline VolumeCollection & SFCGAL::detail::GeometrySet::volumes () 

function volumes [2/2]

inline const VolumeCollection & SFCGAL::detail::GeometrySet::volumes () const


The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/detail/GeometrySet.h