PLOT3-DM(1)

πŸ“¦ version 7.44.0, in nixpkgs unstable

πŸ’… PLOT3-DM(1) β€” the BRL-CAD manual page, bestie edition πŸŽ€

okay so this is plot3-dm, part of the BRL-CAD fam ✨ (yes the manual-page name goes up there in the title, iykyk). sit down, grab a strawberry πŸ“, and let's get into it.


🌈 NAME 🌈

plot3-dm β€” literally opens a display manager window so you can interactively view 3-D UNIX plot files in it. that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

plot3-dm [-t o|X] [plot_file ...]

that's it. that's the incantation. πŸͺ„


πŸ’– DESCRIPTION πŸ’–

so plot3-dm opens up an interactive display-manager window and renders one or more BRL extended three-dimensional UNIX plot files right into it (peep plot3-fb(1) for the plot-file lore). once it's up you can rotate, translate, and zoom the view with the mouse β€” main character energy, honestly β€” and there's a small set of Tcl commands for scripting the view and managing all the plots you've loaded.

big sis energy: this program is a sample application distributed with BRL-CAD to demonstrate how to drive the libdm display-manager library πŸ’… and its source is installed alongside the other sample applications, so you can go read it. no gatekeeping here 🫢

you can pass one or more plot_file arguments on the command line, and each one gets loaded as a named object β€” the name is the basename of the file. cute, right? ✨

and if you give it no plot_file and standard input is not a terminal, then plot commands get read from standard input instead. plot twist. 😭

πŸ¦‹ THE COMMANDS (yes, you type them) πŸ¦‹

once the window is open, commands are entered on standard input. here's the lineup, and yes they all slay:

  • openpl file ... β€” load even more plot files, because why not
  • ls β€” list the plots you've loaded πŸ“‹
  • draw name / erase name / closepl name β€” control individual plots, one at a time
  • zoom factor β€” zoom it, bestie πŸ”
  • vrot x y z β€” rotate the view on those axes
  • ae azim elev [twist] β€” set the azimuth/elevation view (with optional twist πŸŒ€)
  • reset β€” fit all plots to the window, one fresh start
  • exit (or q) β€” bye πŸ’€

🐭 MOUSE MANIPULATION 🐭

you don't even have to type, ngl. the left, middle, and right drag modes rotate, translate, and zoom the scene respectively. literally drag and go ✨


πŸ’… OPTIONS πŸ’…

  • -t o|X β€” picks the display-manager backend. X (the default) uses the X11 display manager; o (or O) asks for the OpenGL (ogl) display manager. any other value just falls back to the X backend, no drama πŸ™ˆ
  • -h, -? β€” print a short usage message and dip. that's it. πŸ‘‹

🌸 EXAMPLES 🌸

Example 1. View a plot generated from a BRL-CAD geometry database

rt -o model.plot3 model.g component
plot3-dm model.plot3

so you render a region of the geometry in model.g out to a 3-D UNIX plot file with rt(1), then open it in an interactive window where you can rotate and zoom to inspect the wireframe. it's giving ✨science✨ honestly πŸ”₯

Example 2. Load several plots at once using the OpenGL backend

plot3-dm -t o first.plot3 second.plot3

both plot files open together in the OpenGL display manager πŸ¦‹ and each file becomes a separately named, individually drawable object that you can toggle with the draw and erase commands. so organized. so iconic. πŸ‘‘


πŸ” SEE ALSO πŸ”

plot3-fb(1), plot3-ps(1), plot3rot(1), rt(1), libdm(3), brlcad(1)

go read those too, they're all part of the family πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team πŸ’–


This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.

(put some respect on it ⭐)


πŸ› BUG REPORTS πŸ›

found a bug? a problem? something acting sus? 😭 reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. they wanna know, fr fr πŸ“¬


k bye bestie πŸŽ€ that was the plot3-dm(1) page from BRL-CAD β€” mwah, go rotate something πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from