[vtkusers] Edges don't get colored ?!

De Boer Ingo I.deBoer at polytec.de
Mon Apr 28 10:52:55 EDT 2003


Hi,

I use the edge extractor filter, but when I set the color of
my corresponding actor, the edges don't chance the color?
Am I missing something ?

greets
  Ingo

// create an EdgeExtractor
vtkFeatureEdges *pvtkFeatureEdges = vtkFeatureEdges::New();
pvtkFeatureEdges->SetInput(pvtkPolyData);
pvtkFeatureEdges->ColoringOn();
pvtkFeatureEdges->BoundaryEdgesOn();
pvtkFeatureEdges->ManifoldEdgesOn();
pvtkFeatureEdges->NonManifoldEdgesOn();

// create mapper
vtkPolyDataMapper *pvtkPolyDataMapper = vtkPolyDataMapper::New();
pvtkPolyDataMapper->SetInput(pvtkFeatureEdges->GetOutput());
pvtkPolyDataMapper->SetResolveCoincidentTopologyToPolygonOffset();

// set actor
m_pvtkActorEdges->SetMapper(pvtkPolyDataMapper);
m_pvtkActorEdges->GetProperty()->SetColor(0, 0, 0.5);
m_pvtkActorEdges->VisibilityOn();

// delete objects
pvtkFeatureEdges->Delete();
pvtkPolyDataMapper->Delete();



More information about the vtkusers mailing list