Closed rockywind closed 1 year ago
Hi @rockywind, I don't understand your problem? The grid_size is defined here:
# Compute the voxels coordinates
grid_coords = get_grid_coords(
[voxels.shape[0], voxels.shape[1], voxels.shape[2]], voxel_size
)
It doesn't depend on the objects.
Dear author, The grid size is 0.25. But some objects grid size drawed in the picture is larger than anthor. I am confused.
Dear author, Just like the two pictures below. Their grid size is 0.25. But the first picture's grid size looked larger the the second one.
Do you have the same voxels.shape? I think the scene will be scaled according to it
The voxel's shape is 400 400 25 in all scenes, and the voxel size is 0.25. I can't find any scale factor in the code. I found that the grid size is smaller with the object's number increase.
Did you set the viewpoint? I think the problem is that the viewpoint was not set. You can follow this post to set the mayavi viewpoint https://anhquancao.github.io/blog/2022/how-to-define-viewpoint-programmatically-in-mayavi/
Dear, author, I found that if only one object is in the scene, the grid size is larger than the two objects in the scene. My code is below.