[x3d-public] removeNamedNode removes DEF children?

John Carlson yottzumm at gmail.com
Sun Jul 10 19:31:53 PDT 2022


It’s like a node “inner” has two parents and one is removed.

I hope this helps!

John.

On Sun, Jul 10, 2022 at 6:04 PM Andreas Plesch <andreasplesch at gmail.com>
wrote:

> A question for x3dom about removing nodes came up. Consider this fragment:
>
> <Group DEF='outer'>
>
>   <Group DEF='inner'>
>
>      ...
>
>   </Group>
>
> </Group>
>
> <Group USE='inner'/>
>
> Now the SAI is used to remove 'outer' Group from the Scene, with a
> removeNamedNode('outer') call.
>
> Should the 'inner' DEF node also be removed? A) Yes. This would mean that
> the USE node also would be removed, and not rendered.
>
> B) No. Just the inner instance of the 'inner' node is removed but not the
> other USE instance.
>
> This ought to be well defined but I couldn't decide myself. I think x3dom
> does B).
>
> Andreas
>
>
>
> --on the phone---
> _______________________________________________
> 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/20220710/3cc6b1da/attachment.html>


More information about the x3d-public mailing list