Pyramid reference¶
Coarseners, build_pyramid options and Python-only builders. For choosing
values, see Pyramids; for signatures, the
API reference. Paths are under zarr_vectors_tools..
Coarseners¶
build_pyramid picks a coarsener from the store’s geometry. method= (CLI
--method) picks one yourself; coarsener_keys() lists them.
|
Chosen for |
|
Sparsity strategies |
|---|---|---|---|
|
points, graphs, lines |
multiplier of the bin edge |
random, length, spatial_coverage, point_thinning, group, attribute |
|
streamlines |
sets the Douglas–Peucker tolerance (rdp), or a stride (decimate) |
random, length, group, attribute |
|
skeletons |
vertex stride along each branch |
length (random becomes length), attribute |
|
meshes |
multiplier of the median edge length (vertex clustering) |
random, attribute |
|
meshes, by |
size reduction per level, > 1 |
none |
|
by |
multiplier of the bin edge, per chunk fragment |
random, attribute |
multiresolution.coarsen.register_coarsener(key, fn) adds a coarsener. Each
level records its build parameters for rebuild_pyramid_from_level.
build_pyramid options not on the CLI¶
Option |
Effect |
|---|---|
|
coarsener key from the table above |
|
seed for random selection, so a rebuild keeps the same objects |
|
run chunks in parallel in the skeleton and streamline coarseners; see Large data |
|
|
The return value is a summary with levels_created, level_specs (one per
level, naming the coarsener that ran), refinement, and the
cross_level_storage and cross_level_depth that were written. With
"add" it also has an additive report per level.
Builders outside build_pyramid¶
Function |
Use it for |
|---|---|
|
point clouds without object ids: each level a random 1/divisor of the one above; |
|
converting a finished pyramid to an additive one in place |
|
skeletons, with skeleton-only options |
|
meshes: adds 4x-smaller levels until the surface cannot shrink or |
|
rebuilding every level above one that changed, from an open root group ( |
Helpers that build_pyramid does not use¶
In-memory functions for experiments or your own coarsener:
coarsen_points, coarsen_points_store (strategies.points),
coarsen_graph (strategies.graphs), simplify_skeleton, decimate_skeleton
(strategies.skeletons), coarsen_mesh_cluster, coarsen_mesh_quadric
(strategies.meshes, [mesh] extra), decimate_mesh
(strategies.mesh_decimate) and the selection functions in
multiresolution.object_selection.