<div dir="ltr"><div><div><div></div>Hello,<br><br></div>iam trying to cut plygonal data but result is not good.<br><div><div><div><div><br>Here is image of result of cutting multiple polydatas:<br><a href="http://i58.tinypic.com/2lcqlwl.png">http://i58.tinypic.com/2lcqlwl.png</a> <br>
</div><div><br></div><div>Why i have multicolored polygons even if i set SetColor property to actor?<br></div><div>I need to have only one color actor for each polydata cut...<br></div></div></div></div><br></div><div>Please help!<br>
<br></div><div>My code of cutting polydata:<br></div><br>vtkSmartPointer<vtkCutter> cutter = vtkSmartPointer<vtkCutter>::New();<br>cutter->SetInputData(polyData);<br>cutter->SetCutFunction(plane);<br><br>
vtkSmartPointer<vtkStripper> stripper = vtkSmartPointer<vtkStripper>::New();<br>stripper->SetInputConnection(cutter->GetOutputPort());<br><br>vtkSmartPointer<vtkPolyDataMapper> cutMapper = vtkSmartPointer<vtkPolyDataMapper>::New();<br>
cutMapper->SetInputConnection( stripper->GetOutputPort() );<br>cutMapper->ScalarVisibilityOff();<br><br>vtkSmartPointer<vtkActor> cutActor = vtkSmartPointer<vtkActor>::New();<br>cutActor->SetMapper( cutMapper );<br>
cutActor->GetProperty()->SetColor( color[0], color[1], color[2] );<br><br><br><div><div><div><br></div></div></div></div>