[x3d-public] Behavior of X3D's DOM integration
Kristian Sons
kristian.sons at dfki.de
Thu Apr 16 01:11:27 PDT 2015
Hi Johannes,
>> >Using Johannes approach, one would circumvent this. On the other hand this would result in some magic transforming the DOM at other places if the user deletes or adds a node. I would find this very counterintuitive.
> For me DEF/USE is really just a serialisation construct to map the graph to a tree and therefore two pointer to the same node which should behaviour exactly the same. According to the spec the node is the same. Deep-copies are done with Proto-instances. Therefore this should work:
>
> 1) Create to shapes (A,B) which share the material
> 2) Delete one shape (A)
> 3) (B) should still work with the given material in the setup state
I absolutely see your point, this is how X3D works. However with your
example above in the DOM starting from this:
<Group>
<Shape DEF="A">
<Sphere>
<Appearance DEF="red">
<Material diffuseColor='1.0 0.0 0.0'/>
</Appearance>
</Shape>
<Shape DEF="B">
<Box/>
<Appearance USE="red"/>
</Shape>
</Group>
How would the DOM look like after deleting Shape#A?
Best,
Kristian
--
_______________________________________________________________________________
Kristian Sons
Deutsches Forschungszentrum für Künstliche Intelligenz GmbH, DFKI
Agenten und Simulierte Realität
Campus, Geb. D 3 2, Raum 0.77
66123 Saarbrücken, Germany
Phone: +49 681 85775-3833
Phone: +49 681 302-3833
Fax: +49 681 85775–2235
kristian.sons at dfki.de
http://www.xml3d.org
Geschäftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
_______________________________________________________________________________
More information about the x3d-public
mailing list