[FEM] fix warp filter factor

- since our mesh is in mm, we must multiply the set factor by 1000 to get the real factor. This applies also for pipelines from CCX results.
Now the factor fits with the factor one can set in the CCX results dialog
This commit is contained in:
Uwe
2022-08-08 12:20:47 +02:00
parent 617f213d2f
commit 515584c81b

View File

@@ -597,7 +597,8 @@ DocumentObjectExecReturn* FemPostWarpVectorFilter::execute() {
void FemPostWarpVectorFilter::onChanged(const Property* prop) {
if (prop == &Factor)
m_warp->SetScaleFactor(Factor.getValue());
// since our mesh is in mm, we must scale the factor
m_warp->SetScaleFactor(1000 * Factor.getValue());
else if (prop == &Vector && (Vector.getValue() >= 0))
m_warp->SetInputArrayToProcess(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_POINTS, Vector.getValueAsString());