+ method to get Eigensystem of mesh data
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <Base/Handle.h>
|
||||
#include <Base/Builder3D.h>
|
||||
#include <Base/GeometryPyCXX.h>
|
||||
#include <Base/MatrixPy.h>
|
||||
|
||||
#include "Mesh.h"
|
||||
#include "MeshPy.h"
|
||||
@@ -465,6 +466,18 @@ PyObject* MeshPy::transformToEigen(PyObject *args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
PyObject* MeshPy::getEigenSystem(PyObject *args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
return NULL;
|
||||
Base::Vector3d vec;
|
||||
Base::Matrix4D mat = getMeshObjectPtr()->getEigenSystem(vec);
|
||||
Py::Tuple t(2);
|
||||
t.setItem(0, Py::Matrix(mat));
|
||||
t.setItem(1, Py::Vector(vec));
|
||||
return Py::new_reference_to(t);
|
||||
}
|
||||
|
||||
PyObject* MeshPy::addFacet(PyObject *args)
|
||||
{
|
||||
double x1,y1,z1,x2,y2,z2,x3,y3,z3;
|
||||
|
||||
Reference in New Issue
Block a user