mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
[occ] allow to delete names
This commit is contained in:
parent
6065fe40f4
commit
b6396c15c0
@ -724,7 +724,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
return *name;
|
||||
else
|
||||
return string();
|
||||
}, [](const TopoDS_Shape & self, string name) {
|
||||
}, [](const TopoDS_Shape & self, optional<string> name) {
|
||||
OCCGeometry::global_shape_properties[self.TShape()].name = name;
|
||||
}, "'name' of shape")
|
||||
|
||||
@ -1500,7 +1500,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
{
|
||||
throw Exception("Cannot get property of ListOfShapes, get the property from individual shapes!");
|
||||
},
|
||||
[](ListOfShapes& shapes, std::string name)
|
||||
[](ListOfShapes& shapes, optional<std::string> name)
|
||||
{
|
||||
for(auto& shape : shapes)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user