Commit 38c54bc7 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Emliminated flickering between edgges and surface

Change-Id: I80b4835c59243dd297672c4954679c21744ac0a6
parent 2d44b2c9
......@@ -46,6 +46,8 @@ int TestCubeAxes2DMode( int argc, char * argv [] )
vtkSmartPointer<vtkPolyDataMapper> planeMapper
= vtkSmartPointer<vtkPolyDataMapper>::New();
planeMapper->SetInputConnection( plane->GetOutputPort() );
planeMapper->SetResolveCoincidentTopologyPolygonOffsetParameters( 0, 1 );
planeMapper->SetResolveCoincidentTopologyToPolygonOffset();
// Create plane actor
vtkSmartPointer<vtkActor> planeActor
......@@ -57,6 +59,8 @@ int TestCubeAxes2DMode( int argc, char * argv [] )
vtkSmartPointer<vtkPolyDataMapper> edgeMapper
= vtkSmartPointer<vtkPolyDataMapper>::New();
edgeMapper->SetInputConnection( plane->GetOutputPort() );
edgeMapper->SetResolveCoincidentTopologyPolygonOffsetParameters( 1, 1 );
edgeMapper->SetResolveCoincidentTopologyToPolygonOffset();
// Create edge actor
vtkSmartPointer<vtkActor> edgeActor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment