#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.
Definition at line 236 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), PY_CATCH, Py_Return, and PY_TRY.
Definition at line 3628 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Mesh::MeshObject::getKernel(), Mesh::MeshPy::getMeshObjectPtr(), Part::TopoShapePy::getTopoShapePtr(), Mesh2Shape::mesh, PY_CATCH, Py_Return, and PY_TRY.
Definition at line 3665 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, MeshCore::MeshBuilder::AddFacet(), MeshCore::MeshGeomFacet::CalcNormal(), WireExplorer::Current(), MeshCore::MeshBuilder::Finish(), BRepAdaptor_CompCurve2::FirstParameter(), Part::TopoShapePy::getTopoShapePtr(), Handle(), WireExplorer::Init(), MeshCore::MeshBuilder::Initialize(), k, BRepAdaptor_CompCurve2::LastParameter(), WireExplorer::More(), WireExplorer::Next(), PY_CATCH, Py_Return, PY_TRY, RobotExample::t, BRepAdaptor_CompCurve2::Value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 3088 of file AppCamPy.cpp.
Definition at line 3066 of file AppCamPy.cpp.
Definition at line 460 of file AppCamPy.cpp.
Definition at line 531 of file AppCamPy.cpp.
Definition at line 4019 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Base::Builder3D::addSinglePoint(), MeshCore::MeshGeomFacet::Area(), KDL::cos(), MeshCore::MeshKernel::CountPoints(), MeshCore::MeshKernel::GetFacet(), Mesh::MeshObject::getKernel(), Mesh::MeshPy::getMeshObjectPtr(), MeshCore::MeshGeomFacet::GetNormal(), MeshCore::MeshKernel::GetPoint(), Part::TopoShapePy::getTopoShapePtr(), Mesh2Shape::mesh, KDL::PI, PY_CATCH, Py_Return, PY_TRY, Base::Builder3D::saveToFile(), Base::Vector3< _Precision >::Set(), MeshCore::MeshKernel::SetPoint(), KDL::sin(), KDL::sqrt(), Base::Vector3< _Precision >::x, MovieTool::x, Base::Vector3< _Precision >::y, MovieTool::y, and Base::Vector3< _Precision >::z.
Definition at line 124 of file AppCamPy.cpp.
References PY_CATCH, Py_Return, and PY_TRY.
Referenced by Inspection::MeshInspectGrid::AddFacet(), MeshCore::MeshFacetGrid::AddFacet(), zipios::BackBuffer::readChunk(), and MeshCore::MeshRefFacetToFacets::Rebuild().
Definition at line 353 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), PY_CATCH, and PY_TRY.
Referenced by annClusEllipsoids(), annClusOrthFlats(), FemGui::ViewProviderFemMesh::attach(), PartGui::ViewProviderPartExt::attach(), PartGui::ViewProviderPartBase::attach(), MeshGui::ViewProviderMesh::attach(), SketcherGui::SketchOrientationDialog::exec(), Part::TopoShapePy::makeOffsetShape(), Part::TopoShapePy::makeThickness(), ImageGui::ImageView::mouseDoubleClickEvent(), ImageGui::ImageView::mouseMoveEvent(), ImageGui::ImageView::mousePressEvent(), ImageGui::ImageView::mouseReleaseEvent(), offset_mesh(), Part::OffsetSurfacePy::PyInit(), Part::OffsetCurvePy::PyInit(), StrXUTF8::StrXUTF8(), ImageGui::ImageView::wheelEvent(), and XUTF8Str::XUTF8Str().
Definition at line 3284 of file AppCamPy.cpp.
References Base::Builder3D::addSingleArrow(), MeshCore::MeshGeomFacet::Area(), MeshCore::MeshKernel::CountPoints(), MeshCore::MeshKernel::GetFacet(), Mesh::MeshObject::getKernel(), Mesh::MeshPy::getMeshObjectPtr(), MeshCore::MeshGeomFacet::GetNormal(), MeshCore::MeshKernel::GetPoint(), Mesh2Shape::mesh, MeshCore::MeshKernel::MovePoint(), Base::Vector3< _Precision >::Normalize(), offset(), PY_CATCH, Py_Return, PY_TRY, Base::Builder3D::saveToFile(), Base::Vector3< _Precision >::Set(), and Base::Vector3< _Precision >::z.
Definition at line 107 of file AppCamPy.cpp.
Definition at line 3264 of file AppCamPy.cpp.
References draftlibs::dxfReader::filename, Base::BaseClass::getPyObject(), Mesh2Shape::mesh, importOCA::parse(), PY_CATCH, Py_Return, and PY_TRY.
Definition at line 140 of file AppCamPy.cpp.
Definition at line 3842 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), PY_CATCH, Py_Return, and PY_TRY.
Definition at line 3871 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Mesh::MeshObject::getKernel(), Mesh::MeshPy::getMeshObjectPtr(), Part::TopoShapePy::getTopoShapePtr(), Mesh2Shape::mesh, SpringbackCorrection::Perform(), PY_CATCH, Py_Return, and PY_TRY.
Definition at line 3918 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::getTopoShapePtr(), Mesh2Shape::mesh, PY_CATCH, Py_Return, PY_TRY, and best_fit::Tesselate_Shape().
Definition at line 153 of file AppCamPy.cpp.
References Part::TopoShape::_Shape, MeshCore::MeshBuilder::AddFacet(), MeshCore::MeshBuilder::Finish(), Part::TopoShapePy::getTopoShapePtr(), MeshCore::MeshBuilder::Initialize(), Mesh2Shape::mesh, PY_CATCH, Py_Return, PY_TRY, and Base::Vector3< _Precision >::Set().
Definition at line 3108 of file AppCamPy.cpp.
References draftlibs::dxfLibrary::copy, MeshCore::MeshKernel::CountEdges(), MeshCore::MeshKernel::CountFacets(), MeshCore::MeshKernel::CountPoints(), MeshCore::MeshKernel::GetBoundBox(), MeshCore::MeshKernel::GetFacetNeighbours(), MeshCore::MeshKernel::GetFacetPoints(), Mesh::MeshObject::getKernel(), MeshCore::MeshAlgorithm::GetMeshBorders(), Mesh::MeshPy::getMeshObjectPtr(), MeshCore::MeshKernel::GetPoint(), FemExample::m, MeshCore::MeshFacetIterator::More(), draftTools::p, PY_CATCH, Py_Return, and PY_TRY.
struct PyMethodDef Cam_methods[] |
{ {"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().