[x3d-public] geometry field mentioned twice in ParticleSystem node in Object Model.

Roy Walmsley roy.walmsley at ntlworld.com
Mon May 15 07:42:09 PDT 2017


Hi John,

 

What it means is that there is a problem with the XML Schema, or the XSLT stylesheet, since currently the Object Model is derived from the schema by autogeneration using XSLT.

 

The ParticleSystem node is derived from X3DShapeNode. The X3DShapeNode interface has a ‘geometry’ field. This is reflected in the XML schema (V3.3) which lists the ‘geometry’ field. However, reviewing this the ‘geometry’ field is placed inside double <appinfo> elements. Why? Because both nodes derived from X3DShapeNode, i.e. Shape and ParticleSystem, also have the ‘geometry’ field included. So the idea of the double <appinfo> wrapping is that it shouldn’t be picked up by the XSLT stylesheet, which it obviously is. Hence it is being included twice, once from X3DShapeNode, and once from ParticleSystem. 

 

Having said that, I looked at Shape in the Object Model, and only found one ‘geometry’ field. So maybe it’s not quite that simple. Obviously needs further investigation.

 

Thanks John,

 

Roy

 

From: John Carlson [mailto:yottzumm at gmail.com] 
Sent: 15 May 2017 01:47
To: Roy Walmsley <roy.walmsley at ntlworld.com>; Don Brutzman NPS <don.brutzman.nps at gmail.com>; X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: geometry field mentioned twice in ParticleSystem node in Object Model.

 

What does it mean when a field is mentioned twice in the object model?

 

Ref ParticleSystem.geometry:

 

            <field type="SFNode"

                   accessType="inputOutput"

                   name="geometry"

                   default="NULL"

                   acceptableNodeTypes="X3DGeometryNode"

                   inheritedFrom="X3DShapeNode"/>

            <field type="SFNode"

                   accessType="inputOutput"

                   name="geometry"

                   default="NULL"

                   acceptableNodeTypes="X3DGeometryNode">

               <componentInfo name="ParticleSystems" level="3"/>

            </field>

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


More information about the x3d-public mailing list