Skip to content

Commit

Permalink
Projection: Silence VTK logging (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
csparker247 authored Feb 26, 2025
1 parent 550f7b7 commit 2e4cebb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/Projection/Projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <vtkAppendPolyData.h>
#include <vtkCleanPolyData.h>
#include <vtkCutter.h>
#include <vtkLogger.h>
#include <vtkPlane.h>
#include <vtkSmartPointer.h>
#include <vtkStripper.h>
Expand Down Expand Up @@ -85,6 +86,9 @@ auto main(int argc, char* argv[]) -> int
return EXIT_FAILURE;
}

// only print VTK warnings or errors
vtkLogger::SetStderrVerbosity(vtkLogger::VERBOSITY_WARNING);

// Get options
vc::ProjectionSettings projectionSettings;
auto meshPaths = parsed["input-mesh"].as<std::vector<std::string>>();
Expand Down

0 comments on commit 2e4cebb

Please sign in to comment.