CellModules
|
Class allowing to load a 3D scene from an obj file. It contains one or several Obj3D as well as various helper method. More...
#include <obj3D.hpp>
Public Types | |
using | triangle_t = Obj3D::triangle_t |
using | UV = Obj3D::UV |
Public Member Functions | |
std::vector< std::string > | isInside (const Vector3D &v) const |
usefull to test if a point v is inside an object of the scene More... | |
void | updateFromTransformation () |
void | scale (const Vec &s) |
void | translate (const Vec &t) |
void | rotate (const Rotation< Vec > &r) |
Scene3D () | |
Scene3D (const string &filename) | |
void | load (const string &filepath) |
Loads an obj (wavefront) file. More... | |
Public Attributes | |
Matrix4x4 | transformation |
std::unordered_map< std::string, Obj3D > | originalObjects |
std::unordered_map< std::string, Obj3D > | transformedObjects |
Class allowing to load a 3D scene from an obj file. It contains one or several Obj3D as well as various helper method.
using MecaCell::Scene3D::UV = Obj3D::UV |
|
inline |
|
inline |
|
inline |
|
inline |
std::unordered_map<std::string, Obj3D> MecaCell::Scene3D::originalObjects |
std::unordered_map<std::string, Obj3D> MecaCell::Scene3D::transformedObjects |