Page 1 of 1

How to work with 3D?

Posted: Thu May 12, 2011 4:30 pm
by vellamike
When using the Neuron library is there a recommended way of specifying the physical dimensions of a section in 3D? Ideally I'm looking for something along the lines of:

Code: Select all

>>>from neuron import h
>>>dend=h.Section()
>>>dend.L=100
>>>dend.direction=(1,2,3)
Where the direction property would specify the direction of the section relative to some cardinals.

Re: How to work with 3D?

Posted: Fri May 13, 2011 10:20 am
by ted
Specification of geometry is documented in the Programmer's Reference under Geometry
http://www.neuron.yale.edu/neuron/stati ... l#Geometry
You'll want to know about the difference between stylized and 3d specification. The various hoc parameters, functions, and procedures for specification of geometry are, of course, callable from Python as discussed in the Programmer's Reference under Python_accessing_Hoc
http://www.neuron.yale.edu/neuron/stati ... essing_Hoc

Re: How to work with 3D?

Posted: Mon May 16, 2011 8:14 am
by vellamike
Thanks Ted,

I'll post back once I've had some experience with this.

Mike