#include "PreCompiled.h"
#include <Python.h>
#include <Base/Console.h>
#include <Base/FileInfo.h>
#include <App/Application.h>
#include <App/Document.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include <Mod/Mesh/App/Core/Elements.h>
#include <Mod/Mesh/App/MeshPy.h>
#include <Mod/Mesh/App/MeshFeature.h>
#include "JtReader.h"
Go to the source code of this file.
Functions | |
static PyObject * | insert (PyObject *self, PyObject *args) |
static PyObject * | open (PyObject *self, PyObject *args) |
static PyObject * | read (PyObject *self, PyObject *args) |
Variables | |
struct PyMethodDef | JtReader_methods [] |
Definition at line 155 of file AppJtReaderPy.cpp.
References App::Document::addObject(), clearData(), Base::Console(), Base::FileInfo::extension(), DrawingExample::file, Base::FileInfo::fileNamePure(), App::GetApplication(), App::Application::getDocument(), Base::FileInfo::hasExtension(), iterGetNext(), iterSize(), iterStart(), Mesh::Feature::Mesh, SimpleMeshFacet::p1, SimpleMeshFacet::p2, SimpleMeshFacet::p3, PY_CATCH, Py_Error, Py_Return, PY_TRY, and readFile().
Definition at line 91 of file AppJtReaderPy.cpp.
References App::Document::addObject(), clearData(), Base::FileInfo::extension(), DrawingExample::file, Base::FileInfo::fileNamePure(), App::GetApplication(), Base::FileInfo::hasExtension(), iterGetNext(), iterSize(), iterStart(), Mesh::Feature::Mesh, App::Application::newDocument(), SimpleMeshFacet::p1, SimpleMeshFacet::p2, SimpleMeshFacet::p3, PY_CATCH, Py_Error, Py_Return, PY_TRY, readFile(), and App::Document::recompute().
Definition at line 51 of file AppJtReaderPy.cpp.
References clearData(), iterGetNext(), iterSize(), iterStart(), SimpleMeshFacet::p1, SimpleMeshFacet::p2, SimpleMeshFacet::p3, PY_CATCH, Py_Return, PY_TRY, and readFile().
struct PyMethodDef JtReader_methods[] |
{ {"open" ,open , Py_NEWARGS, "open a jt file in a new Document"}, {"insert" ,insert, Py_NEWARGS, "isert a jt file in a existing document"}, {"read" ,read, Py_NEWARGS, "Read a Mesh from a jt file and returns a Mesh object."}, {NULL, NULL} }
Definition at line 230 of file AppJtReaderPy.cpp.
Referenced by initJtReader().