arc3d distance
Posted: Fri Nov 04, 2011 1:33 pm
According to The NEURON Book page 109,
Since the 0 end of s2 is far from the common point, I'd expect the common point to have a large arc3d() value. Instead s2's arc3d() value at the connection point is 0:
What am I misunderstanding? Thanks.
I think the following code constructs two sections s1 and s2, makes s2 a child of s1 whose 1 end is connected to s1's 1 end, and then prints their x, y, z, and arc length values for their 3d points.arc3d(i) is the anatomical distance of the ith 3-D point from the 0 end of the section.
Code: Select all
from neuron import h
s1 = h.Section()
s2 = h.Section()
s2.connect(s1, 1, 1)
h.define_shape()
for sname, s in zip(['s1', 's2'], [s1, s2]):
s.push()
print '%s: (orientation = %d)' % (sname, h.section_orientation())
for i in xrange(int(h.n3d())):
print ' %5g %5g %5g %5g' % (h.x3d(i), h.y3d(i), h.z3d(i), h.arc3d(i))
h.pop_section()
Code: Select all
s1: (orientation = 0)
0 0 0 0
50 0 0 50
100 0 0 100
s2: (orientation = 1)
100 0 0 0
150 0 0 50
200 0 0 100