Skip to content

Commit 2e4cebb

Browse files
authored
Projection: Silence VTK logging (#121)
1 parent 550f7b7 commit 2e4cebb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/Projection/Projection.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <vtkAppendPolyData.h>
1515
#include <vtkCleanPolyData.h>
1616
#include <vtkCutter.h>
17+
#include <vtkLogger.h>
1718
#include <vtkPlane.h>
1819
#include <vtkSmartPointer.h>
1920
#include <vtkStripper.h>
@@ -85,6 +86,9 @@ auto main(int argc, char* argv[]) -> int
8586
return EXIT_FAILURE;
8687
}
8788

89+
// only print VTK warnings or errors
90+
vtkLogger::SetStderrVerbosity(vtkLogger::VERBOSITY_WARNING);
91+
8892
// Get options
8993
vc::ProjectionSettings projectionSettings;
9094
auto meshPaths = parsed["input-mesh"].as<std::vector<std::string>>();

0 commit comments

Comments
 (0)