ISIZE(nged)

return the inverse of the current view size

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… ISIZE (nged) πŸ’…

okay bestie, welcome to the <pink>nged</pink> corner of the BRL-CAD user commands manual. this one's short, sweet, and does exactly one (1) thing. let's get into it πŸŽ€


✨ NAME ✨

isize β€” returns the inverse of the current view size, that's it, that's the whole gig 🫢


🌸 SYNOPSIS 🌸

isize

πŸ¦‹ DESCRIPTION πŸ¦‹

so the isize command returns the reciprocal of the current view size, in your current working units. it's a read-only getter, meaning it just hands you a number and vibes β€” no arguments are accepted, so don't even try it πŸ™ˆ

the inverse view size is related to your current zoom level, lowkey math-coded. it equals 1 / view_size, where view_size is whatever the size command gave you. so:

  • a larger isize value = a more zoomed-in view (smaller view size)
  • a smaller isize value = a more zoomed-out view

this value is primarily useful in scripts that compute view-space to model-space scaling factors. so if you're out here scripting, this is your girl πŸ’…


πŸ”₯ EXAMPLES πŸ”₯

Example 1. Get the inverse view size

mged> isize

returns the reciprocal of the current view size in working units β€” for example: 0.001 when the view size is 1000 mm. slay ✨

Example 2. Use isize in a calculation

mged> set inv [isize]
mged> set sz [size]
mged> expr {$inv * $sz}

this retrieves both isize and size and verifies their product equals 1.0. math checks out, periodt πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

  • size(nged)
  • zoom(nged)

🌈 AUTHOR 🌈

BRL-CAD Team β€” icons, honestly πŸ‘‘


πŸ“ BUG REPORTS πŸ“

found a bug? don't suffer in silence bestie 😭 β€” reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org

and that's the whole page, bb πŸ’– this was brought to you by BRL-CAD and the <purple>ISIZE(nged)</purple> manual page itself β€” go zoom around responsibly πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from