Hello,<br><br>I was using vtkPlanes, and I needed to retrieve 2 planes (number 4 and 5).<br><br>When I was using:<br><br>planes->GetPlane(5) and planes->GetPlane(4) <br><br>and using this as argument for clipping, like this:<br>
<br>clip->SetClipFunction(planes->GetPlane(5));<br>clip2->SetClipFunction(planes->GetPlane(4));<br><br>But, when I was not doing clip2, everything was working good, but after adding clip2, my first clip changed and become the same as the clip2.<br>
<br>So, I try this insted:<br><br>vtkPlane* plane1 = vtkPlane::New();<br>planes->GetPlane(4, plane1);<br><br>vtkPlane* plane2 = vtkPlane::New();<br>planes->GetPlane(5, plane2);<br><br>clip->SetClipFunction(plane1);<br>
clip2->SetClipFunction(plane2);<br><br>And it works.<br>I don't really understand. Is there shared memory in these classes (vtkPlanes, vtkClipPolyData) ?<br>I was thinking the vtkClipPolyData output was shared, so the clip2 write in the same place than the clip, which could explain why they are the same after second clipping.<br>
<br>Thank you.<br>Laurent.<br><br clear="all"><br>-- <br><div>Laurent Chauvin, MS</div><div>Surgical Planning Laboratory, Radiology</div><div>Brigham And Women's Hospital, Harvard Medical School<br></div><div><a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a></div>
<br>