BOT_DUMP(1)
π BOT_DUMP π
okay so real talk, this is bot_dump from section 1 of the BRL-CAD manual, and it's literally the tool that yeets your Bag of Triangles primitives out of a BRL-CAD database and into cute little mesh files. bestie, it's giving "export era" and I'm obsessed π
β¨ NAME β¨
bot_dump β export Bag of Triangles (BoT) primitives to mesh file formats π
πΈ SYNOPSIS πΈ
bot_dump [-b] [-n] [-m _directory_] [-o _file_] [-t dxf|glb|gltf|obj|sat|stl] [-u _units_] geom.g [bot1 bot2 ...]
π¦ DESCRIPTION π¦
bot_dump exports the raw definition of polygonal Bag of Triangles (BoT) primitives out of a BRL-CAD database and into a whole bunch of standard mesh formats. and no cap, the key thing here: no Boolean evaluation is performed β so what you get out is each primitive's exact stored representation, matching the original 1:1. no remixing, no glow-up, just the truth π―
The database is the first positional argument. If one or more BoT object names come after it, then only those objects get exported. Otherwise? every single BoT in the database gets exported. all of them. the whole squad π«Ά
and here's the vibe check on output: if you don't give -o and you don't give -m, then ASCII output goes to standard output. but binary formats? yeah those need an actual output file or directory, no shortcuts. π
π OPTIONS π
-bβ write a binary version of the output format, for the formats that support both ASCII and binary variants (like STL). heads up: glTF output is always binary (GLB), so that one's already living its binary truth β¨-nβ include surface normals in the output, where the format supports them (e.g. OBJ). and just so we're clear: normals are intrinsic to STL, and DXF and SAT simply don't support them. not their fault, just their vibe π-mdirectory β write each dumped BoT into its own separate file inside directory. this is mutually exclusive with-o, pick a lane bestie π-ofile β write all the exported geometry into a single file. also mutually exclusive with-m. one or the other, periodt π-ttype β pick the output format:dxf,glb,gltf,obj,sat, orstl. if you skip it, the format gets inferred from the output file extension, and it defaults tostlwhen it can't figure it out. iykyk π-uunits β convert coordinates from the internal millimeters into the units you want on output (like"in","cm","m"). metric-to-imperial slay π-h,-?β print a usage summary and dip. iconic π
β EXAMPLES β
β¨ Example 1. Export selected BoTs to a binary STL β¨
bot_dump -b -t stl -o hull.stl ship.g hull_bot deck_bot
Writes the hull_bot and deck_bot BoT primitives from ship.g into one single binary STL file β perfect for slicing or 3D printing. ate and left no crumbs π₯
β¨ Example 2. Export every BoT to per-object glTF files in millimeters-to-meters β¨
bot_dump -u m -t glb -m gltf_out world.g
Converts all the BoT primitives in world.g, scaling coordinates from millimeters to meters, and writes one GLB file per object into the gltf_out directory. organize your life, queen π§
β¨ Example 3. Export an OBJ with normals and material colors β¨
bot_dump -n -t obj -o part.obj assembly.g part_bot
Produces an OBJ (plus its companion MTL) containing surface normals and the resolved region/object color for part_bot, ready to import into a renderer. and friendly reminder: color and material info is written automatically for OBJ output. main character behavior honestly πΈ
π SEE ALSO π
brlcad(1), mged(1), g-stl(1), g-dxf(1), g-obj(1) β go read those too, the whole friend group is valid π«Ά
π AUTHOR π
BRL-CAD Team π
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β don't be shy, they genuinely want to know π
fr fr if something's acting up, email the devs. that's the whole ask. no cap π«Ά
okay that's the whole page, bestie, go forth and export π β¨
β with love from the BRL-CAD manual fam (BOT_DUMP(1), BRL-CAD), and copyright years 1989-2026 β mwah ππ¦β
π¦ 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