Part: remove uIso and vIso methods. Methods from base class GeomSurface will be used instead

This commit is contained in:
tomate44
2020-09-10 08:10:39 +02:00
committed by wwmayer
parent 4e524cbb1c
commit b81f654905
14 changed files with 0 additions and 329 deletions

View File

@@ -151,46 +151,6 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds)
return -1;
}
PyObject* ConePy::uIso(PyObject * args)
{
double u;
if (!PyArg_ParseTuple(args, "d", &u))
return 0;
try {
Handle(Geom_ConicalSurface) cone = Handle(Geom_ConicalSurface)::DownCast
(getGeomConePtr()->handle());
Handle(Geom_Line) c = Handle(Geom_Line)::DownCast(cone->UIso(u));
GeomLine* line = new GeomLine();
Handle(Geom_Line) this_curv = Handle(Geom_Line)::DownCast
(line->handle());
this_curv->SetLin(c->Lin());
return new LinePy(line);
}
catch (Standard_Failure& e) {
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
return 0;
}
}
PyObject* ConePy::vIso(PyObject * args)
{
double v;
if (!PyArg_ParseTuple(args, "d", &v))
return 0;
try {
Handle(Geom_ConicalSurface) cone = Handle(Geom_ConicalSurface)::DownCast
(getGeomConePtr()->handle());
Handle(Geom_Curve) c = cone->VIso(v);
return new CirclePy(new GeomCircle(Handle(Geom_Circle)::DownCast(c)));
}
catch (Standard_Failure& e) {
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
return 0;
}
}
Py::Object ConePy::getApex(void) const
{
Handle(Geom_ConicalSurface) s = Handle(Geom_ConicalSurface)::DownCast