JACK-G(1)
β¨ JACK-G(1) β¨
Okay so bestie, let me put you onto jack-g β itβs literally the main character of Psurf-to-BRL-CAD conversions, no cap. Periodt.
πΈ SYNOPSIS πΈ
jack-g [-r region] [-g group] [jack_db] [brlcad_db]
π DESCRIPTION π
So jack-g converts a Jack Psurf (.pss) file into a BRL-CAD database (.g). The way it does this is kind of iconic: it reads the polygonal surface geometry from the Psurf file into an n-Manifold Geometry (NMG) model, and then writes that out as a BOT (Bag of Triangles) object wrapped in a region. And not me noticing that coordinates get scaled from centimeters to millimeters during conversion β like, sheβs precise, okay? π
Jack, for the uninitiated, originally came from the University of Pennsylvania's Computer Graphics Research Laboratory. Itβs a package for human figure animation and ergonomic analysis (later developed commercially as Tecnomatix Jack). Very βI was in academia before it was coolβ energy.
The Jack Psurf file is read from jack_db, or from standard input if no input file is given (or if jack_db is given as -). The resulting geometry is written to the BRL-CAD database named brlcad_db, which is required β like, you literally cannot skip it, bestie. For each surface, a solid named s.region, a region named r.region, and optionally a group are created.
π OPTIONS π
-r regionβ This names the BRL-CAD region created for the converted surface. If you donβt specify it, the region name is derived from the input file name (with any leading path and trailing.pssextension removed). Lowkey convenient, highkey slay.-g groupβ Adds the converted region to a BRL-CAD group of this name, creating the group if necessary. So you can organize your geometry like the responsible icon you are. Iykyk.-h, -?β Prints a usage message and exits. Standard behavior, but still giving βIβm helpfulβ realness.
π¦ EXAMPLES π¦
Example 1. Convert a Jack human figure into a named region and group
jack-g -r torso -g body torso.pss model.g
This reads the Jack Psurf file torso.pss, writes a BOT solid s.torso inside region r.torso into model.g, and adds that region to the group body. The resulting model.g can then be raytraced with rt(1) or inspected interactively with mged(1). Not me being obsessed with this whole workflow. ππ₯
Example 2. Convert geometry piped from standard input
cat figure.pss | jack-g -r figure model.g
This reads the Psurf data from standard input, which is useful when the geometry is produced by another tool in a pipeline rather than stored on disk. So if youβre the kind of person who pipes things through a pipeline, this is your moment. π
π SEE ALSO π
π AUTHOR π
BRL-CAD Team
π 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
And thatβs the whole vibe, bestie. This page is from BRL-CAD (source) and honestly itβs giving 1989-2026 legacy energy. Stay slaying. π«Άπ β¨
π¦ 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