OpenSim::ContactMesh Class Reference

This class represents a polygonal mesh for use in contact modeling. More...

#include <ContactMesh.h>

Inheritance diagram for OpenSim::ContactMesh:
OpenSim::ContactGeometry OpenSim::ModelComponent OpenSim::Object

List of all members.

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)
Objectcopy () 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.

Detailed Description

This class represents a polygonal mesh for use in contact modeling.

Author:
Peter Eastman

Constructor & Destructor Documentation

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.

Parameters:
filename the name of the file to load the mesh from
location the location of the mesh within the Body it is attached to
orientation the orientation of the mesh within the Body it is attached to
body the Body this mesh is attached to
OpenSim::ContactMesh::ContactMesh ( const std::string &  filename,
const SimTK::Vec3 &  location,
const SimTK::Vec3 &  orientation,
Body body,
const std::string &  name 
)

Construct a ContactMesh.

Parameters:
filename the name of the file to load the mesh from
location the location of the mesh within the Body it is attached to
orientation the orientation of the mesh within the Body it is attached to
body the Body this mesh is attached to
name the name of this object
OpenSim::ContactMesh::ContactMesh ( const ContactMesh geom  ) 

Member Function Documentation

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.

Returns:
Copy of this 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.


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

Generated on Wed Dec 16 15:03:45 2009 for OpenSim by  doxygen 1.6.1