0

我是 cgal 的新手,我需要检查两个 Polyhedron_3 的交集,我知道存在一个名为 intersection_Polyhedron_3_Polyhedron_3() 的函数,但我不知道如何实现它。

谁能举例说明如何使用此功能或其他方式检查两个 Polyhedron_3 的交集?

4

1 回答 1

0

您可以使用该CGAL::Polygon_mesh_processing::do_intersect()功能。命名参数是可选的,您可以编写:

Polyhedron P1,P2;
bool res = CGAL::Polygon_mesh_processing::do_intersect(P1,P2);
于 2019-01-22T09:40:30.797 回答