attach_part
Connect detached parts to their real mount using measured contact points. Move, extend, or conform geometry to close gaps found by contact checks without guessed coordinates.
Instructions
Close the gaps check_contacts measured, using the measured closest points (no guessed coordinates).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | extend: which end (default: whichever reaches the target). | |
| gap | No | move: leave this gap; conform: height above the surface (default half the part's thickness). | |
| mode | No | move: translate the part/group rigidly until it touches the target. extend: stretch a cable/pipe/stay end along its own direction until it meets the target. conform: lay a seam/stripe/band/label onto the target surface along its whole length (keeps its cross-section). | move |
| target | No | Its real mount (do not just accept the nearest part). Required for conform. | |
| objects | Yes | The detached part, or the whole detached group (moved together). | |
| max_move | No | Refuse moves/extensions longer than this (m) - big gaps mean the part is misplaced. | |
| direction | No | move: slide only along this world direction until it meets the target (e.g. [0,0,1] to lift a fender onto its rails) - keeps symmetry instead of moving toward the nearest point. | |
| allow_overlap | No | Accept a move that pushes the part into other parts (refused by default). |