[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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user