[x3d-public] Finding more than one use of a DEF in VRML

John Carlson yottzumm at gmail.com
Wed Mar 25 22:29:49 PDT 2020


DEF/USE is how multiparent nodes are achieved, but all DEF and USE with the
same value are the same node, except for a few special cases.

This is what one reason why HTML DOM is a poor choice...the nodes have only
one parent.

Or I’m still battling windmills?

John

On Wed, Mar 25, 2020 at 10:16 PM GPU Group <gpugroup at gmail.com> wrote:

> double defining:
> - this stymied me too, until I realized the DEF/USE are just for the
> parser, and its the sequence that counts although different for different
> browsers.
> - if you redef 3 times, then USE, what will you get?
> - that depends on the web3d browser, with some sticking to the first DEF,
> some the last DEF.
>
> On Wed, Mar 25, 2020 at 9:01 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> If one DEF specified a shape and another DEF with the same value with a
>> different shape, wouldn't the 2 browsers show different shapes if they
>> picked different DEFs?
>>
>> I don't think double DEFs should be allowed within the same namespace.
>>
>> John
>>
>> On Wed, Mar 25, 2020 at 9:12 PM GPU Group <gpugroup at gmail.com> wrote:
>>
>>> Chisel? "it was simply put in the public domain by Trapezium when they
>>> folded many years ago. They didn¹t specify any license" - Louka
>>> http://dug9.users.sourceforge.net/web3d/temp/chisel-src.zip
>>> But I suspect double-deffing isn't illegal. I think I've been through
>>> it, and different browsers honored the first or last definition.
>>> -Doug
>>>
>>> On Wed, Mar 25, 2020 at 7:43 PM John Carlson <yottzumm at gmail.com> wrote:
>>>
>>>> That is, more than one DEF with the same value.
>>>>
>>>> I realize that separate PROTOs may have the same DEF due to namespaces.
>>>>   Unfortunately writing a Unix script to find this takes massive brain
>>>> power.
>>>>
>>>> John
>>>>
>>>> On Wed, Mar 25, 2020 at 8:37 PM John Carlson <yottzumm at gmail.com>
>>>> wrote:
>>>>
>>>>> I’m not particular looking for a vrml parser unless it catches double
>>>>> use of a DEF.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> John
>>>>>
>>>>> I’m thinking my next project might be a VRML validator if there isn’t
>>>>> one handy?  Anyone?
>>>>>
>>>>> I know I can translate VRML to XML.
>>>>>
>>>>> John
>>>>>
>>>>> On Wed, Mar 25, 2020 at 3:38 PM John Carlson <yottzumm at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Say, where is a VRML Validator? !!!!
>>>>>>
>>>>>> On Wed, Mar 25, 2020 at 3:33 PM John Carlson <yottzumm at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> I will download X3D-Edit and do some validation on the files, or go
>>>>>>> to the validation site @ savage
>>>>>>>
>>>>>> _______________________________________________
>>>> x3d-public mailing list
>>>> x3d-public at web3d.org
>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>>
>>> _______________________________________________
>>> x3d-public mailing list
>>> x3d-public at web3d.org
>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200326/216abced/attachment.html>


More information about the x3d-public mailing list