Programs



What kind of programs are there ?

There are two types of programs.
How to use LISP files ?

The instruction of using LISP programs is as follows.
  1. Down load all necessary LISP files by just clicking and saving them.
  2. Run LISP interpreter
  3. Load "load-me-first.lisp"
  4. Follow the directions of the program. This looks like as follows.

    > (load "load-me-first.lisp")
    ;;; Loading source file "load-me-first.lisp"

    **************************
    * Please type (load-data) *
    **************************
    #P"/amd/sundown/h/mukai/Courses/cs790/project/load-me-first.lisp"
    > (load-data) <---- Type (load-data)
    Please hit any key + return!

    (ARE ALL FILES IN THE CURRENT DIRECTORY ?)
    (PLEASE INPUT Y OR N.)y <---- Assume answering y here

    definition.sbin
    utility.sbin
    reduction.sbin
    one-by-step.sbin
    some-by-step.sbin
    merge-files.sbin

    (ARE THERE ALL THE ABOVE FILES IN THE DIRECTORY ?)
    (PLEASE INPUT Y OR N.)n <---- Assume answering n here

    definition.lisp
    utility.lisp
    reduction.lisp
    one-by-step.lisp
    some-by-step.lisp
    merge-files.lisp

    (ARE THERE ALL THE ABOVE FILES IN THE DIRECTORY ?)
    (PLEASE INPUT Y OR N.)y <---- Assume answering y here

    (CAN YOU COMPILE FILES ?)
    (PLEASE INPUT Y OR N.)y <---- Assume answering y here
    ;;; You are using the compiler in PRODUCTION mode ...
    ;;; ......
    ;;; Reading source file "definition.lisp"
    ;;; Writing binary file "definition.sbin"
    ;;; Loading binary file "definition.sbin"
    ;;; ......
    ;;; Reading source file "merge-files.lisp"
    ;;; Writing binary file "merge-files.sbin"
    ;;; Loading binary file "merge-files.sbin"

    ##############################################################
    # Welcome to data-reduction of VRML!! #
    ......
    # input0 < input1 < input2 < input3 < input4 < input5 #
    ##############################################################
    NIL
    > (count-data "dolphin.wrl") <---- Assume counting data of dolphin.wrl
    vertex-number=285 facet-number=563
    NIL
    > (reduction "dol_250.wrl" "dolphin.wrl" :vertex-num 250)
    <---- Assume making reduced dolphin data which has 250 vertices.
    vertex-num is 285. Goal(250) facet-num is 563. Goal(10000)
    Current error is 1.965716028441366. Max-error is 10000.
    ....
    vertex-number=250 facet-number=493
    NIL
    > (merge-files "dol_mer.wrl" "dol_100.wrl" "dol_250.wrl")
    <--- Assume merging dol_100.wrl and dol_250.wrl
    Merging dol_250.wrl into dol_100.wrl
    vertex-number=100 facet-number=196
    deleted-vertex=0 added-vertex=150 deleted-facet=132 added-facet=429
    vertex-number=250 facet-number=493
    NIL
    >
How to use JAVA files ?

The instruction of using JAVA programs is as follows.
  1. Down load all JAVA files by just clicking and saving them.
  2. Compile java source files by using make command located at the end.
  3. Put the new file name into files.lst found at the end.
    Files.lst can support only 10 files in this version.
  4. See Usage for the usage of the browser.


Down load LISP files

There are 7 lisp files to reduce graphics data and to merge them into one file.


Down load JAVA files

There are 16 classes in GraNet.

Makefile of the browser is here.
VRML file list is here.