Measure Angle
measure_angleMeasures the angle in degrees between two planar faces or two straight edges, returning raw and supplementary values for design checks; read-only.
Instructions
Angle (degrees) between two planar faces or two straight edges.
a, b: object handles. a_ref, b_ref: REQUIRED sub-shape references, one per handle. Both must be the SAME kind:
face tags ('f_*' from list_faces/query_faces, or 'FaceN', or 1-based int) -> angle is between the faces' outward normals. Faces must be planar.
edge tags ('e_*' from list_edges, or 'EdgeN', or 1-based int) -> angle is between the edges' tangent directions. Edges must be straight. Mixing a face ref with an edge ref, a non-planar face, or a curved edge raises.
Units: degrees. Returns:
angle_deg: raw angle between the two direction vectors, 0..180.
supplement_deg: 180 - angle_deg (the complementary angle; use this for the acute reading when angle_deg is obtuse).
kind: "face" or "edge". Two adjacent box faces -> angle_deg 90. Two opposite parallel box faces -> angle_deg 180, supplement_deg 0. Read-only: measures, creates no geometry.
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": {
"a": "<a>",
"a_ref": "<a_ref>",
"b": "<b>",
"b_ref": "<b_ref>"
},
"name": "measure_angle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| a_ref | Yes | ||
| b_ref | Yes | ||
| workspace | No | Run this call in this named workspace |