<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><tt>Dorian,</tt></p>
<p><tt>If by chance you have a list of coordinates for your
junction-points, and you have a list junction-pairs you can
construct a "wire-frame grid."</tt></p>
<p><tt>Junction-point arrays: </tt><tt>X(1:NUMJP), Y(1:NUMJP),
Z(1:NUMJP) </tt></p>
<p><tt>Junction-pair array: BAR(1:2,1:NUMBR)</tt></p>
<p><tt>Where NUMJP = Number of junction points, NUMBR = Number of
bars.<br>
</tt></p>
<p><tt>The value for BAR(1,n) is the array location in X,Y,Z for the
first point of junction-pair "n", and the value for BAR(2,n) </tt><tt>is
the array location in X,Y,Z for the second point of
junction-pair "n"</tt></p>
<p><tt>The simplest and best documented format for these arrays to
be read into ParaView is the VTK-Legacy datum set description. (
<a class="moz-txt-link-freetext"
href="http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf">http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf</a>
and see page 9 with a VTK_LINE). <br>
</tt></p>
<p><tt>Once you have the "static" grid displayed then you can then
consider a "dynamic" display, that is, a time-series display.</tt></p>
<p><tt>To get a time-series display, you will need a "time schedule"
that represents when each junction-pair is communicating
(firing?).</tt></p>
<p><tt>Each time their is a communication between two points you
will need another copy of the static grid display file, for
example, syn000.vtk, syn001.vtk, syn002.vtk, ...</tt></p>
<p><tt>where <br>
</tt></p>
<p><tt>syn000.vtk has cell data for *all* bars with a value, say,
"0.0" the static state<br>
</tt></p>
<p><tt>syn001.vtk has cell data for each 'communicating' bar with a
cell value "1.0"</tt></p>
<tt>If you have 999, different time values for junction-pair
communications, then you will have a file sequence out to
syn999.vtk. The VTK-reader in ParaView will 'see' this file
sequence and treat it as a time-series. The animation feature in
ParaView, will let you create an *.avi file that is a 'movie' of
the junction-pairs communicating over time.<br>
<br>
At this point, if you have an idea of how long it takes for a
signal to go from one point to another, you can add "way-points"
to the bars to get a 'multiple-cell' bar and illuminate the signal
passage in the bar cell-by-cell with 0, 0, 0.5, 1.0, 0.5, 0, 0, 0,
... <br>
<br>
For myself, I would write a small program that takes the arrays,
X, Y, Z, and BAR and writes them out to a VTK-Legacy file. <br>
<br>
It will take some effort to create a sequence of VTK-Legacy files,
but ParaView will become more versatile with a proper datum set.
Your VTK-Legacy writer is easily expanded to include more data. <br>
<br>
Sam Key<br>
</tt><br>
<br>
<div class="moz-cite-prefix">On 10/31/2016 8:09 PM, Dorian Pustina
wrote:<br>
</div>
<blockquote
cite="mid:CAF9pfmbPbwGWQNyMjsBup2P0bOmH6UC8FfSmMcAzqh-zrnRgOw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello everyone,
<div><br>
</div>
<div>I am working on visualizing some brain imaging data. I have
a bunch of points in 3D space, which have two sets of
coordinates: x1/y1/z1 and x2/y2/z2. All I need is to show
arrow glyphs starting from the first coordinate and ending to
the second coordinate. I currently import the data as csv. I
tried using the time series option, and I can loop through the
two time points, but can't find how to model a line or an
arrow for each point between the two times. I also tried to
compute what is called "velocity fields", that is a set of 3
scalar factors that if multiplied with the original
coordinates would yield the second coordinate (using
Calculator):</div>
<div>iHat*X snapped+jHat*Y snapped+kHat*Z snapped<br>
</div>
<div><br>
</div>
<div>Still, I don't get reasonable results. The problem looks
trivial but I couldn't find any solution online after hours of
search. It is not even clear to me what does the above formula
do exactly.</div>
<div><br>
</div>
<div>Can someone help if this is possible?</div>
<div><br>
</div>
<div>Dorian</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>