Part: [skip ci] implement methods getBasisCurve of Surface of Revolution/Extrusion

This commit is contained in:
wmayer
2020-01-22 14:53:17 +01:00
parent 58ab713eb5
commit 7fac3b1bc9
2 changed files with 16 additions and 2 deletions

View File

@@ -117,9 +117,16 @@ void SurfaceOfExtrusionPy::setDirection(Py::Object arg)
}
}
namespace Part {
extern const Py::Object makeGeometryCurvePy(const Handle(Geom_Curve)& c);
}
Py::Object SurfaceOfExtrusionPy::getBasisCurve(void) const
{
throw Py::Exception(PyExc_NotImplementedError, "Not yet implemented");
Handle(Geom_SurfaceOfLinearExtrusion) surf = Handle(Geom_SurfaceOfLinearExtrusion)::DownCast
(getGeometryPtr()->handle());
Handle(Geom_Curve) curve = surf->BasisCurve();
return makeGeometryCurvePy(curve);
}
void SurfaceOfExtrusionPy::setBasisCurve(Py::Object arg)