13 Vector3d min = Vector3d::Zero();
14 Vector3d max = Vector3d::Ones();
15 Vector3d box_min = Vector3d::Zero();
16 Vector3d box_max = Vector3d::Ones();
22 bool allow_surface_swap =
true;
26 bool check_surface_topology =
false;
28 void init(
const Vector3d& min_,
const Vector3d& max_)
36 const std::vector<Vector3d>& vertices,
37 const std::vector<std::array<size_t, 3>>& faces)
40 for (
size_t i = 0; i < vertices.size(); i++) {
46 for (
int j = 0; j < 3; j++) {
47 if (vertices[i][j] < min_[j]) min_[j] = vertices[i][j];
48 if (vertices[i][j] > max_[j]) max_[j] = vertices[i][j];