#include "PreCompiled.h"
#include <Base/Console.h>
#include <Base/Interpreter.h>
#include <Base/FileInfo.h>
#include <App/Application.h>
#include <App/Document.h>
#include <App/DocumentObjectPy.h>
#include <App/Property.h>
#include "Core/MeshKernel.h"
#include "Core/MeshIO.h"
#include "MeshPy.h"
#include "Mesh.h"
#include "FeatureMeshImport.h"
Go to the source code of this file.
Functions | |
static PyObject * | createBox (PyObject *self, PyObject *args) |
static PyObject * | createCone (PyObject *self, PyObject *args) |
static PyObject * | createCylinder (PyObject *self, PyObject *args) |
static PyObject * | createEllipsoid (PyObject *self, PyObject *args) |
static PyObject * | createPlane (PyObject *self, PyObject *args) |
static PyObject * | createSphere (PyObject *self, PyObject *args) |
static PyObject * | createTorus (PyObject *self, PyObject *args) |
static PyObject * | exporter (PyObject *self, PyObject *args) |
static PyObject * | importer (PyObject *self, PyObject *args) |
static PyObject * | open (PyObject *self, PyObject *args) |
PyDoc_STRVAR (export_doc,"export(list,string) -- Export a list of objects into a single file.") | |
PyDoc_STRVAR (inst_doc,"insert(string|mesh,[string]) -- Load or insert a mesh into the given or active document.") | |
PyDoc_STRVAR (open_doc,"open(string) -- Create a new document and a Mesh::Import feature to load the file into the document.") | |
static PyObject * | read (PyObject *self, PyObject *args) |
static PyObject * | show (PyObject *self, PyObject *args) |
Variables | |
struct PyMethodDef | Mesh_Import_methods [] |
Definition at line 350 of file AppMeshPy.cpp.
References SketcherExample::f, Mesh2Shape::mesh, PY_CATCH, and PY_TRY.
Definition at line 309 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.
Definition at line 288 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.
Definition at line 269 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.
Definition at line 227 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, PY_TRY, MovieTool::x, and MovieTool::y.
Definition at line 251 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.
Definition at line 331 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.
Definition at line 148 of file AppMeshPy.cpp.
References Mesh::MeshObject::addMesh(), Py::SeqBase< T >::begin(), Base::Console(), Mesh::MeshObject::countFacets(), Py::SeqBase< T >::end(), draftlibs::dxfReader::filename, Base::Type::fromName(), App::PropertyComplexGeoData::getClassTypeId(), App::PropertyContainer::getPropertyByName(), App::Property::getTypeId(), App::PropertyContainer::getTypeId(), Base::Type::isDerivedFrom(), App::DocumentObject::Label, Mesh2Shape::mesh, PY_CATCH, Py_Return, PY_TRY, Mesh::MeshObject::save(), and App::DocumentObjectPy::Type.
Definition at line 102 of file AppMeshPy.cpp.
References App::Document::addObject(), Mesh::MeshObject::countSegments(), DrawingExample::file, Base::FileInfo::fileNamePure(), App::Application::getActiveDocument(), App::GetApplication(), App::Application::getDocument(), Mesh::Segment::getIndices(), Mesh::MeshObject::getSegment(), App::DocumentObject::Label, Mesh::MeshObject::load(), Mesh::Feature::Mesh, Mesh2Shape::mesh, Mesh::MeshObject::meshFromSegment(), App::Application::newDocument(), App::DocumentObject::purgeTouched(), PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::swapMesh().
Definition at line 66 of file AppMeshPy.cpp.
References App::Document::addObject(), Mesh::MeshObject::countSegments(), DrawingExample::file, Base::FileInfo::fileNamePure(), App::GetApplication(), Mesh::Segment::getIndices(), Mesh::MeshObject::getSegment(), App::DocumentObject::Label, Mesh::MeshObject::load(), Mesh::Feature::Mesh, Mesh2Shape::mesh, Mesh::MeshObject::meshFromSegment(), App::Application::newDocument(), App::DocumentObject::purgeTouched(), PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::swapMesh().
PyDoc_STRVAR | ( | export_doc | , | |
"export(list,string) -- Export a list of objects into a single file." | ||||
) |
PyDoc_STRVAR | ( | inst_doc | , | |
"insert(string|mesh,[string]) -- Load or insert a mesh into the given or active document." | ||||
) |
PyDoc_STRVAR | ( | open_doc | , | |
"open(string) -- Create a new document and a Mesh::Import feature to load the file into the document." | ||||
) |
Definition at line 46 of file AppMeshPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, Py_Return, and PY_TRY.
Definition at line 201 of file AppMeshPy.cpp.
References App::Document::addObject(), App::Application::getActiveDocument(), App::GetApplication(), Mesh::MeshPy::getMeshObjectPtr(), Mesh::Feature::Mesh, App::Application::newDocument(), PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::setValue().
Referenced by StdCmdCommandLine::activated(), Gui::ProgressBar::delayedShow(), Gui::MainWindow::loadWindowSettings(), CamGui::Cutting::selectMesh(), CamGui::Cutting::selectShape(), and Gui::CallTipsList::showTips().
struct PyMethodDef Mesh_Import_methods[] |
{ {"open" ,open , METH_VARARGS, open_doc}, {"insert" ,importer, METH_VARARGS, inst_doc}, {"export" ,exporter, METH_VARARGS, export_doc}, {"read" ,read, Py_NEWARGS, "Read a mesh from a file and returns a Mesh object."}, {"show" ,show, Py_NEWARGS, "Put a mesh object in the active document or creates one if needed"}, {"createBox" ,createBox, Py_NEWARGS, "Create a solid mesh box"}, {"createPlane",createPlane, Py_NEWARGS, "Create a mesh XY plane normal +Z"}, {"createSphere",createSphere, Py_NEWARGS, "Create a tessellated sphere"}, {"createEllipsoid",createEllipsoid, Py_NEWARGS, "Create a tessellated ellipsoid"}, {"createCylinder",createCylinder, Py_NEWARGS, "Create a tessellated cylinder"}, {"createCone",createCone, Py_NEWARGS, "Create a tessellated cone"}, {"createTorus",createTorus, Py_NEWARGS, "Create a tessellated torus"}, {NULL, NULL} }
Definition at line 385 of file AppMeshPy.cpp.
Referenced by initMesh().