boolean_mesh_op
Combine, subtract, or intersect STL meshes using CSG boolean operations. Create holes, merge parts, or shape complex 3D models for printing.
Instructions
Perform a CSG boolean operation on two or more STL meshes.
Uses OpenSCAD's boolean engine to compute:
- **union**: combine multiple bodies into one
- **difference**: subtract subsequent bodies from the first
- **intersection**: keep only the overlapping region
Requires OpenSCAD installed on the system.
**Use cases:**
- Subtract a cylinder from a block to create a hole
- Combine multiple parts into a single printable body
- Create complex shapes from simple primitives
:param operation: ``"union"``, ``"difference"``, or ``"intersection"``.
:param file_paths: List of STL file paths (minimum 2).
:param output_path: Output path (defaults to a temp file).
:returns: Dict with result path, operation, and triangle count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| file_paths | Yes | ||
| output_path | No |