[x3d-public] browser importDocument SAI service

Andreas Plesch andreasplesch at gmail.com
Fri Oct 7 10:22:01 PDT 2016


The SAI defines a browser importDocument service:

http://www.web3d.org/documents/specifications/19775-2/V3.3/Part02/servRef.html#importDocument

and

http://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#t-FunctionsBrowserObject

Is there somewhere a code example of how exactly this service is used ?

The abstract SAI language reads like this js code pattern should be used:

...
var newScene = browser.importDocument(dom);
browser.replaceWorld(newScene);

The js SAI spec. does not elaborate.

cobweb had a slightly different interpretation but now changed to the
interpretation above and I would like to confirm that this pattern is the
intended use.

Thanks, Andreas

-- 
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20161007/cc8ac942/attachment.html>


More information about the x3d-public mailing list