[GLMakie] volume method

Hello !
Does anyone know how to use GLMakie’s volume method volume - Makie with “optional physical dimensions x, y, z” as described in the doc?

For exemple, volume(1.0,2.0,3.0, rand(100,100,100)) doesn’t work.
Thanks !

This probably means that you can specify the locations of the voxels using x, y and z. Usually that is done using ranges, so volume(range(0, 1, length = 100), range(10, 20, length = 100), range(50, 51, length = 100, rand(100, 100, 100)) should work I think. Maybe also using interval syntax like volume(0..1, 10..20, 50..51, ...)

1 Like