MIRROR(nged)

Mirrors a shape or combination across a given axis.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ¦‹ MIRROR πŸ’… (nged)

okay bestie so this is a nged manual page and it's literally about the mirror command β€” the one that flips a shape or combination across an axis. no cap, it's iconic.


✨ NAME ✨

mirror β€” mirrors a shape or combination across a given axis πŸͺž


🌸 SYNOPSIS 🌸

mirror [-p "point"] [-d "dir"] [-x|-y-|-z] [-o offset] {from_object to_object}

(yes, -y- is written exactly like that in the original, don't come for me πŸ™ˆ β€” copy it verbatim and you're golden)


πŸ’– DESCRIPTION πŸ’–

So here's the vibe: mirror takes an object β€” could be a shape, could be a combination β€” and mirrors it across a given axis. and the default axis? x. slay.

  • if from_object is a shape, it gets copied into a brand new shape named to_object, and that new one is the mirrored version across whatever axis you picked ✨
  • if from_object is a combination, a whole new combination named to_object gets created, and it contains exactly the same members β€” the way that it works is transformation matrices are added to mirror it across the axis you requested πŸŽ€

And like, the axis? that's what -x, -y, & -z are for β€” they tell the command which axis to mirror the object across. 🧚

Want more control? -p lets you specify a point to mirror about, and -d lets you specify a direction vector to mirror about. πŸ’«

Also -h prints usage help β€” the little lifesaver, honestly 🫢


🌈 EXAMPLES 🌈

πŸ’œ Example 1. Mirror an object across an axis.

mged>mirror -y solid.s mir_solid.s

Creates a copy of solid.s that is mirrored across the y axis and named mir_solid.s πŸ’–

πŸŽ€ Example 2. Mirror an object across an plane parallel to an axis.

mged>mirror -x -o 100 solid.s mir_solid.s

Creates a copy of solid.s that is mirrored across a plane parallel to the x axis at x=100 and named mir_solid.s ✨ (this is your -o offset moment, iykyk)

πŸ¦‹ Example 3. Mirror an object about a given point.

mged>mirror -p "0 1000 0" -y solid.s mir_solid.s

Creates a copy of solid.s that is mirrored across a plane parallel to the y axis at the point 0, 1000, 0 and named mir_solid.s πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” kings, honestly πŸ’…


πŸ“ BUG REPORTS πŸ“

Found 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 πŸ“§


lowkey important: -x is the default axis, and if you're mirroring a combination you get a new combination with the same members plus transformation matrices β€” it's not editing the original in place. ✨

k that's the whole page, no notes πŸ’€ this was BRL-CAD's mirror page, manual name nged β€” go mirror something and make it main character energy πŸͺžβœ¨πŸ’–

πŸ“¦ where this page comes from