TGF-G(1)
πΈ 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:
- The first argument is the INTAVAL material file.
- The second is the INTAVAL geometry file.
- 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. π
π 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.
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
- 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