remove propagateproperties from makefillet2d

properties are propagated anyway and it is crashing with function call
This commit is contained in:
Christopher Lackner 2023-07-08 20:40:25 +02:00
parent 97cc1d0621
commit ea32b203d6

View File

@ -1060,7 +1060,8 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
for (auto [v, r] : fillets) for (auto [v, r] : fillets)
mkFillet2d.AddFillet(TopoDS::Vertex(v), r); mkFillet2d.AddFillet(TopoDS::Vertex(v), r);
mkFillet2d.Build(); mkFillet2d.Build();
PropagateProperties (mkFillet2d, shape); // TODO: CL I think we shouldn't do this here but, double check
// PropagateProperties (mkFillet2d, shape);
return mkFillet2d.Shape(); return mkFillet2d.Shape();
} }
BRepFilletAPI_MakeFillet mkFillet(shape); BRepFilletAPI_MakeFillet mkFillet(shape);
@ -1080,7 +1081,8 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
for (auto e : edges) for (auto e : edges)
mkFillet.AddFillet (TopoDS::Vertex(e), r); mkFillet.AddFillet (TopoDS::Vertex(e), r);
mkFillet.Build(); mkFillet.Build();
PropagateProperties (mkFillet, shape); // TODO: CL I think we shouldn't do this here but, double check
// PropagateProperties (mkFillet, shape);
return mkFillet.Shape(); return mkFillet.Shape();
} }
BRepFilletAPI_MakeFillet mkFillet(shape); BRepFilletAPI_MakeFillet mkFillet(shape);