STLSolid Class Reference
STL solid More...
#include <stl_solid.hpp>
Inheritance diagram for STLSolid:

Public Member Functions | |
STLSolid () | |
Default constructor. More... | |
STLSolid (const std::string &filename) | |
Constructor for making a solid reading a STL-file. More... | |
STLSolid (std::istream &is) | |
Constructor for loading solid data from stream is. More... | |
virtual | ~STLSolid () |
Destructor. More... | |
virtual bool | inside (const Vec3D &x) const |
Return if 3D point x in simulation space is inside solid. More... | |
void | add_stl_file (class STLFile *stl) |
Add entity from STL-file to object. More... | |
class STLFile * | get_stl_file (uint32_t i=0) const |
Return a pointer to the STL-file i. More... | |
void | debug_print (std::ostream &os) const |
Print debugging information to os. More... | |
virtual void | save (std::ostream &s) const |
Saves solid data to stream. More... | |
![]() | |
virtual | ~Solid () |
Virtual destructor. 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... | |
Additional Inherited Members | |
![]() | |
Solid () | |
Constructor. More... | |
![]() | |
Transformation | _T |
Detailed Description
STL solid
A solid object constructed from one or a union of several entities from STL-files.
Constructor & Destructor Documentation
◆ STLSolid() [1/3]
STLSolid::STLSolid | ( | ) |
Default constructor.
Create and empty object.
◆ STLSolid() [2/3]
STLSolid::STLSolid | ( | const std::string & | filename | ) |
Constructor for making a solid reading a STL-file.
◆ STLSolid() [3/3]
STLSolid::STLSolid | ( | std::istream & | is | ) |
Constructor for loading solid data from stream is.
◆ ~STLSolid()
|
virtual |
Destructor.
Member Function Documentation
◆ add_stl_file()
void STLSolid::add_stl_file | ( | class STLFile * | stl | ) |
◆ debug_print()
|
virtual |
Print debugging information to os.
Implements Solid.
◆ get_stl_file()
STLFile * STLSolid::get_stl_file | ( | uint32_t | i = 0 | ) | const |
Return a pointer to the STL-file i.
◆ inside()
|
virtual |
Return if 3D point x in simulation space is inside solid.
Implements Solid.
◆ save()
|
virtual |
Saves solid data to stream.
Implements Solid.
The documentation for this class was generated from the following files: