Expand description
CSG Tree structural diff and patch
Computes a minimal set of operations to transform one SDF tree into another. Useful for undo/redo systems, network synchronization, and collaborative editing.
Author: Moroya Sakamoto
Structs§
- Tree
Patch - A patch containing a set of diff operations.
Enums§
Functions§
- apply_
patch - Apply a patch to an SDF tree, producing a new tree.
- invert_
patch - Invert a patch: creates an undo patch from a forward patch.
- merge_
patches - Merge two sequential patches into a single patch.
- tree_
diff - Compute the structural diff between two SDF trees.
- tree_
hash - Compute a deterministic structural hash of an SDF node.
Type Aliases§
- Tree
Path - A path from the root to a specific node in the SDF tree.