auto_color_by_height
Divide a 3D model into color bands based on Z-height, generating individual STL zone files and a multicolor 3MF for AMS/MMU printers.
Instructions
Split a 3D model into horizontal color zones by Z-height.
Divides the model's Z-range into N equal bands and assigns
each face to the band containing its centroid. Produces
separate STL files per zone and (if available) a multicolor
3MF ready for AMS/MMU printers.
Zero cloud dependencies — pure geometry.
:param input_path: Path to a binary STL file.
:param num_colors: Number of color zones (default 4).
:param color_palette: List of hex colors (e.g.
``["#FF0000", "#00FF00"]``). Defaults to white/red/black/grey.
:returns: Dict with zone STL paths, hex colors, face counts,
AMS slot mapping, weight estimates, and optional 3MF path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| num_colors | No | ||
| color_palette | No |