[vtkusers] Retrieve data after cut
Guido Ioele
g.ioele at mail-arts.sssup.it
Thu Aug 31 11:54:21 EDT 2000
Hi all,
I want to retrieve the isocontour generated from vtkCutter because
want to process as single polylines (for ex. to make visible only
one).How can I do? It follows my example code to explain better the
case.
I'm sorry for my poor english.
.........
vtkConeSource *cone = vtkConeSource::New();
cone->SetResolution(16);
cone->SetRadius(3.0);
cone->SetHeight(7.0);
vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
coneMapper->SetInput(cone ->GetOutput());
vtkActor *coneActor = vtkActor::New();
coneActor->SetMapper(coneMapper);
coneActor->GetProperty()->SetColor(1.0,0,0);
// create plane for cutting
vtkPlane *plane=vtkPlane::New();
plane->SetNormal(1.0,0.0,0.0);
vtkCutter *cut=vtkCutter::New();
cut->SetInput(cone->GetOutput());
cut->SetCutFunction(plane);
cut->GenerateValues(15,-3.0,10.0);
vtkStripper *strip=vtkStripper::New();
strip->SetInput(cut->GetOutput());
and now?
Thanks for your attention
--
**********************************
Guido Ioele
Electronic Engineer
Centro INAIL RTR
Via della Vetraia 7
55049 Viareggio (LU)
Italy
Voice: +39-0584-385371
Fax: +39-0584-385359
E-mail: g.ioele at mail-arts.sssup.it
**********************************
More information about the vtkusers
mailing list