Hi! Noticed three js has now support for 3dm files. Great notice!
I’m trying to load 3dm files, but having some issues on libraryPath. Rhino3dmLoader incorporates a method setLibraryPath to set the path to rhino3dm folder (rhino3dm.js and rhindo3dm.wasm) on libs. Taking a look at source code I saw it uses a FileLoader and a method setPath.
The question is what url should I provide when calling setLibraryPath?
-
Path from 3dm loader
-
Path from the file where calling taht method
I try it both and getting this error:
This is how I used when setting the path from 3dm loader:const loader = new Rhino3dmLoader();
loader.setLibraryPath(’…/libs/rhino3dm/’);