Skip to content

Commit

Permalink
Change comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JulyCode committed Jan 14, 2024
1 parent cbf3f4d commit b9bbc93
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main(int, char**)
CGAL::Isosurfacing::marching_cubes(domain, isovalue, points_mc, polygons_mc);
CGAL::Isosurfacing::dual_contouring(domain, isovalue, points_dc, polygons_dc);

// save output indexed meshes to files, in the OFF format @fixme these are not meshes...
// save indexed face sets to files, in the OFF format
CGAL::IO::write_OFF("output_mc.off", points_mc, polygons_mc);
CGAL::IO::write_OFF("output_dc.off", points_dc, polygons_dc);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int, char**)
// run dual contouring isosurfacing
CGAL::Isosurfacing::dual_contouring(domain, 0.8, points, polygons);

// write output indexed surface mesh to file, in OFF format
// save indexed face set to file, in the OFF format
CGAL::IO::write_OFF("output.off", points, polygons);

return EXIT_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main(int, char**)
const Vector vec_spacing(spacing, spacing, spacing);

// create a domain with given bounding box and grid spacing
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain<Kernel>(bbox, vec_spacing, iwp_value, iwp_gradient);
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain(bbox, vec_spacing, iwp_value, iwp_gradient);

// prepare collections for the result
Point_range points;
Expand All @@ -52,7 +52,7 @@ int main(int, char**)
// run duak contouring with isovalue set to 0.0
CGAL::Isosurfacing::dual_contouring(domain, 0.0, points, polygons);

// save output to the OFF format
// save indexed face set to file, in the OFF format
CGAL::IO::write_OFF("output.off", points, polygons);

return EXIT_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ int main(int, char**)
};

// create a domain with given bounding box and grid spacing
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain<Kernel>(bbox, grid_spacing,
mesh_distance, mesh_normal);
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain(bbox, grid_spacing,
mesh_distance, mesh_normal);
// containers for output indexed surface mesh
Point_range points;
Polygon_range polygons;

// run dual contouring
CGAL::Isosurfacing::dual_contouring(domain, offset_value, points, polygons);

// save output indexed mesh to a file, in the OFF format
// save indexed face set to file, in the OFF format
CGAL::IO::write_OFF("result.off", points, polygons);

return EXIT_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int, char**)
// run marching cubes with an isovalue of 0.8
CGAL::Isosurfacing::marching_cubes(domain, 0.8, points, triangles);

// save output indexed surface mesh to file, in the OFF format
// save indexed face set to file, in the OFF format
CGAL::IO::write_OFF("output.off", points, triangles);

return EXIT_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ int main(int, char**)
const Vector vec_spacing(spacing, spacing, spacing);

// create domain with sphere function
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain<Kernel>
(bbox, vec_spacing, sphere_function);
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain(bbox, vec_spacing, sphere_function);

// points and triangles for the output indexed mesh
Point_range points;
Expand All @@ -43,7 +42,7 @@ int main(int, char**)
timer.stop();
std::cout << "done (" << timer.time() << "s, " << triangles.size() << " triangles)" << std::endl;

// save ouput indexed mesh to a file, in the OFF format
// save indexed face set to file, in the OFF format
CGAL::IO::write_OFF("output.off", points, triangles);

return EXIT_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int, char**)
// execute marching cubes
CGAL::Isosurfacing::marching_cubes(domain, 1120 /*isovalue*/, points, polygons);

// save output indexed mesh to a file, in the OFF format
// save indexed face set to file, in the OFF format
CGAL::IO::write_OFF("result.off", points, polygons);

return EXIT_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main(int argc, char **argv)
auto domain = CGAL::Isosurfacing::create_explicit_Cartesian_grid_domain(grid);

// run Marching cubes with a range of offsets,
// and save all output meshes to files "output-index.off"
// and save all outputs to files "output-index.off"
int index = 0;
for(FT offset = 0.0; offset < 0.3; offset += 0.01, index++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ int main(int, char**)
const Vector vec_spacing(spacing, spacing, spacing);

// create domain with sphere function
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain<Kernel>
(bbox, vec_spacing, sphere_function);
auto domain = CGAL::Isosurfacing::create_implicit_Cartesian_grid_domain(bbox, vec_spacing, sphere_function);

// points and triangles for the output indexed mesh
Point_range points;
Expand Down

0 comments on commit b9bbc93

Please sign in to comment.