#include "PreCompiled.h"
#include <Python.h>
#include <Mod/Part/App/TopoShapePy.h>
#include "ProjectionAlgos.h"
#include <Base/Console.h>
#include <Base/VectorPy.h>
Go to the source code of this file.
Functions | |
static PyObject * | project (PyObject *self, PyObject *args) |
static PyObject * | projectEx (PyObject *self, PyObject *args) |
static PyObject * | projectToDXF (PyObject *self, PyObject *args) |
static PyObject * | projectToSVG (PyObject *self, PyObject *args) |
Variables | |
struct PyMethodDef | Drawing_methods [] |
Definition at line 39 of file AppDrawingPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), Py::new_reference_to(), PY_CATCH, PY_TRY, Base::VectorPy::Type, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by StdCmdMergeProjects::activated().
Definition at line 68 of file AppDrawingPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), Py::new_reference_to(), PY_CATCH, PY_TRY, Base::VectorPy::Type, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 131 of file AppDrawingPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), Py::new_reference_to(), PY_CATCH, PY_TRY, result, scale, Base::VectorPy::Type, Py::type(), Py::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 102 of file AppDrawingPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), Py::new_reference_to(), PY_CATCH, PY_TRY, result, scale, Base::VectorPy::Type, Py::type(), Py::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
struct PyMethodDef Drawing_methods[] |
{ {"project" ,project ,METH_VARARGS, "[visiblyG0,visiblyG1,hiddenG0,hiddenG1] = project(TopoShape[,App.Vector Direction, string type]) -- Project a shape and return the visible/invisible parts of it."}, {"projectEx" ,projectEx ,METH_VARARGS, "[V,V1,VN,VO,VI,H,H1,HN,HO,HI] = projectEx(TopoShape[,App.Vector Direction, string type]) -- Project a shape and return the all parts of it."}, {"projectToSVG" ,projectToSVG ,METH_VARARGS, "string = projectToSVG(TopoShape[,App.Vector Direction, string type]) -- Project a shape and return the SVG representation as string."}, {"projectToDXF" ,projectToDXF ,METH_VARARGS, "string = projectToDXF(TopoShape[,App.Vector Direction, string type]) -- Project a shape and return the DXF representation as string."}, {NULL, NULL} }
Definition at line 162 of file AppDrawingPy.cpp.
Referenced by initDrawing().