AUTOVIEW(nged)

Frames objects within the view.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… AUTOVIEW β€” it frames your stuff, no cap ✨

okay so this is a BRL-CAD user command (nged fam, rise up 🫢) and it's literally the "make it fit in my window" button. bestie, it's iconic.


🌸 NAME 🌸

autoview β€” frames objects within the view πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

autoview [-s scale] [object ...]

✨ DESCRIPTION ✨

So what it does β€” and I need you to hear me on this β€” is it resets the view size and the view center so that the objects you're framing actually end up inside the view. Like, fully inside. Slay. πŸ’…

With no arguments? It frames all the objects that are currently displayed. That's it, that's the vibe.

But if you hand it a list of object names (or full paths), it does something a little different: the view gets centered and sized to frame only those objects β€” and here's the cute part, they don't even have to be displayed πŸ‘€. The objects' bounding box is computed directly from the database. No display required, no gatekeeping.


πŸ”₯ OPTIONS πŸ”₯

  • -s, β€”scale _scale_ β€” sets the view scale, i.e. the model scale relative to the view size. Smaller value = zoom in πŸ”, larger value = zoom out πŸ¦‹. The default is 0.5 model scale (so the model occupies half the view β€” half. periodt).
ngl, there's a throwback thing here for backward compatibility: a bare leading numeric argument is also accepted as the scale β€” but ONLY when -s is not given, and ONLY when there's no object of that name existing. An object with a purely numeric name always takes precedence, bestie. Always. Use -s if you want to avoid that whole ambiguity situation πŸ™ˆ.

πŸ¦‹ EXAMPLES πŸ¦‹

Example 1. Reset the view size and center so that all displayed objects are within the view.

mged> autoview
    The view resets so that all objects displayed can be seen.

Example 2. Frame only the named objects.

mged> autoview engine.r wheel.r
    The view is centered and sized to frame just engine.r and
    wheel.r.

Example 3. Frame the named object using a specific scale.

mged> autoview -s 0.5 engine.r
    The view is centered on engine.r and sized using a scale of 0.5.

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the main characters, honestly πŸ’œ


πŸ“ BUG REPORTS πŸ“

Found a bug? A problem? Something cursed? 😭 Send it via electronic mail to devs@brlcad.org and they'll handle it fr fr.


✨ that's the whole page, you're welcome ✨ β€” this gorgeous little number comes to you from BRL-CAD, dated AUTOVIEW(nged) πŸŽ€ go frame something, bestie πŸ’–

πŸ“¦ where this page comes from