a class corresponding to a force constraint where a spring force is added on a vertex attached to a fixed point
![]() | MissingVertex : public Exception Exception thrown when no vertex is given to create an attachment constraint |
![]() | apply () the apply fonction that adds an external force to the vertex |
![]() | getStiffness () const returns the stiffness of the spring force |
![]() | getFixedPosition () const returns the position where the vertex is fixed |
![]() | getVertex () const returns the vertex where the constraint is applied |
![]() | setStiffness (const double s) sets the stiffness of the spring force |
![]() | setFixedPosition (const Vec2 sets the maximum distance between two vertices |
![]() | constructor
| ||
![]() | destructor
|
![]() | position the position where the vertex is attached |
![]() | stiffness the stiffness of the spring |
![]() | vertex the ActiveVertex2D that is attached to a fixed point |
a class corresponding to a force constraint where a spring force is added on a vertex attached to a fixed point
Vec2
double stiffness
ActiveVertexContour2D* vertex
virtual void apply()
double getStiffness() const
Vec2
ActiveVertexContour2D* getVertex() const
void setStiffness(const double s)
void setFixedPosition(const Vec2
constructor
AttachmentContour2DConstraint(const Vec2
s - the stiffness parameter (between 0.0 and 1.0) used to
compute the attracting force
v - the vertex on which the constraint applies
destructor
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de