On Fri, Feb 04, 2011 at 05:40:47PM +0100, LI Hongying wrote: > Thanks for your [1]script, and the generated image is really beautiful. > But I do not quite understand, In that script, you are trying to join all > the line together ? > ( Maybe I should have one object associated with many lines, But they are > not connected in fact. )
It may be a bit confusing at first, but what this script is doing is representing many lines not connected together in a same dataset. To create this dataset, you thus have to concatenate the point defining the lines and create an explicit connectivity: what is connected and what is not. This is what is done in the for loop of the script. You can replace the x, y, z and s arrays that are generated at each for loop by your lines (DTI tracts, I guess). You will then have to be careful that the connectivity that you are specifying (in the connections.append... line) then has a 'N' that depends on the number of points in your line. I know it takes a little while to wrap one's head around this way of specifying lines, but once you 'get' it, it's really powerful. Another way of seeing this is that you are specifying a more general graph (set of connected points) than simply one line, as in the graph-based examples (the Flight graph, for instance). Hope this helps, Gael ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users