LOGO-L> Two eccentric spheres in UCBLogo & MSWLogo 
Author Message
 LOGO-L> Two eccentric spheres in UCBLogo & MSWLogo

;Hello Every Body
;Here is the code to draw an isometric view of two eccentric spheres.
;The code runs as is on both UCBLogo & MSWLogo.
;Best Regards
;Mhelhefny
;------------------------------
to go
cs ht pu
sphere1 150 sphere2 150
end

to mysetxyz :a :b :c
;isometric
setxy (:a- :c)*cos 30 :b- (:a+ :c)*sin 30
end

to sphere1 :a
for [theta 0 180 9][for [fi 0 360 6][sppos :a* :theta/150 :fi :theta*2 pd]pu]
end

to sphere2 :a
for [fi 0 360 6][for [theta 0 180 9][sppos :a* :theta/150 :fi :theta*2 pd]pu]
end

to sppos :r :fi :theta
;sphirical co-ordinates
mysetxyz :r*(sin :theta)*cos :fi :r*cos :theta :r*(sin :theta)*sin :fi  
end
;------------------------------------------
---------------------------------------------------------------





Wed, 10 May 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. LOGO-L> TYPE in MSWLogo vs UCBLogo

2. LOGO-L> Re: MSWLogo-UCBLogo

3. LOGO-L> PC-LOGO syntax in MSWLogo

4. LOGO-L> 4methods to draw a Sphere

5. LOGO-L> sphere or Christmas bulb

6. LOGO-L> Sphere or bulb

7. LOGO-L> GUI for UCBLogo

8. LOGO-L> About UCBlogo

9. LOGO-L> pure glass shapes in UCBLogo

10. LOGO-L> About UCBlogo

11. LOGO-L> 3d extensions to UCBLogo

12. LOGO-L> setxyz and screw in UCBLogo

 

 
Powered by phpBB® Forum Software