[vtkusers] [VTK] Clipping plane in ImplicitPlaneWidget example
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Mon Jun 2 02:37:48 EDT 2014
Hi Chris,
thanks for your answer.
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.
Otherwise I get some linking errors related to the
vtkImplicitPlaneRepresentation class used in the vtkImplictPlaneWidget2
class.
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.
Thanks,
JON HAITZ
On 30 May 2014 16:14, Christopher Mullins <christopher.mullins at kitware.com>
wrote:
> 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?
>
>
> On Fri, May 30, 2014 at 5:17 AM, Jon Haitz Legarreta <
> jhlegarreta at vicomtech.org> wrote:
>
>> Hi there,
>> I was trying to execute the ImplicitPlaneWidget example [1]. I have tried
>> both VTK 5.6.1 and 6.1.0.
>>
>> 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).
>>
>> 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.
>>
>> What else am I supposed to add to get a similar result?
>>
>> 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].
>>
>> Thanks,
>> JON HAITZ
>>
>>
>> [1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2
>> [2] http://www.vtk.org/Wiki/VTK/FAQ#Writing_a_simple_CMakeLists.txt
>>
>> <http://www.vicomtech.org/en/proteccion-datos>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
> --
> Christopher Mullins
> R&D Engineer
> Kitware Inc.,
> 919.869.8871
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140602/639fa7d1/attachment.html>
More information about the vtkusers
mailing list