|
SFCGAL
2.3.0
|
A Solid modeled with an exteriorShell and interiorShells materialized by PolyhedralSurface. More...
#include <Solid.h>
Inherits SFCGAL::GeometryImpl< Derived, Base >.
Public Types | |
| using | iterator = DereferenceIterator< std::vector< std::unique_ptr< PolyhedralSurface >>::iterator > |
| Iterator type for solid shells. More... | |
| using | const_iterator = DereferenceIterator< std::vector< std::unique_ptr< PolyhedralSurface >>::const_iterator > |
| Const iterator type for solid shells. More... | |
Public Member Functions | |
| Solid () | |
| Empty Solid constructor. More... | |
| Solid (const PolyhedralSurface &exteriorShell) | |
| Constructor with an exterior shell. More... | |
| Solid (PolyhedralSurface *exteriorShell) | |
| Constructor with an exterior shell (takes ownership) More... | |
| Solid (std::unique_ptr< PolyhedralSurface > exteriorShell) | |
| Constructor with an exterior shell (takes ownership) More... | |
| Solid (const std::vector< PolyhedralSurface > &shells) | |
| Constructor with a vector of shells (PolyhedralSurface) More... | |
| Solid (const Solid &other) | |
| Copy constructor. More... | |
| auto | operator= (Solid other) -> Solid & |
| assign operator More... | |
| ~Solid () override | |
| destructor More... | |
| auto | geometryType () const -> std::string override |
| Get the geometry type as string. More... | |
| auto | geometryTypeId () const -> GeometryType override |
| Get the geometry type identifier. More... | |
| auto | dimension () const -> int override |
| Get the dimension of the solid. More... | |
| auto | coordinateDimension () const -> int override |
| Get the coordinate dimension. More... | |
| auto | isEmpty () const -> bool override |
| Check if the solid is empty. More... | |
| auto | is3D () const -> bool override |
| Check if the solid has 3D coordinates. More... | |
| auto | isMeasured () const -> bool override |
| Check if the solid has measured coordinates. More... | |
| auto | dropZ () -> bool override |
| Drop Z coordinate from all surfaces. More... | |
| auto | dropM () -> bool override |
| Drop M coordinate from all surfaces. More... | |
| auto | swapXY () -> void override |
| Swap X and Y coordinates of all surfaces. More... | |
| auto | exteriorShell () const -> const PolyhedralSurface & |
| Returns the exterior shell. More... | |
| auto | exteriorShell () -> PolyhedralSurface & |
| Returns the exterior shell. More... | |
| auto | numInteriorShells () const -> size_t |
| Returns the number of interior shells. More... | |
| auto | interiorShellN (size_t const &index) const -> const PolyhedralSurface & |
| Returns the n-th interior shell. More... | |
| auto | interiorShellN (size_t const &index) -> PolyhedralSurface & |
| Returns the n-th interior shell. More... | |
| void | addInteriorShell (const PolyhedralSurface &shell) |
| adds an interior shell to the Solid More... | |
| void | addInteriorShell (PolyhedralSurface *shell) |
| adds an interior shell to the Solid More... | |
| void | addInteriorShell (std::unique_ptr< PolyhedralSurface > shell) |
| Adds an interior shell to the Solid. More... | |
| void | setExteriorShell (std::unique_ptr< PolyhedralSurface > shell) |
| Sets the Solid exterior shell. More... | |
| void | setExteriorShell (const PolyhedralSurface &shell) |
| Sets the Solid exterior shell. More... | |
| void | setExteriorShell (PolyhedralSurface *shell) |
| Sets the Solid exterior shell. More... | |
| auto | numShells () const -> size_t |
| Returns the number of shells. More... | |
| auto | shellN (const size_t &index) const -> const PolyhedralSurface & |
| Returns the n-th shell, 0 is exteriorShell. More... | |
| auto | shellN (const size_t &index) -> PolyhedralSurface & |
| Returns the n-th shell, 0 is exteriorShell. More... | |
| auto | begin () -> iterator |
| Get iterator to beginning of shells. More... | |
| auto | begin () const -> const_iterator |
| Get const iterator to beginning of shells. More... | |
| auto | end () -> iterator |
| Get iterator to end of shells. More... | |
| auto | end () const -> const_iterator |
| Get const iterator to end of shells. More... | |
| void | accept (GeometryVisitor &visitor) override |
| Accept a geometry visitor. More... | |
| void | accept (ConstGeometryVisitor &visitor) const override |
| Accept a const geometry visitor. More... | |
| auto | toSurfaceMesh () const -> Surface_mesh_3 |
| Convert Solid to CGAL::Surface_mesh (only exterior shell) More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Serializer. More... | |
A Solid modeled with an exteriorShell and interiorShells materialized by PolyhedralSurface.
| using SFCGAL::Solid::const_iterator = DereferenceIterator< std::vector<std::unique_ptr<PolyhedralSurface>>::const_iterator> |
Const iterator type for solid shells.
| using SFCGAL::Solid::iterator = DereferenceIterator< std::vector<std::unique_ptr<PolyhedralSurface>>::iterator> |
Iterator type for solid shells.
| SFCGAL::Solid::Solid | ( | ) |
Empty Solid constructor.
| SFCGAL::Solid::Solid | ( | const PolyhedralSurface & | exteriorShell | ) |
Constructor with an exterior shell.
| exteriorShell | The exterior shell of the solid |
| SFCGAL::Solid::Solid | ( | PolyhedralSurface * | exteriorShell | ) |
Constructor with an exterior shell (takes ownership)
| exteriorShell | The exterior shell of the solid |
| SFCGAL::Solid::Solid | ( | std::unique_ptr< PolyhedralSurface > | exteriorShell | ) |
Constructor with an exterior shell (takes ownership)
| exteriorShell | A unique_ptr to the exterior shell of the solid |
| SFCGAL::Solid::Solid | ( | const std::vector< PolyhedralSurface > & | shells | ) |
Constructor with a vector of shells (PolyhedralSurface)
| shells | Vector of polyhedral surfaces forming the solid |
| SFCGAL::Solid::Solid | ( | const Solid & | other | ) |
Copy constructor.
| other | The solid to copy from |
|
overridedefault |
destructor
|
override |
Accept a geometry visitor.
| visitor | Visitor to accept |
|
override |
Accept a const geometry visitor.
| visitor | Const visitor to accept |
|
inline |
adds an interior shell to the Solid
| shell | The polyhedral surface to add as interior shell |
|
inline |
adds an interior shell to the Solid
| shell | The polyhedral surface to add as interior shell |
|
inline |
Adds an interior shell to the Solid.
| shell | A unique pointer to the PolyhedralSurface object representing the new shell to add. Ownership of this shell is moved into the Solid. |
|
inline |
Get iterator to beginning of shells.
|
inline |
Get const iterator to beginning of shells.
|
override |
Get the coordinate dimension.
|
override |
Get the dimension of the solid.
|
override |
Drop M coordinate from all surfaces.
|
override |
Drop Z coordinate from all surfaces.
|
inline |
Get iterator to end of shells.
|
inline |
Get const iterator to end of shells.
|
inline |
Returns the exterior shell.
|
inline |
Returns the exterior shell.
|
override |
Get the geometry type as string.
|
override |
Get the geometry type identifier.
|
inline |
Returns the n-th interior shell.
| index | The index of the interior shell to get |
|
inline |
Returns the n-th interior shell.
| index | The index of the interior shell to get |
|
override |
Check if the solid has 3D coordinates.
|
override |
Check if the solid is empty.
|
override |
Check if the solid has measured coordinates.
|
inline |
Returns the number of interior shells.
|
inline |
Returns the number of shells.
assign operator
| other | The solid to assign from |
|
inline |
Serializer.
| ar | Archive for serialization |
|
inline |
Sets the Solid exterior shell.
| shell | A unique pointer to the new shell. Ownership is transferred to this class. |
|
inline |
Sets the Solid exterior shell.
| shell | PolyhedralSurface to set as exterior shell |
|
inline |
Sets the Solid exterior shell.
| shell | Pointer to PolyhedralSurface to set as exterior shell |
|
inline |
Returns the n-th shell, 0 is exteriorShell.
| index | Index of the shell to get |
|
inline |
Returns the n-th shell, 0 is exteriorShell.
| index | Index of the shell to get |
|
override |
Swap X and Y coordinates of all surfaces.
| auto SFCGAL::Solid::toSurfaceMesh | ( | ) | const -> Surface_mesh_3 |
Convert Solid to CGAL::Surface_mesh (only exterior shell)
1.8.10