TANKILL-G(1)
π NAME π
okay so bestie, welcome to TANKILL-G(1) from BRL-CAD β it's the tool that converts UK TANKILL triangular mesh geometry into a BRL-CAD database. slay β¨
β¨ SYNOPSIS β¨
tankill-g [-v] [-n] [-k] [-t _tolerance_] [-x _lvl_] [-X _lvl_] [-i _input.tankill_] [-o _output.g_]
π¦ DESCRIPTION π¦
So tankill-g takes a model in the UK TANKILL format β that's the simple triangular patch format used by the British Defence Research Agency β and turns it into a BRL-CAD .g database. TANKILL describes each object as a series of vertices, and those vertices get built into triangular facets in a strip: vertices one, two, and three; then two, three, and four; then three, four, and five; and so on π
By default, each object becomes a single bot(5) solid β or an nmg(5) solid if you pass -n β and it gets placed into its own region with the component code given in the TANKILL file. Then the resulting regions get collected into a hierarchy of groups based on their component codes. For example: 00XX_codes, 0XXX_codes, and a top level all group. iconic hierarchy behavior, no cap π
Component code 1000 is treated as an air region. Component code 1001 is skipped by default unless -k is given. iykyk π«Ά
Input is read from standard input unless -i is used, and output is written to tankill.g unless -o is used.
π OPTIONS π
-vβ Verbose output; report each component, solid, region, and group as it is created. main character energy for your terminal β¨-nβ Write each object as annmg(5)solid instead of the defaultbot(5)solid.-kβ Keep components with id1001. These are normally skipped as non-physical.-ttolerance β Minimum distance, in millimeters, below which two vertices are treated as the same vertex. The default is0.0005.-xlvl β Set thelibrtdebug flag to the given hexadecimal value.-Xlvl β Set the NMG debug flag to the given hexadecimal value.-iinput.tankill β Read the TANKILL model from the named file instead of standard input.-ooutput.g β Write the BRL-CAD database to the named file instead oftankill.g.
π§ͺ EXAMPLES π§ͺ
πΈ Example 1. Convert a TANKILL model and inspect the result
tankill-g -t 0.01 -i tank.tankill -o tank.g
mged tank.g 'tops'
Convert tank.tankill into tank.g, merging vertices within 0.01 mm of each other, then list the top-level objects of the new database β such as the all group β with mged(1). cute little pipeline moment π
π¦ Example 2. Pipe TANKILL data through a filter and keep 1001 components as NMGs
gunzip -c tank.tankill.gz | tankill-g -n -k -o tank.g
Read gzip-compressed TANKILL data from standard input, retain the normally skipped component code 1001, and write nmg(5) solids to tank.g. filtered, kept, and converted β obsessed π
π SEE ALSO π
Go hang out with the related crew: brlcad(1), mged(1), fast4-g(1), bot(5), and nmg(5).
π AUTHOR π
BRL-CAD Team π«Ά
π COPYRIGHT π
This software is Copyright (c) 1993-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.
Bye bestie π
β this is the BRL-CAD source/version of TANKILL-G(1), and the footer has no date stamped on it, so that's the timestamp situation π«Άβ¨
π¦ 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