Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::JellyMesh Class Reference

#include <JellyMesh.h>

Inheritance diagram for OpenCAL::JellyMesh:

Inheritance graph
[legend]
Collaboration diagram for OpenCAL::JellyMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JellyMesh (System *parent, const string &filename, const Vector3 &position=Vector3::zero)

Protected Member Functions

void constructMesh (const Vector3 &position)

Protected Attributes

string m_filename

Detailed Description

This mass spring systems simulates a brute force "jelly object", constructed from an arbitrary triangle mesh. All vertices are connected by a spring with all others, so don't use this with a mesh with many vertices!

Definition at line 32 of file JellyMesh.h.


Member Function Documentation

void JellyMesh::constructMesh const Vector3 position  )  [protected]
 

This functions constructs the jelly object. Every vertex of the mesh is linked to a point mass, connected by springs to every other point. Definition at line 46 of file JellyMesh.cpp.

References OpenCAL::Vertex::getPosition(), OpenCAL::Object::getPositionP(), OpenCAL::TriangleMesh::getVertex(), OpenCAL::Vertex::linkPosition(), OpenCAL::TriangleMesh::loadFromFile(), OpenCAL::TriangleMesh::numVertices(), OpenCAL::Spring::setDamping(), OpenCAL::Object::setPosition(), and OpenCAL::Spring::setStiffness().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:29 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8