home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-29 | 15.3 KB | 1,048 lines |
- %latrib.ccc
-
- * add LOOK attributes to entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grl='
- mess enter Look attribute description (1-16 char)
- * def c175 16
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :i
-
- :b
- mess attach Look attribute to: y-selection group, n-single entity <n>
- r1=0
- def 'n'
- getyn r1
- if r1 eq 0 :a
- i1=0
- goto :d
-
- :a
- mess entity to add the Look attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- ovl attr
- sbreset
- repeat :a
-
- :d
- ovl attr
-
- %catrib.ccc
-
- * add COLOR attributes to entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grc='
- mess enter Color attribute (1-16 char) <ENTER> for Dialog Box.
- c175 16= ' '
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :1
- goto :2
-
- :1
- i1=-1
- r1=1
- ovl initcc
- c1 8 = 'grcatrib'
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- ascii c175 r9
- if r9 eq 32 :9
- mess Confirm : #c175 16
- r1 = 1
- def 'y'
- getyn r1
- if r1 eq 0 :i
- goto :2
-
- :2
- mess attach Color attribute to: y-selection group, n-single entity <n>
- r1 = 0
- def 'n'
- getyn r1
- if r1 eq 0 :a
- i1=0
- goto :d
-
- :a
- mess entity to add the Color attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- ovl attr
- sbreset
- repeat :a
-
- :d
- ovl attr
-
- :9
- %matrib.ccc
-
- * add MATERIAL attributes to entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grm='
- mess enter Material attribute (1-16 char) <ENTER> for Dialog Box.
- c175 16= ' '
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :1
- goto :2
-
- :1
- r1=3
- ovl initcc
- c1 8 = 'grmatrib'
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- ascii c175 r9
- if r9 eq 32 :9
- mess Confirm : #c175 16
- r1 = 1
- def 'y'
- getyn r1
- if r1 eq 0 :i
- goto :2
-
- :2
- mess attach Material attribute to: y-selection group, n-single entity <n>
- r1 = 0
- def 'n'
- getyn r1
- if r1 eq 0 :a
- i1=0
- goto :d
-
- :a
- mess entity to add the Material attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- ovl attr
- sbreset
- repeat :a
-
- :d
- ovl attr
-
- :9
- %tatrib.ccc
-
- * add TEXTURE attributes to entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grt='
- mess enter Texture attribute (1-16 char) <ENTER> for Dialog Box.
- c175 16= ' '
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :1
- goto :2
-
- :1
- i50=1
- r2=0
- c141 30 =' '
- c211 30 =' '
- r1=2
- ovl initcc
- c1 8 = 'grtatrib'
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- i50=0
-
- ascii c175 r9
- if r9 eq 32 :9
-
- mess Confirm : #c175 16
- r1 = 1
- def 'y'
- getyn r1
- if r1 eq 0 :i
- goto :2
-
- :2
- mess attach Texture attribute to: y-selection group, n-single entity <n>
- r1 = 0
- def 'n'
- getyn r1
- if r1 eq 0 :a
- i1=0
- goto :d
-
- :a
- mess entity to add the Texture attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- ovl attr
- sbreset
- repeat :a
-
- :d
- ovl attr
-
- :9
- %grload.ccc
- def c141 8 ;
- c141=' '
- goto :again
- mess Rendering file name to load as NEW(1-8 chars.)
- :againb
- getc+ c2 8
- ***if r93 ne 0 :P
- * keep the loaded file name
- c141=c2;c142=c3;c143=c4;c144=c5;c145=c6;c146=c7;c147=c8;c148=c9
- c80=' '
- c81 3 ='grt'
- c85 =' '
- r80=0
- r83=0
- r88=2
- command chkfil
- if r83 eq 0 :g
- mess Error, invalid file name, enter name again :
- goto :againb
- :g
- if r80 eq 1 :e
- mess file " #c2 8 " does not exist, enter another name :
- goto :againb
- :e
- r1=301
- ovl grutl3 * load rendering files
- if r2 eq -1 :1
- if r2 eq -2 :2
- goto :9
- :1
- mess Can't Load Rendering file " #c141 12 " (press<ENTER>)
- getc c141 12
- goto :again
- :2
- mess Can not load "new" on itself (press<ENTER>)
- getc c141 12
- goto :again
- :9
- %grsave.ccc
- def c141 8 ;
- c141=' '
- :again
- mess Rendering file name to save (1-8 char.)
- :againb
- getc+ c2 8
- c141=c2;c142=c3;c143=c4;c144=c5;c145=c6;c146=c7;c147=c8;c148=c9
- c80=' '
- c81 3 ='grt'
- c85 =' '
- r80=1
- r83=0
- r88=2
- command chkfil
- if r83 eq 0 :g
- mess Error, invalid file name, enter name again :
- goto :againb
- :g
- if r80 eq 0 :e
- r1 = 0
- mess file " #c2 8 " already exists, want to overwrite ? <n>
- def 'n'
- getyn r1
- if r1 eq 0 :again
- :e
- r1=302
- ovl grutl3 * save rendering files
- if r2 eq -1 :1
- if r2 eq -2 :2
- goto :9
- :1
- mess Can't Save Rendering file " #c141 12 " (press<ENTER>)
- getc c141 12
- goto :again
- :2
- mess Can not save "new" into itself (press<ENTER>)
- getc c141 12
- goto :again
- :9
- %grclear.ccc
- mess confirm erasing rendering file <n>
- r1=0 ; def 'n'
- getyn r1 ; if r1 eq 1 :y ; goto :9
- :y
- r1=303
- ovl grutl3 * clear rendering files
- if r2 eq -1 :1
- goto :9
- :1
- mess Can't Clear Rendering file, Try again
- getc c141 12
- goto :again
- :9
- %grna.ccc
- mess Not available !
- getw
-
- %rungrt.ccc
- * ovl initcc
- * c1 8 = 'gmkrtinp'
- * c11 8 =' '
- * ovl exec3
- * ovl termcc
-
- ovl initcc
- c1 8 = 'grtmain '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- %grender.ccc
- r1=201
- ovl grutl2 * save dl
-
- r1 = 40
- ovl initcc
- c1 8 = 'gmain '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- r1=202
- ovl grutl2 * load dl
- %greclr.ccc
- * edits entity graffiti rendering color attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1=4
- ovl initcc
- c1 8 = 'grcatrib'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
- %grlight.ccc
- mess lights (e-edit, s-set active, a-ambient, g-graphic)
- def c111 1
- getc c111 1
- ascii c111 r7
- * 'e'
- if r7 eq 101 :e
- * 's'
- if r7 eq 115 :s
- * 'a'
- if r7 eq 97 :a
- * 'g'
- if r7 eq 103 :g
- goto :9
-
- :e
- r1 = 7 ; goto :8
- :s
- r1 = 8 ; goto :8
- :a
- r1 = 9 ; goto :8
- :8
- ovl initcc
- c1 8 = 'grlights'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
- goto :9
-
- :g
- r1 = 42
- ovl initcc
- c1 8 = 'gmain '
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
- goto :9
-
- :9
- %grdyned.ccc
- r1 = 41
- ovl initcc
- c1 8 = 'gmain '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %gremat.ccc
- * edits entity graffiti rendering material attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 6
- ovl initcc
- c1 8 = 'grmatrib'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %gretxt.ccc
- * edits entity graffiti rendering texture attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 5
- ovl initcc
- c1 8 = 'grtatrib'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grqent.ccc
- * query entity graffiti rendering attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 203
- ovl grutl2 * query ent
- mess grc= #c211 13 ,grt= #c224 23 ,grm= #c141 14
- getw
- repeat :a
-
- %grsqent.ccc
- * query solid entity graffiti rendering attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose solid entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 204
- ovl grutl2 * query solid ent
- if r2 eq -1 :1
- if r3 eq 0 :n
- mess grc= #c211 13 ,grt= #c224 23 ,grm= #c141 14 ,grs= #r3
- getw
- repeat :a
- :n
- mess grc= #c211 13 ,grt= #c224 23 ,grm= #c141 14
- getw
- repeat :a
- :1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
-
- %grsview.ccc
- r1=101
- ovl initcc * save arc view
- c1 8 = 'grutl1 '
- c11 8 =' '
- ovl exec3
- ovl termcc
- %greview.ccc
- r1 = 43
- ovl initcc *
- c1 8 = 'gmain '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- %grimgset.ccc
- r1 = 20
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grqlty.ccc
- r1 = 21
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grbckgrd.ccc
- r1 = 22
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grfog.ccc
- r1 = 23
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grctbl.ccc
- r1 = 24
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grimgshw.ccc
- mess confirm showing last image file <y>
- r1=0 ; def 'n'
- getyn r1 ; if r1 eq 1 :y ; goto :n
- :y
- r1=25
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- goto :9
- :n
- r1=26
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- :9
-
- %grabout.ccc
- r1 = 27
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grstvw.ccc
- r1 = 28
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grstde.ccc
- r1 = 29
- ovl initcc
- c1 8 = 'grovl1 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-
- %grsmth.ccc
- * smooth solid entity
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- r3 = 120.0
- :b
- mess enter smooth angle (0 < angle < 180, 0 - no smooth)
- def r3 ; getr r3
- if r3 lt 0 :b
- if r3 ge 180 :b
- sbreset
- :a
- mess choose solid entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 205
- ovl grutl2 * smooth solid ent
- if r2 eq -1 :1
- repeat :a
- :1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
-
- %statrib.ccc
-
- * add TEXTURE attributes to solid entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grt='
- mess enter Texture attribute (1-16 char) <ENTER> for Dialog Box.
- c175 16= ' '
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :1
- goto :2
-
- :1
- i50=1
- r2=0
- c141 30 =' '
- c211 30 =' '
- r1=2
- ovl initcc
- c1 8 = 'grtatrib'
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- i50=0
-
- ascii c175 r9
- if r9 eq 32 :9
-
- mess Confirm : #c175 16
- r1 = 1
- def 'y'
- getyn r1
- if r1 eq 0 :i
- goto :2
-
- :2
- mess attach Texture y-solid mapping, n-single mapping <n>
- r3 = 0
- def 'n'
- getyn r3
-
- :a
- mess solid entity to add the Texture attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- r1 = 206
- ovl grutl2 * set grt attribute to solid
- if r2 eq -1 :e1
- if r2 eq -2 :e2
- sbreset
- repeat :a
- :e1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
- :e2
- mess Unable to set attribute of solid entity, Try again
- getc c211 12
- repeat :a
-
- :9
- %scatrib.ccc
-
- * add COLOR attributes to solid entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grc='
- mess enter Color attribute (1-16 char) <ENTER> for Dialog Box.
- c175 16= ' '
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :1
- goto :a
-
- :1
- i1=-1
- r1=1
- ovl initcc
- c1 8 = 'grcatrib'
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- i50=0
-
- ascii c175 r9
- if r9 eq 32 :9
-
- mess Confirm : #c175 16
- r1 = 1
- def 'y'
- getyn r1
- if r1 eq 0 :i
- goto :a
-
- :a
- mess solid entity to add the Color attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- r1 = 207
- ovl grutl2 * set grc attribute to solid
- if r2 eq -1 :e1
- if r2 eq -2 :e2
- sbreset
- repeat :a
- :e1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
- :e2
- mess Unable to set attribute of solid entity, Try again
- getc c211 12
- repeat :a
-
- :9
- %smatrib.ccc
-
- * add MATERIAL attributes to solid entity in D.B.
-
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
-
- :i
- sbreset
- c171 4 = 'grm='
- mess enter Material attribute (1-16 char) <ENTER> for Dialog Box.
- c175 16= ' '
- getc c175 16
- ascii c175 r9
- if r9 eq 32 :1
- goto :a
-
- :1
- r1=3
- ovl initcc
- c1 8 = 'grmatrib'
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
- i50=0
-
- ascii c175 r9
- if r9 eq 32 :9
-
- mess Confirm : #c175 16
- r1 = 1
- def 'y'
- getyn r1
- if r1 eq 0 :i
-
- :a
- mess solid entity to add the Material attribute to
- gete i1
- mess confirm choice
- r1 = 1
- def 'y'
- getyn r1
- unshow i1
- if r1 eq 1 :c
- goto :a
-
- :c
- r1 = 208
- ovl grutl2 * set grm attribute to solid
- if r2 eq -1 :e1
- if r2 eq -2 :e2
- sbreset
- repeat :a
- :e1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
- :e2
- mess Unable to set attribute of solid entity, Try again
- getc c211 12
- repeat :a
-
- :9
- %grestxt.ccc
- * edits entity graffiti rendering texture attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose solid entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 8 * edit solid texture
- ovl initcc
- c1 8 = 'grtatrib'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
- if r2 eq -1 :e1
- if r2 eq -2 :e2
- goto :9
- :e1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
- :e2
- mess Unable to edit attribute of solid entity, Try again
- getc c211 12
- repeat :a
-
- :9
- %gresclr.ccc
- * edits entity graffiti rendering color attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose solid entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 7 * edit solid color
- ovl initcc
- c1 8 = 'grcatrib'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
- if r2 eq -1 :e1
- if r2 eq -2 :e2
- goto :9
- :e1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
- :e2
- mess Unable to edit attribute of solid entity, Try again
- getc c211 12
- repeat :a
-
- :9
- %gresmat.ccc
- * edits entity graffiti rendering material attributes
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- sbreset
- :a
- mess choose solid entity
- gete i1
- mess confirm choice
- getyn r1 ; if r1 eq 1 :c ; unshow i1 ; goto :a
- :c
- unshow i1
- r1 = 9
- ovl initcc
- c1 8 = 'grmatrib'
- c11 8 = ' '
- c11 = c69
- ovl exec3
- ovl termcc
- if r2 eq -1 :e1
- if r2 eq -2 :e2
- goto :9
- :e1
- mess not belongs to a solid entity, Try again
- getc c211 12
- repeat :a
- :e2
- mess Unable to edit attribute of solid entity, Try again
- getc c211 12
- repeat :a
-
- :9
- %grimgply.ccc
- r1 = 60
- ovl initcc
- c1 8 = 'grovl2 '
- c11 8 =' '
- c11 = c69
- ovl exec3
- ovl termcc
-