cross_section_view
Slice a 3D mesh to view internal cross-sections. Returns contour polygons and area for inspecting wall thickness or hole placement.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plane | No | z | |
| file_path | Yes | ||
| offset_mm | No | ||
| offset_ratio | No |