;Hello Every Body ;Here is the code of an isometric view of a half of the hexagonal torous ;that will run under UCBLogo and under MSWLogo without turning 3d on. ;Best Regards ;Mhelhefny ;---------------------------------------------- to go cs ht pu sphere1 150 sphere2 150 end to mysetxyz :a :b :c ;lib. proc. for isometric view setxy (:a- :c)*cos 30 :b- (:a+ :c)*sin 30 end to sphere1 :a for [theta 0 180 30][for [fi 135 315 5][sppos :a* sin(:theta) :fi :theta pd]pu] end to sphere2 :a for [fi 135 315 5][for [theta 0 180 30][sppos :a* sin(:theta) :fi :theta pd]pu] end to sppos :r :fi :theta ;lib. proc. for sphirical co-ordinates mysetxyz :r*(sin :theta)*cos :fi :r*cos :theta :r*(sin :theta)*sin :fi end ;--------------------------------------- --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home