IGES-G(1)
π IGES-G(1) β a BRL-CAD moment π
okay so bestie, this is the IGES-G(1) page from the BRL-CAD manual set, and we're about to make file conversion actually make sense. buckle up π
β¨ NAME β¨
iges-g β convert an IGES file to a BRL-CAD database. literally what it says on the tin, no cap π«Ά
πΈ SYNOPSIS πΈ
iges-g [-3] [-d] [-n] [-t] [-p] [-N solid_name] [-x rt_debug_flag] [-X nmg_debug_flag] -o database.g file.iges
π¦ DESCRIPTION π¦
iges-g reads an IGES (Initial Graphics Exchange Specification) file and writes the converted geometry straight into a BRL-CAD database.g file. and like, the input is expected to conform to IGES version 5.1 β that's the vibe check it's holding you to π
So if you pass none of -3, -d, -n, or -t, the default action is lowkey iconic: it converts only IGES solid model entities β that's CSG primitives and planar-face BREP objects β into their BRL-CAD equivalents. Most CSG conversions are exact, but heads up bestie: solids of revolution get approximated by a series of BRL-CAD cones, and solids of linear extrusion get approximated by polysolids. not exact, but it's giving "close enough" π
Planar-faced BREP objects are written as BOT solids by default (or as NMG solids if you say -p). slay.
The -3/-d, -n, and -t options are mutually exclusive β pick one, don't be messy π β and they select alternate conversion modes: drawings, B-spline surfaces, or trimmed surfaces, respectively. The -o output option is required, fr fr, no output no party.
when the chosen mode can't represent something that's actually in the file, iges-g prints suggestions for the options that would convert the remaining entities. so it's not ghosting you, it's helping β¨
And if you wanna export geometry in the other direction? see g-iges(1). we love a bidirectional moment π
π OPTIONS π
-3β Convert IGES drawings to BRL-CAD NMG objects without the final projection into 2D, preserving 3D drawings produced from a 3D model. Solid model entities are ignored. π-dβ Convert IGES drawings to BRL-CAD NMG objects (projected to 2D). Solid model entities are ignored.-nβ Combine all rational B-spline surfaces in the IGES file into a single BRL-CAD spline solid. one solid, main character energy β-tβ Convert all trimmed surfaces in the IGES file into a single BRL-CAD NMG trimmed-NURBS solid.-pβ Write BREP objects as NMG solids instead of the default BOT solids. glow-up mode β¨-odatabase.g β Specify the output BRL-CAD database file. This option is required. π¨-Nsolid_name β Name the single solid created by the-nor-toption. If not given, the default name"all"(or a unique variant) is used. Ignored for all other modes. π·οΈ-xrt_debug_flag β Set the librt debug flag, given as a hexadecimal value. Seeraytrace.hfor the bit definitions. π-Xnmg_debug_flag β Set the NMG routine debug flag, given as a hexadecimal value. Seenmg.hfor the bit definitions.
π₯ EXAMPLES π₯
Example 1. Convert IGES solid geometry and inspect the result
iges-g -o widget.g widget.iges
mged widget.g 'tops'
Convert the CSG and planar-face BREP entities of widget.iges into widget.g, then list the resulting top-level objects with mged(1) to verify the conversion. literally the "did it work" ritual, we love her π
Example 2. Convert trimmed surfaces into a single named solid
iges-g -t -N hull -o boat.g boat.iges
Collapse all trimmed surfaces in boat.iges into one BRL-CAD NMG solid named "hull" inside boat.g β useful for surface models that have no CSG geometry. it ate, no crumbs π
π SEE ALSO π
The Initial Graphics Exchange Specification (IGES) Version 5.1, IGES/PDES Organization, September 1991. π
π§ AUTHOR π§
BRL-CAD Team π
π COPYRIGHT π
This software is Copyright (c) 1991-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 suffer in silence bestie, tell the devs π«Ά
okay that's the whole page!! this gorgeous little number lives in the BRL-CAD manual collection and is page IGES-G(1) of that set β mwah, go convert something iconic πβ¨
π¦ 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