[x3d-public] More than one DEF with same value

Joseph D Williams joedwil at earthlink.net
Wed Jun 3 21:36:34 PDT 2020


➢ DEF with same value allows update or addition of fields of the multiply mentioned node

Provide a running example? What happens to the USE node when the next same DEF appears?
Joe

From: Leonard Daly
Sent: Tuesday, May 19, 2020 5:07 PM
To: x3d-public at web3d.org
Subject: Re: [x3d-public] More than one DEF with same value

John,

DEFs names within a context need to be unique (see https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/concepts.html#DEFL_USESemantics). The same DEF value may appear multiple times in a single XML file as long as each occurrence is in a different context. See link for a description of different contexts.


Here’s my understanding of DEFed nodes.   DEF creates one more parent node similar to USE, but another DEF with same value allows update or addition of fields of the multiply mentioned node, where USE does not.

DEF nodes with the same DEF value may appear more than once in XML.

Okay?

-- 
Leonard Daly
3D Systems & Cloud Consultant
LA ACM SIGGRAPH Past Chair
President, Daly Realism - Creating the Future 

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


More information about the x3d-public mailing list