Open GoogleCodeExporter opened 8 years ago
Conceptually, an URL pointing to a local file is acceptable, for example:
viewer.replaceSceneFromUrl('./models/sample.obj');
or even an absolute file path:
viewer.replaceSceneFromUrl('file:///D:/my_models/stls/sample.stl');
Provided that the host browser allows the XHR object to access files on local
file system, which is not the case for most browsers and you may have to
manually change their security settings to enable this explicitly. If your
target browser is Chrome, then this discussion
http://stackoverflow.com/questions/4819060/allow-google-chrome-to-use-xmlhttpreq
uest-to-load-a-url-from-a-local-file may be helpful.
I'm not sure whether it is what you are looking for.
Original comment by Humu2...@gmail.com
on 27 Oct 2014 at 2:34
Original issue reported on code.google.com by
gianluca...@gmail.com
on 27 Oct 2014 at 10:58