RobWorkProject  24.5.15-
Public Member Functions | Static Public Member Functions | List of all members
LoaderSTEP Class Reference

Class for loading in IVG files. TODO: add documentation on IVG format. More...

#include <LoaderSTEP.hpp>

Inherits Model3DLoader.

Public Member Functions

 LoaderSTEP ()
 constructor
 
virtual ~LoaderSTEP ()
 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...
 

Static Public Member Functions

static rw::graphics::Model3D::Ptr toModel (const TopoDS_Shape &shape, std::string name)
 convert an OpenCasCade Shape to a RobWorkModel. this will try to triangulate the shape More...
 
static void setDeflection (double linDef=0.01, double angDef=0.5)
 sets how much the Surface should deflect before a new triangle is made. check BRepMesh_IncrementalMesh at https://dev.opencascade.org/doc/refman/html/class_b_rep_mesh___incremental_mesh.html for more information 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

Class for loading in IVG files. TODO: add documentation on IVG format.

Member Function Documentation

◆ getModelFormats()

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

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

Returns

Implements Model3DLoader.

◆ load()

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

load a Model3D from file filename

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

Implements Model3DLoader.

◆ setDeflection()

static void setDeflection ( double  linDef = 0.01,
double  angDef = 0.5 
)
static

sets how much the Surface should deflect before a new triangle is made. check BRepMesh_IncrementalMesh at https://dev.opencascade.org/doc/refman/html/class_b_rep_mesh___incremental_mesh.html for more information

Parameters
linDef[in] linear Defelection
angDef[in] angular deflection

◆ toModel()

static rw::graphics::Model3D::Ptr toModel ( const TopoDS_Shape &  shape,
std::string  name 
)
static

convert an OpenCasCade Shape to a RobWorkModel. this will try to triangulate the shape

Parameters
shape[in] the OpenCasCade Shape to convert. OBS not all shapes can be triangulated
name[in] name of the model

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