Basic HTML version of Foils prepared March 4 1998

Foil 75 Prototypes - I

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

Prototype Definition and Examples for Foil 75(Definition and Examples)
Prototyping is a mechanism that allows the set of node types to be extended by the user from within a VRML file. It allows the encapsulation and parameterization of geometry, attributes, behaviors, or some combination thereof.
PROTO ProtoName
  • [ field SFBool foo # This is declaration section
  • eventOut SFColor foo2 # Names must be Unique
  • eventIn SFVec3f foo3
  • exposedField SFString foo4 # End declaration
  • ] {.. prototype definition ..}



© 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