cross_section_view
Slice an STL mesh at a chosen x, y, or z plane to inspect internal geometry, wall thickness, and hole placement; returns contour polygons and cross-sectional area.
Instructions
Compute a 2D cross-section of a mesh at a cutting plane.
Slices the mesh perpendicular to the chosen axis and returns
contour polygons and cross-sectional area. Useful for inspecting
internal geometry (e.g., wall thickness, hole placement).
:param file_path: Path to STL file.
:param plane: Axis perpendicular to the cut -- "x", "y", or "z".
:param offset_ratio: Fractional position 0.0-1.0 (default 0.5 = midpoint).
:param offset_mm: If set, absolute position in mm (overrides offset_ratio).
:returns: Dict with contour_count, contour_points, cross_section_area_mm2.
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": {
"file_path": "<file_path>"
},
"name": "cross_section_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plane | No | Axis perpendicular to the cut -- "x", "y", or "z". Default: "z". | |
| file_path | Yes | Path to STL file. | |
| offset_mm | No | If set, absolute position in mm (overrides offset_ratio). Default: "". | |
| offset_ratio | No | Fractional position 0.0-1.0 (default 0.5 = midpoint). Default: 0.5. |