LOD(nged)

configure Level of Detail (LOD) drawing

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… LOD(nged) β€” configure Level of Detail (LOD) drawing πŸ’…

okay bestie, welcome to the LOD(nged) page in the BRL-CAD User Commands manual β€” this is the full glow-up on LoD drawing, fr fr. πŸ’–


✨ NAME ✨

lod β€” configure Level of Detail (LOD) drawing. no cap, that’s the whole name and it ate. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

lod
lod (on|off|enabled)
lod scale (points|curves) [factor]

🌸 DESCRIPTION 🌸

The lod command configures the Level of Detail (LoD) drawing behavior for the current view. When LoD drawing is enabled, BRL-CAD adapts the rendering complexity of wireframe geometry based on view conditions, improving performance for complex models. ✨

When you call lod with no arguments, it prints the current LoD configuration, including:

  • Whether adaptive LoD drawing is currently enabled or disabled. πŸ‘€
  • The current point scale factor.
  • The current curve scale factor.
  • The current BoT face threshold β€” the number of faces at which a BoT switches to simplified display. πŸ’€

πŸŽ€ Subcommands πŸŽ€

  • on β€” Enable adaptive LoD drawing. periodt. βœ…
  • off β€” Disable adaptive LoD drawing. bye bestie. πŸ™ˆ
  • enabled β€” Print 1 if LoD is currently enabled, 0 if disabled. Suitable for scripting. iykyk. 🧚
  • scale points [factor] β€” If factor is given, sets the point density scale. If omitted, prints the current point scale value. πŸŽ€
  • scale curves [factor] β€” If factor is given, sets the curve complexity scale. If omitted, prints the current curve scale value. πŸ¦‹

🌈 EXAMPLES 🌈

πŸ“ Example 1. Query current LoD state

mged> lod

LoD drawing: enabled
Point scale: 1.000000
Curve scale: 1.000000
BoT face threshold: 32768

Prints the current LoD configuration. simple as that. πŸ’–

πŸ“ Example 2. Enable LoD and reduce curve complexity

mged> lod on mged> lod scale curves 0.5

Enables LoD drawing and halves the curve complexity scale, reducing the number of line segments used to approximate curves. yes, that line really has both mged> prompts in it in the original β€” keeping it character for character, bestie 😭🫢

πŸ“ Example 3. Check LoD status for scripting

mged> lod enabled

Returns 1 if LoD is enabled, 0 if disabled. Useful in scripts or Tcl procedures. lowkey iconic for automation. ⭐


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” icons only. πŸ’œ


πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. πŸ›πŸ’Œ


✨ cute sign-off: this page is LOD(nged) from source/version BRL-CAD; the footer didn’t give a date, so here’s a sparkly timestamp of vibes instead πŸ«ΆπŸ’–

πŸ“¦ where this page comes from