DBOT_DUMP(nged)

export currently displayed BOT objects to a mesh file format

๐Ÿ“… published 7.44.0, from nixpkgs unstable

๐Ÿ’– NAME โ€” DBOT_DUMP(nged)

dbot_dump โ€” export currently displayed BOT objects to a mesh file format โœจ

๐Ÿฆ‹ SYNOPSIS

dbot_dump [-b] [-n|--normals] [-F|--full-precision]
          [-m|--output-directory dir] [-o|--output-file file]
          [-t dxf|glb|gltf|obj|sat|stl] [-u unit]
          [--no-materials]

๐ŸŽ€ DESCRIPTION

Okay so the dbot_dump command exports the currently displayed BOT (Bag-of-Triangles) objects to an external mesh file. Itโ€™s giving โ€œdisplay-list-onlyโ€ main character energy: unlike bot_dump, which takes explicit object names or operates on all BOTs in the database, dbot_dump operates on the set of objects currently drawn in the MGED display.

It automatically passes โ€”displayed, โ€”viewdata, and โ€”materials to the underlying bot_dump implementation:

  • โ€”displayed โ€” restricts export to currently drawn objects.
  • โ€”viewdata โ€” writes view-related metadata alongside the geometry output.
  • โ€”materials โ€” includes displayed color/material information in the output.
No BOT names are taken as arguments; the set of objects to export is determined by the display list. Periodt.

All other options are identical to bot_dump, including โ€”no-materials (--no-materials in the synopsis) to explicitly suppress color/material export. Ngl, thatโ€™s the โ€œno color dramaโ€ button.

๐ŸŒธ Options ๐ŸŒธ

  • -b โ€” write output in binary format where supported.
  • -n, --normals โ€” write per-vertex normals if the output format supports them.
  • -F, --full-precision โ€” write full floating-point precision for coordinate values.
  • -m dir, --output-directory dir โ€” write each BOT to a separate file in the specified directory dir. Mutually exclusive with -o.
  • -o file, --output-file file โ€” write all output to the single specified file. Mutually exclusive with -m.
  • -t fmt โ€” specify the output format type: dxf, glb, gltf, obj, sat, or stl (default: stl).
  • -u unit โ€” output coordinate units (e.g., mm, cm, in, ft).
  • --no-materials โ€” explicitly suppress color/material export (also spelled โ€”no-materials in the description above, bestie).

๐Ÿ”ฅ EXAMPLES

๐Ÿ’ซ Example 1. Export all currently displayed BOTs to STL

mged> draw hull.bot turret.bot mged> dbot_dump -o displayed.stl

Draws two BOTs, then exports them both (with view data and displayed color/material info) to displayed.stl.

๐Ÿ’ซ Example 2. Export displayed geometry to OBJ format

mged> dbot_dump -t obj -o scene.obj

Exports all currently drawn BOT objects to Wavefront OBJ format, including displayed color/material properties.

๐Ÿฆ‹ SEE ALSO

bot_dump(nged), who(nged), draw(nged) โ€” go read these next, bestie. Iykyk.

๐Ÿ‘‘ AUTHOR

BRL-CAD Team

๐Ÿ› BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org.


๐Ÿ’– Thatโ€™s the whole page. Source/version: BRL-CAD; page: DBOT_DUMP(nged). The footer date slot is giving empty on this one, so Iโ€™m not inventing a date โ€” no cap. ๐Ÿซถ

๐Ÿ“ฆ where this page comes from