SCA(nged)

Used to apply a scaling factor.

πŸ“… published 7.44.0, from nixpkgs unstable

✨ SCA(nged) β€” the scaling command, bestie edition ✨

Okay so picture this: you're in nged (hey BRL-CAD bestie πŸ‘‹) and you need something to get bigger or smaller. That's literally what sca is for. It's the BRL-CAD User Commands glow-up moment. πŸ’…


🌸 NAME 🌸

sca β€” the command you use to apply a scaling factor. That's it. That's the vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

sca {[sfactor] | [x-sfactor y-sfactor z-sfactor]}

So you either hand it one number, or you hand it three numbers. Choose your fighter. ✨


πŸ’– DESCRIPTION πŸ’–

sca applies a scaling factor to an object or a view. Obsessed.

When you pass it one parameter, an "object or view" gets a uniform scale factor β€” everything scales together, no favorites. 🌈

When you pass it three parameters, an object gets a unique scale factor applied to each axis β€” so x, y, and z can each go off and do their own thing. Main character energy per axis, honestly. πŸ‘‘

And here's the important part, bestie: what actually happens is determined by the Transform option in the Settings menu. So it's normally affected by whatever mode of operation MGED is currently in β€” like matrix edit, primitive edit, or viewing. Context is everything, iykyk. 🫢

⚠️ Note, and this one matters: three parameters can only be applied in "matrix edit" mode. Otherwise, only scale pipe and tori primitives uniformly β€” because if you don't, raytracer and other errors may occur. Not cute. Not slay. Just errors. πŸ’€

πŸ”₯ EXAMPLES πŸ”₯

These examples show sca doing its thing β€” applying a scaling factor to an object or a view. Let's go. πŸ“

⭐ Example 1. Apply a scaling factor to an object or view.

mged>sca 2

In matrix edit mode, the object being affected will get twice as big. Iconic.

In view mode, the size of the view will be doubled β€” which means it's showing twice the volume of space, hence making objects appear half their previous size on the display. Yes, that's the plot twist: the view got bigger, so everything in it looks smaller. The math is mathing. 😭✨

πŸ’œ Example 2. Apply a scaling factor to an object.

mged>sca 2 1 1

In matrix edit mode, the object being affected will get twice as big along the x-axis. Only the x-axis. She's specific. πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” legends, fr fr. 🫢


πŸ™ˆ BUG REPORTS πŸ™ˆ

If you find a bug or a problem, don't suffer in silence, bestie β€” reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Spill the tea. πŸ’Œ


That's the whole page, no cap. Written by the BRL-CAD Team, part of the BRL-CAD docs, and dated with the BRL-CAD release β€” go forth and scale responsibly. πŸ’…βœ¨

πŸ“¦ where this page comes from