Menu

#65 Don't print out default container field in x3d.py

X3D4
open
None
3 days ago
2025-08-26
No

Discussion

  • Don Brutzman

    Don Brutzman - 2026-02-02

    The CONTAINERFIELD_DEFAULT value is a fixed value that is used to avoid including unnecessary containerField values when exporting to XML. It is also available to programmers, provided for each node.

     
  • Vincent Marchetti

    There is a release at https://github.com/vincentmarchetti/x3dpy_containerfield/releases/tag/rel-1-0-0 of an extension of the x3d package which, following A Plesch's suggestion above, adds a containerField XML attribute in the XML encoding of a node, in those cases where the SFNode/MFNode property that the emitted node is "in", does not match the default containerField as reported by the CONTAINERFIELD_DEFAULT value. The github project https://github.com/vincentmarchetti/x3dpy_containerfield has the stylesheet that creates this variant of x3d package, so it can be applied to other X3D versions based on the X3DUOM file.

     

Log in to post a comment.

MongoDB Logo MongoDB