Thank Gael,
I rearrange my data, and it works. ( Though 5GB of memory is used, it allows
the interaction,)
Do you think it is normal ? "use 5GB of memory for 11971752 points, 28654
lines in total,
or there is still something wrong ?
Hongyong
PS: some codes in matlab for generate "connections"
cumLengths = cumsum([paths(:).length]');
totalPointsNum = cumLengths(end);
connections = (1:totalPointsNum)';
selection = true(totalPointsNum, 1);
for ilc = 1:length(cumLengths)
selection(cumLengths(ilc)) = false;
end
connections = connections(selection);
connections = [connections-1, connections];
On Fri, Feb 4, 2011 at 5:48 PM, Gael Varoquaux <
gael.varoqu...@normalesup.org> wrote:
> 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