Skip to content

Commit

Permalink
[FEM] fix line filter resolution
Browse files Browse the repository at this point in the history
- when the resolution changes, the data must be refreshed for visualization and the plot
  • Loading branch information
donovaly committed Jun 12, 2022
1 parent 8bbf9b8 commit 4813e30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Fem/Gui/TaskPostBoxes.cpp
Expand Up @@ -729,6 +729,12 @@ void TaskPostDataAlongLine::point2Changed(double) {
void TaskPostDataAlongLine::resolutionChanged(int val) {

static_cast<Fem::FemPostDataAlongLineFilter*>(getObject())->Resolution.setValue(val);
// recompute the feature
static_cast<Fem::FemPostDataAlongLineFilter*>(getObject())->recomputeFeature();
// axis data must be refreshed
static_cast<Fem::FemPostDataAlongLineFilter*>(getObject())->GetAxisData();
// eventually a full recompute is necessary
getView()->getObject()->getDocument()->recompute();
}

void TaskPostDataAlongLine::pointCallback(void* ud, SoEventCallback* n)
Expand Down

0 comments on commit 4813e30

Please sign in to comment.