ShapeOp Solver. This class implements the main ShapeOp solver based on [1] and [2]. More...
#include <Solver.h>
Public Member Functions | |
| int | addConstraint (const std::shared_ptr< Constraint > &c) |
| Add a constraint to the solver and get back its id. | |
| std::shared_ptr< Constraint > & | getConstraint (int id) |
| Get a constraint using its id. | |
| int | addForces (const std::shared_ptr< Force > &f) |
| Add a force to the solver and get back its id. | |
| std::shared_ptr< Force > & | getForce (int id) |
| Get a force using its id. | |
| void | setPoints (const Matrix3X &p) |
| Set the points. | |
| void | setTimeStep (Scalar timestep) |
| Set the timestep for the dynamics. | |
| void | setDamping (Scalar damping) |
| Set the velocity damping for the dynamics. | |
| const Matrix3X & | getPoints () |
| Get the points. | |
| bool | initialize (bool dynamic=false, Scalar masses=1.0, Scalar damping=1.0, Scalar timestep=1.0) |
| Initialize the ShapeOp linear system and the different parameters. | |
| bool | solve (unsigned int iteration) |
| Solve the constraint problem by projecting and merging. | |
| Scalar | getError (int i) |
| Get the error for a using its id. | |
1.8.7