Minor fixes to examples

This commit is contained in:
Mael Rouxel-Labbé 2021-01-29 12:18:11 +01:00
parent e4eff7b9a0
commit d19fa52845
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
/*!
\example Triangulation_on_sphere_2/triang_on_sphere.cpp
\example Triangulation_on_sphere_2/triang_on_sphere_proj.cpp
\example Triangulation_on_sphere_2/triang_on_sphere_range.cpp
*/

View File

@ -20,7 +20,6 @@ int main()
points.emplace_back( 0, 1, 1);
points.emplace_back( 1, 0, 1);
points.emplace_back( 1, 1, 2);
points.emplace_back( 1, 1, 0);
Traits traits(Point(1, 1, 1));
DToS2 dtos(traits);
@ -35,6 +34,6 @@ int main()
std::cout << "dimension: " << dtos.dimension() << std::endl;
std::cout << dtos.number_of_vertices() << " nv" << std::endl;
std::cout << dtos.number_of_faces() << " nf" << std::endl;
std::cout << dtos.number_of_ghost_faces() << " ng" << std::endl;
std::cout << dtos.number_of_ghost_faces() << " gf" << std::endl;
}
}

View File

@ -17,6 +17,7 @@ int main()
points.push_back(K::Point_3(-8, 1, 1));
points.push_back(K::Point_3( 1, 2, 1));
points.push_back(K::Point_3( 1, -2, 1));
points.push_back(K::Point_3( 1, 1, 10));
Projection_traits traits(K::Point_3(1,1,1));
Projected_DToS2 dtos(traits);
@ -26,7 +27,7 @@ int main()
for(const auto& pt : points)
{
std::cout << "Inserting: " << pt
std::cout << "----- Inserting: " << pt
<< " at distance: " << CGAL::squared_distance(pt, traits.center())
<< " from center" << std::endl;
dtos.insert(cst(pt));
@ -34,6 +35,6 @@ int main()
std::cout << "dimension: " << dtos.dimension() << std::endl;
std::cout << dtos.number_of_vertices() << " nv" << std::endl;
std::cout << dtos.number_of_faces() << " nf" << std::endl;
std::cout << dtos.number_of_ghost_faces() << " ng" << std::endl;
std::cout << dtos.number_of_ghost_faces() << " gf" << std::endl;
}
}