Utility#
octarine.register_converter(t, converter, insert='first') #
Register a converter for a given data type.
| PARAMETER | DESCRIPTION |
|---|---|
t | TYPE: |
converter | TYPE: |
insert | TYPE: |
Source code in octarine/conversion.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
octarine.get_converter(t, raise_missing=True) #
Get the converter for a given data type.
Source code in octarine/conversion.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
octarine.VoxelCloud #
Container for sparse volumetric data.
Wrapping voxel coordinates in this class tells Viewer.add to render them as a (sparse) volume instead of as points.
| PARAMETER | DESCRIPTION |
|---|---|
coords | TYPE: |
values | TYPE: |
octarine.VoxelRuns #
Container for run-length-encoded sparse volumetric data.
Wrapping voxel runs in this class tells Viewer.add to render them as a (sparse) volume. Runs are rendered as binary occupancy from a bitmask, which uses roughly 23x less GPU memory than the same data given as VoxelCloud coordinates - see Sparse Volumes.
| PARAMETER | DESCRIPTION |
|---|---|
runs | TYPE: |
n_voxels property #
Number of occupied voxels.