[vtkusers] about example on page 126(VTK user's guide)

Amy Squillacote amy.squillacote at kitware.com
Mon Dec 4 08:29:09 EST 2006


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

jere ju wrote:
>  vtkWarpScalar *warp = vtkWarpScalar::New();
>  warp->SetInput(geometry->GetOutput());
>  warp->SetScaleFactor(0.005);
>  
> i rewrote the code in vc++,but it show error like this:
> error C2664: 'SetInput' : cannot convert parameter 1 from 'class 
> vtkPolyData *' to 'class vtkPointSet *'
>         Types pointed to are unrelated; conversion requires 
> reinterpret_cast, C-style cast or function-style cast
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   



More information about the vtkusers mailing list