IGES-G(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

πŸŽ€ 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 ✨
  • -o database.g β€” Specify the output BRL-CAD database file. This option is required. 🚨
  • -N solid_name β€” Name the single solid created by the -n or -t option. If not given, the default name "all" (or a unique variant) is used. Ignored for all other modes. 🏷️
  • -x rt_debug_flag β€” Set the librt debug flag, given as a hexadecimal value. See raytrace.h for the bit definitions. πŸ”
  • -X nmg_debug_flag β€” Set the NMG routine debug flag, given as a hexadecimal value. See nmg.h for 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 πŸ‘‘

brlcad(1), g-iges(1), mged(1)

The Initial Graphics Exchange Specification (IGES) Version 5.1, IGES/PDES Organization, September 1991. πŸ“š


🧚 AUTHOR 🧚

BRL-CAD Team πŸ’œ


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