mirror of https://github.com/CGAL/cgal
Minor fixes to examples
This commit is contained in:
parent
e4eff7b9a0
commit
d19fa52845
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue