[vtkusers] vtkDelauny3D to vtkDataSetMapper

marisa aurelio asiram00 at hotmail.com
Wed Apr 23 12:39:34 EDT 2003


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();

//# Shrink the result to help see it better.
vtkShrinkFilter *shrink = vtkShrinkFilter::New();
shrink->SetInput(del->GetOutput()); //1st error
shrink->SetShrinkFactor(1);

vtkDataSetMapper *map = vtkDataSetMapper::New();
map->SetInput(shrink->GetOutput()); //2nd error

vtkActor *triangulation = vtkActor::New();
triangulation->SetMapper(map);
(triangulation->GetProperty())->SetColor(1, 0, 0);

But I have 2 erros:
--- error C2664: 'SetInput' : cannot convert parameter 1 from 'class 
vtkUnstructuredGrid *' to 'class vtkDataSet *'
        Types pointed to are unrelated; conversion requires 
reinterpret_cast, C-style cast or function-style cast

--- error C2664: 'SetInput' : cannot convert parameter 1 from 'class 
vtkUnstructuredGrid *' to 'class vtkDataSet *'

What can I do to resolve it???

Thanks in advance.

Marisa

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus




More information about the vtkusers mailing list