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 6fee2cda22
commit c5321691dc
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)

View File

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