RobWorkProject
23.9.11-
|
loader for a simple ASCI based triangle format. The format is NOT a standard. There are two elements in the format each is defined in a line More...
#include <LoaderTRI.hpp>
Inherits Model3DLoader.
Public Member Functions | |
LoaderTRI () | |
constructor | |
virtual | ~LoaderTRI () |
destructor | |
rw::graphics::Model3D::Ptr | load (const std::string &filename) |
load a Model3D from file filename More... | |
std::vector< std::string > | getModelFormats () |
get the list of supported 3D model formats (as extensions) More... | |
Public Member Functions inherited from Model3DLoader | |
virtual | ~Model3DLoader () |
destructor | |
bool | isSupported (std::string format) |
Check if the loader support a specific format. More... | |
void | setDefaultName (std::string name) |
set a name that the loader can use, if it can't find anyother More... | |
void | setDefaultMaterial (rw::geometry::Model3D::Material mat) |
set which material to use if the File dosen't include a material/ texturing it self More... | |
Additional Inherited Members | |
Public Types inherited from Model3DLoader | |
typedef rw::core::Ptr< Model3DLoader > | Ptr |
smart pointer type | |
Protected Attributes inherited from Model3DLoader | |
std::string | _defaultName |
rw::geometry::Model3D::Material | _defaultMat |
loader for a simple ASCI based triangle format. The format is NOT a standard. There are two elements in the format each is defined in a line
* color <float> <float> <float> * point <float> <float> <float> <float> <float> <float> *
line comments can be added by starting the line with '#', '!', '\0'(blank line) or '$'
the color is RGB and the point has a position (first three floats) and a normal (last three floats). Points are implicitly structured as triangles such that:
all triangles after a specific color element, will be drawn with the RGB values specified
|
inlinevirtual |
|
virtual |
load a Model3D from file filename
filename | [in] name of file to load |
Implements Model3DLoader.