compare
Compare two 3D shapes for geometric differences: volume, topology, surface deviation, fit, alignment, or snapshot state.
Instructions
Unified comparison tool.
kind='shape' compares two named shapes from show(), a and b, by
volume/bbox/topology and localized surface deviation; b is required.
kind='fit' reports the spatial relationship between two named shapes, a and b:
clearance, apart/touching/containing/interpenetrating status, containment,
and overlap volumes; b is required.
kind='align' checks two named shapes, a and b, along one axis. axis: X, Y, or Z.
mode: flush (bbox extreme offset), center (centroid offset), or clearance
(nearest-face gap); b is required.
kind='snapshot' compares snapshot a against the current session state
or b as a second snapshot. format: 'text' or 'json'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No | ||
| axis | No | Z | |
| kind | No | shape | |
| mode | No | flush | |
| format | No | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |