mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
close surfs with additional sub-domain
This commit is contained in:
parent
2d4bed6a77
commit
6d39c78ffb
@ -487,7 +487,8 @@ DLL_HEADER void ExportCSG(py::module &m)
|
|||||||
py::arg("solid1"), py::arg("solid2"), py::arg("slices")
|
py::arg("solid1"), py::arg("solid2"), py::arg("slices")
|
||||||
)
|
)
|
||||||
.def("CloseSurfaces", FunctionPointer
|
.def("CloseSurfaces", FunctionPointer
|
||||||
([] (CSGeometry & self, shared_ptr<SPSolid> s1, shared_ptr<SPSolid> s2, int reflevels)
|
([] (CSGeometry & self, shared_ptr<SPSolid> s1, shared_ptr<SPSolid> s2,
|
||||||
|
int reflevels, shared_ptr<SPSolid> domain_solid)
|
||||||
{
|
{
|
||||||
Array<int> si1, si2;
|
Array<int> si1, si2;
|
||||||
s1->GetSolid()->GetSurfaceIndices (si1);
|
s1->GetSolid()->GetSurfaceIndices (si1);
|
||||||
@ -496,7 +497,8 @@ DLL_HEADER void ExportCSG(py::module &m)
|
|||||||
cout << "surface ids2 = " << si2 << endl;
|
cout << "surface ids2 = " << si2 << endl;
|
||||||
|
|
||||||
Flags flags;
|
Flags flags;
|
||||||
const TopLevelObject * domain = nullptr;
|
const TopLevelObject * domain = self.GetTopLevelObject(domain_solid->GetSolid());
|
||||||
|
|
||||||
self.AddIdentification
|
self.AddIdentification
|
||||||
(new CloseSurfaceIdentification
|
(new CloseSurfaceIdentification
|
||||||
(self.GetNIdentifications()+1, self,
|
(self.GetNIdentifications()+1, self,
|
||||||
@ -504,7 +506,7 @@ DLL_HEADER void ExportCSG(py::module &m)
|
|||||||
domain,
|
domain,
|
||||||
flags));
|
flags));
|
||||||
}),
|
}),
|
||||||
py::arg("solid1"), py::arg("solid2"), py::arg("reflevels")=2
|
py::arg("solid1"), py::arg("solid2"), py::arg("reflevels")=2, py::arg("domain")=nullptr
|
||||||
)
|
)
|
||||||
|
|
||||||
.def("PeriodicSurfaces", FunctionPointer
|
.def("PeriodicSurfaces", FunctionPointer
|
||||||
|
Loading…
Reference in New Issue
Block a user