mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
Merge branch 'multiply_occ_listofshapes' into 'master'
Multiplication of ListOfShapes to find common shapes See merge request jschoeberl/netgen!416
This commit is contained in:
commit
5bfb5a6eac
@ -101,6 +101,15 @@ public:
|
||||
}
|
||||
return maxshape;
|
||||
}
|
||||
ListOfShapes operator*(const ListOfShapes& other) const
|
||||
{
|
||||
ListOfShapes common;
|
||||
for(const auto& shape : (*this))
|
||||
for(const auto& shape_o : other)
|
||||
if(shape.IsSame(shape_o))
|
||||
common.push_back(shape);
|
||||
return common;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -1458,6 +1467,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
selected.push_back(s);
|
||||
return selected;
|
||||
})
|
||||
.def(py::self * py::self)
|
||||
|
||||
.def("Sorted",[](ListOfShapes self, gp_Vec dir)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user