mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
singular face
This commit is contained in:
parent
cdf50f2cd6
commit
ed4240b9c6
@ -469,6 +469,17 @@ However, when r = 0, the top part becomes a point(tip) and meshing fails!
|
||||
self.AddSplineSurface(surf);
|
||||
}),
|
||||
py::arg("SplineSurface"))
|
||||
.def("SingularFace", [] (CSGeometry & self, shared_ptr<SPSolid> sol, shared_ptr<SPSolid> surfaces, double factor)
|
||||
{
|
||||
int tlonum = -1;
|
||||
for (int i = 0; i < self.GetNTopLevelObjects(); i++)
|
||||
if (self.GetTopLevelObject(i)->GetSolid() == sol->GetSolid())
|
||||
tlonum = i;
|
||||
if (tlonum == -1) throw NgException("not a top-level-object");
|
||||
if (!surfaces) surfaces = sol;
|
||||
auto singface = new SingularFace(tlonum, surfaces->GetSolid(), factor);
|
||||
self.singfaces.Append(singface);
|
||||
}, 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)
|
||||
{
|
||||
auto singedge = new SingularEdge(1, -1, self, s1->GetSolid(), s2->GetSolid(), factor);
|
||||
|
Loading…
Reference in New Issue
Block a user