This class represents a polygonal mesh for use in contact modeling. More...
#include <ContactMesh.h>
Public Member Functions | |
ContactMesh () | |
Construct an empty, uninitialized ContactMesh. | |
ContactMesh (const std::string &filename, const SimTK::Vec3 &location, const SimTK::Vec3 &orientation, Body &body) | |
Construct a ContactMesh. | |
ContactMesh (const std::string &filename, const SimTK::Vec3 &location, const SimTK::Vec3 &orientation, Body &body, const std::string &name) | |
Construct a ContactMesh. | |
ContactMesh (const ContactMesh &geom) | |
Object * | copy () const |
Construct and return a copy of this object. | |
SimTK::ContactGeometry | createSimTKContactGeometry () |
Create a new SimTK::ContactGeometry based on this object. | |
const std::string & | getFilename () const |
Get the name of the file the mesh is loaded from. | |
void | setFilename (const std::string &filename) |
Set the name of the file to load the mesh from. |
This class represents a polygonal mesh for use in contact modeling.
OpenSim::ContactMesh::ContactMesh | ( | ) |
Construct an empty, uninitialized ContactMesh.
OpenSim::ContactMesh::ContactMesh | ( | const std::string & | filename, | |
const SimTK::Vec3 & | location, | |||
const SimTK::Vec3 & | orientation, | |||
Body & | body | |||
) |
Construct a ContactMesh.
OpenSim::ContactMesh::ContactMesh | ( | const std::string & | filename, | |
const SimTK::Vec3 & | location, | |||
const SimTK::Vec3 & | orientation, | |||
Body & | body, | |||
const std::string & | name | |||
) |
Construct a ContactMesh.
OpenSim::ContactMesh::ContactMesh | ( | const ContactMesh & | geom | ) |
Object * OpenSim::ContactMesh::copy | ( | ) | const [virtual] |
Construct and return a copy of this object.
The object is allocated using the new operator, so the caller is responsible for deleting the returned object.
Implements OpenSim::ContactGeometry.
SimTK::ContactGeometry OpenSim::ContactMesh::createSimTKContactGeometry | ( | ) | [virtual] |
Create a new SimTK::ContactGeometry based on this object.
Implements OpenSim::ContactGeometry.
const std::string & OpenSim::ContactMesh::getFilename | ( | ) | const |
Get the name of the file the mesh is loaded from.
void OpenSim::ContactMesh::setFilename | ( | const std::string & | filename | ) |
Set the name of the file to load the mesh from.