BO(nged)
Creates or retrieves binary opaque objects.
π BO(nged) β bestie's guide to binary opaque objects β¨
okay so real quick, this is a page from the BRL-CAD User Commands manual, and it's literally all about the bo command. she's giving main character energy in the nged tool and honestly? iconic.
β¨ NAME β¨
bo β creates or retrieves binary opaque objects. that's it, that's the vibe. π«Ά
πΈ SYNOPSIS πΈ
bo {[-i u {type}] | [-o]} {destination} {source}
no cap, that's the whole shape of it. destination and source both go at the end, and you gotta pick -i or -o up front. iykyk.
π DESCRIPTION π
so this command is your girl for creating or exporting binary opaque objects. the way that you must specify one of -i or -o β like, exactly one β to input or output data respectively:
-iwill create a binary object-owill write out a binary object's data
rn, only uniform binary objects (arrays of values, bestie β think "a big ol' list of the same type") are supported on input. just so we're clear π
On input, destination is the name of the object you're creating, and source is the path to a file to read. π¦
On output, destination is the path to a file you're writing out, filled with the contents of the binary object specified as source. π
and the type β you pass it with -i u β can be any one of these, no cap:
fβ floatdβ doublecβ char (8 bit)sβ short (16 bit)iβ int (32 bit)lβ long (64 bit)Cβ unsigned char (8 bit)Sβ unsigned short (16 bit)Iβ unsigned int (32 bit)Lβ unsigned long (64 bit)
β psst β note: this command was previously named dbbinary. so if you see the old name floating around, that's her before the glow-up. π
π₯ EXAMPLES π₯
these examples show the bo command doing both things: creating with -i and retrieving with -o. let's get into it bestie π
β Example 1. Create an opaque uniform binary object of characters with a specified name containing the contents of a particular file
mged>bo -i u c cmds /usr/brlcad/html/manuals/mged/mged_cmds.html
Creates an opaque uniform binary object of characters with the name cmds that contains the contents of the file /usr/brlcad/html/manuals/mged/mged_cmds.html. literally just scooping that file into the database. π
β Example 2. Import data for a displacement map (DSP) object
mged>bo -i u S dsp.data /path/to/file.dsp
This imports a file named file.dsp that contains DSP data, i.e., raw data in unsigned short (16-bit) format. The data is saved in the .g database into an object named dsp.data. When creating a DSP, this dsp.data object can be specified as the data source. π
β Example 3. Copy the contents of a particular binary object into a specified file
mged>bo -o /home/jim/cmds.html cmds
Copies the contents of the binary object named cmds into the file named /home/jim/cmds.html. reversed energy, same slay. π
π§ AUTHOR π§
BRL-CAD Team β the icons themselves π
π BUG REPORTS π
if you find a bug or a problem, don't suffer in silence bestie β reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. they wanna hear from you fr fr. π
not me ending on a cute sign-off β this page came to you courtesy of the BRL-CAD manual pages, under the BO(nged) listing. periodt. π β¨
π¦ 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