Attachment 'simple_tvtk_cone.py'
Download
1 from enthought.tvtk import tvtk
2 cs = tvtk.ConeSource(resolution=100)
3 mapper = tvtk.PolyDataMapper(input=cs.output)
4 actor = tvtk.Actor(mapper=mapper)
5
6
7 renderer = tvtk.Renderer()
8
9 render_window = tvtk.RenderWindow(size=(400,400))
10 render_window.add_renderer(renderer)
11
12
13
14 interactor = tvtk.RenderWindowInteractor(render_window=render_window)
15 renderer.add_actor(actor)
16 interactor.initialize()
17 interactor.start()
New Attachment
Attached Files
To refer to attachments on a page, use
attachment:filename, as shown below in the list of files. Do
NOT use the URL of the
[get] link, since this is subject to change and can break easily.
- [get | view] (2006-07-19 11:38:53, 0.6 KB) [[attachment:Simple_tvtk_cone.py]]
- [get | view] (2006-07-19 11:39:56, 1.7 KB) [[attachment:Vis_quad.py]]
- [get | view] (2006-02-21 11:32:24, 45.4 KB) [[attachment:ivtk_example.png]]
- [get | view] (2006-02-21 08:48:15, 0.6 KB) [[attachment:simple_tvtk_cone.py]]
- [get | view] (2006-02-21 08:47:59, 18.4 KB) [[attachment:vis_quad.png]]
- [get | view] (2006-02-20 10:50:33, 1.7 KB) [[attachment:vis_quad.py]]