Hello,<br><br>I have a trouble with vtkClipPolyData class.<br><br>I am trying to use a box (vtkBoxWidget2) to simulate a finite plane (with boundaries) with thickness to cut a model (vtkPolyData).<br><br>It is working quite good when triangles in the model are smaller than the thickness of my plan, but, as I need a 1mm plane, some triangles are bigger than the thickness (none of the points of the triangles are inside my box), so when I clipped this triangles are not clipped because they (the lines of the triangles) are just going through my box.<br>
<br>I look at the vtkClipPolyData source code, and it seems the number of points (dimension) of the triangles inside the box is used to define how to clip, but as I explained, points of my bigger triangles are not in the plane, so they are not clipped.<br>
<br>Do you know if there a way to get around this problem ? refining triangles, cut triangles with lines in the plane, etc... ? I tried to use a function to refine triangle before (vtkButterflySubdivisionFilter), but it was really too long (hours) and triangles was still not small enough to fit in the plane.<br>
<br>Thank you very much.<br>Laurent.<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>