mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
surface object
This commit is contained in:
parent
f3af308492
commit
ee1ceda906
@ -362,6 +362,21 @@ DLL_HEADER void ExportCSG()
|
|||||||
(bp::arg("self"), bp::arg("solid"), bp::arg("bcmod")=bp::list())
|
(bp::arg("self"), bp::arg("solid"), bp::arg("bcmod")=bp::list())
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.def("AddSurface", FunctionPointer
|
||||||
|
([] (CSGeometry & self, shared_ptr<SPSolid> surface, shared_ptr<SPSolid> solid)
|
||||||
|
{
|
||||||
|
solid->AddSurfaces (self);
|
||||||
|
solid->GiveUpOwner();
|
||||||
|
int tlonr = self.SetTopLevelObject (solid->GetSolid(), &surface->GetSolid()->GetPrimitive()->GetSurface());
|
||||||
|
self.GetTopLevelObject(tlonr) -> SetMaterial(solid->GetMaterial());
|
||||||
|
self.GetTopLevelObject(tlonr) -> SetRGB(solid->GetRed(),solid->GetGreen(),solid->GetBlue());
|
||||||
|
self.GetTopLevelObject(tlonr)->SetTransparent(solid->IsTransparent());
|
||||||
|
}),
|
||||||
|
(bp::arg("self"), bp::arg("surface"), bp::arg("solid"))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.def("CloseSurfaces", FunctionPointer
|
.def("CloseSurfaces", FunctionPointer
|
||||||
([] (CSGeometry & self, shared_ptr<SPSolid> s1, shared_ptr<SPSolid> s2, bp::list aslices )
|
([] (CSGeometry & self, shared_ptr<SPSolid> s1, shared_ptr<SPSolid> s2, bp::list aslices )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user