set MeshPoint coordinates

This commit is contained in:
Joachim Schöberl 2017-06-26 23:26:09 +02:00
parent 4cb120047c
commit ee476e154d

View File

@ -195,6 +195,11 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
throw py::index_error(); throw py::index_error();
return self[index]; 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") py::class_<Element>(m, "Element3D")