[vtkusers] Compile time checking and new pipeline

John Platt jcplatt at dsl.pipex.com
Mon Apr 17 18:13:50 EDT 2006


Hi all,

 

I had forgotten that vtkThreshold gives vtkUnstructuredGrid as output.
So, at VTK4

 

   vtkPolyDataMapper->SetInput( vtkThresholdFilter->GetOutput() );

 

gives (VS6)

 

'SetInput' : cannot convert parameter 1 from 'class vtkUnstructuredGrid
*' to 'class vtkPolyData *'

 

- a useful reminder.

 

At VTK5

 

  vtkPolyDataMapper->SetInputConnection(
vtkThresholdFilter->GetOutputPort() );

 

gives no compile time error but fails during execution with an access
violation - not so friendly.

 

Could a bit more flavour be given to vtkAlgorithmOutput to trap this
kind of error?

 

Thanks.

 

John.

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060417/420f94d5/attachment.htm>


More information about the vtkusers mailing list