How to work with 3D?

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
vellamike

How to work with 3D?

Post 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.
ted
Site Admin
Posts: 6287
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: How to work with 3D?

Post 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
vellamike

Re: How to work with 3D?

Post by vellamike »

Thanks Ted,

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

Mike
Post Reply