meshing.signature_function
meshing.signature_function(scene)
Build the pure (leaf_id, patch_id) signature function of a scene.
The returned callable takes a single point shaped (3,) and returns two int32 scalars: the owning leaf (argmin |leaf sdf|) and the owning patch within that leaf (argmin |patch field|). It is a pure JAX computation — compose it with jax.vmap and jax.jit freely.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| scene | Any | Root SDF node, or a prebuilt :class:ScenePatchFields. |
required |
Returns
| Name | Type | Description |
|---|---|---|
| Callable[[Array], tuple[Array, Array]] | Callable p -> (leaf_id, patch_id). |