> 1) Is it legal for a DEF name to be a VRML keyword. For
> example 'DEF Sphere Info {}'? I was surprised to see
> this emitted from fountain (and even more surprized
> that Fountain was able to esad it back).
The namespace used for named nodes (using "DEF") is distinct from
the namespace used for node classes. Therefore, they may contain
identical entries with no problem. At least, the spec does not
disallow this, so it should be legal.
> 2) Is is legal to define a new node type in a DEF. For
> example is 'DEF Foo MyNewNode { fields [...] ... }' legal
> VRML.
The "DEF" keyword just assigns a name to a node. It can be used
to assign a name to any node of any type, so yes, that is legal.
----
Paul S. Strauss [email protected] Silicon Graphics Computer Systems
Open Inventor Web info in http://www.sgi.com/Technology/Inventor.html