Paraview glance from URL

I’m trying to get Paraview Glance to load my volume from a URL, and it doesn’t seem to work. I think it tries and then just pops up the load window. Here’s my URL:

https://kitware.github.io/paraview-glance/app/?name=teapot.nrrd&url=https://data.kitware.com/#item/6192bb542fa25629b9c0db76

I noticed that when I try to load the example data sets on the Glance webpage, the same thing happens. They also fail to load and just pop up the load window.

Try this link: https://kitware.github.io/paraview-glance/app/?name=teapot.nrrd&url=https://data.kitware.com/api/v1/file/6192bb542fa25629b9c0db78/download. You are linking to the data page for the dataset, not the direct download link.

The examples load for me. What browser and version are you using?

Thanks for fixing my URL. It does now work for me.

The examples still don’t load for me. I tried Safari (15.1 and 15.0) and Chrome (96.0.4664.55) on a two different Macs.

Hello again.

We are investigating using Paraview Glance for viewing DICOM and meshes on the NIH 3D Print Exchange. As a test, I was trying to load a surface model from 3d STL file on our server. For some reason it will not load.

Here’s the sample file I was trying to load:
https://3dprint.nih.gov/sites/default/files/models/pdb_files/PDB-5W3D-ribbon.stl

And here’s my Paraview Glance URL:

I can pull the STL file ok with ‘curl’, but PG doesn’t seem to get it.

Any ideas? Thanks.

CORS limitation from your server.

Access to XMLHttpRequest at 'https://3dprint.nih.gov/sites/default/files/models/pdb_files/PDB-5W3D-ribbon.stl' from origin 'https://kitware.github.io' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://d2z471btmx6vaz.cloudfront.net' that is not equal to the supplied origin.

OK, thanks. I’ll talk to the server people and see if that can be fixed.

An another option is to host and serve glance from the same domain.

1 Like