#VRML V2.0 utf8
# Information about this scene
WorldInfo {
title "Simple extrusion"
info [
"Description: Basics of the extrusion node",
"Programming by Roland Smeenk",
"Last modified: 28 februari 1998",
]
}
# Navigation Info
NavigationInfo {
headlight FALSE
speed 0.8
type "EXAMINE"
}
# First viewpoint
Viewpoint {
description "Startup camera"
position 0 0 10
}
PointLight {
location -10 -10 20
color 1 1 1
}
PointLight {
location 5 10 30
color 1 1 1
}
PointLight {
location -5 10 -30
color 1 1 1
}
Transform {
translation 0 -0.5 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 0
}
}
geometry Extrusion {
# The crossSection has to be closed to build a solid
# This crossSection forms a combined arrow in the X an Z direction
# Because the defualt path is used here the Z arrow will point in your
# direction
crossSection [ -1 -1, -1 2, -1.5 2, 0 4, 1.5 2, 1 2, 1 1,
2 1, 2 1.5 , 4 0, 2 -1.5, 2 -1, -1 -1 ]
# The crossSection we defined above is not convex so the browser can't
# optimize on that
convex FALSE
}
}
]
}