PSCALE(nged)
scale a scalar or vector attribute of a primitive
β¨ PSCALE(nged) β¨
okay bestie, welcome to pscale β one of the nged girlies and honestly kind of a niche icon π
she scales a single scalar or vector attribute of a primitive and writes it right back into the database, no cap.
πΈ NAME πΈ
pscale β scale a scalar or vector attribute of a primitive π
π¦ SYNOPSIS π¦
pscale [-r] obj attribute sf
π DESCRIPTION π
So here's the vibe: pscale takes a specific attribute of the BRL-CAD primitive obj and scales it by the scale factor sf. The attribute gets picked by a single letter, and the modified object is written back to the database. Literally that simple, periodt. β¨
The arguments are:
-rβ optional, babes. Relative mode: the scale factor gets applied relative to the current attribute value (multiplicative). Without-r, the scale factor is an absolute value. Either way the scale factor has to be positive and greater than zero. π«Άobjβ the name of the primitive you're editing. Path prefixes (likecomb/part.s) are accepted β the trailing component name is what actually gets used. iykyk.attributeβ a single letter that selects which attribute of the primitive to scale (full menu down below π).sfβ the scale factor. Must be positive (greater than zero). no zero, no negatives, we don't do that here π
π Supported primitives and attributes π
Not every primitive is invited to the party β but these ones ate:
- EHY (Elliptical Hyperboloid) β
h/H,a/A,b/B,c/Cβ height, semi-major axis, semi-minor axis, neck-to-base distance. π - ELL / SPH (Ellipsoid / Sphere) β
a/A,b/B,c/Cβ the A, B, and C semi-axis vectors. Scaling A with no sub-attribute scales all three uniformly. iconic behavior fr. - EPA (Elliptical Paraboloid) β
h/H,a/A,b/Bβ height, semi-major axis, semi-minor axis. π - ETO (Elliptical Torus) β
r/R,d/D,c/Cβ major radius, tube diameter, semi-minor cross-section axis. π - EXTRUDE β
h/Hβ extrusion height vector magnitude. short and sweet. - HYP (Hyperboloid) β
h/H,a/A,b/B,c/Cβ height, semi-major, semi-minor, and c-value. and psst:haccepts thev/Vsub-attribute. π§ - PARTICLE β
h/H,v,h(lowercase) β total length, vertex radius, head radius. yes the lowercasehis a different thing, read it carefully bestie π - RHC (Right Hyperbolic Cylinder) β
b/B,h/H,c/C,r/Rβ half-width, height, c-distance, radius. β - RPC (Right Parabolic Cylinder) β
b/B,h/H,r/Rβ half-width, height, radius. π¦ - SUPERELL β
a/A,b/B,c/Cβ the A, B, C semi-axis vectors. - TGC (Truncated General Cone) β
a/A,b/B,c/C,d/D,h/Hβ top/bottom radii, cross-section axes, height vector. π - TOR (Torus) β
a/A,h/Hβ major radius, tube (minor) radius. π - PIPE β
b/B,r/R,i/I,o/Oβ bend radius, radius, inner radius, outer radius. - METABALL β
f/F,s/Sβ field strength, strength value. π₯
β οΈ Other primitive types return an error. she's picky, and honestly? valid.
π EXAMPLES π
Example 1. Scale the height of a TGC
mged> pscale cone.s h 1.5
Sets the height of the TGC primitive cone.s to 1.5 times its current absolute value. slay. π
Example 2. Scale a TOR major radius relatively
mged> pscale -r ring.s a 0.8
Multiplies the major radius of the torus ring.s by 0.8, shrinking it to 80% of its current size. shrinking but make it cute π
Example 3. Scale the A axis of an ellipsoid
mged> pscale sphere.s a 50
Sets the A semi-axis of sphere.s to 50 (in local units). big girl numbers. β¨
π AUTHOR π
BRL-CAD Team β legends, honestly π«Ά
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β pls do tell them, they wanna know π
okay that's the whole page, bestie!! go forth and scale responsibly π
β¨ this has been PSCALE(nged) from the BRL-CAD User Commands collection β mwah, see u in the group chat π¦π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms