TGF-G(1)

πŸ“¦ version 7.44.0, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, welcome to the tgf-g page from the BRL-CAD manual, section 1 β€” aka TGF-G(1). This little icon converts an INTAVAL Target Geometry File to a BRL-CAD database, and honestly? It’s giving β€œniche but useful” in the best way.

tgf-g β€” convert an INTAVAL Target Geometry File to a BRL-CAD database. Periodt. πŸ’…


✨ SYNOPSIS ✨

tgf-g _material_file_ _geometry_file_ _output.g_

No cap, that’s the whole vibe: three positional arguments, lined up like a little group chat. 🫢


πŸ’… DESCRIPTION πŸ’…

So tgf-g converts geometry described by an INTAVAL Target Geometry File (TGF) into a BRL-CAD database (.g) file. INTAVAL is a vulnerability/lethality analysis code, and its target descriptions are split across two input files: a material file and a geometry file. Both are read by tgf-g and combined into a single output database, which is force-created.

⚠️ Important, bestie: β€œforce-created” means any existing file at that path is overwritten. Like, it does not ask first. It does not send a β€œu up?” text. It just overwrites. 😭

The various INTAVAL box and form primitives are mapped onto BRL-CAD primitives as follows:

  • Long Form β€” becomes a solid-mode bag of triangles (bot)
  • Two-Point Box β€” becomes a rectangular parallelepiped (arb8)
  • Three-Point Box β€” becomes a truncated right circular cone (trc)
  • Five-Point Box β€” becomes a right circular cylinder (rcc)
  • Eight-Point Box β€” becomes an arbitrary eight-vertex polyhedron (arb8)
  • Zero-Point Box β€” translates the previous solid
  • One-Point Box and Minus One-Point Box β€” become a pipe
  • Minus N-Point, Ring Mode, and CAD Type boxes β€” become plate- or solid-mode bags of triangles (bot)

Material assignments from the material file are written out as BRL-CAD regions. Slay. πŸŽ€

All three arguments are mandatory and positional. No skipping, no vibes-based omissions:

  1. The first argument is the INTAVAL material file.
  2. The second is the INTAVAL geometry file.
  3. The third is the BRL-CAD database to create.

πŸŽ€ EXAMPLES πŸŽ€

Example 1. Convert an INTAVAL target and inspect the result

tgf-g tank.mat tank.geo tank.g
mged tank.g 'ls'

Convert the INTAVAL material file tank.mat and geometry file tank.geo into a new BRL-CAD database tank.g, then list the resulting regions and primitives with mged(1) to confirm the converted geometry. It’s literally convert-then-check, bestie β€” the responsible icon behavior. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

Go be nosy in the best way: brlcad(1), mged(1), and bot(5). Iykyk. πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the collective main characters behind this whole thing. πŸ‘‘


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.


Final footer cuteness: source/version is BRL-CAD, the manual is TGF-G(1) β€” and there’s no date shown on this footer, so we’re not inventing one, bestie. πŸ’–

πŸ“¦ where this page comes from