VTKExamples icon indicating copy to clipboard operation
VTKExamples copied to clipboard

VisualDebugging bugs.

Open ftpronk opened this issue 6 years ago • 1 comments

There are a few bugs in the VisualDebugging Cxx demo, some linked to the pipeline changes introduced in vtk 6.

  1. The angled brackets should be changed to quotes when including vtkTestFilter.h in VisualDebugging.cxx and vtkTestFilter.cxx, to change:

     #include <vtkTestFilter.h>
    

    to

     #include "vtkTestFilter.h"
    
  2. The line 35 of VisualDebugging.cxx should be modified from:

     this->Mapper->SetInput(intermediate);
    

    to

     this->Mapper->SetInputData(intermediate);
    
  3. The line 57 in vtkTestFilter.cxx should be changed from:

     appendFilter->AddInputConnection(this->Output->GetProducerPort());
    

    to

     appendFilter->AddInputData(this->Output);
    

I've attached a patch fix below.

Kind regards,

Francois.

patch.txt

ftpronk avatar Aug 30 '18 09:08 ftpronk

Thanks, I'll apply the changes.

On Thu, Aug 30, 2018, 2:24 AM ftpronk [email protected] wrote:

There are a few bugs in the VisualDebugging Cxx demo, some linked to the pipeline changes introduced in vtk 6.

The angled brackets should be changed to quotes when including vtkTestFilter.h in VisualDebugging.cxx and vtkTestFilter.cxx, to change:

#include <vtkTestFilter.h>

to

#include "vtkTestFilter.h"

The line 35 of VisualDebugging.cxx should be modified from:

this->Mapper->SetInput(intermediate);

to

this->Mapper->SetInputData(intermediate);

The line 57 in vtkTestFilter.cxx should be changed from:

appendFilter->AddInputConnection(this->Output->GetProducerPort());

to

appendFilter->AddInputData(this->Output);

I've attached a patch fix below.

Kind regards,

Francois.

patch.txt https://github.com/lorensen/VTKExamples/files/2335491/patch.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lorensen/VTKExamples/issues/233, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUFDDs0EnjduCtp5E1GAF89OIG9rXRKks5uV69kgaJpZM4WTGg- .

lorensen avatar Aug 30 '18 10:08 lorensen