AppCamPy.cpp File Reference

#include "PreCompiled.h"
#include <Base/Console.h>
#include <Base/PyObjectBase.h>
#include <Base/Handle.h>
#include <Base/Exception.h>
#include <Base/FileInfo.h>
#include <Base/Builder3D.h>
#include <App/Application.h>
#include <App/Document.h>
#include <Mod/Part/App/TopoShape.h>
#include <Mod/Part/App/TopoShapePy.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include <Mod/Mesh/App/Core/TopoAlgorithm.h>
#include <Mod/Mesh/App/Core/Iterator.h>
#include <Mod/Mesh/App/Core/Builder.h>
#include <Mod/Mesh/App/MeshPy.h>
#include <Mod/Mesh/App/Mesh.h>
#include <Mod/Mesh/App/Core/Elements.h>
#include <Mod/Mesh/App/Core/Evaluation.h>
#include <Mod/Mesh/App/Core/Triangulation.h>
#include <Poly_Triangulation.hxx>
#include <BRepOffsetAPI_MakeOffsetShape.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepAlgoAPI_Section.hxx>
#include <BRepBndLib.hxx>
#include <BRep_Builder.hxx>
#include <BRep_Tool.hxx>
#include <BRepTools.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepMesh.hxx>
#include <Geom_OffsetSurface.hxx>
#include <GeomAPI_PointsToBSplineSurface.hxx>
#include <TColgp_HArray2OfPnt.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <BRepGProp.hxx>
#include <IntCurvesFace_ShapeIntersector.hxx>
#include <GProp_PrincipalProps.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Compound.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <Geom_BSplineSurface.hxx>
#include <Handle_Geom_Plane.hxx>
#include <Geom_Plane.hxx>
#include <Geom2d_Curve.hxx>
#include <gp_Lin.hxx>
#include <gp_Dir.hxx>
#include "Approx.h"
#include "ConvertDyna.h"
#include "cutting_tools.h"
#include "best_fit.h"
#include "SpringbackCorrection.h"
#include <GeomAdaptor_Curve.hxx>
#include <GCPnts_QuasiUniformDeflection.hxx>
#include "WireExplorer.h"
#include <GeomAPI_Interpolate.hxx>
#include <TColgp_HArray1OfPnt.hxx>
#include "BRepAdaptor_CompCurve2.h"

Go to the source code of this file.

Functions

static PyObjectbest_fit_coarse (PyObject *self, PyObject *args)
static PyObjectbest_fit_complete (PyObject *self, PyObject *args)
static PyObjectbest_fit_test (PyObject *self, PyObject *args)
static PyObjectcreateBox (PyObject *self, PyObject *args)
static PyObjectcreatePlane (PyObject *self, PyObject *args)
static PyObjectcreateTestApproximate (PyObject *self, PyObject *args)
static PyObjectcreateTestBSPLINE (PyObject *self, PyObject *args)
static PyObjectfit_iter (PyObject *self, PyObject *args)
static PyObjectinsert (PyObject *self, PyObject *args)
static PyObjectoffset (PyObject *self, PyObject *args)
static PyObjectoffset_mesh (PyObject *self, PyObject *args)
static PyObjectopen (PyObject *self, PyObject *args)
static PyObjectopenDYNA (PyObject *self, PyObject *args)
static PyObjectread (PyObject *self, PyObject *args)
static PyObjectshape2orig (PyObject *self, PyObject *args)
static PyObjectspring_back (PyObject *self, PyObject *args)
static PyObjecttess_shape (PyObject *self, PyObject *args)
static PyObjecttesselateShape (PyObject *self, PyObject *args)
static PyObjectuseMesh (PyObject *self, PyObject *args)

Variables

struct PyMethodDef Cam_methods []

Function Documentation

static PyObject* best_fit_coarse ( PyObject self,
PyObject args 
) [static]
static PyObject* best_fit_complete ( PyObject self,
PyObject args 
) [static]
static PyObject* best_fit_test ( PyObject self,
PyObject args 
) [static]
static PyObject* createBox ( PyObject self,
PyObject args 
) [static]

Definition at line 3088 of file AppCamPy.cpp.

References PY_CATCH, and PY_TRY.

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

Definition at line 3066 of file AppCamPy.cpp.

References PY_CATCH, and PY_TRY.

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

Definition at line 460 of file AppCamPy.cpp.

References Handle(), PY_CATCH, and PY_TRY.

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

Definition at line 531 of file AppCamPy.cpp.

References Handle(), PY_CATCH, and PY_TRY.

static PyObject* fit_iter ( PyObject self,
PyObject args 
) [static]
static PyObject* insert ( PyObject self,
PyObject args 
) [static]
static PyObject* offset ( PyObject self,
PyObject args 
) [static]
static PyObject* offset_mesh ( PyObject self,
PyObject args 
) [static]
static PyObject* open ( PyObject self,
PyObject args 
) [static]

Definition at line 107 of file AppCamPy.cpp.

References PY_CATCH, Py_Return, and PY_TRY.

static PyObject* openDYNA ( PyObject self,
PyObject args 
) [static]
static PyObject* read ( PyObject self,
PyObject args 
) [static]

Definition at line 140 of file AppCamPy.cpp.

References PY_CATCH, Py_Return, and PY_TRY.

static PyObject* shape2orig ( PyObject self,
PyObject args 
) [static]
static PyObject* spring_back ( PyObject self,
PyObject args 
) [static]
static PyObject* tess_shape ( PyObject self,
PyObject args 
) [static]
static PyObject* tesselateShape ( PyObject self,
PyObject args 
) [static]
static PyObject* useMesh ( PyObject self,
PyObject args 
) [static]

Variable Documentation

struct PyMethodDef Cam_methods[]
Initial value:
{
    {"open"   , open,   Py_NEWARGS, "open(string) -- Not implemented for this Module so far."
    },
    {"insert" , insert, Py_NEWARGS, "insert(string, string) -- Not implemented for this Module so far."},
    {"read"   , read,  1},
    {"createTestBSPLINE"   , createTestBSPLINE,  Py_NEWARGS, "Creates a TopoShape with a test BSPLINE"},
    {"createTestApproximate" , createTestApproximate, 1},
    
    {"offset", offset, 1},

    {"tesselateShape",tesselateShape,1},
    {"tess_shape",tess_shape,1},

    {"createPlane" , createPlane, 1},
    {"best_fit_test", best_fit_test,1},
    {"best_fit_complete", best_fit_complete,1},
    {"best_fit_coarse", best_fit_coarse ,1},
    {"createBox" , createBox, 1},
    {"spring_back", spring_back, 1},
    {"useMesh" , useMesh, Py_NEWARGS, "useMesh(MeshObject) -- Shows the usage of Mesh objects from the Mesh Module." },
    
    {"openDYNA" , openDYNA, Py_NEWARGS, "Open up a DYNA file, triangulate it, and returns a mesh"},
    {NULL     , NULL      }        
}

Definition at line 4226 of file AppCamPy.cpp.

Referenced by initCam().


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