Le fichier VRML Cote.WRL
#VRML V1.0 ascii
Separator {
  Rotation {
    rotation 0 0 1 -1.5708 }
  Cube {
    width 1
    height 1
    depth 1 }
  Translation {
    translation 0 2 0 }
  Cylinder {
    height 4
    radius 0.2
    parts ALL }
}

 

 

Le fichier VRML Element.wrl
#VRML V1.0 ascii
Separator {
  Cylinder {
    height 4
    radius 0.2 }
  Separator {  
    Translation {
      translation 0 2 0 }
    DEF COTE WWWInline {
      name "Cote.wrl"
      bboxSize 4 1 1
      bboxCenter 2 0 0 } }
  Separator {  
    Translation {
      translation 0 -2 0 }
    USE COTE }
}
Le fichier VRML TD-Cube2.wrl
#VRML V1.0 ascii
Separator {
  Translation {
    translation -2 0 2 }
  DEF ELEMENT WWWInline {
    name "Element.wrl"
      bboxSize 4 4 1
      bboxCenter 2 0 0 }
  Translation {
    translation 4 0 0 }
  Rotation {
    rotation 0 1 0 1.5708 }
  USE ELEMENT
  Translation {
    translation 4 0 0 }
  Rotation {
    rotation 0 1 0 1.5708 }
  USE ELEMENT
  Translation {
    translation 4 0 0 }
  Rotation {
    rotation 0 1 0 1.5708 }
  USE ELEMENT
}
WB01624_.gif (281 octets) RETOUR