<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<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:0 0 0 .8ex;border-left:1px #ccc solid;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 class="h5">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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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 class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Christopher Mullins<div>R&D Engineer</div><div>Kitware Inc.,</div><div>919.869.8871</div>
</font></span></div>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div>