Implementing new Alignment approach

This commit is contained in:
jriegel
2013-07-11 00:19:46 +02:00
parent d71fd39987
commit 2ceade5528
4 changed files with 35 additions and 5 deletions

View File

@@ -27,6 +27,7 @@
#endif
#include "FemMeshObject.h"
#include "FemMesh.h"
#include <App/DocumentObjectPy.h>
#include <Base/Placement.h>
@@ -62,4 +63,10 @@ PyObject *FemMeshObject::getPyObject()
void FemMeshObject::onChanged(const Property* prop)
{
App::GeoFeature::onChanged(prop);
// if the placement has changed apply the change to the mesh data as well
if (prop == &this->Placement) {
const_cast<Fem::FemMesh&>(this->FemMesh.getValue()).setTransform(this->Placement.getValue().toMatrix());
}
}