[vtkusers] [VTK] Clipping plane in ImplicitPlaneWidget example
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Tue Jun 3 07:44:24 EDT 2014
Hi Chris,
thanks for your comments.
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.
As a side note, I am working on Win 7 (64 bit), VS 2010, vtk 5.6.1.
Thanks for helping,
JON HAITZ
On 3 June 2014 05:33, Christopher Mullins <christopher.mullins at kitware.com>
wrote:
> 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!
>
> 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?
>
>
> On Mon, Jun 2, 2014 at 2:37 AM, Jon Haitz Legarreta <
> jhlegarreta at vicomtech.org> wrote:
>
>> 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
>>>
>>
>>
>
>
> --
> 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/20140603/612ca2c8/attachment.html>
More information about the vtkusers
mailing list