ASC-PLOT3(1)
β¨ 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 π«Ά
β COPYRIGHT β
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
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms