#VRML V1.0 ascii Separator { Separator { # viewpoints DEF Cameras Switch { whichChild 0 DEF "Crab!" PerspectiveCamera { position 0 0 7 } } } Separator { Rotation { rotation 0 1 0 1.57 } Separator { # body Scale { scaleFactor 1 0.3 1 } Material { diffuseColor 0.8 0.8 1 } DEF Ball Sphere { radius 2 } } DEF 3Legs Separator { # 3 legs 1 DEF Leg Separator { # leg 1 Material { diffuseColor 1 0.3 0.3 } Separator { # upper leg Translation { translation 0 0.55 2.3 } Rotation { rotation 1 0 0 0.9 } DEF LegSegment Cylinder { height 2 radius 0.13 } } Separator { # joint Translation { translation 0 1.26 3.15 } Scale { scaleFactor 0.095 0.095 0.095 } USE Ball } Separator { # lower leg Translation { translation 0 0.7 3.85 } Rotation { rotation 1 0 0 -0.9 } Scale { scaleFactor 0.8 0.8 0.8 } USE LegSegment } } Separator { # leg 2 Translation { translation 0.62 0.2 -0.2 } Rotation { rotation 0 1 0 0.65 } USE Leg } Separator { # leg 3 Translation { translation -0.62 0.2 -0.2 } Rotation { rotation 0 1 0 -0.65 } USE Leg } } Separator { # 3 legs 2 Rotation { rotation 0 1 0 3.14 } USE 3Legs } DEF Eye Separator { # eye 1 Material { diffuseColor 1 1 1 } Translation { translation -1.95 0 -0.45 } Rotation { rotation 0 0 1 -1.9 } Cone { # eyeball height 0.4 bottomRadius 0.2 } Material { diffuseColor 0 0 0 } Translation { translation 0 -0.015 0 } Cone { # iris parts BOTTOM height 0.4 bottomRadius 0.1 } } Separator { # eye 2 Translation { translation 0 0 0.9 } USE Eye } } }