<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br><br>I'm trying to cut un polydata using vtkClipPolyData with a vtkBox as implicit function.<br><br>my Polydata is simply a rectangle (x = 100, y = 50, z= 20). I'd like to cut this rectangle to obtain<br>only the part of the middle.. (so i'd like to cut to a right side AND a left side...)<br><br>here is the code<br><br>&nbsp;vtkBox * cuting = vtkBox::New();<br>&nbsp; double boundy[6];<br><br>&nbsp; //m_image is a vtkImageData that represent a cube (my rectangle polydata interect this cube, so the bounds should be correct...)<br>&nbsp; m_image-&gt;GetBounds(boundy);<br><br>&nbsp; cuting-&gt;SetBounds(boundy);<br>&nbsp;<br>vtkClipPolyData * clipper = vtkClipPolyData::New();<br>clipper-&gt;SetInput(newPolyData);<br>clipper-&gt;SetClipFunction(cuting);<br><br>// and then I display clipper-&gt;GetOutput...<br><br>the thing is that i tried with vtkPlane and it works... but the problem is that i need if a use<br>vtkPlane I can cut only One side....<br><br><br>any help would be appreciated,<br>Than's<br><br>Adeline<br>                                               <br /><hr />Windows 7 : Trouvez le PC qui vous convient! <a href='http://clk.atdmt.com/FRM/go/181574577/direct/01/' target='_new'>Découvrez notre offre ! </a></body>
</html>