calc_mass_rollup
Compute total mass and 3D center of gravity from a component list, then optionally verify the CG lies within a specified envelope.
Instructions
Total mass and 3D center of gravity from a component list — each item {name, mass_g, x_mm, y_mm, z_mm} measured from one datum. Pass envelope {x_min_mm, x_max_mm, y_min_mm, y_max_mm, z_min_mm, z_max_mm} (any subset of axes) to get a CG-within-envelope verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envelope | No | ||
| components | Yes |