Set orientation of a clipped cone

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Set orientation of a clipped cone

Gib Bogle

I want to be able to render many clipped cones.  I've been playing with the capclip.cxx example, changing from sphereSource to coneSource.  The clipActor created can be given position, and scaled, but I can't see how to set its orientation.  It does have a member function setOrientation(double a[3]), but when I invoke this with a = (0,1,0) nothing happens (the default orientation of the cone is (1,0,0)).

Is it possible to set the orientation of an actor that uses a mapper created from a clipped polydata?


Thanks

Gib


_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Set orientation of a clipped cone

kenichiro yoshimi
Hi,

The SetOrientation function is used to rotate the actor in degrees. So
you need to specify the rotation degrees instead of an orientation
vector.

Regards

2018年11月30日(金) 6:27 Gib Bogle <[hidden email]>:

>
> I want to be able to render many clipped cones.  I've been playing with the capclip.cxx example, changing from sphereSource to coneSource.  The clipActor created can be given position, and scaled, but I can't see how to set its orientation.  It does have a member function setOrientation(double a[3]), but when I invoke this with a = (0,1,0) nothing happens (the default orientation of the cone is (1,0,0)).
>
> Is it possible to set the orientation of an actor that uses a mapper created from a clipped polydata?
>
>
> Thanks
>
> Gib
>
> _______________________________________________
> 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:
> https://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Set orientation of a clipped cone

Gib Bogle
Thanks Kenichiro.  I finally did RTFM for vtkActor and found how orientation is handled.  I was just about to reply saying that when your message arrived.

Cheers, Gib
________________________________________
From: kenichiro yoshimi <[hidden email]>
Sent: Friday, 30 November 2018 1:14 p.m.
To: Gib Bogle
Cc: vtkusers
Subject: Re: [vtkusers] Set orientation of a clipped cone

Hi,

The SetOrientation function is used to rotate the actor in degrees. So
you need to specify the rotation degrees instead of an orientation
vector.

Regards

2018年11月30日(金) 6:27 Gib Bogle <[hidden email]>:

>
> I want to be able to render many clipped cones.  I've been playing with the capclip.cxx example, changing from sphereSource to coneSource.  The clipActor created can be given position, and scaled, but I can't see how to set its orientation.  It does have a member function setOrientation(double a[3]), but when I invoke this with a = (0,1,0) nothing happens (the default orientation of the cone is (1,0,0)).
>
> Is it possible to set the orientation of an actor that uses a mapper created from a clipped polydata?
>
>
> Thanks
>
> Gib
>
> _______________________________________________
> 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:
> https://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers