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
◆ Solid()
|
protected |
Constructor.
◆ ~Solid()
|
virtual |
Virtual destructor.
Member Function Documentation
◆ debug_print()
|
pure virtual |
Print debugging information to os.
Implemented in STLSolid, FuncSolid, DXFSolid, and CSGObjectSolid.
◆ inside()
|
pure virtual |
Return if point x is inside solid.
Implemented in STLSolid, FuncSolid, DXFSolid, and CSGObjectSolid.
◆ reset_transformation()
void Solid::reset_transformation | ( | void | ) |
Set transformation to unity.
Resets the primary 3D to 3D transformation to unity.
◆ rotate_x()
void Solid::rotate_x | ( | double | a | ) |
Rotate solid around x-axis.
Rotate around x-axis for a radians.
◆ rotate_y()
void Solid::rotate_y | ( | double | a | ) |
Rotate solid around y-axis.
Rotate around y-axis for a radians.
◆ rotate_z()
void Solid::rotate_z | ( | double | a | ) |
Rotate solid around z-axis.
Rotate around z-axis for a radians.
◆ save()
|
pure virtual |
Saves solid data to stream.
Implemented in STLSolid, FuncSolid, DXFSolid, and CSGObjectSolid.
◆ scale() [1/2]
void Solid::scale | ( | const Vec3D & | sx | ) |
Scale solid.
◆ scale() [2/2]
void Solid::scale | ( | double | sx | ) |
Scale solid.
◆ set_transformation()
void Solid::set_transformation | ( | const Transformation & | T | ) |
Set transformation.
Sets the primary 3D to 3D transformation as a copy of transformation of T.
◆ translate()
void Solid::translate | ( | const Vec3D & | dx | ) |
Translate solid.
The documentation for this class was generated from the following files:
- solid.hpp
- solid.cpp