mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
export FaceDescriptor::SetSurfaceColor
This commit is contained in:
parent
7f23bacbf5
commit
1ce39a7c56
@ -300,6 +300,14 @@ DLL_HEADER void ExportNetgenMeshing()
|
|||||||
.add_property("domout", &FaceDescriptor::DomainOut, &FaceDescriptor::SetDomainOut)
|
.add_property("domout", &FaceDescriptor::DomainOut, &FaceDescriptor::SetDomainOut)
|
||||||
.add_property("bc", &FaceDescriptor::BCProperty, &FaceDescriptor::SetBCProperty)
|
.add_property("bc", &FaceDescriptor::BCProperty, &FaceDescriptor::SetBCProperty)
|
||||||
.add_property("bcname", FunctionPointer ([](FaceDescriptor & self) -> string { return self.GetBCName(); }))
|
.add_property("bcname", FunctionPointer ([](FaceDescriptor & self) -> string { return self.GetBCName(); }))
|
||||||
|
.def("SetSurfaceColor", FunctionPointer ([](FaceDescriptor & self, bp::list color )
|
||||||
|
{
|
||||||
|
Vec3d c;
|
||||||
|
c.X() = bp::extract<double>(color[0])();
|
||||||
|
c.Y() = bp::extract<double>(color[1])();
|
||||||
|
c.Z() = bp::extract<double>(color[2])();
|
||||||
|
self.SetSurfColour(c);
|
||||||
|
}))
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user