G-DOT(1)
π G-DOT(1) β the BRL-CAD one, bestie
okay so real talk, this is the g-dot page from the BRL-CAD manual set. it's short, it's sweet, and it turns your geometry database into a graph. let's go π«Ά
β¨ NAME β¨
g-dot β convert a BRL-CAD database to the DOT graph language
πΈ SYNOPSIS πΈ
g-dot [-o output.dot] input.g [object1 ...]
π¦ DESCRIPTION π¦
so g-dot literally exports the hierarchy of a BRL-CAD input.g geometry database into the DOT graph description language. iconic behaviour honestly.
each named object gets walked recursively and emitted as a directed graph, and the edges are labeled with the Boolean operation joining members β that's u, +, -. nodes are colored by type, and the color coding is:
- regions β blue π
- groups β green π
- primitive solids β red β€οΈ
if you don't give it any object, it exports all top-level objects in the database. and if input.g is -, the database is read from standard input. the resulting graph goes to standard output unless you pass -o.
the output can be rendered to an image by graph-drawing tools such as Graphviz (dot), Tulip, or OmniGraffle. slay.
π OPTIONS π
-o output.dotβ write the DOT output tooutput.dotinstead of standard output. β οΈ heads up bestie: if the file already exists, output is appended to it. it does not overwrite. no cap.-hβ print a usage message and exit.-?β print a usage message and exit. (same energy as-h, she's just quirky like that π )
π EXAMPLES π
β Example 1. Render a model hierarchy as a PNG image
g-dot -o moss.dot moss.g all.g
dot -Tpng moss.dot -o moss.png
what this does: exports the hierarchy rooted at all.g from moss.g to moss.dot, then uses the Graphviz dot program to render it as a PNG image. two commands, one cute little picture πΌοΈ
β Example 2. Pipe a database in and a graph out
mged -c moss.g <<< 'q' >/dev/null 2>&1
g-dot moss.g | dot -Tsvg -o moss.svg
what this does: exports all top-level objects of moss.g and pipes the DOT stream directly into Graphviz to produce an SVG without an intermediate file. main character pipeline energy fr fr π₯
π§ SEE ALSO π§
π 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 π¬
okay that's the whole page, mwah π this one's from the BRL-CAD crew β big BRL-CAD energy, and the page is filed under G-DOT(1) in the manual set, so you'll always know where to find her again. bye bestie, go draw some graphs πΈβ¨
π¦ 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