Geometry types¶
ZVF defines seven geometry types. Each type is identified by a string
constant stored in the root .zattrs under "geometry_type". A single
ZVF store holds exactly one geometry type; multi-type datasets require
multiple stores.
Type constants¶
from zarr_vectors.constants import (
GEOM_POINT_CLOUD, # "point_cloud"
GEOM_LINE, # "line"
GEOM_POLYLINE, # "polyline"
GEOM_STREAMLINE, # "streamline"
GEOM_GRAPH, # "graph"
GEOM_SKELETON, # "skeleton"
GEOM_MESH, # "mesh"
)
Comparison matrix¶
Property |
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|---|
Discrete objects |
— |
— |
✓ |
✓ |
✓ |
✓ |
✓ |
|
— |
✓ |
✓ |
✓ |
✓ |
✓ |
— |
|
— |
— |
— |
— |
— |
— |
✓ |
|
— |
— |
✓ |
✓ |
✓ |
✓ |
✓ |
|
— |
— |
✓ |
✓ |
✓ |
✓ |
— |
|
— |
— |
✓ |
✓ |
✓ |
✓ |
✓ |
|
— |
— |
✓ |
✓ |
✓ |
✓ |
✓ |
Per-vertex attributes |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
Object sparsity |
— |
— |
✓ |
✓ |
✓ |
✓ |
✓ |
Multiscale pyramid |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
Draco compression |
— |
— |
— |
— |
— |
— |
✓ |
|
— |
— |
— |
— |
✓ |
— |
— |
|
— |
— |
— |
— |
✓ |
✓ |
— |
Type selection guide¶
Data description |
Recommended type |
|---|---|
Lidar, synchrotron point scan, single-molecule localisation |
|
Pairs of connected points (short segments, contact sites) |
|
Ordered vertex sequences without tractography metadata |
|
MRI/synchrotron tractography streamlines with step size / seeding metadata |
|
General connectivity graph (not necessarily a tree) |
|
Neuronal morphology, vascular tree (tree topology, SWC-compatible) |
|
3-D surface mesh (cell boundary, brain surface, organelle hull) |
|