Skip to content
Discussion options

You must be logged in to vote

Thanks for your reply!

In your demo, boundary=1 in vol.legosurface make the little cube visible.
Enlighten by numpy array are associated to the vertices, I can use

data_matrix[0, 0, 0] = 3
 vol = Volume(data_matrix, mode=1, origin=[-0.5, -0.5, -0.5])

to show a single cube like this:

But I observed that the color of legosurface is error when I add lego.cmap('hot_r', vmin=1, vmax=3.5).add_scalarbar3d() after lego = vol.legosurface(1.0, 3.5, boundary=1) .The middle large dataset and the single cube at [0,0,0] should be yellow. What can I do to show the right color?

Actually, what I want to visualize is a 3D occupancy grid map which created from a points cloud.
For example, if there is any …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@marcomusy
Comment options

@CCHLENG
Comment options

@marcomusy
Comment options

@CCHLENG
Comment options

@marcomusy
Comment options

Answer selected by CCHLENG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants