DATA_LINES(nged)

Manage an arbitrary line set attached to the current view.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… DATA_LINES(nged) β€” the glow-up guide

okay bestie, so this is a page from the BRL-CAD User Commands manual, and it's about data_lines. it lives in the nged family, and honestly? it's lowkey iconic for overlays. let's get into it πŸŽ€


✨ NAME ✨

data_lines β€” manage an arbitrary line set attached to the current view. that's it, that's the vibe πŸ’«


🌸 SYNOPSIS 🌸

here's every single way you can call it, no cap, nothing skipped:

data_lines draw [0|1]
data_lines color [r g b]
data_lines line_width [width]
data_lines points [{{x y z} {x y z} ...}]
data_lines snap [0|1]
view data_lines draw [0|1]
view data_lines color [r g b]
view data_lines line_width [width]
view data_lines points [{{x y z} {x y z} ...}]
view data_lines snap [0|1]

like, both the plain form and the view-prefixed form exist, and they do the same thing. twin energy fr fr πŸ‘―β€β™€οΈ


πŸ¦‹ DESCRIPTION πŸ¦‹

so data_lines manages a view-associated line set that is not tied to database geometry. think of it as your little aesthetic scratchpad for the view β€” it's useful for temporary guide lines, annotations, and other visual overlays. main character overlay energy, honestly πŸ’…

the command accepts the following subcommands:

  • draw β€” report or set whether the line set should be drawn. yes queen, toggle your visibility ✨
  • color β€” report or set the RGB color used for the line set. serve looks 🌈
  • line_width β€” report or set the line width. thick or thin, your call πŸ’–
  • points β€” report or set the Tcl-style list of line endpoints. ⚠️ important: points are consumed in pairs, so the list must contain an even number of 3D points. odd numbers? not today bestie, it will not slay.
  • snap β€” report or set the current view's line-snapping flag. snapping on = that magnetic precision 🧲
ngl the whole "report or set" thing is the move here: give it an argument and you're setting, give it nothing and it reports back at you. very responsive, very communicative 🫢

the same functionality is also available through the view data_lines ... command form. same powers, different door πŸšͺ

also hi β€” the related sdata_lines command uses the same subcommands on a separate line set maintained by the current view. so don't confuse the two, they're siblings, not twins πŸ‘‘


πŸ”₯ EXAMPLES πŸ”₯

Example 1. Create and display red guide lines in the current view.

verbatim, character for character, because i would never touch your commands:

mged> data_lines points {{0 -1000 0} {0 1000 0} {100 -1000 0} {100
1000 0}} mged> data_lines color 255 0 0 mged> data_lines line_width
100 mged> data_lines draw 1

what this does, bestie: defines two vertical guide lines, colors them red, sets a wider line width, and turns drawing on for the line set. red lines, chunky width, visible β€” absolute serve πŸ”₯πŸ“


πŸ’œ SEE ALSO πŸ’œ

go read these next, iykyk:

  • sdata_lines(nged)
  • view(nged)

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the ones who built this. thank them, they ate πŸ’


πŸ™ˆ BUG REPORTS πŸ™ˆ

reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. like, if something's acting up, don't suffer in silence β€” tell the devs, fr fr πŸ˜­πŸ“¬


πŸ’€ reminder to self: points needs an even number of 3D points. pairs only. no solo points allowed. periodt.

okay that's the whole page!! this was from the BRL-CAD manual, page DATA_LINES(nged) β€” original footer vibes and all πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from