34 int addConstraint(
const std::shared_ptr<Constraint> &c);
36 std::shared_ptr<Constraint> &getConstraint(
int id);
38 int addForces(
const std::shared_ptr<Force> &f);
40 std::shared_ptr<Force> &getForce(
int id);
42 void setPoints(
const Matrix3X &p);
44 void setTimeStep(Scalar timestep);
46 void setDamping(Scalar damping);
48 const Matrix3X &getPoints();
50 bool initialize(
bool dynamic =
false, Scalar masses = 1.0, Scalar damping = 1.0, Scalar timestep = 1.0);
52 bool solve(
unsigned int iteration);
54 Scalar getError(
int i);
56 typedef std::vector<std::shared_ptr<Constraint>> Constraints;
57 typedef std::vector<std::shared_ptr<Force>> Forces;
61 Matrix3X projections_;
62 Constraints constraints_;
63 std::shared_ptr<LSSolver> solver_;
80 #ifdef SHAPEOP_HEADER_ONLY
85
ShapeOp Solver. This class implements the main ShapeOp solver based on and .
Definition: Solver.h:31