domain indices are 1-based

This commit is contained in:
Joachim Schöberl 2019-01-25 10:41:49 +01:00
parent af6a872076
commit 4f40087866

View File

@ -477,7 +477,7 @@ However, when r = 0, the top part becomes a point(tip) and meshing fails!
tlonum = i; tlonum = i;
if (tlonum == -1) throw NgException("not a top-level-object"); if (tlonum == -1) throw NgException("not a top-level-object");
if (!surfaces) surfaces = sol; if (!surfaces) surfaces = sol;
auto singface = new SingularFace(tlonum, surfaces->GetSolid(), factor); auto singface = new SingularFace(tlonum+1, surfaces->GetSolid(), factor);
self.singfaces.Append(singface); self.singfaces.Append(singface);
}, py::arg("solid"), py::arg("surfaces")=nullptr, py::arg("factor")=0.25) }, py::arg("solid"), py::arg("surfaces")=nullptr, py::arg("factor")=0.25)
.def("SingularEdge", [] (CSGeometry & self, shared_ptr<SPSolid> s1,shared_ptr<SPSolid> s2, double factor) .def("SingularEdge", [] (CSGeometry & self, shared_ptr<SPSolid> s1,shared_ptr<SPSolid> s2, double factor)