BOT_DUMP(nged)
export Bag-of-Triangles (BOT) geometry to a mesh file format
π BOT_DUMP π
okay so bestie, this one lives in the nged section of the manual, and it's honestly such a glow-up for your geometry. bot_dump is the command that takes your Bag-of-Triangles (BOT) primitives and yeets them out into a real mesh file format so other software can actually see them. iconic behavior fr fr.
β¨ SYNOPSIS β¨
bot_dump [-b] [-n|--normals] [-F|--full-precision]
[-m|--output-directory dir] [-o|--output-file file]
[-t dxf|glb|gltf|obj|sat|stl] [-u unit]
[--materials|--no-materials]
[bot1 bot2 ...]
like, that's the whole vibe. flags first, bot names last, no notes π
π¦ DESCRIPTION π¦
so bot_dump exports one or more BOT (Bag-of-Triangles) primitives out of the current database and into an external mesh file. that's the whole job and she does it well.
and here's the slay part: if you don't name any BOTs at all, it just exports all the BOT objects in the database. no name-dropping required, she'll take the whole friend group π«Ά
the output formats it supports, in no particular order (okay there is an order, here it is):
stlβ STL (Stereolithography), and yes this one is the default. can be binary or ASCII.dxfβ AutoCAD DXF format.objβ Wavefront OBJ format, and it comes with an accompanying.mtlmaterial file like a little matching accessory πsatβ ACIS SAT format.glbβ glTF binary format.gltfβ glTF JSON format.
π Options π
-bβ writes the output in binary format where it's supported (think binary STL, binary glTF/GLB). she's not doing plain text if she doesn't have to π-n,--normalsβ writes per-vertex normals, but only if the output format actually supports them. no cap, formats are picky.-F,--full-precisionβ writes full floating-point precision for the coordinate values. heads up though: this is non-standard for glTF output, so like, know what you're doing πΈ-m dir,--output-directory dirβ writes each BOT to its own separate file inside the directorydir. and listen: this is mutually exclusive with-o. pick a lane bestie, you can't have both.-o file,--output-file fileβ writes all the output into the single file you name. also mutually exclusive with-m, same energy.-t fmtβ specifies the output format type. accepted values are:dxf,glb,gltf,obj,sat,stl. the default isstl. if you skip it, she's going STL and she's not sorry.-u unitβ specifies the output units for the coordinate values (likemm,cm,in,ft). defaults to the database's native units, which honestly is the respectful choice π--materialsβ exports resolved color and material information when the selected format supports it. and this is the default behavior for supported formats, so it's already happening β¨--no-materialsβ turns off color and material export entirely and writes geometry only. strictly business, no decorations π
π EXAMPLES π
literally just copy these, they ate.
Example 1. Export all BOTs to a single STL file
mged> bot_dump -o scene.stl
Exports all BOT primitives in the database to scene.stl in ASCII STL format. all of them. every last triangle π
Example 2. Export a specific BOT as binary STL
mged> bot_dump -b -o hull_mesh.stl hull.bot
Exports hull.bot to hull_mesh.stl in binary STL format. one bot, one file, zero drama π¦
Example 3. Export to OBJ format with named per-object files
mged> bot_dump -t obj --output-directory ./export/
Exports each BOT in the database to its own .obj file in the ./export/ directory, including color/material data when it's available. very organized of her honestly π
Example 4. Export in glTF binary format with full precision
mged> bot_dump -t glb -F -o scene.glb
Exports all BOTs to scene.glb in binary glTF format with full floating-point precision. maximum detail, no shortcuts β
Example 5. Export in DXF format with unit conversion
mged> bot_dump -t dxf -u in -o scene.dxf
Exports all BOTs to scene.dxf in DXF format, with coordinates converted to inches. unit math handled, you're welcome π
π SEE ALSO π
dbot_dump(nged)bot(nged)
go read those too, iykyk π
π AUTHOR π
BRL-CAD Team β legends, honestly π«Ά
π¬ BUG REPORTS π¬
if you find a bug or a problem, reports should be submitted via electronic mail to devs@brlcad.org. don't suffer in silence bestie, tell them π
ngl, the formats are picky and the flags are mutual-exclusive, so double-check what you asked for before you blame the triangles π
and that's the page! brought to you by the fine folks behind BRL-CAD (that's the source and version line at the bottom of the original β the manual name is BOT_DUMP(nged) if you ever need to cite her). go forth and dump some bots, bestie π
β¨π₯
π¦ 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