<div dir="ltr"><div><div><div><div><div>Hi Chris,<br></div>thanks for your comments.<br><br></div>OK, solved: it looks like while playing around with the example I commented the implicitPlaneWidget's interactor observer on statement (planeWidget->On()). So that was the issue :-S Sorry for not having noticed earlier.<br>
<br>As a side note, I am working on Win 7 (64 bit), VS 2010, vtk 5.6.1.<br></div><br></div>Thanks for helping,<br></div>JON HAITZ<br><div><div><div><br><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 3 June 2014 05:33, Christopher Mullins <span dir="ltr"><<a href="mailto:christopher.mullins@kitware.com" target="_blank">christopher.mullins@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Yes, for 5.6.1 you will need to link against vtkWidgets and vtkHybrid it seems.  I corrected the example, thanks for pointing that out!<div><br></div><div>However I don't see the problem you're having.  I tried it out on my mac with 5.6.1 and on linux with 6.1.0 and get the result from the attached screenshot, clipping plane intact and functional.  Can you give me some more clues about your platform, compiler, etc?  I could try to reproduce it, or maybe it's a known issue?</div>

</div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 2:37 AM, Jon Haitz Legarreta <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Chris,<br></div>thanks for your answer.<br><br></div>For VTK 5.6.1 I had to add vtkWidgets to the target_link_libraries list, apart from the already existing vtkHybrid for the case when VTK_LIBRARIES variable is not found/set.<br>


<br></div><div>Otherwise I get some linking errors related to the vtkImplicitPlaneRepresentation class used in the vtkImplictPlaneWidget2 class.<br></div><div><br></div>As for the result, I wonder whether you get the same result as me (I hope you were able to check the screenshots in my previous mail) or whether I should indeed expect the an interactive clipping plane, as shown in the wiki and the VTK book.<br>


<br></div>Thanks,<br>JON HAITZ<div><div><br><br><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 May 2014 16:14, Christopher Mullins <span dir="ltr"><<a href="mailto:christopher.mullins@kitware.com" target="_blank">christopher.mullins@kitware.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The example works just fine for me (Linux, VTK nightly).  You shouldn't need to mess with the CMakeLists.txt, it should only need to link to  ${VTK_LIBRARIES}.  Can you show us what you did to that file?</div>



<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, May 30, 2014 at 5:17 AM, Jon Haitz Legarreta <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr">Hi there,<br>I was trying to execute the ImplicitPlaneWidget example [1]. I have tried both VTK 5.6.1 and 6.1.0.<br>



<br>The thing is that I was expecting to get the clipping plane as displayed in the mentioned example. A similar example is shown in the "The Visualization Toolkit" book (3rd ed.) (ch 7.18).<br>
<br>However, the sphere is indeed cut (attached a screenshot), but no clipping plane is displayed, and thus no interaction is possible through the implicit plane.<br><br>What else am I supposed to add to get a similar result?  <br>




<br>As a side note, I had to add the vtkWidgets library to the link libraries list for vtk 5.6.1, but not for 6.1.0 (so, if this is correct, I can edit the wiki example to account for this). I have noticed that the vtkHybrid library is actually no longer built by vtk 6.1.0 [2].<br>




<br>Thanks,<br>JON HAITZ<br><br><br>[1] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2</a><br>[2] <a href="http://www.vtk.org/Wiki/VTK/FAQ#Writing_a_simple_CMakeLists.txt" target="_blank">http://www.vtk.org/Wiki/VTK/FAQ#Writing_a_simple_CMakeLists.txt</a><br>




<div><div dir="ltr"><table align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><br></td></tr><tr><td><table align="center" border="0" cellpadding="0"><tbody><tr><td><span style="font-size:10px;color:gray;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.org/en/proteccion-datos" style="color:gray" target="_blank"></a></span><br>




</td></tr></tbody></table></td></tr></tbody></table></div></div>
</div>
<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><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Christopher Mullins<div>R&D Engineer</div><div>Kitware Inc.,</div><div><a href="tel:919.869.8871" value="+19198698871" target="_blank">919.869.8871</a></div>


</font></span></div>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Christopher Mullins<div>R&D Engineer</div><div>Kitware Inc.,</div><div>919.869.8871</div>
</div>
</div></div></blockquote></div><br></div></div></div></div></div></div></div></div>