AppMeshPy.cpp File Reference

#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 PyObjectcreateBox (PyObject *self, PyObject *args)
static PyObjectcreateCone (PyObject *self, PyObject *args)
static PyObjectcreateCylinder (PyObject *self, PyObject *args)
static PyObjectcreateEllipsoid (PyObject *self, PyObject *args)
static PyObjectcreatePlane (PyObject *self, PyObject *args)
static PyObjectcreateSphere (PyObject *self, PyObject *args)
static PyObjectcreateTorus (PyObject *self, PyObject *args)
static PyObjectexporter (PyObject *self, PyObject *args)
static PyObjectimporter (PyObject *self, PyObject *args)
static PyObjectopen (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 PyObjectread (PyObject *self, PyObject *args)
static PyObjectshow (PyObject *self, PyObject *args)

Variables

struct PyMethodDef Mesh_Import_methods []

Function Documentation

static PyObject* createBox ( PyObject self,
PyObject args 
) [static]

Definition at line 350 of file AppMeshPy.cpp.

References SketcherExample::f, Mesh2Shape::mesh, PY_CATCH, and PY_TRY.

static PyObject* createCone ( PyObject self,
PyObject args 
) [static]

Definition at line 309 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.

static PyObject* createCylinder ( PyObject self,
PyObject args 
) [static]

Definition at line 288 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.

static PyObject* createEllipsoid ( PyObject self,
PyObject args 
) [static]

Definition at line 269 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.

static PyObject* createPlane ( PyObject self,
PyObject args 
) [static]

Definition at line 227 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, PY_TRY, MovieTool::x, and MovieTool::y.

static PyObject* createSphere ( PyObject self,
PyObject args 
) [static]

Definition at line 251 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.

static PyObject* createTorus ( PyObject self,
PyObject args 
) [static]

Definition at line 331 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, and PY_TRY.

static PyObject* exporter ( PyObject self,
PyObject args 
) [static]
static PyObject* importer ( PyObject self,
PyObject args 
) [static]
static PyObject* open ( PyObject self,
PyObject args 
) [static]
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]

Definition at line 46 of file AppMeshPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, Py_Return, and PY_TRY.

static PyObject* show ( PyObject self,
PyObject args 
) [static]

Variable Documentation

struct PyMethodDef Mesh_Import_methods[]
Initial value:
 { 
    {"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().


Generated on Wed Nov 23 19:01:13 2011 for FreeCAD by  doxygen 1.6.1