View angles: an optional readout under the orientation gizmo and a command to set them (#6032) (#6249)

* claim: #6032

* View angles: an optional readout under the orientation gizmo and a command to set them (#6032)

View > View angles (also Preferences > Graphics, or view.angle_readout) shows the
view's pitch, yaw and roll in degrees and Ortho/Persp under the axis view or cube,
updated live; off by default. Clicking the readout opens a small card to type
exact angles, which runs view.apply.

The angles are the camera's own (Camera::view_angles / with_view_angles), about
the up axis: yaw is the heading of the line of sight (Front 0, Left 90, Right -90,
Back 180), pitch the eye's elevation (Top 90, Bottom -90), and a positive roll
turns the model clockwise. view.apply documents this convention and now refuses a
pitch past +/-pi/2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HiroKenEz
2026-10-28 14:49:47 +00:00
committed by GitHub
parent 31d6873f7d
commit 4fa051c9fc
19 changed files with 666 additions and 4 deletions
+7
View File
@@ -80,6 +80,13 @@
top right while a dialog or a sketch is open, and moves the axis view or cube down below them.
With a dialog open they do what its OK and Cancel do (the check is grey whenever OK is); in a
sketch without a dialog they are Finish Sketch and Cancel Sketch.
**View angles** in the navigation bar's View menu (or Preferences › Graphics, or the
`view.angle_readout` command) shows the view's pitch, yaw and roll in degrees under the axis
view, with **Ortho** or **Persp** for the projection; it is off by default and updates as the
view turns. The angles turn about the up axis: yaw 0° is the Front view, 90° Left, −90° Right
and 180° Back; pitch 90° is the Top view and −90° the Bottom; a positive roll turns the model
clockwise on screen. Click the readout to type exact angles; **Apply** turns the view there
(it keeps the view's centre and zoom). Scripts set the same angles in radians with `view.apply`.
Right-click for the marking menu: eight commands around the cursor, plus a
menu for whatever is under it. Near the window's bottom or right edge a menu opens above or
to the left of the cursor, so it stays in view.