Open3D
Open3D copied to clipboard
o3d.io.read_triangle_mesh_from_bytes
Checklist
- [x] I have searched for similar issues.
- [x] For Python issues, I have tested with the latest development wheel.
- [x] I have checked the release documentation and the latest documentation (for
mainbranch).
Proposed new feature or change
There is an o3d.io.read_point_cloud_from_bytes, but no pendant for triangle meshes.
The usecase here is an HTTP server, taking STL files as an input. At the moment one has to write a temporary file, then pass that path to open3d.
References
https://www.open3d.org/docs/latest/python_api/open3d.io.read_point_cloud_from_bytes.html
Trimesh supports to load from BytesIO: https://trimesh.org/trimesh.exchange.load.html#trimesh.exchange.load.load
Additional information
No response