Hi,

thanks for the code.

Can I then pick each cylinder and change the colour of the selected ones?
Or I need to use the glyph?

Trying to make my head around this..


On Wed, Feb 16, 2011 at 5:34 PM, Gael Varoquaux
<gael.varoqu...@normalesup.org> wrote:
> On Wed, Feb 16, 2011 at 05:30:08PM +0000, Michele Mattioni wrote:
>> Consider this code:
>
>> https://gist.github.com/829727
>
>> The draw of the cylinder is on line 9
>>       cyl = visual.Cylinder(pos=(coords['x0'],coords['y0'],coords['z0']),
>>                         axis=(x_ax,y_ax,z_ax), radius=1, length=10)
>
>> Basically that line has to go and everything has to be done in tvtk pipeline?
>
> I am attaching code that I propose to replace. It will populate the
> Mayavi pipeline (not to be confused with the VTK pipeline). The only loss
> of functionality that I see compare to what you are doing would be that
> you would need to specify the color via a scalar field and a colormap.
>
>
> G
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to