BOT_SMOOTH(nged)

compute and store surface normals in a BOT mesh

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… BOT_SMOOTH (nged) πŸ’…

okay bestie, so this is bot_smooth from the BRL-CAD user commands β€” nged edition πŸŽ€ β€” and honestly? it's giving "glow-up for your mesh" and I'm obsessed ✨


🌸 NAME 🌸

bot_smooth β€” computes and stores surface normals in a BOT mesh, no cap πŸ’–


✨ SYNOPSIS ✨

bot_smooth [-t angle_tolerance] new_bot old_bot

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜•: the bot_smooth command computes per-vertex surface normals for the BOT (Bag-of-Triangles) primitive named old_bot, and stores the result as a brand-new BOT named new_bot. Literally the original object is not modified β€” it stays exactly as it was, untouched, main character energy πŸ‘‘.

The normals get computed by averaging the normals of adjacent faces. And the angle_tolerance is what controls when neighboring faces are treated as a sharp crease instead of a smooth surface: faces whose normals differ by more than the tolerance angle are not averaged together, periodt πŸ’….

⚠️ Note: this command requires the database to be at the current version, with support for BOT surface normals. If your database is too old, use dbupgrade first β€” fr fr, don't skip this πŸ™ˆ.

πŸŽ€ Options πŸŽ€

  • -t angle_tolerance β€” the maximum angle (in degrees) between adjacent face normals for them to be averaged together. Faces separated by a larger angle produce a hard edge in the normal map. Default is 180.0 (which means all faces get smoothed together β€” the full slay πŸ”₯).

🌈 EXAMPLES 🌈

Example 1. Compute smooth normals for a BOT

mged> bot_smooth smooth_hull.bot hull.bot

This computes smooth surface normals for hull.bot (using the default 180Β° tolerance, smoothing all faces together πŸ’–) and writes the result to smooth_hull.bot. Iconic. ✨

Example 2. Smooth with a crease angle for hard edges

mged> bot_smooth -t 60 smooth_part.bot rough_part.bot

This smooths rough_part.bot but preserves hard edges between faces whose normals differ by more than 60Β° β€” so the sharp bits stay sharp, iykyk πŸ˜ŒπŸ’….


πŸ‘€ SEE ALSO πŸ‘€

bot_fuse(nged), bot_merge(nged) β€” go read those next, bestie 🫢


⭐ AUTHOR ⭐

BRL-CAD Team πŸ’œ


πŸ’€ BUG REPORTS πŸ’€

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β€” like, literally just email them, they wanna know πŸ“¬


and that's the whole page, bestie πŸ“πŸ§š this was brought to you by BRL-CAD vibes, and the date situation is whatever the manpage footer says, so go check that for me πŸ˜­πŸ’– bye ily πŸ’œ

πŸ“¦ where this page comes from