measure_angle
Measure the angle in degrees between two planar faces or straight edges in FreeCAD, returning the raw and supplementary angles for accurate geometric checks.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| a_ref | Yes | ||
| b_ref | Yes |