Coordinate Interpolator Example
Transform {
rotation 0 1 0 1.04
children [
DirectionalLight {
ambientIntensity 0.75
}
DEF CORINT CoordinateInterpolator {
key [0, 0.2, 0.4, 0.6, 0.8, 1]
keyValue [ 0 1 1, 0 1 -1, -1 -1 0, 1 -1 0,
0 2 2, 0 1 -1, -1 -1 0, 1 -1 0,
0 1 1, 0 2 -2, -1 -1 0, 1 -1 0,
0 1 1, 0 1 -1, -2 -2 0, 1 -1 0,
0 1 1, 0 1 -1, -1 -1 0, 2 -2 0,
0 1 1, 0 1 -1, -1 -1 0, 1 -1 0 ]
}
Transform {
translation 0 0.5 -10
children [
Shape {
appearance Appearance {
material Material {
emissiveColor 1 1 1
}
}
geometry Text {
string ["CoordinateInterpolator"]
fontStyle FontStyle {
justify "MIDDLE"
}
}
}
]
}
Transform {
translation 0 3 -10
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 0 1
}
}
geometry IndexedFaceSet {
coord DEF CORTGT Coordinate {
point [ 0 1 1, 0 1 -1, -1 -1 0, 1 -1 0]
}
coordIndex [ 2 3 0 -1,
2 0 1 -1,
3 2 1 -1,
3 1 0 -1 ]
}
}
]
}
]
}