Part: improve Python interface

+ rename getCurve2dFromGeom2d to makeFromCurve2d
+ add function makeFromCurve and makeFromTrimmedCurve like makeFromSurface
+ implement OffsetCurve.BasisCurve
+ fix memory leak in BRepOffsetAPI_MakePipeShellPy
This commit is contained in:
wmayer
2020-09-27 23:34:45 +02:00
parent 1ef31842c9
commit a6c55acdb1
10 changed files with 166 additions and 147 deletions

View File

@@ -1065,7 +1065,7 @@ PyObject* TopoShapeEdgePy::curveOnSurface(PyObject *args)
BRep_Tool::CurveOnSurface(edge, curve, surf, loc, first, last, idx+1);
if (curve.IsNull())
Py_Return;
std::unique_ptr<Part::Geom2dCurve> geo2d(getCurve2dFromGeom2d(curve));
std::unique_ptr<Part::Geom2dCurve> geo2d(makeFromCurve2d(curve));
if (!geo2d)
Py_Return;
std::unique_ptr<Part::GeomSurface> geosurf(makeFromSurface(surf));