[vtkusers] vtkUnstructuredGrid problem in Linux

Berk Geveci berklist at nycap.rr.com
Fri Nov 7 11:29:15 EST 2003


Did you try #including the header for unstructured grid?

On Fri, 2003-11-07 at 11:14, Todd Schneider wrote:
> Hi everyone, I recently switched from using VTK with .NET 2003 to using
> Linux with gcc 3.2.2.  Now when I run this sample line of code that used
> to work fine in .NET, I get the error:
> 
> no matching function for call to `vtkGeometryFilter::
>    SetInput(vtkUnstructuredGrid*)'
> /vtkDataSetToPolyDataFilter.h:44: candidates are:
>    virtual void vtkDataSetToPolyDataFilter::SetInput(vtkDataSet*)
> 
> The code is
> 
>    vtkDelaunay3D *shell = vtkDelaunay3D::New();
>    shell->SetInput(inputDataSet);
>    shell->SetTolerance(2);
>    shell->SetAlpha(alpha_input);
>    shell->BoundingTriangulationOff();
> 
>    vtkGeometryFilter *extract_poly_data = vtkGeometryFilter::New();
>    extract_poly_data->SetInput(shell->GetOutput());
> 
> The output of shell is a vtkUnstructuredGrid, which IS a vtkDataSet, so
> I don't quite see how to fix this problem...any thoughts? Thanks for the
> help!
> 
> Todd
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-- 
Berk Geveci <berklist at nycap.rr.com>




More information about the vtkusers mailing list