KNOB(nged)
Provides a method for simulating knob input. With no options, it will display the current values for the knobs.
π KNOB(nged) β BRL-CAD User Commands β¨
okay bestie, welcome to the KNOB(nged) page from the BRL-CAD User Commands manual. This one is lowkey an internal gremlin, but we're gonna make it make sense π
π NAME
knob β provides a method for simulating knob input. With no options, it will display the current values for the knobs.
β¨ SYNOPSIS
knob [-e -i -m -v] [[-o] | [v] | [m] | [e] | [k]] [[zap] | [zero] | [id [val]]]
πΈ DESCRIPTION
π¨ real talk: the *knob command is used internally by MGED in the processing of knob input devices, and it is not recommended for users. You're getting the lore anyway, bestie.
The *knob command provides a method for simulating knob input. With no options, it will display the current values for the knobs. With the zap or zero command provided, all the knob values will be reset to zero. If an id and value are provided, the specified knob setting will be simulated.
If the -i option is specified, then the value provided will be used as an increment to be applied to the indicated knob. Increment era π
The knobs have different functions depending on the current mode. For example, if in primitive or matrix edit mode and a rotation or translation function is selected, the knob effects are applied to the edited object by default. However, the -v (view coordinates) and -m (model coordinates) options may be used to adjust the view without modifying primitives or matrices.
-eβ allows the knob effects to be applied to the edited object when they would normally be applied to the view.-iβ uses the providedvalueas an increment applied to the indicated knob.-mβ model coordinates; may be used to adjust the view without modifying primitives or matrices.-vβ view coordinates; may be used to adjust the view without modifying primitives or matrices.-oβ allows the origin of rotation to be specified withv,m,e, andk, indicating view, model, eye, and keypoint, respectively.
The units for value are degrees for rotation and local units for translation. The available knob ids are:
xβ rate-based rotation about horizontal axis. πyβ rate-based rotation about vertical axis. πzβ rate-based rotation about axis normal to screen. β¨Xβ rate-based translation in horizontal direction. π¦Yβ rate-based translation in vertical direction. πΈZβ rate-based translation in direction normal to screen. π«Sβ rate-based Scale or Zoom. πaxβ absolute rotation about horizontal axis. πayβ absolute rotation about vertical axis. π«Άazβ absolute rotation about axis normal to screen. πaXβ absolute translation in horizontal direction. βaYβ absolute translation in vertical direction. πaZβ absolute translation in direction normal to screen. π§aSβ absolute Scale or Zoom. πxadcβ absolute translation of adc in horizontal direction (screen coordinates -2048 to +2048). πyadcβ absolute translation of adc in vertical direction (screen coordinates -2048 to +2048). πang1β absolute rotation of adc angle1 (degrees). πang2β absolute rotation of adc angle2 (degrees). πdistadcβ distance setting of the adc (screen coordinates -2048 to +2048). π―
π EXAMPLES
The example shows the use of the knob command with the y option to rotate a view about the vertical axis.
Example 1. Rotate a view about the vertical axis. π
mged> knob y 1
Starts the view rotating about the vertical axis.
π AUTHOR
BRL-CAD Team π
π BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brl-cad.org π¬
BRL-CAD β’ KNOB(nged) β that's the source/version and manual-name sign-off, bestie. Mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms