I have downloaded the content of .svf file using https://github.com/petrbroz/forge-convert-utils to my local machine. then I am trying to load the .svf file to forge viewer in this way.
const MODEL_URL = './models/model1/output.svf';
Autodesk.Viewing.Initializer({ env: 'Local' }, async function () {
const viewer = new Autodesk.Viewing.GuiViewer3D(document.getElementById('preview'));
viewer.start(MODEL_URL);
});
async function download() {
debugger;
await fetch('/api/download');
}
download()
The models
folder is in the root folder. I am getting a popup msg like this.
What is the reason for this? And how can I overcome this? Thanks, in advance.