#include <JellyMesh.h>
Inheritance diagram for OpenCAL::JellyMesh:
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 |
Definition at line 32 of file JellyMesh.h.
|
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: ![]() |