10 const ipc::CollisionMesh &collision_mesh,
11 const std::shared_ptr<time_integrator::ImplicitTimeIntegrator> time_integrator,
14 const ipc::BroadPhaseMethod broad_phase_method,
16 const int n_lagging_iters)
17 : collision_mesh_(collision_mesh),
18 time_integrator_(time_integrator),
21 broad_phase_method_(broad_phase_method),
22 n_lagging_iters_(n_lagging_iters < 0 ? std::numeric_limits<int>::max() : n_lagging_iters),
23 contact_form_(contact_form),
24 friction_potential_(epsv)
30 const Eigen::MatrixXd &prev_solution,
31 const Eigen::MatrixXd &solution,
32 const Eigen::MatrixXd &adjoint,
33 const ipc::FrictionCollisions &friction_constraints_set,
34 Eigen::VectorXd &term)
43 friction_constraints_set,
48 ipc::FrictionPotential::DiffWRT::REST_POSITIONS);
131 ipc::Collisions collision_set;
#define POLYFEM_SCOPED_TIMER(...)
Eigen::MatrixXd unflatten(const Eigen::VectorXd &x, int dim)
Unflatten rowwises, so every dim elements in x become a row.
Eigen::SparseMatrix< double, Eigen::ColMajor > StiffnessMatrix