This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > December 2003 > VRML Specification error?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
VRML Specification error?
|
|
| John Allwork 2003-12-04, 1:00 pm |
| VRML Specification error?
It's a minor detail, but the VRML specification at:
http://www.web3d.org/technicalinfo/...1/nodesRef.html
says:
'The fields and events contained within the node declarations are ordered as
follows:
a. eventIns, in alphabetical order;
b. exposedFields, in alphabetical order;
c. fields, in alphabetical order;
d. eventOuts, in alphabetical order. '
However, later in the specification, the Fog node has a different order:
Fog {
exposedField SFColor color 1 1 1 # [0,1]
exposedField SFString fogType "LINEAR"
exposedField SFFloat visibilityRange 0 # [0,)
eventIn SFBool set_bind
eventOut SFBool isBound
}
Shouldn't it be?:
Fog {
eventIn SFBool set_bind
exposedField SFColor color 1 1 1 # [0,1]
exposedField SFString fogType "LINEAR"
exposedField SFFloat visibilityRange 0 # [0,)
eventOut SFBool isBound
}
Regards
John Allwork
Manchester Metropolitan University
UK
| |
| Herbert Stocker 2003-12-04, 1:00 pm |
|
John Allwork wrote:quote:
> VRML Specification error?
>
> It's a minor detail, but the VRML specification at:
> http://www.web3d.org/technicalinfo/...1/nodesRef.html
>
> says:
> 'The fields and events contained within the node declarations are ordered as
> follows:
>
> a. eventIns, in alphabetical order;
> b. exposedFields, in alphabetical order;
> c. fields, in alphabetical order;
> d. eventOuts, in alphabetical order. '
>
This just says how they want to list the fields in the document.
In other words they are explaining the style guide they use.
There is no required order of fields. Fields are referenced
by their name.
quote:
>
> However, later in the specification, the Fog node has a different order:
> Fog {
> exposedField SFColor color 1 1 1 # [0,1]
> exposedField SFString fogType "LINEAR"
> exposedField SFFloat visibilityRange 0 # [0,)
> eventIn SFBool set_bind
> eventOut SFBool isBound
> }
>
..... and here they violated their own style guide.
That's all.
Herbert
--
Herbert Stocker (aka hersto)
http://www.hersto.de
www.bitmanagement.de
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|