slice_mesh
Extract closed-loop cross-section profiles from STL/3MF meshes at specified heights along X, Y, or Z, returning polygon points in mm for modeling parts that fit existing mesh geometry.
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). Needs no SolidWorks.
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 |