Variables

Nathan J. Strange ([email protected])
Thu, 1 Jun 95 19:09:10 EST


Using the extensibility method in the SPEC I think we could add
a method for describing new nodetypes. We would need some way
to represent variables.

NEW IceCreamCone {
fields [SFFloat radius %rad, SFFloat height %hi]
TransformSeparator {
Sphere { radius %rad }
Translation { translation blahblahsomenumbers
rotation blahblahsomenumbers
}
cone { bottomradius %rad
height %hi
}
}
}
CUST IceCreamCone {radius 2 height 3}

Something like this would make it easier to write VRML and also
reduce file size

Perhaps also a Library {name "url"} node could be included to
say "Here's where you can check to get the definitions of
any nodetypes that you don't know..."