martedì 17 aprile 2012

Disegno LIM (wrml)

Disegno della LIM


Ho realizato la lavagna su cui viene proiettata l'immagine col programma di "Vrml pad"
Questo è il codice per la LIM:
#VRML V2.0 utf8
Transform {
 translation 0 0 0
 rotation 1 0 0 1.57
 children [
Shape {
 geometry Box {
  size 15.7 0.5 11.7
 }
 appearance Appearance {
  material Material {
   diffuseColor 1 1 1
  }
 }
}
]
}
#destro
Transform {
 translation -8.05 0 0
 rotation 1 0 0 1.57
 children [
Shape {
 geometry Box {
  size 0.4 0.5 12.5
 }
 appearance Appearance {
  material Material {
   diffuseColor 0.5 0.5 0.5
  }
 }
}
]
}
#sinistro
Transform {
 translation 8.05 0 0
 rotation 1 0 0 1.57
 children [
Shape {
 geometry Box {
  size 0.4 0.5 12.5
 }
 appearance Appearance {
  material Material {
   diffuseColor 0.5 0.5 0.5
  }
 }
}
]
}
#sotto
Transform {
 translation 0 -6 0
 rotation 0 1 0 1.57
 children [
Shape {
 geometry Box {
  size 0.5 0.5 15.7
 }
 appearance Appearance {
  material Material {
   diffuseColor 0.3 0.3 0.3
  }
 }
}
]
}
#sopra
Transform {
 translation 0 6 0
 rotation 0 1 0 1.57
 children [
Shape {
 geometry Box {
  size 0.5 0.5 15.7
 }
 appearance Appearance {
  material Material {
   diffuseColor 0.3 0.3 0.3
  }
 }
}
]
}
Transform {
 translation 0 -6.3 0.5
 rotation 1.57 0 0 1.57
 children [
Shape {
 geometry Box {
  size 9.7 1 0.4
 }
 appearance Appearance {  
  material Material {
   diffuseColor 0.5 0.5 0.5
  }
 }
}
]
}
Ho ricostruito un banco con le misure reali in 3D per poi venir copiato per costruire la disposizione della classe.
Questo è il codice:
#VRML V2.0 utf8
DEF banco
Transform {
 translation 0 0 0
 children [
#piano lavoro
Transform {
translation 0 7.15 0
children[
 Shape {
  geometry Box{
   size 8 0.3 8
  }
  appearance Appearance {
   material  Material{
   diffuseColor 0.98 0.98 0.98
   }
   }
 }
 ]
}
#gamba 1
Transform {
translation 3 3.5 -3
children [
Shape {
  geometry Cylinder{
   radius 0.3
   height 7
  }
  appearance Appearance {
   material  Material{
   diffuseColor 1 0 0
   }
   }
 }
 ]
}
#gamba 2
Transform {
translation -3 3.5 3
children [
Shape {
  geometry Cylinder{
   radius 0.3
   height 7
  }
  appearance Appearance {
   material  Material{
   diffuseColor 1 0 0
   }
   }
 }
 ]
}
#gamba 3
Transform {
translation 3 3.5 3
children [
Shape {
  geometry Cylinder{
   radius 0.3
   height 7
  }
  appearance Appearance {
   material  Material{
   diffuseColor 1 0 0
   }
   }
 }
 ]
}
#gamba 4
Transform {
translation -3 3.5 -3
children [
Shape {
  geometry Cylinder{
   radius 0.3
   height 7
  }
  appearance Appearance {
   material  Material{
   diffuseColor 1 0 0
   }
   }
 }
 ]
}
#supporto 1
Transform {
translation 0 7.15 0
rotation 0 1 0 1.57
children[
 Shape {        
  geometry Box{
   size 5.5 0.3 0.2
  }
  appearance Appearance {
   material  Material{
   diffuseColor 0.98 0.98 0.98
   }
   }
 }
 ]
}
#supporto davanti
Transform {
 translation 0 6.7 3
 children[
  Shape {
   appearance Appearance {
    material Material{
     diffuseColor 1 0 0
    }
   }
   geometry Box {
    size 5.6 0.6 0.3
   }
 }
]
 }
#supporto dietro
Transform {
 translation 0 6.7 -3
 children[
  Shape {
   appearance Appearance {
    material Material{
     diffuseColor 1 0 0
    }
   }
   geometry Box {
    size 5.6 0.6 0.3
   }
 }
]
 }
#supporto destro
Transform {
 translation -3 6.7 0
 rotation 0 1 0 1.57
 children[
  Shape {
   appearance Appearance {
    material Material{
     diffuseColor 1 0 0
    }
   }
   geometry Box {
    size 5.6 0.6 0.3
   }
   }
 
]
 }
#supporto sinistro
Transform {
 translation 3 6.7 0
 rotation 0 1 0 1.57
 children[
  Shape {
   appearance Appearance {
    material Material{
     diffuseColor 1 0 0
    }
   }
   geometry Box {
    size 5.6 0.6 0.3
   }
   }
 
]
 }
]
}
Transform {
translation 8.1 0 0
children [
 USE banco
 ]
}

1 commento: