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

Foil 13 SFEnum and SFString

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

SFEnum -- A single-value field that contains an enumerated type value. (Removed in VRML2.0)
  • Nodes that use this field class define mnemonic names for the values.
  • SFEnums are written to file as a mnemonic enumerated type name.
  • The name differs among uses of this field in various node classes.
SFString -- A field containing an ASCII string (sequence of characters). Stored as UTF-8 International Character Set in VRML2.0 (Only relevant for general languages)
  • SFStrings are written to file as a sequence of ASCII characters in double quotes (optional if the string doesn't contain any whitespace).
  • Any characters (including newlines) may appear within the quotes.
  • As usual, to include a double quote character within the string, precede it with a backslash.
For example valid strings are:
  • Testing
  • "One, Two, Three"
  • "He said, \"Wise Words are uttered in CPS616!\""



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