Implementasi Coding dari tampilan diatas sebagai berikut :
#VRML V2.0 utf8
Group {
children [
# Ground
Shape {
appearance DEF White Appearance {
material Material { }
}
geometry Box { size 6.0 0.1 4.0
}
},
Transform {
translation 0.0 -1.0 0.0
children [
Shape {
appearance DEF White Appearance {
material Material { }
}
geometry Box { size 5.6 0.1 3.6
}
}]},
Transform {
translation 2.7 -1.0 1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.1 0.0 0.0 }
}
geometry Cylinder { radius 0.2
height 2.0 }
} ]
},
Transform {
translation -2.7 -1.0 1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.1 0.0 0.0 }
}
geometry Cylinder { radius 0.2
height 2.0 }
}
]
},
Transform {
translation 2.7 -1.0 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.1 0.0 0.0 }
}
geometry Cylinder { radius 0.2
height 2.0 }
}
]
},
Transform {
translation -2.7 -1.0 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.1 0.0 0.0 }
}
geometry Cylinder { radius 0.2
height 2.0 }
}
]
},
Transform {
translation -2.5 -0.5 -1.5
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.0 1.0 0.0 }
}
geometry Cylinder { radius 0.2
height 1.0 }
}
]
}
,
Transform {
translation 2.5 -0.5 -1.5
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.0 1.0 0.0 }
}
geometry Cylinder { radius 0.2
height 1.0 }
}
]
},
Transform {
translation -2.5 -0.5 1.5
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.0 1.0 0.0 }
}
geometry Cylinder { radius 0.2
height 1.0 }
}
]
} ,
Transform {
translation 2.5 -0.5 1.5
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1 # biru muda
emissiveColor 0.0 1.0 0.0 }
}
geometry Cylinder { radius 0.2
height 1.0 }
}
]
}
]
}
Group {
children [
Transform {
translation 5.0 -0.7 0.0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Box { size 1.5 0.1 1.8}
}]},
Transform {
translation 4.3 -1.0 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 2.3}
}
]
}
,
Transform {
translation 4.3 -1.0 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 2.3}
}
]
} ,
Transform {
translation 4.3 0.1 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Sphere { radius 0.2 }
}
]
} ,
Transform {
translation 4.3 0.1 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Sphere { radius 0.2 }
}
]
} ,
Transform {
translation 5.6 -0.4 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 3.4}
}
]
} ,
Transform {
translation 5.6 -0.4 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 3.4}
}
]
}
Transform {
translation 5.5 0.7 0.0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Box { size 0.1 1.0 1.8}
}]},
Transform {
rotation 0.0 0.0 90.0 90.0
translation 4.9 0.4 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 1.4}
}
]
} ,
Transform {
rotation 0.0 0.0 90.0 90.0
translation 4.9 0.4 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 1.4}
}
]
}
]
}
Group {
children [
Transform {
translation 2.4 0.8 0.0
children [
Shape {
appearance Appearance {
material Material { diffuseColor 1 1 1
}
}
geometry Cylinder {radius 0.2 height 0.25}
}
]
} ,
Transform {
translation 2.4 0.3 0.0
children [
Shape {
appearance Appearance {
material Material { diffuseColor 1 1 1
}
}
geometry Cylinder {radius 0.05 height 0.35}
}
]
} , Transform {
translation 2.4 0.1 0.0
children [
Shape {
appearance Appearance {
material Material { diffuseColor 1 1 1
}
}
geometry Cylinder {radius 0.15 height 0.02}
}
]
} ,
Transform {
translation 2.4 0.7 0.0
children [
Shape {
appearance Appearance {
material Material { diffuseColor 1 1 1
}
}
geometry Sphere {radius 0.2 }
}
]
}
]
}
Group {
children [
Transform {
translation 5.0 -0.7 0.0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Box { size 1.5 0.1 1.8}
}]},
Transform {
translation 4.3 -1.0 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 2.3}
}
]
}
,
Transform {
translation 4.3 -1.0 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 2.3}
}
]
} ,
Transform {
translation 4.3 0.1 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Sphere { radius 0.2 }
}
]
} ,
Transform {
translation 4.3 0.1 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Sphere { radius 0.2 }
}
]
} ,
Transform {
translation 5.6 -0.4 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 3.4}
}
]
} ,
Transform {
translation 5.6 -0.4 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 3.4}
}
]
}
Transform {
translation 5.5 0.7 0.0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Box { size 0.1 1.0 1.8}
}]},
Transform {
rotation 0.0 0.0 90.0 90.0
translation 4.9 0.4 0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 1.4}
}
]
} ,
Transform {
rotation 0.0 0.0 90.0 90.0
translation 4.9 0.4 -0.8
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0.1 0.1 0.1}
}
geometry Cylinder { radius 0.2 height 1.4}
}
]
}
]
}
0 komentar:
Posting Komentar