Closed taiki-e closed 11 months ago
Currently, meshes starting with http:/https: are not supported with assimp.
http:
https:
https://github.com/openrr/urdf-viz/blob/9cf51a756a748a78644f3923756970e2bf2ac7af/src/mesh.rs#L104-L107
This is because the assimp-sys API requires the path to the local mesh file.
https://github.com/openrr/urdf-viz/blob/9cf51a756a748a78644f3923756970e2bf2ac7af/src/mesh.rs#L26
By downloading the file, saving it as a temporary file, and passing the path to it to assimp-sys, it should be possible to support meshes starting with http:/https: with assimp.
Currently, meshes starting with
http:
/https:
are not supported with assimp.https://github.com/openrr/urdf-viz/blob/9cf51a756a748a78644f3923756970e2bf2ac7af/src/mesh.rs#L104-L107
This is because the assimp-sys API requires the path to the local mesh file.
https://github.com/openrr/urdf-viz/blob/9cf51a756a748a78644f3923756970e2bf2ac7af/src/mesh.rs#L26
By downloading the file, saving it as a temporary file, and passing the path to it to assimp-sys, it should be possible to support meshes starting with
http:
/https:
with assimp.