Skip to content

Commit

Permalink
Convert extract VOI input warnings to debug output.
Browse files Browse the repository at this point in the history
If the VOI doesn't overlap the extent of the input block/dataset, a
warning about the input being invalid is issued. This happens by
default in ParaView if the input VOI doesn't include [0,0,0].

Make this noisy warning debug only, matching the behavior of
`vtkExtractGrid`.
  • Loading branch information
aronhelser committed Oct 24, 2022
1 parent ff72560 commit 43976a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Filters/Extraction/vtkExtractRectilinearGrid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int vtkExtractRectilinearGrid::RequestInformation(

if (!this->Internal->IsValid())
{
vtkWarningMacro("Error while initializing filter.");
vtkDebugMacro("Error while initializing filter.");
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion Imaging/Core/vtkExtractVOI.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int vtkExtractVOI::RequestInformation(vtkInformation* vtkNotUsed(request),

if (!this->Internal->IsValid())
{
vtkWarningMacro("Error while initializing filter.");
vtkDebugMacro("Error while initializing filter.");
return 0;
}

Expand Down

0 comments on commit 43976a1

Please sign in to comment.