<p dir="ltr">On Oct 10, 2016 7:17 PM, "Roy Walmsley" <<a href="mailto:roy.walmsley@ntlworld.com">roy.walmsley@ntlworld.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I did recall later that MetadataBoolean can be used in MetadataSet, not just in the metadata field, but also in the value field.<br>
><br>
Sorry, I missed that.<br>
><br>
> And another example is any node derived from X3DRigidJointNode, which has the two fields body1 and body2, both of which take a RigidBody child node.<br>
></p>
<p dir="ltr">Is this is a case where a containerField value may be best required, eg. a default of null ?</p>
<p dir="ltr">><br>
> And going back to your comments on the Collision node having both children, an MFNode field, and proxy an SFNode field; all you can deduce without reference to containerField info, is that a maximum of one child goes into proxy.<br>
></p>
<p dir="ltr">Hmm, not sure I follow. Does this mean proxy accepts a MFNode with a single SFNode item? Oh, I see, in XML there is no way to distinguish between this case and a SFNode. Perhaps there should be a way ? A <Multiple> element ?</p>
<p dir="ltr">><br>
> Roy<br>
><br>
>  <br>
><br>
> From: Andreas Plesch [mailto:<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>] <br>
> Sent: 10 October 2016 22:56<br>
> To: Roy Walmsley <<a href="mailto:roy.walmsley@ntlworld.com">roy.walmsley@ntlworld.com</a>><br>
> Cc: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>>; doug sanden <<a href="mailto:highaspirations@hotmail.com">highaspirations@hotmail.com</a>><br>
><br>
> Subject: Re: [x3d-public] getContainerField() [was cobweb DOM integration]<br>
><br>
>  <br>
><br>
> On Mon, Oct 10, 2016 at 3:47 PM, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br>
>><br>
>> Hi Roy,<br>
>><br>
>> On Oct 10, 2016 10:27 AM, "Roy Walmsley" <<a href="mailto:roy.walmsley@ntlworld.com">roy.walmsley@ntlworld.com</a>> wrote:<br>
>> >...<br>
>> > Q1 – Usually (always) just one field for a given parent nodetype. I don’t have an exhaustive answer, but I will give an example. It may be the only one, not sure. Look at the Collision node, (19775-1, 23.4.2, <a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/navigation.html#Collision">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/navigation.html#Collision</a>. Note that there is a children field and a proxy field, both of which accept X3DChildNode. In other words, what can go in one can also go in the other.<br>
>> ><br>
>><br>
>> This may not be the best example since children is a mfnode and proxy is a sfnode. So based on the node type of the child it would be still possible to determine which field is targeted ?<br>
><br>
> I was grepping through the web3d and savage examples to get a quick sense of how containerField is used. One type of usage seems to be just repeating the default containerField value, presumably as an aid for a human interpreter of the x3d, particularly in the savage archive. Another type of usage is with user defined fields in proto instances where the default container field value necessarily does not apply. A third type is with certain components: H-Anim, Rigid Body seem to use it most. Volume Rendering, as Doug noticed, also requires containerField='voxels' for VolumeData.<br>
><br>
> I can see why for XML it was decided to have containerField rather than wrapper tags. It is awkward to have a <Children> element under grouping nodes when the wrapped elements are actually child nodes, and particularly so when repeated many times. But containerField is also a rather unintuitive concept, requiring to think 'backwards', eg. up the hierarchy. Well, I am sure this was discussed at length and it would be difficult to come up with a better solution without deep changes.<br>
><br>
>  <br>
><br>
> -Andreas<br></p>