slice_mesh
Extracts closed cross-section loops from an STL/3MF mesh at specified heights and axis to use as profiles for modelling parts that must fit existing meshes.
Instructions
Cross-sections of an STL/3MF mesh at the given heights along axis 'x'/'y'/'z'.
For modelling a part that must fit something that only exists as a mesh. Returns each section's closed loops, largest first, as polygon points (mm) ready to use as profiles. frame (3MF): 'object' (the mesh's own frame) or 'build' (as placed on the slicer's plate).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"axis": "<axis>",
"heights_mm": "<heights_mm>"
},
"name": "slice_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | ||
| path | Yes | ||
| frame | No | object | |
| heights_mm | Yes |