G-IGES(1)
G-IGES(1) πβ¨
okay so this is the BRL-CAD manual page for g-iges, and bestie, itβs giving βturn my BRL-CAD model into an IGES fileβ in the most useful way. Letβs get into it π«Ά
πΈ NAME πΈ
g-iges β convert a BRL-CAD database to an IGES file. Thatβs the whole name vibe, no cap π
β¨ SYNOPSIS β¨
g-iges [-f|-t|-m] [-s] [-v] [-a abs_tol] [-r rel_tol] [-n norm_tol] [-d dist_tol] [-P ncpu] [-x rt_debug] [-X nmg_debug] [-o output_file] database.g object [object ...]
π DESCRIPTION π
So g-iges converts the specified object(s) from a BRL-CAD database.g database into an IGES version 5.1 file. Literally the crossover episode you needed. π¦
By default, a CSG IGES file is produced: every region is written as a Boolean tree, with each solid represented by its IGES CSG equivalent. Any solid that has no IGES CSG equivalent is tessellated (using the tessellation tolerances) and written as a boundary-representation (B-Rep) object. The -f, -t, and -m options select alternative output modes; they are mutually exclusive, and the last one given wins. Main character rule: last one wins, periodt. π
If no output file is given with -o, the IGES file is written to standard output. The inverse translation, from IGES to BRL-CAD, is performed by iges-g(1). Iconic symmetry, honestly. π
π OPTIONS π
-fβ Facetized B-Rep output. Every region is tessellated, its Boolean operations are evaluated, and the result is written as a single manifold-solid B-Rep object. Tessellation accuracy is governed by-a,-r, and-n. π§-tβ Trimmed-surface output (experimental). Each region is written as a collection of trimmed NURBS derived from the facets of the tessellated, Boolean-evaluated region. Experimental means experimental, bestie β noted and respected. π-mβ Multi-file output: write a separate IGES file for each converted region. Implies-t, and the-oargument must name an existing directory in which the per-region files are created. Directory energy only, no file energy. π-sβ Write the faces of B-Rep objects as planar NURBS surfaces.-aabs_tol β Absolute tessellation tolerance, in millimeters. Default0.0(disabled).-rrel_tol β Relative tessellation tolerance, as a fraction of object size. Default0.01.-nnorm_tol β Surface-normal tessellation tolerance. Default0.0(disabled).-ddist_tol β Minimum distance between distinct points, in millimeters. Default0.0005.-Pncpu β Number of processors to use during tessellation. Default1.-vβ Verbose output; repeat for more detail. The more-v, the more it spills the tea. β-xrt_debug β Set the librt raytrace debug flag (hexadecimal). Seeraytrace.hfor values.-Xnmg_debug β Set the NMG debug flag (hexadecimal). Seenmg.hfor values.-ooutput_file β Write the IGES output to output_file instead of standard output. With-m, this argument must be a directory.
bestie, quick vibe check:-f,-t, and-mare mutually exclusive, and the last one given wins. Thatβs not a suggestion, thatβs the rule. π
π EXAMPLES π
Example 1. Convert selected regions to a CSG IGES file
g-iges -o assembly.iges assembly.g hull turret
Writes the hull and turret regions of assembly.g as a CSG IGES file, preserving the Boolean tree where IGES primitive equivalents exist and tessellating the rest. The βkeep what can be kept, tessellate the restβ lifestyle. β¨
Example 2. Produce a faceted B-Rep IGES file with tight tolerances
g-iges -f -a 0.1 -n 0.01 -o widget.iges widget.g widget
Tessellates the widget region to within an absolute tolerance of 0.1 mm and a surface-normal tolerance of 0.01 radians, then writes it as a manifold-solid B-Rep, suitable for downstream CAD packages that prefer evaluated geometry over CSG. Tight tolerances, tight output, no notes. π―
Example 3. Split a model into one IGES file per region
mkdir parts
g-iges -m -o parts model.g topgroup
Writes each region under topgroup as its own trimmed-NURBS IGES file inside the parts directory, which is convenient for importing assemblies part-by-part. Assembly breakup era πβ‘οΈπ¦
π¦ 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.
π source/version sign-off vibes: this is the BRL-CAD manual page G-IGES(1) β footer says BRL-CAD and G-IGES(1), and this copy doesnβt show a date line, so weβre not inventing one, bestie. Periodt. π
π¦ 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