[vtkusers] Problem with 'vtkThreshold'

Amy Squillacote ahs at cfdrc.com
Wed Nov 12 13:04:11 EST 2008


Please see the following entry in the VTK FAQ: 
http://www.vtk.org/Wiki/VTK_FAQ#The_C.2B.2B_compiler_cannot_convert_some_pointer_type_to_another_pointer_type_in_my_little_program.

- Amy

Nour Mestiri wrote:
> Hi all vtk users.
> I have a problem with 'vtkThreshold' class.
> I want to use the output of a 'vtkThreshold ' as the input of a 
> 'GeometryFilter'.
> I do this:
> vtkThreshold *thresholdEdgels = vtkThreshold::New();
> ...
> ...
> vtkGeometryFilter *gf = vtkGeometryFilter::New();
> gf->SetInput(thresholdEdgels->GetOutput());
>  
> When i this this code, i have this error:
> cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 
> 'class vtkDataObject *'
>  
> How should i do to rectify this?
> Thanks a lot
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list