meshing.ScenePatchFields

meshing.ScenePatchFields()

Per-leaf patch decomposition of a scene.

Attributes

Name Type Description
leaves list[Any] World-frame leaf subtrees, in depth-first order.
leaf_ids list[int] Leaf id per leaf (its index; kept explicit for consumers).
fields list[list[Callable[[Array], Array]]] One list of world-frame callables per leaf. Leaves that implement :meth:~cadjoint.sdf.base.SDF.patch_fields contribute their exact decomposition; the rest fall back to their own SDF as a single patch (patch id 0).
exact list[bool] Per leaf, whether fields came from the protocol (True) or from the single-patch fallback.