<div dir="ltr">I want display a combination of vtkPolyData. Some of theses are vtkCellArray and some other are vtkPolyLine.<div>As I want individual selection I create a mapper and an actor by vtkPolyData, example for vtkPolyLine:</div>
<div><div>// Create a cell array to store the lines in and add the lines</div><div> vtkSmartPointer<vtkCellArray> edgeCellData;</div><div> edgeCellData = vtkSmartPointer<vtkCellArray>::New();</div><div> edgeCellData->InsertNextCell(polyLine);</div>
<div><br></div><div> // Create a polydata to store everything in</div><div> vtkSmartPointer<vtkPolyData> edgePolyData;</div><div> edgePolyData = vtkSmartPointer<vtkPolyData>::New();</div><div> edgePolyData->SetPoints(edgePts);</div>
<div> edgePolyData->SetLines(edgeCellData);</div><div><br></div><div> // Setup actor and mapper</div><div> vtkSmartPointer<vtkPolyDataMapper> edgeMapper;</div><div> edgeMapper = vtkSmartPointer<vtkPolyDataMapper>::New();</div>
<div> edgeMapper->SetInput(edgePolyData); </div><div> edgeMapper->ScalarVisibilityOff();</div><div> edgeMapper->Update();</div><div><br></div><div> vtkSmartPointer<vtkActor> edgeActor;</div><div>
edgeActor = vtkSmartPointer<vtkActor>::New();</div><div> edgeActor->SetMapper(edgeMapper);</div><div> edgeActor->SetPickable(true);</div><div> edgeActor->GetProperty()->SetColor(1.0, 1.0, 1.0);</div>
<div> edgeActor->Modified();</div><div><br></div><div>For coincident topology I use: vtkPolyDataMapper::SetResolveCoincidentTopologyToPolygonOffset().</div><div><br></div><div><br></div><div>If I use vtkAssembly coincident topology are correctly handled but the render time is long.</div>
<div>If I use vtkPropAssembly coincident topology is not correctly handled (edge and poly overlap) but render time is good.</div><div><br></div><div>My question is how to manage the display of multiple vtkCellArray and vtkPolyLine, with individual selection capability and coincident topology display management?</div>
<div><br></div><div>Thanks in advance for the help.<br><br><div dir="ltr"><div><b><font color="#0b5394"></font></b></div></div>
<div>Nathanaƫl</div></div></div></div>