CSGObject solid class. More...
#include <csgobject_solid.hpp>
Public Member Functions | |
| CSGObjectSolid (CSGObject *object) | |
| Constructor for Solid using CSGObject object for defining the geometry. More... | |
| CSGObjectSolid (std::istream &s) | |
| Constructor for loading solid data from a file. More... | |
| ~CSGObjectSolid () | |
| Destructor. More... | |
| bool | inside (const Vec3D &x) const |
| Return if point x is inside funcsolid. More... | |
| void | debug_print (std::ostream &os) const |
| Print debugging information to os. More... | |
| void | save (std::ostream &fout) const |
| Saves solid data to stream. More... | |
Public Member Functions inherited from Solid | |
| virtual | ~Solid () |
| Virtual destructor. More... | |
CSGObject solid class.
CSGObjectSolid is an implementation of Solid using constructive solid geometry objects.
|
inline |
Constructor for Solid using CSGObject object for defining the geometry.
A pointer to the CSGObject is saved in the CSGObjectSolid. The user must take care of calling the destructor of the CSGObject after use.
| CSGObjectSolid::CSGObjectSolid | ( | std::istream & | s | ) |
Constructor for loading solid data from a file.
|
inline |
Destructor.
|
virtual |
Print debugging information to os.
Implements Solid.
|
virtual |
Return if point x is inside funcsolid.
Implements Solid.
|
virtual |
Saves solid data to stream.
Implements Solid.