Basic HTML version of Foils prepared March 4 1998

Foil 30 Defining Node Names

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

Example of DEF and USE from www.vrml.org
Nodes can be named, and used repeatedly
  • DEF MyCylinder Shape { }
  • USE MyCylinder
DEF node-name node-type {}
  • node-names are a sequence of characters and they are case sensitive.
  • Do not used the names which are already in use for specific purposes as a node name.
USE node-name
  • It is possible to use the same node in the same file multiple times without repeating the definition. There is no limit for instancing the same node by using USE.



© 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