isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.33k stars 2.29k forks source link

How to color a VoxelGrid #5660

Open KevinCrp opened 1 year ago

KevinCrp commented 1 year ago

Checklist

My Question

Hi,

I'm using a VoxelGrid, I want to color some voxels in one color.

I'm using:

voxel_grid_1 = o3d.geometry.VoxelGrid.create_from_triangle_mesh(hull_1,
                                                              voxel_size=1.0)
list_voxels_1 =voxel_grid_1.get_voxels()
for voxel_1 in list_voxels_1:
            voxel_1.color = (1.00, 0.88, 0.30)

o3d.visualization.draw_geometries([voxel_grid_1], mesh_show_wireframe=True)

But when I visualize it there is no color, just my voxel grid. Any idea? Thanks Kevin

elevenjiang1 commented 1 year ago

I also have this problem,have you solved it?