Does Model3DView work with stl files?
4rdhendu opened this issue · 1 comments
4rdhendu commented
Hi,
Very nice work! Does Model3DView work with .stl files. If no, what is a possible workaround? Also, how do we specify a path ("/var/xyz/test.stl") to the file we want to display if it resides at some known path?
frzi commented
Model3DView uses SceneKit and GLTFSceneKit under the hood. STL files are not supported. To support them, you'll need to find a package that converts STL to SceneKit, which you can then use using init(scene:). The supported file formats of SceneKit are listed here.
To answer the second question (which is not relevant now), you can use init(file:) to initialize using a file that's not located inside the bundle.