HANDLE(1)

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

πŸ’… handle(1) β€” the BRL-CAD handle maker, but make it make sense πŸ’…

okay so bestie, you know the BRL-CAD manual, right? this is one of those pages from there. sit down, grab a strawberry πŸ“, and let me tell you about handle. it's giving "tiny utility, big energy."


✨ NAME ✨

handle β€” makes a BRL-CAD .g database full of handle shapes πŸŽ€


🌸 SYNOPSIS 🌸

handle [-h | -?]
handle [-f _name.g_] [-n _count_] [-l _length_] [-H _height_] [-r1 _torus_radius_] [-r2 _cylinder_radius_]

πŸ¦‹ DESCRIPTION πŸ¦‹

so handle literally just creates a BRL-CAD database (that's a mged(1) .g file, iykyk) containing one or more handle shapes, all built with libwdb. no cap.

each handle is composed of three cylinders, two tori, and two arb8s β€” that's the lineup, that's the squad. πŸ‘‘

the base of each handle is centered at (0, 0, 0) and the height extends in the positive z-direction. all dimensions are in millimeters, periodt.

if you invoke it with no arguments, handle enters interactive mode and prompts you for each parameter (main character energy: it asks, you answer πŸ’…). otherwise the values are taken from the command-line options.

between 1 and 256 handles of identical dimensions may be created per run; values outside that range are clamped. (yes, clamped. it's not gonna let you go feral with -n 9999 πŸ™ˆ)


✨ OPTIONS ✨

  • -h, -? β€” prints a usage message and exits. that's it, that's the whole job 🫢
  • -f _name.g_ β€” the name of the .g database file to create. defaults to handle.g in interactive mode.
  • -n _count_ β€” number of handles to create (1 to 256, default 1).
  • -l _length_ β€” length of the handle, in millimeters.
  • -H _height_ β€” height of the handle, in millimeters. (capital H, bestie β€” lowercase h is a whole different vibe)
  • -r1 _torus_radius_ β€” radius r1 of the two tori, in millimeters (it's the rounding of the corners πŸŽ€).
  • -r2 _cylinder_radius_ β€” radius r2 of the three cylinders, in millimeters.

πŸ’– EXAMPLES πŸ’–

Example 1. Generate handles and raytrace them

handle -fhandle.g -n3 -l200 -H100 -r120 -r210
rt -s 1024 -o handle.png handle.g hana

creates handle.g containing three handles, each 200 mm long and 100 mm tall, with a torus rounding radius of 20 mm and a cylinder radius of 10 mm. πŸ”₯

⚠️ note that the option value is appended directly to the flag (for example -l200 and -r120). no space, no drama, just vibes. don't come at it with -l 200 and expect it to slay.

the grouped handles can then be rendered with rt(1). iconic behavior honestly.


🌈 SEE ALSO 🌈

brlcad(1), mged(1), rt(1), bolt(1), gastank(1), window(1), window_frame(1)

(the whole friend group 🫢)


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team


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

(be nice to them, they're doing their best 😭)


okay that's the page!! shoutout to BRL-CAD and this HANDLE(1) page, fr fr β€” go make some handles, bestie, you're gonna ate πŸ’œπŸ§šβœ¨

πŸ“¦ where this page comes from