mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
domain indices are 1-based
This commit is contained in:
parent
af6a872076
commit
4f40087866
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user