[vtkusers] VTK-JS: How to get Position of actor
Logan Langholz
llangholz89 at gmail.com
Mon Sep 18 11:47:42 EDT 2017
Hi Katrin,
In addition, as far as I’m aware calling actor.getCenter() should return that object's center with respect to its bounds. It seems to work alright for me with multiple actors in the window.
Cheers,
-Logan
> On Sep 18, 2017, at 7:31 AM, Katrin Hartwig <katrin_hartwig at gmx.de> wrote:
>
> Dear all,
>
> I am using a visualization of several actors with VTK-js. Unfortunately, when using actor.getPosition() I always get [0,0,0] as a result, no matter which actor I checked, although they appear on different positions in my rendering window.
> How can I get the real positions or centers of the different actors?
>
> As I am completely new to VTK-js and I could not find any solutions to my problem, any help would be great!
>
> Thank you
> Katrin
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170918/90898ca3/attachment.html>
More information about the vtkusers
mailing list