本文整理汇总了C++中TriangleMesh::number_of_vertices方法的典型用法代码示例。如果您正苦于以下问题:C++ TriangleMesh::number_of_vertices方法的具体用法?C++ TriangleMesh::number_of_vertices怎么用?C++ TriangleMesh::number_of_vertices使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TriangleMesh
的用法示例。
在下文中一共展示了TriangleMesh::number_of_vertices方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: general_tests
void general_tests(const TriangleMesh& m1,
const TriangleMesh& m2 )
{
if (m1.number_of_vertices()==0 || m2.number_of_vertices()==0) return;
std::vector<typename GeomTraits::Point_3> points;
points.push_back(typename GeomTraits::Point_3(0,0,0));
points.push_back(typename GeomTraits::Point_3(0,1,0));
points.push_back(typename GeomTraits::Point_3(1,0,0));
points.push_back(typename GeomTraits::Point_3(0,0,1));
points.push_back(typename GeomTraits::Point_3(0,2,0));
std::cout << "Symmetric distance between meshes (sequential) "
<< PMP::approximate_symmetric_Hausdorff_distance<CGAL::Sequential_tag>(
m1,m2,
PMP::parameters::number_of_points_per_area_unit(4000),
PMP::parameters::number_of_points_per_area_unit(4000))
<< "\n";
std::cout << "Max distance to point set "
<< PMP::approximate_max_distance_to_point_set(m1,points,4000)
<< "\n";
std::cout << "Max distance to triangle mesh (sequential) "
<< PMP::max_distance_to_triangle_mesh<CGAL::Sequential_tag>(points,m1)
<< "\n";
}