Basic HTML version of Foils prepared March 4 1998

Foil 128 Text Node Definition

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 98. by Zeynep Ozdemir, Rob Baker, Meryem Ispirli, Geoffrey C. Fox

Definition and Example of Text Node for Foil 128(Definition and Example)
Text Shapes build 2D text in a VRML world
  • Use for Signs, notes, annotation, control panels
Shape { geometry
  • Text { string [] # exposedField MFString
  • fontStyle NULL # exposedField SFNode
  • length [] # exposedField MFFloat
  • maxExtent 0.0 # exposedField SFFloat
  • }
}
Text strings list the text to build in string field
Each entry in string vector generates a single line or column (depending on fontstyle field horizontal field value)
  • Text { string [ "CPS616", "Instructor : G. FOX" ] }
Note Text is viewed as being in "geometry" class



© 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 Apr 5 1998