Part: [skip ci] implement methods getBasisCurve of Surface of Revolution/Extrusion
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user