mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
set MeshPoint coordinates
This commit is contained in:
parent
4cb120047c
commit
ee476e154d
@ -195,6 +195,11 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
throw py::index_error();
|
||||
return self[index];
|
||||
}))
|
||||
.def("__setitem__", FunctionPointer([](MeshPoint & self, int index, double val) {
|
||||
if(index<0 || index>2)
|
||||
throw py::index_error();
|
||||
self(index) = val;
|
||||
}))
|
||||
;
|
||||
|
||||
py::class_<Element>(m, "Element3D")
|
||||
|
Loading…
Reference in New Issue
Block a user