|
@@ -16,9 +16,23 @@ m.def("nrosy", []
|
|
|
assert_is_VectorX("b",b);
|
|
|
assert_is_VectorX("b_soft",b_soft);
|
|
|
assert_is_VectorX("w_soft",w_soft);
|
|
|
+
|
|
|
+ Eigen::VectorXi bt;
|
|
|
+ if (b.size() != 0)
|
|
|
+ bt = b;
|
|
|
+
|
|
|
+ Eigen::VectorXi b_softt;
|
|
|
+ if (b_soft.size() != 0)
|
|
|
+ b_softt = b_soft;
|
|
|
+
|
|
|
+ Eigen::VectorXd w_softt;
|
|
|
+ if (w_soft.size() != 0)
|
|
|
+ w_softt = w_soft;
|
|
|
+
|
|
|
Eigen::VectorXd St;
|
|
|
- igl::comiso::nrosy(V,F,b,bc,b_soft,w_soft,bc_soft,N,soft,R,St);
|
|
|
+ igl::comiso::nrosy(V,F,bt,bc,b_softt,w_softt,bc_soft,N,soft,R,St);
|
|
|
S = St;
|
|
|
+
|
|
|
}, __doc_igl_comiso_nrosy,
|
|
|
py::arg("V"), py::arg("F"), py::arg("b"), py::arg("bc"), py::arg("b_soft"), py::arg("w_soft"), py::arg("bc_soft"), py::arg("N"), py::arg("soft"), py::arg("R"), py::arg("S"));
|
|
|
|
|
@@ -34,8 +48,13 @@ m.def("nrosy", []
|
|
|
)
|
|
|
{
|
|
|
assert_is_VectorX("b",b);
|
|
|
+
|
|
|
+ Eigen::VectorXi bt;
|
|
|
+ if (b.size() != 0)
|
|
|
+ bt = b;
|
|
|
+
|
|
|
Eigen::VectorXd St;
|
|
|
- igl::comiso::nrosy(V,F,b,bc,N,R,St);
|
|
|
+ igl::comiso::nrosy(V,F,bt,bc,N,R,St);
|
|
|
S = St;
|
|
|
}, __doc_igl_comiso_nrosy,
|
|
|
py::arg("V"), py::arg("F"), py::arg("b"), py::arg("bc"), py::arg("N"), py::arg("R"), py::arg("S"));
|