Anchor Example 1

Cube src

#VRML V2.0 utf8

Viewpoint { position 0 0 12 }

Anchor {

  url "http://web.syr.edu/~dmallen/vrml_lr/demo/lr/anchorEx1a.wrl"

  children [

######## This code defines the cube
     Transform {
        children [
           NavigationInfo { headlight TRUE }

           DirectionalLight {
	       direction 0 1 1
           }

           Transform {
               translation 0 0 0
	       rotation    1 1 1 .60
	       children [
	         Shape {
	            geometry Box { size 3 3 3 }
	            appearance Appearance {
		       material Material { diffuseColor 0 0 1 }
                    }
                 }
               ]
           }

        ]
     }

##########


   ]
}