mirror of https://github.com/CGAL/cgal
Use the free functions to construct domains in the most basic examples
This commit is contained in:
parent
f012ff930d
commit
472c4c6e35
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue