[x3d-public] [...] HAnim2 X3D4 BoxMan update: does ClassicVRMLGrammar allows ROUTE in children?

Joseph D Williams joedwil at earthlink.net
Thu Jan 5 14:21:38 PST 2023


Thanks, I used Example 1 but the example 2 serves my purpose to keep related things together. 
I will try that. 
Still wondering, where do I find this grammar or similar rule in the standard? 
Joe


From: Patrick Dähne
Sent: Thursday, January 5, 2023 11:04 AM
To: Brutzman, Donald (Don) (CIV)
Cc: Joseph D Williams; Michalis Kamburelis; X3D Public Mailing List (x3d-public at web3d.org)
Subject: Re: [x3d-public] [...] HAnim2 X3D4 BoxMan update: does ClassicVRMLGrammar allows ROUTE in children?

Hello,

I did not want to start a big discussion here, I just wanted to explain why the given „BoxManJoeAnim.reworked.x3dv“ might not import correctly because the ROUTEs are inside an MFNode field which - according to the grammar - is not allowed. Below are three simple examples, the first two are valid, the third is invalid. „BoxManJoeAnim.reworked.x3dv“ corresponds to the third example.

Bye,

Patrick

—

Example 1 (valid, ROUTE at top level):

Relevant grammar rules: x3dScene -> statements -> statement -> routeStatement

###

Group {
  children [
    DEF ts TimeSensor { … }
    DEF oi OrientationInterpolator { … }
  ]
}

ROUTE ts.fraction_changed TO oi.set_fraction

###

—

Example 2 (valid, ROUTE in node body):

Relevant grammar rules: x3dScene -> statements -> statement -> nodeStatement -> node -> nodeBody -> nodeBodyElement -> routeStatement

###

Group {
  children [
    DEF ts TimeSensor { … }
    DEF oi OrientationInterpolator { … }
  ]
  ROUTE ts.fraction_changed TO oi.set_fraction
}

###

—

Example 3 (*invalid*, ROUTE in MFNode field):

Relevant grammar rules: x3dScene -> statements -> statement -> nodeStatement -> node -> nodeBody -> nodeBodyElement -> fieldValue -> mfnodeValue -> nodeStatements -> nodeStatement -> ???

###

Group {
  children [
    DEF ts TimeSensor { … }
    DEF oi OrientationInterpolator { … }
    ROUTE ts.fraction_changed TO oi.set_fraction
  ]
}

###


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230105/de045e21/attachment.html>


More information about the x3d-public mailing list