PSET(nged)

set a scalar parameter of a primitive

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… PSET πŸ’…

ok so this is the pset page from the nged manual β€” BRL-CAD user commands, bestie, we're in mged territory 🫢


✨ NAME ✨

pset β€” set a scalar parameter of a primitive. that's it, that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

pset obj attribute val

πŸ¦‹ DESCRIPTION πŸ¦‹

ok so picture this: the pset command sets a scalar parameter of the BRL-CAD primitive obj to whatever value you hand it in val. you pick which parameter using a single-letter attribute code (yes, literally one letter, iykyk πŸ‘‘). then the modified object gets written back to the database. slay, it persists. ✨

the val argument has to be a single floating-point number β€” one number, that's the whole assignment, no funny business 😭. path prefixes on obj are totally fine (like comb/part.s); it's the trailing component name that gets used for the lookup. so go ahead and be specific, it's giving main character energy 🌈

lowkey important: currently only METABALL primitives are supported. any other primitive type just returns an error. no cap, that's the rule πŸ’€

πŸŽ€ METABALL attributes πŸŽ€

here's the tea on the attribute codes for METABALLs, bestie πŸ“

  • m or M β€” Render method! the valid values are 0 (Metaball), 1 (iso-surface), and 2 (Blob). values below 0 get clamped to 0, and values above 2 get clamped to 2 β€” so you literally cannot escape the range, it's giving strict parents πŸ’…
  • t or T β€” Threshold value! this sets the field threshold used during metaball rendering. and here's the cute part: if you give it a negative value, its absolute value is used. so -1.5 becomes 1.5, math said no negativity today ✨

πŸ”₯ EXAMPLES πŸ”₯

Example 1. Set the render method of a metaball

mged> pset blob.s m 2

Sets the render method of the metaball primitive blob.s to Blob mode (method 2). iconic. πŸ‘‘

Example 2. Set the threshold of a metaball

mged> pset cloud.s t 1.5

Sets the field threshold of the metaball primitive cloud.s to 1.5. see how clean that is 😌


πŸ’œ AUTHOR πŸ’œ

BRL-CAD Team β€” the actual legends behind all this 🫢


🧚 BUG REPORTS 🧚

found something cursed? reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β€” tell 'em everything, fr fr πŸ™ˆ


that's the page!! πŸ’– this is BRL-CAD, PSET(nged), BRL-CAD User Commands β€” go set some scalars, bestie, you're gonna ate 🌟

πŸ“¦ where this page comes from