#VRML V2.0 utf8 Shape { geometry Cone { bottomRadius 1 # actually default values height 2 side TRUE bottom TRUE } appearance Appearance { material Material { diffuseColor 0.8 0.2 0.2 # light red } } } Shape # ---------------------------- draw coordinate axes centred on origin { appearance DEF AxisColor Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry IndexedLineSet { coord Coordinate { point [ 0 0 0, 2 0 0, 0 2 0, 0 0 2 ] } coordIndex [ 0 1 -1, 0 2 -1, 0 3 -1 ] } } Transform # label the axes { children Shape { appearance USE AxisColor geometry Text { string "x" } } translation 2.2 0 0 rotation 0 1 0 0.2 } Transform { children Shape { appearance USE AxisColor geometry Text { string "y" } } translation 0 2.2 0 rotation 0 1 0 0.5 } Transform { children Shape { appearance USE AxisColor geometry Text { string "z" } } translation 0 0 2.2 rotation 0 1 0 0.8 } # L. Allison, Department of Computer Science, Monash University, Australia