Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use open3d.io.write_octree (filename, octree) to save an octree map? #7122

Open
3 tasks done
WrndCCX opened this issue Jan 2, 2025 · 0 comments
Open
3 tasks done
Labels

Comments

@WrndCCX
Copy link

WrndCCX commented Jan 2, 2025

Checklist

My Question

How to use open3d.io.writable octree (filename, octree) to save an octree map?
Do anyone have a solution?

My code is:
octree = open3d.geometry.Octree(max_depth=8)
octree.convert_from_point_cloud(voxel_pcd, size_expand=0.01)
open3d.visualization.draw_geometries([octree],window_name="Octree")
open3d.io.write_octree("octomap.ot", octree)
#open3d.io.write_octree("octomap.bt", octree)

The program is able to draw the window of an octree normally, but an error message appears when saving:
[Open3D WARNING] Write geometry::Octree failed: unknown file extension.

@WrndCCX WrndCCX changed the title How to use open3d.io.writable octree (filename, octree) to save an octree map? How to use open3d.io.write_octree (filename, octree) to save an octree map? Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant