LANG: IGNORE_CHAR = '~'

Alan Steremberg ([email protected])
Sat, 3 Jun 1995 18:06:50 -0700


Hi,

I have a question about the syntax of VRML files..

here is an excerpt from urlhouse.wrl(ships with NT version of webspace)
(some parts deleted)
========
[...]
MaterialBinding {
value PER_FACE_INDEXED
}
Transform {
rotation 1 0 0 4.71239
}
Separator {
[...]
Separator {
WWWAnchor {
name "yard"
}
ShapeHints {
vertexOrdering COUNTERCLOCKWISE
shapeType SOLID
creaseAngle 0.6
}
[....]
Material {
ambientColor 0.5 0.5 0.5 ~
diffuseColor 0.5 0.5 0.5 ~
specularColor 0.5 0.5 0.5 ~
emissiveColor 0 0 0 ~
shininess 0 ~
transparency 0 ~
}
IndexedFaceSet {
coordIndex [ 0, 1, 2, -1, 2, 3, 0, -1,
4, 5, 6, -1, 6, 7, 4, -1,
0, 1, 6, -1, 6, 7, 0, -1,
1, 2, 5, -1, 5, 6, 1, -1,
2, 3, 4, -1, 4, 5, 2, -1,
3, 0, 7, -1, 7, 4, 3, -1 ]
materialIndex [ 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19 ]
normalIndex [ 0, 0, 1, 1, 2, 2, 3, 3,
4, 4, 5, 5 ]
}
}
========

What does the '~' character mean? I didn't see them mentioned in the spec
or in the Open Inventor books. I did notice that the parser seems to do
something with it, but I am a little confused.

In addition, what should the color of the above set of polygons turn into?
I guess it should be gray, but the materialIndex is set to 19. (Using the
definition inside MaterialBinding, the 0th element should be used for all
of the indices)

Thanks for the help,
Alan
Worlds, Inc.