PRINT(nged)

print a summary of the current view parameters

πŸ“… published 7.44.0, from nixpkgs unstable

okay bestie, so this is print, a BRL-CAD user command, and it's genuinely one of the girlies who has her life together. She gives you a formatted summary of five core view parameters for the current view. that's it. that's the whole job. and she ate ✨


πŸŽ€ SYNOPSIS πŸŽ€

print

no flags. no arguments. no drama. just print. periodt.


🌸 DESCRIPTION 🌸

The print command displays a formatted summary of five core view parameters for the current view. five. count 'em. πŸ‘‘

The intended usage is with no arguments. here's the tea on how it actually works under the hood: internally, the same argument list gets forwarded unmodified to each of the five underlying view parameter functions β€” ae, viewdir, center, eye, and size β€” in sequence. with no arguments, each function just returns its current value, and the results get assembled into the combined output. slay, no notes. 🫢

but if you DO pass arguments, bestie, listen β€” each sub-function will interpret them independently, and that can produce inconsistent results, because each command has a totally different argument syntax. like, they're not even speaking the same language: - ae expects azimuth and elevation - size expects a single scalar - eye expects three coordinates so passing any argument set that satisfies one function's setter syntax may silently modify that view parameter while causing the others to report errors. not me accidentally changing my view and getting yelled at by four other functions πŸ˜­πŸ’€

The output format is:

ae: <azimuth> <elevation>
dir: <<dx> <dy> <dz>>
center: (<cx> <cy> <cz>)
eye: (<ex> <ey> <ez>)
size: <view_size>

Where:

  • ae β€” the current azimuth and elevation angles (in degrees). angles, bestie. πŸ“
  • dir β€” the view direction vector. where you're looking πŸ‘€
  • center β€” the model-space coordinates of the view center. the main character of the view, lowkey 🎯
  • eye β€” the model-space coordinates of the eye point. that's you. you're the eye. main character energy πŸ’…
  • size β€” the current view size in local units. how zoomed-in the vibe is πŸ”

To inspect or set individual parameters independently, use the dedicated commands: ae, center, eye, size, and viewdir. they each do one thing and they do it well. no cap. 🌟


✨ EXAMPLES ✨

Example 1. Print current view parameters

mged> print

        ae: 35 25
        dir: <-0.573576 -0.462910 0.675590>
        center: (0 0 0)
        eye: (305.267 246.784 359.713)
        size: 649.519

Displays the azimuth/elevation, view direction vector, center point, eye position, and view size for the current view. look at that gorgeous little block of numbers. it's giving organized. it's giving I know where I am in 3D space. iconic. πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the legends themselves πŸ’œ


πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. if something's acting sus, tell the devs, don't suffer in silence bestie πŸ™ˆπŸ’–


πŸŒΈπŸ’– okay that's the whole page!! this one comes from BRL-CAD (that's the source/version, mwah) and it's the PRINT(nged) page β€” go print your view and feel gorgeous about it πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from