# Genesis M. Ojeda
#VRML V2.0 uK8
# Blue vertical box
Shape {
geometry Box { size 0.1 10 0.1 }
appearance Appearance {
material Material { diffuseColor 0 0 1 }
}
}
# Green horizontal box
Shape {
geometry Box { size 10 0.1 0.1 }
appearance Appearance {
material Material { diffuseColor 0 1 0 }
}
}
# Red depth box
Shape {
geometry Box { size 0.1 0.1 10 }
appearance Appearance {
material Material { diffuseColor 1 0 0 }
}
}
# ROTACIÓN DE 180 GRADOS DE UN CONO EN EL EJE DE Z
Transform {
rotation 0 0 1 3.14
children [
Shape { geometry Cone {} }
]
}
# TRASLACIÓN DE UN CONO EN 4 UNIDADES EL EJE DE Z
Transform {
translation 0 0 4
children [
Shape {
geometry Cone {}
appearance Appearance {
material Material { diffuseColor 1 0 0 }
}
}
]
}
# Genesis M. Ojeda
#VRML V2.0 uK8
# Blue vertical box
Shape {
geometry Box { size 0.1 10 0.1 }
appearance Appearance {
material Material { diffuseColor 0 0 1 }
}
}
# Green horizontal box
Shape {
geometry Box { size 10 0.1 0.1 }
appearance Appearance {
material Material { diffuseColor 0 1 0 }
}
}
# Red depth box
Shape {
geometry Box { size 0.1 0.1 10 }
appearance Appearance {
material Material { diffuseColor 1 0 0 }
}
}
# ROTACIÓN DE 180 GRADOS DE UN CONO EN EL EJE DE Z
Transform {
rotation 0 0 1 3.14
children [
Shape { geometry Cone {} }
]
}
# ROTACIÓN DE 90 GRADOS DE UN CONO EN EL EJE DE x
Transform {
translation 0 0 -4
children [
Transform {
rotation 1 0 0 1.57 # 90 grados en radianes (pi/2)
children [
Shape { geometry Cone {}
appearance Appearance {
material Material { diffuseColor 1 1 1 }
}}
]
}
]
}
# ROTACIÓN DE 60 GRADOS DE UN CONO EN EL EJE DE x
Transform {
translation 4 0 0
children [
Transform {
rotation 1 0 0 0.5233333333 # 90 grados en radianes (pi/6)
children [
Shape { geometry Cone {}
appearance Appearance {
material Material { diffuseColor 0 1 1 }
}}
]
}
]
}
# ROTACIÓN DE 90 GRADOS DE UN CONO EN EL EJE DE Z
Transform {
translation -4 0 0
children [
Transform {
rotation 0 0 1 1.57 # 90 grados en radianes (pi/2)
children [
Shape { geometry Cone {}
appearance Appearance {
material Material { diffuseColor 1 1 0 }
}}
]
}
]
}
# TRASLACIÓN DE UN CONO EN 4 UNIDADES EL EJE DE Z
Transform {
translation 0 0 4
children [
Shape {
geometry Cone {}
appearance Appearance {
material Material { diffuseColor 1 0 0 }
}
}
]
}