FAST4-G(1)
๐ fast4-g(1) โ the FASTGEN4 glow-up pipeline ๐
okay bestie, so this is the fast4-g page from the BRL-CAD manual set, and it's literally the tool that takes your crusty old FASTGEN 4.1 file and turns it into a gorgeous BRL-CAD geometry database. no cap, it's giving "glow-up montage" energy the whole way through. โจ
๐ฆ NAME ๐ฆ
fast4-g โ convert a FASTGEN4 file to a BRL-CAD geometry database. that's it. that's the whole job. and it slays at it. ๐
๐ธ SYNOPSIS ๐ธ
fast4-g [-dwq] [-o plot_file] [-m muves_file] [-c id_list] [-C color_file] [-x RT_DEBUG_FLAG] [-b BU_DEBUG_FLAG] [-h] [-?] file.fastgen4 file.g
yes the flag soup is real but like, it's fine, we'll go through every single one together. ๐ซถ
โจ DESCRIPTION โจ
so fast4-g converts a FASTGEN 4.1 format file (file.fastgen4) into a BRL-CAD geometry database (file.g). one file in, one glow-up out. iconic behavior honestly.
the supported FASTGEN element types and their BRL-CAD equivalents are:
CCONE1/CCONE2/CCONE3โTRCCHEX2โARB8CLINEโclineCQUAD/CTRI/CHEX1โBOTfacesCSPHEREโSPH
each component gets built in either plate mode or volume mode โ no, you don't get to pick per-vibe, that's just how it goes.
region ident numbers are computed as group * 1000 + component. yes, math. we love a little math. ๐งฎ
object names come from $NAME elements, and if that's not forthcoming it falls back to generated comp_NNNN.r names โ using an algorithm that ensures uniqueness, because two objects with the same name is a crime and we don't do crimes here. ๐
coordinates are read in inches and converted to millimeters. unit conversion, bestie. it's not a vibe, it's a necessity.
โ ๏ธ important heads-up: for FASTGEN2 or FASTGEN3 files, convert them usingrpatch(1)and thenpatch-g(1). do NOT just yeet them atfast4-g, that's not what she's for, she will simply not understand you. ๐ญ
๐ OPTIONS ๐
-dโ print debugging information. for when you're like "why is this doing that" and you need the lore.-wโ print warnings when a component is assigned a default (generated) name. basically a little "hey girl, this one got a placeholder name" notification. ๐ฅบ-qโ quiet mode; suppress progress output, emitting only error messages. for when you want zero small talk and only the bad news. ๐-oplot_file โ write all processedCTRIandCQUADelements to plot_file inlibplot3format. the result can be viewed inmged(1)with theoverlaycommand. cute for visualization besties. ๐-mmuves_file โ writeCHGCOMPandCBACKINGelement information to muves_file as a MUVES input file. vintage-core. ๐๏ธ-cid_list โ convert only the listed components. id_list is a comma-separated list of region idents and ranges, e.g.3002,5678,1002-1100. picky and selective, we stan. ๐ฅ-Ccolor_file โ read region colors from color_file. each line holds five integers:low high r g b. aesthetic customization, literally the fun part. ๐จ-xRT_DEBUG_FLAG โ set the librt debug flag to the given hexadecimal value. hex brainrot, respectfully. ๐ง-bBU_DEBUG_FLAG โ set the libbu debug flag to the given hexadecimal value. same energy, different library. ๐-h,-?โ print a usage message and exit. the classic "help I'm lost" escape hatch. ๐
โญ EXAMPLES โญ
Example 1. Convert a model and inspect it
fast4-g vehicle.fastgen4 vehicle.g
mged vehicle.g
converts the FASTGEN4 bulk data file into vehicle.g, then opens the result in mged(1) where the generated all group can be drawn. so you generate it, then you look at it. main character energy. ๐
Example 2. Convert selected components with a plot overlay
fast4-g -w -c 3002,5678,1002-1100 -o turret.plot3 vehicle.fastgen4 turret.g
processes only the listed component ident ranges, warns when default names are generated, and writes the converted CTRI and CQUAD facets to turret.plot3 for overlay display in mged(1). three vibes in one command, we love a multitasker. ๐ฆ
๐ SEE ALSO ๐
brlcad(1), rpatch(1), patch-g(1), mged(1) โ go read these too, they're in the friend group. ๐ซถ
๐ธ AUTHOR ๐ธ
BRL-CAD Team. legends, honestly.
๐ฅ COPYRIGHT ๐ฅ
This software is Copyright (c) 1994-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
ngl if you find a bug, tell them. they're not gonna be mean about it. fr fr. ๐ฌ
okay that's the whole page bestie! this one's from the BRL-CAD manual collection, and you're reading the FAST4-G(1) page itself. go convert something gorgeous. ๐โจ
๐ฆ 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