[vtkusers] urgent doubt!!!!!

Moreland, Kenneth kmorel at sandia.gov
Mon Apr 28 14:33:39 EDT 2003


It sounds like you have not included the vtkUnstructuredGrid.h header file,
which defines the full prototype for the class.  Once the compiler knows
that vtkUnstructuredGrid inherits from vtkDataSet, it should make the cast
for you.

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********  
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 844-9297

> -----Original Message-----
> From: "marisa aurelio" <asiram00 at hotmail.com>
> To: vtkusers at public.kitware.com
> Date: Mon, 28 Apr 2003 08:54:31 +0000
> Subject: [vtkusers] urgent doubt!!!!!
> 
> Hi vtkUsers,
> 
> I have this piece of code:
> 
> vtkDelaunay3D *del = vtkDelaunay3D::New();
> del->SetInput(profile);
> del->SetTolerance(0.05);
> del->SetAlpha(0.05);
> del->BoundingTriangulationOff();
> 
> vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> map->SetInput(del->GetOutput());*/
> 
> vtkDataSetMapper *map = vtkDataSetMapper::New();
> map->SetInput(del->GetOutput()); (here is the error)
> 
> But I have an error:
> error C2664: 'SetInput' : cannot convert parameter 1 from 'class 
> vtkUnstructuredGrid *' to 'class vtkDataSet *'
> 
> 
> How can I do it???
> 
> Thanks
> 
> Marisa
> 
> 
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
> http://join.msn.com/?page=features/virus
> 




More information about the vtkusers mailing list