<html><head><base href="x-msg://42/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Adeline,<div><br></div><div>So, are you seeing nothing when you render your scene? One thing to be careful of when using a box for your clip function is which direction the default normals of the box faces point -- this defines whether the clip leaves the inside intact or cuts out the inside of the box. Maybe this isn't the problem you're having, but you could try setting&nbsp;</div><div><br></div><div>clipper-&gt;InsideOutOn();</div><div><br></div><div>and see if anything shows up.</div><div><br></div><div>Otherwise, there are examples of clipping with the vtkBoxWidget and it's GetPlanes method in {vtksource}/Widgets/Testing/Cxx/BoxWidget.cxx and {vtksource}/Examples/GUI/Python/BoxWidget.py in case those could help you track down the problem or approach it in another way.&nbsp;</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br></div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></span></div><br><div><div>On Jan 14, 2010, at 12:29 PM, Adeline Joliet wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">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!<span class="Apple-converted-space">&nbsp;</span><a href="http://clk.atdmt.com/FRM/go/181574577/direct/01/" target="_new">Découvrez notre offre !</a>_______________________________________________<br>Powered by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at:<a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div></span></blockquote></div><br></div></body></html>