ASC-PLOT3(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

✨ ASC-PLOT3(1) ✨

okay bestie, welcome to the BRL-CAD corner of the manual β€” this one's called asc-plot3 and it's honestly such a little workhorse 🫢


🌸 NAME 🌸

asc-plot3 β€” turns an ASCII representation into Plot3 instructions, no cap πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

asc-plot3 [-h] [-?] [file.in [file.plot3]]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, asc-plot3 reads a stream of ASCII data that represents Plot3 instructions, and converts it into binary plot3(5) format. iconic behaviour honestly πŸ’–

if you don't hand it file names, it reads from standard input and writes to standard output. lowkey the default-est defaults that ever defaulted.

your input should be lines that look like this:

c arg arg ...

where c is one of the single-character Plot3 command names, followed by white-space-separated arguments of the appropriate number and type for that command. so like, the right amount of args, of the right type β€” it's giving "read the room" energy, yk? πŸ‘‘

optional white space is ignored, and so are lines that begin with the comment character # ✨ (yes bestie, you can leave notes for yourself, live your truth)


πŸ’… OPTIONS πŸ’…

  • -h, -? β€” prints a usage message and then dips. exit stage left, periodt πŸšͺ
  • file.in β€” the input ASCII file containing the plot3 instructions. if you don't specify it, or if you pass -, standard input gets read instead πŸ“
  • file.plot3 β€” the output file where the binary plot3 data gets written. if you don't specify it, standard output is used.
⚠️ heads up bestie: asc-plot3 will straight-up refuse to write binary plot data to a terminal. it's protecting you, fr fr. respect the boundary πŸ’€

🌈 EXAMPLES 🌈

Example 1. Convert an ASCII plot3 file to binary

asc-plot3 data.asc data.plot3

this converts the ASCII file data.asc into a binary plot3(5) file named data.plot3. chef's kiss, done πŸŽ€

Example 2. Draw a box and view it on a framebuffer

printf 's 0 0 100 100\nm 10 10\nn 90 10\nn 90 90\nn 10 90\nn 10 10\n' | asc-plot3 | plot3-fb

okay so what's happening here β€” the s command sets the drawing space to the square (0,0)-(100,100), then it moves the pen and draws four connected line segments forming a box πŸ¦‹ and then the resulting binary plot3 stream gets piped directly into plot3-fb(1) so it displays on a framebuffer. pipeline slay, literally πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

plot3-asc(1), plot3-plot3(1), plot3rot(1), plot3-fb(1), libbv(3), plot3(5) β€” go read those too, iykyk πŸ‘‘


🌟 AUTHOR 🌟

the BRL-CAD Team 🫢


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


πŸ’Œ BUG REPORTS πŸ’Œ

if you find a bug or a problem, report it via electronic mail to devs@brlcad.org πŸ“§ β€” they wanna hear about it, fr fr


and that's the whole page bestie!! this one came straight out of the BRL-CAD manual set, dated in that copyright range of 1991-2026 β€” go forth and plot things πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from