[vtkusers] How to plot vtkPlaneSource and vtkGlyph3D together?

Xiaopeng Yang yxp233 at postech.ac.kr
Fri Jul 8 12:30:55 EDT 2011


Thank you David. It works good!

Best,
Xiaopeng

-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Saturday, July 09, 2011 12:55 AM
To: Xiaopeng Yang
Cc: vtk
Subject: Re: [vtkusers] How to plot vtkPlaneSource and vtkGlyph3D together?

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