Monday, 2 April 2018

javascript - Can I use a local file with X.mesh?

I'm adapting Lesson 5 from here, which takes a skull vtk object and displays it rotating in a circle. I want to change it so instead of accessing the .vtk object at http://x.babymri.org/?skull.vtk, it reads from a local file. Is this possible? I downloaded an exact copy of the skull.vtk and tried things like skull.file = file:///C:/Users/myName/Desktop/XTKtest/downloadedSkull.vtk;, but I didn't get anywhere. Is there an alternate way to do this?



Thanks in advance, I am super new to XTK and JavaScript in general...

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...