[vtkusers] Get the outline edge of any 3d object

Sylvain Jaume sylvain.jaume at kitware.com
Tue Nov 29 11:39:14 EST 2005


Hi Gilbert,

Have you tried vtkFeatureEdges and played with SetFeatureAngle?
http://www.vtk.org/doc/nightly/html/classvtkFeatureEdges.html
Don't cast the input to vtkDataSet.

Cheers,
Sylvain

Gilbert Mensah wrote:

>HI everyone,
>
>I am new to vtk and i'm trying to get the outline
>edges of any 3d object in VTK.I tried using the
>edgeExtractor but nothing shows up on the screen when
>i run my code,i tried an outline filter works,but just
>creates a rectangular outline around any model.Can
>anybody help me out...here is my outline filter code
>
>
>outlinefilter->SetInput((vtkDataSet
>*)reader1->GetOutput());
>outlineMapper->SetInput(outlinefilter->GetOutput());
>outlineActor->SetMapper(outlineMapper);
>outlineActor->GetProperty()->SetColor(0,1,0); 
>outlineActor->GetProperty()->SetAmbient( 0 ); 
>
>-Gilbert 
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>  
>



More information about the vtkusers mailing list