mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-18 16:20:50 +05:00
Use pass by ref instead of a ptr
This commit is contained in:
parent
242fb6caff
commit
acef3c8461
@ -65,10 +65,10 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
|||||||
return geo;
|
return geo;
|
||||||
}), py::arg("filename"),
|
}), py::arg("filename"),
|
||||||
"Load OCC geometry from step, brep or iges file")
|
"Load OCC geometry from step, brep or iges file")
|
||||||
.def(py::init([] ( const TopoDS_Shape* s)
|
.def(py::init([] ( const TopoDS_Shape& s)
|
||||||
{
|
{
|
||||||
shared_ptr<OCCGeometry> geo;
|
shared_ptr<OCCGeometry> geo;
|
||||||
geo.reset(FromOCC(*s));
|
geo.reset(FromOCC(s));
|
||||||
return geo;
|
return geo;
|
||||||
}), py::arg("shape"),
|
}), py::arg("shape"),
|
||||||
"Load OCC geometry from an existing TopoDS_Shape object")
|
"Load OCC geometry from an existing TopoDS_Shape object")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user