12 Vector2d box_min = Vector2d::Zero();
13 Vector2d box_max = Vector2d::Ones();
14 bool preserve_topology =
false;
15 std::string output_path;
17 double splitting_l2 = -1.;
18 double collapsing_l2 =
19 std::numeric_limits<double>::max();
21 double stop_energy = 10;
23 bool debug_output =
false;
24 bool perform_sanity_checks =
false;
26 double w_amips = 1e-4;
27 double w_envelope = 0;
29 void init(
const Vector2d& min_,
const Vector2d& max_)
33 diag_l = (box_max - box_min).norm();
39 splitting_l2 = l * l * (16 / 9.);
40 collapsing_l2 = l * l * (16 / 25.);
51 const std::vector<Vector2d>& vertices,
52 const std::vector<std::array<size_t, 3>>& faces)
55 for (
size_t i = 0; i < vertices.size(); i++) {
61 for (
int j = 0; j < 2; j++) {
62 if (vertices[i][j] < min_[j]) {
63 min_[j] = vertices[i][j];
65 if (vertices[i][j] > max_[j]) {
66 max_[j] = vertices[i][j];