Spherical cell using pt3dadd
Posted: Tue May 09, 2006 2:16 pm
Hi,
I am trying to model extracellular fields on truly spherical cells. I used to following simple code
When I run it, it shows a solid circle on the screen. When i 3D rotate it about the X axis it remains a circle, but when I rotate it about Y, it turns into a progressively flatter ellipse and eventually into a thin line at 90 degree rotation. A sphere should remain the same no matter in what direction I look. Am I missing something here ?
Thanks for your time.
Karthik
I am trying to model extracellular fields on truly spherical cells. I used to following simple code
Code: Select all
create a
access a
Ra=100
nseg = 10
pt3dclear()
pt3dadd(-Ra, 0, 0, 1)
for i=1,29 {
x = -Ra + 2*Ra*i/30
pt3dadd(x, 0, 0, 2*sqrt(Ra^2 - x^2) )
}
pt3dadd(Ra, 0, 0, 1)
objref s
s = new Shape()
s.show(0)
print L
Thanks for your time.
Karthik