#include <Cloth.h>
Inheritance diagram for OpenCAL::Cloth:
Public Member Functions | |
Cloth (System *parent, const Vector3 &position, float width, float height) | |
virtual | ~Cloth () |
PointMass * | getPoint (unsigned int row, unsigned int col) |
const PointMass * | getPoint (unsigned int row, unsigned int col) const |
PointMass * | getCorner1 () |
PointMass * | getCorner2 () |
PointMass * | getCorner3 () |
PointMass * | getCorner4 () |
virtual void | render () |
Protected Member Functions | |
void | constructCloth (const Vector3 &position, float width, float height) |
Protected Attributes | |
unsigned int | m_rows |
unsigned int | m_columns |
unsigned int | m_structuralSprings |
unsigned int | m_shearSprings |
unsigned int | m_bendSprings |
Definition at line 35 of file Cloth.h.
|
This constructors creates a horizontal rectangular piece of cloth, at a certain position, and with a certain width and height Definition at line 36 of file Cloth.cpp. References constructCloth(). Here is the call graph for this function: ![]() |
|
This constructors creates a rectangular piece of cloth, within the rectangle starting at from, and ending in to. Definition at line 54 of file Cloth.cpp. |
|
References OpenCAL::TriangleMesh::addTriangle(), OpenCAL::TriangleMesh::addVertex(), OpenCAL::Triangle::calculateNormal(), OpenCAL::Object::disableDraw(), OpenCAL::TriangleMesh::getVertex(), OpenCAL::Spring::setDamping(), OpenCAL::Object::setPosition(), OpenCAL::Spring::setSnapFactor(), OpenCAL::Spring::setStiffness(), and OpenCAL::Vertex::setTexturePos(). Referenced by Cloth(). Here is the call graph for this function: ![]() |
|
Reimplemented from OpenCAL::MassSpringSystem. Definition at line 68 of file Cloth.cpp. References OpenCAL::TriangleMesh::calculateVertexNormals(), OpenCAL::System::getRenderer(), OpenCAL::TriangleMesh::invalidateTriangleNormals(), and OpenCAL::Renderer::renderMesh(). Here is the call graph for this function: ![]() |