RobWorkProject
Static Public Member Functions | List of all members
STLFile Class Reference

static methods for reading and writing geometry to and from STL files. More...

#include <STLFile.hpp>

Static Public Member Functions

static void save (const rw::geometry::TriMesh &mesh, const std::string &filename)
 creates a new ASCII STL file with path+name given by filename. The face data is taken from a TriMesh interface. More...
 
static rw::geometry::PlainTriMeshN1F::Ptr load (const std::string &filename)
 reads a STL file with name filename into a plain triangle mesh. More...
 

Detailed Description

static methods for reading and writing geometry to and from STL files.

Member Function Documentation

◆ load()

static rw::geometry::PlainTriMeshN1F::Ptr load ( const std::string &  filename)
static

reads a STL file with name filename into a plain triangle mesh.

Parameters
filename[in] the name of the file
Returns
triangle mesh if successfull, NULL otherwise.

◆ save()

static void save ( const rw::geometry::TriMesh mesh,
const std::string &  filename 
)
static

creates a new ASCII STL file with path+name given by filename. The face data is taken from a TriMesh interface.

Parameters
mesh[in] the mesh that should be written to the STL file.
filename[in] the name of the file for which to write to.

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