Page 1 of 1
sections diameter between two points from the branch
Posted: Fri Mar 03, 2006 3:46 pm
by stelescu
Could somebody help me with this problem? I would like to get all sections diameter between two part of a branch. Is it possible to get it with a function? It would be good, to have the sections number between this two points from the branch.
Please help me, whit some ideas.
Thank you for your help!
Posted: Sun Mar 05, 2006 12:48 pm
by ted
The following discussion assumes that when you say "a branch" you mean "a section."
If the section's geometry was specified with the pt3d method, you can examine all of the
xyzdiam values by executing
secname for i = 0,n3d()-1 print x3d(i), y3d(i), z3d(i), diam3d(i)
After you do something that forces updating of the internal data structures that depend
on geometry (e.g. calling finitialize() or clicking on the Init button in the RunControl panel),
secname diam(x)
(where 0<x<1) will print the diameter of a cylinder that would have the same length and
area as the segment that contains x. If you want to see all of these, execute
secname for (x, 0) x, diam(x)
If geometry was specified with the stylized method (L, diam), just use
secname for (x,0) x, diam(x)