aimstil
5.0.5
|
A class to compute spring forces on a mesh. More...
#include <cathier/Forces.h>
Public Types | |
typedef til::value_type_of< TForceVector >::type | precision_t |
Public Member Functions | |
void | initializeLengths (const TMesh &mesh) |
Set the rest lengths of the springs as the length of the edges of the argument mesh. More... | |
void | getForces (const TMesh &mesh, std::vector< TForceVector > &forces) |
Computes the forces on the mesh, given the initial length already stored in the class, and store it in second argument. More... | |
const std::vector< std::vector< precision_t > > & | getLengths () const |
A class to compute spring forces on a mesh.
The first template argument corresponds to the mesh type, which should have vertex neighbor indices. The second template argument corresponds to the precision floating point operations should be performed on (typically float or double – TODO: do we actually want to enforce TPrecision to be a numerical floating type?).
typedef til::value_type_of<TForceVector>::type til::SpringForce< TMesh, TForceVector >::precision_t |
|
inline |
Computes the forces on the mesh, given the initial length already stored in the class, and store it in second argument.
Definition at line 134 of file Forces.h.
References til::for_each_neighbors(), and til::size().
|
inline |
|
inline |
Set the rest lengths of the springs as the length of the edges of the argument mesh.
Definition at line 126 of file Forces.h.
References til::getEdgeLengths().