home *** CD-ROM | disk | FTP | other *** search
/ Using VRML (Special Edition) / Special_Edition_Using_VRML_CDROM_Que_1996.iso / webpages / objects / chap11 / 11fig10.wrl < prev    next >
Text File  |  1995-09-17  |  2KB  |  70 lines

  1. #VRML V1.0 ascii
  2.  
  3. # A simple humanoid body made up of cylinders and spheres
  4.  
  5. # Built (by hand, with a text editor!) by Bernie Roehl, September 1995
  6.  
  7. DEF Body Separator {
  8.     DEF Pelvis Separator {
  9.         Cylinder { radius .2 height .15 }
  10.         DEF Chest Separator {
  11.             Transform { translation 0 .35 0 }
  12.             Cylinder { radius .2 height .50 }
  13.             DEF LeftUpperArm Separator {
  14.                 Transform { translation -.275 .10 0 }
  15.                 Cylinder { radius .05 height .30 }
  16.                 DEF LowerArm Separator {
  17.                     Transform { translation 0 -.280 0 }
  18.                     Cylinder { radius .04 height .25 }
  19.                 }
  20.             }
  21.             DEF RightUpperArm Separator {
  22.                 Transform { translation .275 .10 0 }
  23.                 Cylinder { radius .05 height .30 }
  24.                 DEF LowerArm Separator {
  25.                     Transform { translation 0 -.280 0 }
  26.                     Cylinder { radius .04 height .25 }
  27.                 }
  28.             }
  29.             DEF Head Separator {
  30.                 Transform { translation 0 .425 0 scaleFactor 1 1.5 1 }
  31.                 DEF Skull Separator {
  32.                     Sphere { radius .1 }
  33.                 }
  34.                 DEF LeftEye Separator {
  35.                     Transform { translation -.04 .025 .0707 }
  36.                     Material { diffuseColor 0 0 1 }
  37.                     Sphere { radius .02 }
  38.                 }
  39.                 DEF RightEye Separator {
  40.                     Transform { translation .04 .025 .0707 }
  41.                     Material { diffuseColor 0 0 1 }
  42.                     Sphere { radius .02 }
  43.                 }
  44.                 DEF Nose Separator {
  45.                     Transform { translation 0 -.01 .1 }
  46.                     Material { diffuseColor 1 0 0 }
  47.                     Sphere { radius .02 }
  48.                 }
  49.             }
  50.         }
  51.         DEF LeftThigh Separator {
  52.             Transform { translation -.1 -.275 0 }
  53.             Cylinder { radius .075 height .35 }
  54.             DEF Calf Separator {
  55.                 Transform { translation 0 -.33 0 }
  56.                 Cylinder { radius .06 height .30 }
  57.             }
  58.         }
  59.         DEF RightThigh Separator {
  60.             Transform { translation .1 -.275 0 }
  61.             Cylinder { radius .075 height .35 }
  62.             DEF Calf Separator {
  63.                 Transform { translation 0 -.33 0 }
  64.                 Cylinder { radius .06 height .30 }
  65.             }
  66.         }
  67.     }
  68. }
  69.     
  70.