[vtkusers] urgent doubt!!!!!

R K Shyamprakash ramakrishna.prakash at quest-global.com
Mon Apr 28 05:06:50 EDT 2003


you should type cast the data explicitly.

vtkDataSet *dataset = (vtkDataSet)del->GetOutput();

vtkDataSetMapper *map = vtkDataSetMapper::New();
map->SetInput(dataset);

I think this should work.

regards
shyam

-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of marisa aurelio
Sent: Monday, April 28, 2003 2:25 PM
To: vtkusers at public.kitware.com
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

_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list