Group Example 1

Source


#VRML V2.0 utf8

Viewpoint {
  position 0 2 10
  orientation 0 1 0 0
}


DEF CONEBOX Group {

  children [
    Transform {
      translation   1 1 0
      children 
        Shape {
           appearance Appearance {
              material Material {
	        diffuseColor	0 1 0
	      }
           }
           geometry Cone{ 
	     height 2.0
	     bottomRadius 1.0
           }
        }
    }

    Transform {
      translation   -1 1 0
      children  
        Shape {
           appearance Appearance { 
              material Material {
                diffuseColor      0 0 1
              }
           }
           geometry Box {
 	      size 1 2.0 1
           }
        }
    }

  ]
}