BOT_DUMP(1)

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

πŸ’… 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 πŸ™ˆ
  • -m directory β€” write each dumped BoT into its own separate file inside directory. this is mutually exclusive with -o, pick a lane bestie πŸ’€
  • -o file β€” write all the exported geometry into a single file. also mutually exclusive with -m. one or the other, periodt πŸŽ€
  • -t type β€” pick the output format: dxf, glb, gltf, obj, sat, or stl. if you skip it, the format gets inferred from the output file extension, and it defaults to stl when it can't figure it out. iykyk 🌈
  • -u units β€” 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 πŸ’–


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