mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
singular edges/points to Python
This commit is contained in:
parent
0043eee0e0
commit
74eff69410
@ -383,7 +383,10 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
if(index<0 || index>2)
|
if(index<0 || index>2)
|
||||||
throw py::index_error();
|
throw py::index_error();
|
||||||
self(index) = val;
|
self(index) = val;
|
||||||
})
|
})
|
||||||
|
.def_property("singular",
|
||||||
|
[](const MeshPoint & pnt) { return pnt.Singularity(); },
|
||||||
|
[](MeshPoint & pnt, double sing) { pnt.Singularity(sing); })
|
||||||
;
|
;
|
||||||
|
|
||||||
py::class_<Element>(m, "Element3D")
|
py::class_<Element>(m, "Element3D")
|
||||||
@ -608,6 +611,9 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
{
|
{
|
||||||
return self.edgenr;
|
return self.edgenr;
|
||||||
}))
|
}))
|
||||||
|
.def_property("singular",
|
||||||
|
[](const Segment & seg) { return seg.singedge_left; },
|
||||||
|
[](Segment & seg, double sing) { seg.singedge_left = sing; seg.singedge_right=sing; })
|
||||||
;
|
;
|
||||||
|
|
||||||
if(ngcore_have_numpy)
|
if(ngcore_have_numpy)
|
||||||
|
Loading…
Reference in New Issue
Block a user