mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
change bc-names
This commit is contained in:
parent
d96ab0c955
commit
e190943f4f
@ -359,7 +359,10 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
.def_property("domin", &FaceDescriptor::DomainIn, &FaceDescriptor::SetDomainIn)
|
||||
.def_property("domout", &FaceDescriptor::DomainOut, &FaceDescriptor::SetDomainOut)
|
||||
.def_property("bc", &FaceDescriptor::BCProperty, &FaceDescriptor::SetBCProperty)
|
||||
.def_property_readonly("bcname", FunctionPointer ([](FaceDescriptor & self) -> string { return self.GetBCName(); }))
|
||||
.def_property("bcname",
|
||||
[](FaceDescriptor & self) -> string { return self.GetBCName(); },
|
||||
[](FaceDescriptor & self, string name) { self.SetBCName(new string(name)); } // memleak
|
||||
)
|
||||
.def("SetSurfaceColor", [](FaceDescriptor & self, py::list color )
|
||||
{
|
||||
Vec3d c;
|
||||
|
Loading…
Reference in New Issue
Block a user