[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> How can I save 3d-data?



MSWLogo allows you to "save" the program that generated the picture
or the current picture on the screen but not the internal state of
MSWLogo. You restore MSWLogo's state by re-loading and running your
program again.

To save your program use:

SAVE "MYLOGO.LGO or use the File Menu -> Save.

The above saves your defined proicedures not the list of commands
you entered into the commander window.

To reload your program later use:

LOAD "MYLOGO.LGO or use the File Menu -> Load.

To save a picture of your work use:

BITSAVE "MYLOGO.BMP or use the Bitmap Menu -> Save.

To re load your picture of your work use:

BITLOAD "MYLOGO.BMP or use the Bitmap Menu -> Load.

But as you have stated none of these allow you to
load partial 3D scenes and then append further to them.
Everything has to be executed in one session.
You append to 3D scenes by extending your program
and running the whole thing again. A lot of programs
start with CLEARSCREEN followed by PERSPECTIVE for 3D.

If your not "defining" procedures like the following
within the editor using for example EDALL then you
have no "procedures" to save with the SAVE command.

Enter EDALL in the commander window and enter this procedure.

to square :size
  perspective
  polystart
  repeat 4 [fd :size rt 90]
  polyend
  polyview
end

Now exit the editor with File Menu -> Exit.
You have not saved the procedure to disk yet just to
MSWLogo's internal "workspace".

Run the new procedure called SQUARE by calling it out.
In the commander window enter:

SQUARE 100

Now save your program (procedure definitions) to disk by entering the
following into the commander window.

SAVE "MYLOGO.LGO

Exit Logo by entering the following command in the commander.

BYE

Start Logo again and reload your procedures:

LOAD "MYLOGO.LGO

Now run the procedure called SQUARE again by calling it out.
In the commander window enter:

SQUARE 100

I hope this helps.

Dr. Martin A. Burschka wrote:
> 
> Hi,
> We have just started to draw 3d figures with mswlogo and are learning
> a lot, even before we have had an opportunuty to lay our hands on any of
> 
> the recommended books. The help-facility with the examples is great so
> far.
> 
> Our problem is that drawing the polygons takes a much longer time than
> the POLYVIEW command -- which is where we are learning the most.
> So we would like to save the state of the session in sufficient detail
> so
> that we do not have to restart drawing the polygons.
> Saving the bitmap does not seem to help, as the 3d infromation is lost
> then.
> How do we do this?
> We have found the SAVEL-command in the Help but have not been able to
> figure out
> how to use it for the present purpose.
> 
> Thank you for your time!
> Christoph and Martin in Germany
> 
> ---------------------------------------------------------------
> 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.

--
===============================================================
George Mills (mills@softronix.com)
http://www.softronix.com/
The www page contains some very powerful educational software.
Our single most important investment is our kids.
---------------------------------------------------------------
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