You can try SetPlaneProperty() also - maybe the property isn&#39;t available to begin with?<br><br><div class="gmail_quote">On Mon, Mar 14, 2011 at 9:52 PM, Bjorn Oksnevad <span dir="ltr">&lt;<a href="mailto:boksnevad@gmail.com">boksnevad@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thank you for the reply Shash.<div><br></div><div>I am using the ActiViz which apparently does not support GetPlaneProperty(), because that threw a memory access exception.</div>
<div>I looked at GetPolyData() and that lead me to look at GetPolyDataAlgrotithm() and GetPolyDataSource().  I&#39;m guessing that vtkImagePlaneWidget.GetOrigin() is using the underlying poly data, so the offset would occur with the poly data as well.</div>

<div><br></div><div>I did create a &quot;fix&quot; by setting my cut origin as the widget origin + (0.5 * widget normal).  That appears to align my cut outlines perfectly with the image plane widget.  I did remove the tubes and the outlines appear as flat lines on the front and back of the vtkImagePlaneWidget.</div>

<div><br></div><div>Thanks,</div><div>Bjorn<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Mar 12, 2011 at 1:53 AM, Shashwath T.R. <span dir="ltr">&lt;<a href="mailto:trshash@gmail.com" target="_blank">trshash@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bjorn,<div>As I recall, vtkImagePlaneWidget already has a polydata describing the boundary of the plane. You could get that and manipulate it instead of mucking about with a cutter / tube filter...</div>

<div><br></div><div>
You can either directly manipulate the plane property (<a href="http://www.vtk.org/doc/nightly/html/classvtkImagePlaneWidget.html#aa967a678dc64d006ef7d9c9bce703e77" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImagePlaneWidget.html#aa967a678dc64d006ef7d9c9bce703e77</a>) or get the polydata (<a href="http://www.vtk.org/doc/nightly/html/classvtkImagePlaneWidget.html#a118b91779af7e29ab0162b6109531b95" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImagePlaneWidget.html#a118b91779af7e29ab0162b6109531b95</a>) and send it to the tube filter if you really can&#39;t do without the tubes.</div>


<div><br></div><div>HTH</div><div>Shash<br><br><div class="gmail_quote"><div><div></div><div>On Fri, Mar 11, 2011 at 12:53 AM, Bjorn Oksnevad <span dir="ltr">&lt;<a href="mailto:boksnevad@gmail.com" target="_blank">boksnevad@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hello,<div>I am using a vtkImagePlaneWidget to define a cutting plane for a vtkCutter.  The vtkCutter is then used to create tube outlines where the cut plane intersects some 3d mesh structures.  However, when I render the resulting outline, the outline tubes are slightly offset from the vtkImagePlaneWidget in the direction of the normal.  I was expecting the outlines to be positioned exactly on the vtkImagePlaneWidget plane, since I used GetOrigin() and GetNormal() from the plane widget to define the cutting plane.</div>



<div><br></div><div>Has anyone experienced this and have a solution/explanation?</div><div><br></div><div>Thanks in advance!</div><div>Bjorn</div><font color="#888888"><div><br></div>
</font><br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br>