#include "PreCompiled.h"
#include <Python.h>
#include <memory>
#include <Base/Console.h>
#include <Base/VectorPy.h>
#include <Base/PlacementPy.h>
#include <App/Application.h>
#include <App/Document.h>
#include <App/DocumentObject.h>
#include <App/DocumentObjectPy.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include <Mod/Mesh/App/Core/Evaluation.h>
#include <Mod/Mesh/App/Core/Iterator.h>
#include <SMESH_Gen.hxx>
#include <SMESH_Group.hxx>
#include <SMESHDS_Mesh.hxx>
#include <SMDS_MeshNode.hxx>
#include <StdMeshers_MaxLength.hxx>
#include <StdMeshers_LocalLength.hxx>
#include <StdMeshers_NumberOfSegments.hxx>
#include <StdMeshers_AutomaticLength.hxx>
#include <StdMeshers_TrianglePreference.hxx>
#include <StdMeshers_MEFISTO_2D.hxx>
#include <StdMeshers_Deflection1D.hxx>
#include <StdMeshers_MaxElementArea.hxx>
#include <StdMeshers_Regular_1D.hxx>
#include <StdMeshers_QuadranglePreference.hxx>
#include <StdMeshers_Quadrangle_2D.hxx>
#include <StdMeshers_LengthFromEdges.hxx>
#include <StdMeshers_NotConformAllowed.hxx>
#include <StdMeshers_Arithmetic1D.hxx>
#include "FemMesh.h"
#include "FemMeshObject.h"
#include "FemMeshPy.h"
#include <cstdlib>
#include <Standard_Real.hxx>
#include "Base/Vector3D.h"
Go to the source code of this file.
Functions | |
static PyObject * | calcMeshVolume (PyObject *self, PyObject *args) |
static PyObject * | checkBB (PyObject *self, PyObject *args) |
static PyObject * | exporter (PyObject *self, PyObject *args) |
static PyObject * | getBoundary_Conditions (PyObject *self, PyObject *args) |
static PyObject * | import_NASTRAN (PyObject *self, PyObject *args) |
static PyObject * | importer (PyObject *self, PyObject *args) |
static PyObject * | minBoundingBox (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 * | SMESH_PCA (PyObject *self, PyObject *args) |
Variables | |
struct PyMethodDef | Fem_methods [] |
Definition at line 158 of file AppFemPy.cpp.
References FemExample::b, Fem::FemMeshPy::getFemMeshPtr(), Fem::FemMesh::getSMesh(), Py::new_reference_to(), PY_CATCH, Py_Return, PY_TRY, Base::Vector3< _Precision >::Set(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 295 of file AppFemPy.cpp.
References Fem::FemMeshPy::getFemMeshPtr(), Fem::FemMesh::getSMesh(), Py::new_reference_to(), Py_Return, Base::Vector3< _Precision >::Set(), Base::Placement::toMatrix(), and Base::PlacementPy::Type.
Definition at line 964 of file AppFemPy.cpp.
References Py::SeqBase< T >::begin(), Py::SeqBase< T >::end(), draftlibs::dxfReader::filename, Base::Type::fromName(), App::PropertyContainer::getTypeId(), Base::Type::isDerivedFrom(), PY_CATCH, Py_Return, PY_TRY, and App::DocumentObjectPy::Type.
Definition at line 341 of file AppFemPy.cpp.
References MeshCore::MeshFacet::_aulPoints, MeshCore::MeshKernel::Adopt(), Py::List::append(), draftlibs::fcvec::dist(), Mesh2Shape::faces, FLOAT_MAX, MeshCore::MeshKernel::GetBoundBox(), Fem::FemMeshPy::getFemMeshPtr(), Fem::FemMesh::getSMesh(), Base::Vector3< _Precision >::Length(), Base::BoundBox3< _Precision >::MaxX, Base::BoundBox3< _Precision >::MaxY, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, Base::BoundBox3< _Precision >::MinZ, Py::new_reference_to(), PY_CATCH, Py_Return, PY_TRY, Base::Vector3< _Precision >::Set(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 608 of file AppFemPy.cpp.
References MeshCore::MeshFacet::_aulPoints, MeshCore::MeshKernel::Assign(), FemExample::b, MeshCore::MeshPointIterator::Begin(), MeshCore::MeshKernel::Clear(), MeshCore::MeshEigensystem::Evaluate(), Mesh2Shape::faces, MeshCore::MeshKernel::GetBoundBox(), importOCA::getline(), Base::Matrix4D::inverse(), Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), Base::BoundBox3< _Precision >::LengthZ(), Mesh2Shape::mesh, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, Base::BoundBox3< _Precision >::MinZ, MeshCore::MeshPointIterator::More(), MeshCore::MeshPointIterator::Next(), KDL::PI, PY_CATCH, Py_Return, PY_TRY, Base::Rotation::setValue(), MeshCore::MeshKernel::Transform(), MeshCore::MeshEigensystem::Transform(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 574 of file AppFemPy.cpp.
References App::Document::addObject(), Fem::FemMeshObject::FemMesh, DrawingExample::file, Base::FileInfo::fileNamePure(), App::Application::getActiveDocument(), App::GetApplication(), App::Application::getDocument(), App::DocumentObject::Label, Mesh2Shape::mesh, App::Application::newDocument(), App::DocumentObject::purgeTouched(), PY_CATCH, Py_Return, PY_TRY, and Fem::PropertyFemMesh::setValuePtr().
Definition at line 450 of file AppFemPy.cpp.
References MeshCore::MeshFacet::_aulPoints, MeshCore::MeshKernel::Adopt(), MeshCore::MeshKernel::Clear(), Mesh2Shape::faces, MeshCore::MeshKernel::GetBoundBox(), Fem::FemMeshPy::getFemMeshPtr(), Fem::FemMesh::getSMesh(), Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), Base::BoundBox3< _Precision >::LengthZ(), Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, Base::BoundBox3< _Precision >::MinZ, KDL::PI, PY_CATCH, Py_Return, PY_TRY, Base::Vector3< _Precision >::Set(), Base::Rotation::setValue(), MeshCore::MeshKernel::Transform(), Fem::FemMesh::transformGeometry(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 95 of file AppFemPy.cpp.
References App::Document::addObject(), Fem::FemMeshObject::FemMesh, DrawingExample::file, Base::FileInfo::fileNamePure(), App::GetApplication(), App::DocumentObject::Label, Mesh2Shape::mesh, App::Application::newDocument(), App::DocumentObject::purgeTouched(), PY_CATCH, Py_Return, PY_TRY, and Fem::PropertyFemMesh::setValuePtr().
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 74 of file AppFemPy.cpp.
References Mesh2Shape::mesh, PY_CATCH, Py_Return, and PY_TRY.
Definition at line 119 of file AppFemPy.cpp.
References MeshCore::MeshFacet::_aulPoints, MeshCore::MeshKernel::Adopt(), MeshCore::MeshEigensystem::Evaluate(), Mesh2Shape::faces, Fem::FemMeshPy::getFemMeshPtr(), Fem::FemMesh::getSMesh(), PY_CATCH, Py_Return, PY_TRY, Base::Vector3< _Precision >::Set(), MeshCore::MeshEigensystem::Transform(), and Fem::FemMesh::transformGeometry().
struct PyMethodDef Fem_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."}, {"calcMeshVolume", calcMeshVolume, Py_NEWARGS, "Calculate Mesh Volume for C3D10"}, {"getBoundary_Conditions" , getBoundary_Conditions, Py_NEWARGS, "Get Boundary Conditions for Residual Stress Calculation"}, {"SMESH_PCA" , SMESH_PCA, Py_NEWARGS, "Get a Matrix4D related to the PCA of a Mesh Object"}, {"import_NASTRAN",import_NASTRAN, Py_NEWARGS, "Test"}, {"minBoundingBox",minBoundingBox,Py_NEWARGS,"Minimize the Bounding Box and reorient the mesh to the 1st Quadrant"}, {"checkBB",checkBB,Py_NEWARGS,"Check if the nodal z-values are still in the prescribed range"}, {NULL, NULL} }
Definition at line 1001 of file AppFemPy.cpp.
Referenced by initFem().