swept_region
Trace the planar outline a moving component sweeps across joint values, then merge cut regions at given heights to avoid or cut away material. Returns counter-clockwise spline outlines for sketches.
Instructions
Outline what a component covers in a plane while a joint moves, to keep clear of it or cut it away.
Steps the joint's dimension through values (as check_motion, e.g. every 5 degrees over 30..150), cuts the component at axis = each of heights_mm (a few heights inside a layer, not on its faces) and joins all of it, made margin_mm wider, within about tolerance_mm. frame: the component to give the coordinates in, such as the part to cut from; else the assembly's. Each region's outline runs counter-clockwise in the plane's other two axes, (x, y) across z: give it to add_sketch as a spline. count says how many separate regions there are.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | z | |
| frame | No | ||
| values | Yes | ||
| component | Yes | ||
| dimension | Yes | ||
| margin_mm | No | ||
| heights_mm | Yes | ||
| tolerance_mm | No |