Le fichier VRML avec DEF et USE #VRML V1.0 ascii
Separator {
DEF DoubleObjet Separator {
Translation {
translation 1.5 0 0 }
Cube {
width 3
height 1
depth 1 }
Translation {
translation 2 0 0 }
Cube {
width 1
height 3
depth 3 } }
Rotation {
rotation 0 0 1 3.14159 }
USE DoubleObjet }
|
|
Le fichier VRML avec DEF et USE et objets colorés #VRML V1.0 ascii
Separator {
Material {
diffuseColor 1 0 0 }
DEF DoubleObjet Separator {
Translation {
translation 1.5 0 0 }
Cube {
width 3
height 1
depth 1 }
Translation {
translation 2 0 0 }
Cube {
width 1
height 3
depth 3 } }
Rotation {
rotation 0 0 1 3.14159 }
Material {
diffuseColor 0 0 1 }
USE DoubleObjet }
|
|
RETOUR