11#include " booleans.h"
2-
32#include < CGAL/Polygon_mesh_processing/corefinement.h>
43
4+
55namespace PMP = CGAL::Polygon_mesh_processing;
6- namespace params = PMP::parameters;
7- namespace py = pybind11;
6+
87
98std::tuple<compas::RowMatrixXd, compas::RowMatrixXi>
109pmp_boolean_union (
@@ -26,6 +25,7 @@ pmp_boolean_union(
2625 return R;
2726};
2827
28+
2929std::tuple<compas::RowMatrixXd, compas::RowMatrixXi>
3030pmp_boolean_difference (
3131 Eigen::Ref<const compas::RowMatrixXd> &VA,
@@ -46,6 +46,7 @@ pmp_boolean_difference(
4646 return R;
4747};
4848
49+
4950std::tuple<compas::RowMatrixXd, compas::RowMatrixXi>
5051pmp_boolean_intersection (
5152 Eigen::Ref<const compas::RowMatrixXd> &VA,
@@ -66,31 +67,32 @@ pmp_boolean_intersection(
6667 return R;
6768};
6869
69- void init_booleans (py::module &m)
70+
71+ void init_booleans (pybind11::module &m)
7072{
71- py ::module submodule = m.def_submodule (" booleans" );
73+ pybind11 ::module submodule = m.def_submodule (" booleans" );
7274
7375 submodule.def (
7476 " boolean_union" ,
7577 &pmp_boolean_union,
76- py ::arg (" VA" ).noconvert (),
77- py ::arg (" FA" ).noconvert (),
78- py ::arg (" VB" ).noconvert (),
79- py ::arg (" FB" ).noconvert ());
78+ pybind11 ::arg (" VA" ).noconvert (),
79+ pybind11 ::arg (" FA" ).noconvert (),
80+ pybind11 ::arg (" VB" ).noconvert (),
81+ pybind11 ::arg (" FB" ).noconvert ());
8082
8183 submodule.def (
8284 " boolean_difference" ,
8385 &pmp_boolean_difference,
84- py ::arg (" VA" ).noconvert (),
85- py ::arg (" FA" ).noconvert (),
86- py ::arg (" VB" ).noconvert (),
87- py ::arg (" FB" ).noconvert ());
86+ pybind11 ::arg (" VA" ).noconvert (),
87+ pybind11 ::arg (" FA" ).noconvert (),
88+ pybind11 ::arg (" VB" ).noconvert (),
89+ pybind11 ::arg (" FB" ).noconvert ());
8890
8991 submodule.def (
9092 " boolean_intersection" ,
9193 &pmp_boolean_intersection,
92- py ::arg (" VA" ).noconvert (),
93- py ::arg (" FA" ).noconvert (),
94- py ::arg (" VB" ).noconvert (),
95- py ::arg (" FB" ).noconvert ());
94+ pybind11 ::arg (" VA" ).noconvert (),
95+ pybind11 ::arg (" FA" ).noconvert (),
96+ pybind11 ::arg (" VB" ).noconvert (),
97+ pybind11 ::arg (" FB" ).noconvert ());
9698};
0 commit comments