<div>Hi everybody,</div> <div> </div> <div>I have problems with maping - why is StucturedGrid not as a DataSet recognized? </div> <div> </div> <div>Here are the errors :</div> <div>Delaunay1.cxx: In function `int main(int, char**)':<BR>Delaunay1.cxx:75: error: `GetOutputPort' undeclared (first use this function)<BR>Delaunay1.cxx:75: error: (Each undeclared identifier is reported only once for <BR> each function it appears in.)<BR>Delaunay1.cxx:76: error: no matching function for call to `vtkDataSetMapper::<BR> SetInput(vtkUnstructuredGrid*&)'<BR>/share/lpckg/vtk/include/vtk/vtkDataSetMapper.h:59: error: candidates are: void <BR> vtkDataSetMapper::SetInput(vtkDataSet*)<BR>make: *** [Delaunay1.o] Error 1<BR></div> <div> </div> <div>Here is my code: </div> <div> </div> <div><BR>vtkDelaunay3D *delny =
vtkDelaunay3D::New();<BR>delny->SetInput(profile);<BR>delny->SetTolerance(0.01);<BR>delny->SetAlpha(0.2);<BR>delny->BoundingTriangulationOff();<BR>vtkUnstructuredGrid *ugrid=delny->GetOutput();</div> <div>//static_cast<vtkDataSet>(ugrid);<BR>//dynamic_cast<vtkDataSet*>(ugrid);<BR>//reinterpret_cast<vtkDataSet*>(ugrid);</div> <div>// Shrink the result to help see it better.<BR>vtkShrinkFilter* shrink = vtkShrinkFilter::New();</div> <div>shrink->SetShrinkFactor(0.9);</div> <div>//shrink->SetInputConnection(0, ugrid);</div> <div>vtkDataSetMapper *map = vtkDataSetMapper::New();<BR>map->SetInput(shrink->GetOutputPort());<BR>map->SetInput(*ugrid); /// !!!</div> <div> </div> <div> </div> <div>By the way, the ShrinkFilter does not work either. </div> <div> </div> <div>Thanks in advance,</div> <div>Miruna</div> <div> </div><p> 
                <hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.