SV(nged)

Moves the view center to (x, y, z).

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… SV (nged) β€” the sv command, bestie edition πŸŽ€

ok so this is sv, part of the BRL-CAD MGED Commands crew, and honestly? she's a little icon. let's get into it πŸ¦‹


✨ NAME ✨

sv β€” moves the view center to (x, y, z). that's it, that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

sv {x y} [z]
not me putting the brackets exactly where they go, because z is optional and x and y are not πŸ™ˆ

🫢 DESCRIPTION 🫢

so here's the tea: sv moves the view center to (x, y, z). and if z isn't provided? no worries bestie, then z=0 is used. default slay ✨

the parameters x, y, z are integer values relative to the screen. yes, integers. no decimals, no "approximately", just vibes and whole numbers πŸ’…

for example, the center of the screen is (0, 0, 0) and the upper left corner is (-2048, 2047, 0). iconic coordinate behavior, honestly 🧚


πŸ”₯ EXAMPLES πŸ”₯

these two examples show the use of the sv command to move the view center to a particular location on the screen. let's go πŸ‘‘

⭐ Example 1. Keep the view center at the center of the screen.

mged>sv 0 0 0

the view is unchanged. literally nothing happens and that's the point πŸŽ€

πŸ’œ Example 2. Move the view center half way between the current view center and the right side of the view screen.

mged>sv 1024 0 0

the view center is moved half way between the current view center and the right side of the view screen. main character energy, no cap πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the ones who made all this happen 🫢


πŸ’€ BUG REPORTS πŸ’€

got a bug? a problem? a little oopsie? reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β€” they want to hear from you fr fr 😭


🌈 that's the whole page bestie, go move some view centers 🌈

BRL-CAD Β· SV(nged) β€” mwah, that's the source/version and date line, folded into this cute little sign-off πŸ’–βœ¨

πŸ“¦ where this page comes from