[x3d-public] X3DJSAIL. Setting generator and reference. Possible enhancement

John Carlson yottzumm at gmail.com
Mon Apr 30 05:33:06 PDT 2018

How does one set meta attribute content= value for attribute names generator and reference output in X3DJSAIL?  Is there a way to do it through
toFileX3D or toFileJSON or toFileJavaScript?

Here’s my program:

    var X3DJSONLD = Java.type("net.coderextreme.X3DJSONLD")
    var loader = new X3DJSONLD();
    var File = Java.type("java.io.File")
    var jsobj = loader.readJsonFile(new File("./nashorn/examples/HelloWorldProgramOutput.json"));
// maybe do something with jsobj?
    var document = loader.loadJsonIntoDocument(jsobj);
    var X3DLoaderObject = Java.type("org.web3d.x3d.jsail.X3DLoaderObject")
    var xmlLoader = new X3DLoaderObject();
    var X3D0 = xmlLoader.toX3dObjectTree(document);
// maybe do something to X3D0?
    X3D0.toFileX3D("./nashorn/examples/Json.x3d");  // maybe add something here?

How do I set the generator to this program?  Do I need to get into the X3D0 scenegraph, or can
The calls toFileX3D and toFileJSON do it?  Do those calls set it to 'X3D Java Scene Access Interface Library (X3DJSAIL)'

What in general should set the generator?



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

More information about the x3d-public mailing list