vr2-4-16.wrl
[ VRML source code ]
#VRML V2.0 utf8
#vr2-4-16.wrl
DEF UP Viewpoint {
description "Up View"
position 10 0 50
}
DEF ROT1 Viewpoint {
description "Rotation1 View"
position 10 0 40
orientation 0 0 1 0.7854
}
DEF ROT2 Viewpoint {
description "Rotation2 View"
position 10 0 30
orientation 0 0 1 1.5708
}
DEF ROT3 Viewpoint {
description "Rotation3 View"
position 10 0 25
orientation 1 0 0 0.9
}
#Gum Boat
#body
Transform {
children DEF SideBody Shape {
appearance Appearance {
material Material {
diffuseColor 0.5 0.5 0.5
}
}
geometry Cylinder {
radius 5
height 40
}
}
}
Transform {
translation 20 0 0
children USE SideBody
}
#rear side
Transform {
rotation 0 0 1 1.57079
translation 10 -15 0
children Shape {
appearance Appearance {
material Material {
diffuseColor 0.5 0.5 0.5
}
}
geometry Cylinder {
radius 5
height 20
}
}
}
#front side
Transform {
rotation 0 0 1 -0.8
translation 5 23 0
children DEF FrontSide Shape {
appearance Appearance {
material Material {
diffuseColor 0.5 0.5 0.5
}
}
geometry Cylinder {
radius 5
height 20
}
}
}
Transform {
rotation 0 0 1 0.8
translation 15 23 0
children USE FrontSide
}
#base
Transform {
translation 10 2.5 -4.95
scale 1 1 0.01
children Shape {
appearance Appearance {
material Material {
diffuseColor 0.5 0.5 0.5
}
}
geometry Cylinder {
radius 10
height 35
}
}
}
Transform {
translation 10 22.5 -4.95
scale 1 1 0.01
children Shape {
appearance Appearance {
material Material {
diffuseColor 0.5 0.5 0.5
}
}
geometry Cone {
bottomRadius 10
height 5
}
}
}
#board
Anchor {
url "#UP"
children Transform {
translation 10 -2.5 4
children DEF Board Shape {
appearance Appearance {
texture ImageTexture {
url "wood.gif"
}
}
geometry Box {
size 20 5 1.5
}
}
}
}
#board
Anchor {
url "#ROT2"
children Transform {
translation 10 7.5 4
children USE Board
}
#oal1
Transform {
translation 0 0 5
children DEF Bar Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1
}
}
geometry Cylinder {
radius 0.5
height 20
}
}
}
Transform {
translation 0 -11 5
scale 1 1 0.1
children DEF BarHead1 Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 0
}
}
geometry Cone {
bottomRadius 2.5
height 5
}
}
}
Transform {
translation 0 -16 5
scale 1 1 0.1
children DEF BarHead2 Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 0
}
}
geometry Cylinder {
radius 2.5
height 5
}
}
}
#oal2
Transform {
translation 20 0 5
children USE Bar
}
Transform {
translation 20 -11 5
scale 1 1 0.1
children USE BarHead1
}
Transform {
translation 20 -16 5
scale 1 1 0.1
children USE BarHead2
}