Use the free functions to construct domains in the most basic examples

This commit is contained in:
Mael Rouxel-Labbé 2024-02-26 16:30:55 +01:00
parent f012ff930d
commit 472c4c6e35
3 changed files with 7 additions and 8 deletions

View File

@ -50,9 +50,9 @@ int main(int argc, char** argv)
Values values { sphere_value_fn, grid };
Gradients gradients { sphere_gradient_fn, grid };
Domain domain { grid, values, gradients };
// the domain could also be created with:
// auto domain = CGAL::Isosurfacing::create_dual_contouring_domain_3(grid, values, gradients);
// Below is equivalent to:
// Domain domain { grid, values, gradients };
Domain domain = CGAL::Isosurfacing::create_dual_contouring_domain_3(grid, values, gradients);
Point_range points;
Polygon_range triangles;

View File

@ -40,9 +40,10 @@ int main(int argc, char** argv)
};
Values values { sphere_value_fn, grid };
Domain domain { grid, values };
// the domain could also be created with:
// auto domain = CGAL::Isosurfacing::create_marching_cubes_domain_3(grid, values);
// Below is equivalent to:
// Domain domain { grid, values };
Domain domain = CGAL::Isosurfacing::create_marching_cubes_domain_3(grid, values);
Point_range points;
Polygon_range triangles;

View File

@ -42,8 +42,6 @@ int main(int argc, char** argv)
Values values { sphere_value_fn, grid };
Domain domain { grid, values };
// the domain could also be created with:
// auto domain = CGAL::Isosurfacing::create_marching_cubes_domain_3(grid, values);
// MC base version
{