[x3d-public] X3DPSAIL sets all on one line

John Carlson yottzumm at gmail.com
Mon May 6 18:23:52 PDT 2019


All X3DPSAIL generated set method uses for fields are now on one line for an object.

Example:
X3D0 = X3D() \
   .setProfile(SFString("Immersive")).setVersion(SFString("3.3")) \
   .setHead(head() \
    .addMeta(meta() \
     .setContent(SFString("abox.x3d")).setName(SFString("title")) \
    ) \
    .addMeta(meta() \
     .setContent(SFString("John Carlson")).setName(SFString("creator")) \
    ) \
    .addMeta(meta() \
     .setContent(SFString("manual")).setName(SFString("generator")) \
    ) \
    .addMeta(meta() \
     .setContent(SFString("https://coderextreme.net/X3DJSONLD/abox.x3d")).setName(SFString("identifier")) \

Note I use SFString as padding (for all SF/MF fields) to avoid SAI problems

Enjoy!

Feedback welcome!

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190506/3ab889d3/attachment.html>


More information about the x3d-public mailing list