Hierarchical Transform

#VRML V2.0 utf8

Transform {
   translation -9 0 0
   children [
      DEF RGB_SNOWMAN Transform {
	 children [
	    DEF RED_BALL Shape {
	       appearance Appearance { 
		  material Material { diffuseColor 1 0 0 } 
	       }
	       geometry Sphere { radius 1 }
	    }
	    Transform {
	       translation 0 1.5 0
	       children [
		  DEF GREEN_BALL Shape {
		     appearance Appearance { 
			material Material { diffuseColor 0 1 0 } 
		     }
		     geometry Sphere { radius .75 }
		  }
		  
		  Transform {
		     translation 0 1.1 0
		     children [
			DEF BLUE_BALL Shape {
			   appearance Appearance { 
			      material Material { diffuseColor 0 0 1 } 
			   }
			   geometry Sphere { radius .5 }
			}
		       ]
		  }
		 ]
	    }
	   ]
      }
     ]
}

Transform {
   translation -3 0 0
   scale 2 1 1
   children USE RGB_SNOWMAN
}

Transform {
   translation 3 0 0
   rotation 0 0 1  .79
   children USE RGB_SNOWMAN
}

Transform {
   translation 9 0 0
   children [
      USE RED_BALL
      Transform {
	 translation 0 1.5 0
	 rotation 0 0 1 .79
	 children [
	    USE GREEN_BALL
	    Transform {
	       translation 0 1.1 0
	       children USE BLUE_BALL
	    }
	   ]
      }
     ]
}

NavigationInfo { type "EXAMINE" }
Viewpoint { position 0 0 15 }
Background { skyColor 1 1 1 }
  


mrl