[FEM] handle Elmer result mesh zoom properly

- also fix an issue that after a successful simulation, no result was visible
This commit is contained in:
Uwe
2022-03-24 22:01:45 +01:00
parent 32c46fa98a
commit 80a828af39
2 changed files with 4 additions and 7 deletions

View File

@@ -428,13 +428,6 @@ void ViewProviderFemPostObject::WritePointData(vtkPoints* points, vtkDataArray*
if (!points)
return;
// if the object contains "Elmer" but no scale has been set, we set it to 1000.0
// because for Elmer we work with SI units and thus get a scaled result we need to transform
auto Label = std::string(pcObject->Label.getValue());
auto found = Label.find(std::string("Elmer"));
if (found != std::string::npos && strcmp(Scale.getValueAsString(), "1000") != 0)
Scale.setValue("1000");
// we must inherit the Scale of parent meshes (for example for clip filters)
auto parents = pcObject->getInList();
if (parents.size()) {