HELP! * GREY=local LOCAL HTML version of Foils prepared 7 April 1997

Foil 69 Use of PER_FACE_INDEXED MaterialBinding in Pyramid Coloring - I

From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96 and 97. by Geoffrey C. Fox, Alvin Leung, Meryem Ispirli * See also color IMAGE
Addon
Changed in VRML2.0
This uses same Material Node as PER_FACE with 6 colors defined
MaterialBinding {
  • value PER_FACE_INDEXED
}
Tell the browser to pick a color form the list according to the given indices using MaterialIndex attribute in IndexFaceSet Node.
IndexedFaceSet { # Use Usual CoordIndex Attribute
  • materialIndex [
  • 5, 4, 3, 2, 1, 0, -1,
  • ]
}



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun May 25 1997