Skip to content

Commit

Permalink
use preprocessor macro to build with vtk 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 21, 2016
1 parent 7716e94 commit 26c635a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Fem/App/FemPostFilter.cpp
Expand Up @@ -210,8 +210,11 @@ FemPostDataAlongLineFilter::FemPostDataAlongLineFilter(void) : FemPostFilter() {
m_probe->SetValidPointMaskArrayName("ValidPointArray");
m_probe->SetPassPointArrays(1);
m_probe->SetPassCellArrays(1);
// needs vtk > 6.1
#if (VTK_MAJOR_VERSION > 6) || (VTK_MINOR_VERSION > 1)
m_probe->ComputeToleranceOff();
m_probe->SetTolerance(0.01);
#endif

clip.filterSource = m_probe;
clip.filterTarget = m_probe;
Expand Down

0 comments on commit 26c635a

Please sign in to comment.