[vtkusers] How to plot vtkPlaneSource and vtkGlyph3D together?

David Doria daviddoria at gmail.com
Fri Jul 8 11:54:56 EDT 2011


On Fri, Jul 8, 2011 at 11:41 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
> Hi,
>
>
>
> In my program, I generated a plane by vtkPlaneSource and three points by
> vtkGlyph3D and would like to plot them together in one screen.
>
>
>
> Does anyone have any good idea to do this?
>
>
>
> Thank you,
>
> Xiaopeng

You need to create a mapper and an actor for each one. Here is an
example of the glyphs:

http://www.itk.org/Wiki/VTK/Examples/Cxx/Visualization/OrientedGlyphs

then you'd just add a second AddActor call with the plane actor that
you create similarly.

David



More information about the vtkusers mailing list