From 43604f284b0e1b9407e5fd119b0735dcf28eb509 Mon Sep 17 00:00:00 2001 From: tomate44 Date: Sat, 12 Sep 2020 22:41:16 +0200 Subject: [PATCH] Part: remove uIso and vIso methods from RectangularTrimmedSurface --- .../Part/App/RectangularTrimmedSurfacePy.xml | 10 ---- .../App/RectangularTrimmedSurfacePyImp.cpp | 52 ------------------- 2 files changed, 62 deletions(-) diff --git a/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml b/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml index a5e29af748..0ce372acf5 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml +++ b/src/Mod/Part/App/RectangularTrimmedSurfacePy.xml @@ -25,15 +25,5 @@ The trimmed surface is built from a copy of the basis surface. Therefore, when t is modified the trimmed surface is not changed. Consequently, the trimmed surface does not necessarily have the same orientation as the basis surface. - - - Builds the U isoparametric curve - - - - - Builds the V isoparametric curve - - diff --git a/src/Mod/Part/App/RectangularTrimmedSurfacePyImp.cpp b/src/Mod/Part/App/RectangularTrimmedSurfacePyImp.cpp index e0c719df6e..07e80c8f2d 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurfacePyImp.cpp +++ b/src/Mod/Part/App/RectangularTrimmedSurfacePyImp.cpp @@ -86,58 +86,6 @@ int RectangularTrimmedSurfacePy::PyInit(PyObject* args, PyObject* /*kwd*/) return -1; } -PyObject* RectangularTrimmedSurfacePy::uIso(PyObject * args) -{ - double v; - if (!PyArg_ParseTuple(args, "d", &v)) - return 0; - - try { - Handle(Geom_Surface) surf = Handle(Geom_Surface)::DownCast - (getGeometryPtr()->handle()); - Handle(Geom_Curve) c = surf->UIso(v); - if (c->IsKind(STANDARD_TYPE(Geom_TrimmedCurve))) { - Handle(Geom_TrimmedCurve) aCurve = Handle(Geom_TrimmedCurve)::DownCast(c); - return new GeometryCurvePy(new GeomTrimmedCurve(aCurve)); - } - - PyErr_Format(PyExc_NotImplementedError, "Iso curve is of type '%s'", - c->DynamicType()->Name()); - return 0; - } - catch (Standard_Failure& e) { - - PyErr_SetString(PartExceptionOCCError, e.GetMessageString()); - return 0; - } -} - -PyObject* RectangularTrimmedSurfacePy::vIso(PyObject * args) -{ - double v; - if (!PyArg_ParseTuple(args, "d", &v)) - return 0; - - try { - Handle(Geom_Surface) surf = Handle(Geom_Surface)::DownCast - (getGeometryPtr()->handle()); - Handle(Geom_Curve) c = surf->VIso(v); - if (c->IsKind(STANDARD_TYPE(Geom_TrimmedCurve))) { - Handle(Geom_TrimmedCurve) aCurve = Handle(Geom_TrimmedCurve)::DownCast(c); - return new GeometryCurvePy(new GeomTrimmedCurve(aCurve)); - } - - PyErr_Format(PyExc_NotImplementedError, "Iso curve is of type '%s'", - c->DynamicType()->Name()); - return 0; - } - catch (Standard_Failure& e) { - - PyErr_SetString(PartExceptionOCCError, e.GetMessageString()); - return 0; - } -} - PyObject *RectangularTrimmedSurfacePy::getCustomAttributes(const char* /*attr*/) const { return 0;