RobWorkProject  23.9.11-
Public Member Functions | List of all members
LoaderAssimp Class Reference

Load 3D models using the Open Asset Import Library (Assimp). More...

#include <LoaderAssimp.hpp>

Inherits Model3DLoader.

Public Member Functions

 LoaderAssimp ()
virtual ~LoaderAssimp ()
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 ()
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< Model3DLoaderPtr
 smart pointer type
- Protected Attributes inherited from Model3DLoader
std::string _defaultName
rw::geometry::Model3D::Material _defaultMat

Detailed Description

Load 3D models using the Open Asset Import Library (Assimp).

For further information on Assimp and supported formats, see

So far the loader has been tested for .dae files (Collada).

Note that the RobWork loader for Assimp is still work in progress.

Member Function Documentation

◆ getModelFormats()

std::vector<std::string> getModelFormats ( )

get the list of supported 3D model formats (as extensions)


Implements Model3DLoader.

◆ load()

rw::graphics::Model3D::Ptr load ( const std::string &  filename)

load a Model3D from file filename

filename[in] name of file to load
a model3d if loaded successfully else NULL (or exception)

Implements Model3DLoader.

The documentation for this class was generated from the following file: