From c04a3251e978479229f1d471f38dbea4d246aef6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 12 Jan 2014 21:42:46 +0100 Subject: [PATCH] + Rename methods --- src/Mod/Part/App/TopoShapePy.xml | 12 ++++++++---- src/Mod/Part/App/TopoShapePyImp.cpp | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Mod/Part/App/TopoShapePy.xml b/src/Mod/Part/App/TopoShapePy.xml index 6e8b54e05a..53440bd64e 100644 --- a/src/Mod/Part/App/TopoShapePy.xml +++ b/src/Mod/Part/App/TopoShapePy.xml @@ -307,14 +307,18 @@ Orientation is not taken into account. Project a shape on this shape - + - Cylindrical projection of an edge or wire on this shape + Parallel projection of an edge or wire on this shape +makeParallelProjection(shape, dir) + - + - Conical projection of an edge or wire on this shape + Perspective projection of an edge or wire on this shape +makePerspectiveProjection(shape, pnt) + diff --git a/src/Mod/Part/App/TopoShapePyImp.cpp b/src/Mod/Part/App/TopoShapePyImp.cpp index 42f0243ebd..f499dbce5d 100644 --- a/src/Mod/Part/App/TopoShapePyImp.cpp +++ b/src/Mod/Part/App/TopoShapePyImp.cpp @@ -1274,7 +1274,7 @@ PyObject* TopoShapePy::project(PyObject *args) return 0; } -PyObject* TopoShapePy::makeCylindricalProjection(PyObject *args) +PyObject* TopoShapePy::makeParallelProjection(PyObject *args) { PyObject *pShape, *pDir; if (PyArg_ParseTuple(args, "O!O!", &(Part::TopoShapePy::Type), &pShape, &Base::VectorPy::Type, &pDir)) { @@ -1296,7 +1296,7 @@ PyObject* TopoShapePy::makeCylindricalProjection(PyObject *args) return 0; } -PyObject* TopoShapePy::makeConicalProjection(PyObject *args) +PyObject* TopoShapePy::makePerspectiveProjection(PyObject *args) { PyObject *pShape, *pDir; if (PyArg_ParseTuple(args, "O!O!", &(Part::TopoShapePy::Type), &pShape, &Base::VectorPy::Type, &pDir)) {