Allow seting of transformation without copy the mesh
This commit is contained in:
parent
5f918b3049
commit
2061c21115
|
@ -35,6 +35,7 @@
|
|||
#include <Base/Exception.h>
|
||||
#include <Base/FileInfo.h>
|
||||
#include <Base/Stream.h>
|
||||
#include <Base/PlacementPy.h>
|
||||
|
||||
#include "FemMeshProperty.h"
|
||||
#include "FemMeshPy.h"
|
||||
|
@ -110,6 +111,10 @@ void PropertyFemMesh::setPyObject(PyObject *value)
|
|||
FemMeshPy *pcObject = static_cast<FemMeshPy*>(value);
|
||||
setValue(*pcObject->getFemMeshPtr());
|
||||
}
|
||||
else if (PyObject_TypeCheck(value, &(Base::PlacementPy::Type))) {
|
||||
Base::PlacementPy *pcObject = static_cast<Base::PlacementPy*>(value);
|
||||
transformGeometry(pcObject->getPlacementPtr()->toMatrix());
|
||||
}
|
||||
else {
|
||||
std::string error = std::string("type must be 'FemMesh', not ");
|
||||
error += value->ob_type->tp_name;
|
||||
|
|
Loading…
Reference in New Issue
Block a user