arrange_parts_on_plate
Pack multiple STL files onto a virtual build plate using bin-packing to maximize part density. Reports which parts fit, which overflow, and plate utilization.
Instructions
Pack multiple STL files onto a virtual build plate.
Uses greedy bottom-left bin-packing (largest parts first) to
efficiently arrange parts with configurable spacing. Reports
which parts fit, which overflow, and plate utilization.
Supports printing multiple copies of parts via the copies parameter.
:param file_paths: JSON array of file paths, e.g. ``["/tmp/a.stl", "/tmp/b.stl"]``.
:param plate_width_mm: Build plate width in mm (default 256).
:param plate_depth_mm: Build plate depth in mm (default 256).
:param spacing_mm: Minimum gap between parts in mm (default 5).
:param copies: Optional JSON dict of filename->count, e.g. ``{"part.stl": 3}``.
:param printer_id: Optional supported printer model id. When
provided, printer intelligence supplies the plate size.
:returns: Dict with arranged_parts, overflow_parts, plate_utilization, summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copies | No | ||
| file_paths | Yes | ||
| printer_id | No | ||
| spacing_mm | No | ||
| plate_depth_mm | No | ||
| plate_width_mm | No |