home *** CD-ROM | disk | FTP | other *** search
- version BMRT 2.4.0b
- surface show_xyz
- param float xmin -1
- param float ymin -1
- param float zmin -1
- param float xmax 1
- param float ymax 1
- param float zmax 1
- local string $_str_0 "bad bounding box %f %f %f %f %f %f in show_xyz()"
- local string $_str_1 "shader"
- local point scale 0 0 0
- local point zero 0 0 0
- local point objP 0 0 0
- local point cubeP 0 0 0
- initcode 5
- return
- code
- return_area
- pushf zmin
- pushf zmax
- feqf
- pushf ymin
- pushf ymax
- feqf
- pushf xmin
- pushf xmax
- feqf
- or
- or
- ifz 0
- pushf zmax
- pushf zmin
- pushf ymax
- pushf ymin
- pushf xmax
- pushf xmin
- pushs $_str_0
- printf
- jump 1
- label 0
- subFF zmax zmin
- pushif 1
- divff
- subFF ymax ymin
- pushif 1
- divff
- subFF xmax xmin
- pushif 1
- divff
- popv scale
- pushf zmin
- pushf ymin
- pushf xmin
- popv zero
- pushv P
- pushs $_str_1
- transforms
- popv objP
- pushv scale
- subVV objP zero
- mulvv
- popv cubeP
- pushv cubeP
- zcomp
- pushv cubeP
- ycomp
- pushv cubeP
- xcomp
- popc Ci
- label 1
- return
-