Solid base class. More...
#include <solid.hpp>
Public Member Functions | |
| virtual | ~Solid () |
| Virtual destructor. More... | |
| virtual bool | inside (const Vec3D &x) const =0 |
| Return if point x is inside solid. More... | |
| void | reset_transformation (void) |
| Set transformation to unity. More... | |
| void | set_transformation (const Transformation &T) |
| Set transformation. More... | |
| void | translate (const Vec3D &dx) |
| Translate solid. More... | |
| void | scale (double sx) |
| Scale solid. More... | |
| void | scale (const Vec3D &sx) |
| Scale solid. More... | |
| void | rotate_x (double a) |
| Rotate solid around x-axis. More... | |
| void | rotate_y (double a) |
| Rotate solid around y-axis. More... | |
| void | rotate_z (double a) |
| Rotate solid around z-axis. More... | |
| virtual void | debug_print (std::ostream &os) const =0 |
| Print debugging information to os. More... | |
| virtual void | save (std::ostream &s) const =0 |
| Saves solid data to stream. More... | |
Protected Member Functions | |
| Solid () | |
| Constructor. More... | |
Protected Attributes | |
| Transformation | _T |
Detailed Description
Solid base class.
Solid class holds the definition for one solid. Solid class is a base class, different implementation exist.
Constructor & Destructor Documentation
|
protected |
Constructor.
|
virtual |
Virtual destructor.
Member Function Documentation
|
pure virtual |
Print debugging information to os.
Implemented in DXFSolid, STLSolid, CSGObjectSolid, and FuncSolid.
|
pure virtual |
Return if point x is inside solid.
Implemented in DXFSolid, STLSolid, CSGObjectSolid, and FuncSolid.
| void Solid::reset_transformation | ( | void | ) |
Set transformation to unity.
Resets the primary 3D to 3D transformation to unity.
| void Solid::rotate_x | ( | double | a | ) |
Rotate solid around x-axis.
Rotate around x-axis for a radians.
| void Solid::rotate_y | ( | double | a | ) |
Rotate solid around y-axis.
Rotate around y-axis for a radians.
| void Solid::rotate_z | ( | double | a | ) |
Rotate solid around z-axis.
Rotate around z-axis for a radians.
|
pure virtual |
Saves solid data to stream.
Implemented in DXFSolid, STLSolid, CSGObjectSolid, and FuncSolid.
| void Solid::scale | ( | double | sx | ) |
Scale solid.
| void Solid::scale | ( | const Vec3D & | sx | ) |
Scale solid.
| void Solid::set_transformation | ( | const Transformation & | T | ) |
Set transformation.
Sets the primary 3D to 3D transformation as a copy of transformation of T.
| void Solid::translate | ( | const Vec3D & | dx | ) |
Translate solid.
The documentation for this class was generated from the following files:
- solid.hpp
- solid.cpp