[SOLVED] Dense volume to Sparse volume LoadRaw data

Hello ,

I have started to use GVDB and I want to create a new renderer for a computed tomography volume.
Does GVDB has a mean to load Raw slices data and create a sparse volume (with threshold)?

Thanks,

Martin

Hi Martin,

There is a function called gvdb.Resample which takes in a block of linear memory, interpreted as 3D data, and writes the voxels into gvdb. You need to “activate” the space which is covered first. See the Programming Guide on activation. We do not have a LoadRaw function yet, as there are many variations. You can load the data from disk yourself and then use Resample to write it into gvdb.

Rama

Update
There is a new sample called gResample which shows how to load RAW data as dense.
See the new pinned post and the sample itself for details.

Rama

I will try this new example soon

Thank you !

Martin