WINDOW_FRAME(1)

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

πŸ’… window_frame(1) β€” the rounded-window-frame generator, bestie edition ✨

okay so real quick before we dive in: this is a page from the BRL-CAD manual, section 1, and it's literally all about a tiny little program called window_frame that makes you geometry. yes queen. let's get into it 🫢


✨ NAME ✨

window_frame β€” creates a BRL-CAD geometry database full of rounded window frames. that's it. that's the whole gig πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

window_frame [-f_name.g_] [-n_#_] [-H_#_] [-w_#_] [-d_#_] [-r_#_] [-i_#_]

ngl the synopsis looks like it's having a moment, but it's fine, we'll walk through every single flag below. no frame left behind πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so window_frame creates a BRL-CAD .g geometry database containing one or more window frames with rounded edges and corners. iconic behavior honestly. each frame is built from four arb8s and eight cylinders β€” like, that's the recipe, that's the whole build 🧚

the front face of a frame is centered at the origin (0, 0, 0), and the frame extends in the negative X direction by its depth. yes, negative. it's giving "backwards" but it's correct, trust. ⭐

up to 256 identically sized frames can be generated in a single run. all dimensions are in millimeters (metric slay 🌈). if you invoke it with no arguments, window_frame prints usage info and then prompts you interactively for each parameter β€” very "tell me about yourself" energy. otherwise the values come from the command-line options below.

⚠️ huge heads up bestie: each option's value must be attached directly to its flag with no intervening space. so it's -H1618, not -H 1618. the space will ruin the vibe and also the parse. 😭

unspecified numeric values default to zero. so if you forget something, you get a zero, and a zero-sized frame is lowkey not the moment you wanted.

the resulting geometry can be inspected or rendered with the usual BRL-CAD tools such as mged(1) and rt(1). we love a program that plays nice with its friends πŸ’œ


🌸 OPTIONS 🌸

  • -fname.g β€” name of the BRL-CAD .g database to create (256 characters max). keep it short-ish, she's got limits.
  • -n# β€” number of window frames to create (up to 256). more frames = more frame.
  • -H# β€” height of the window frame in millimeters.
  • -w# β€” width of the window frame in millimeters.
  • -d# β€” depth of the window frame in millimeters.
  • -r# β€” radius of the rounded corners in millimeters. this is the cute part, do not skip her πŸŽ€
  • -i# β€” actual width of the frame material itself, in millimeters.
  • -h, -? β€” print a help/usage message and exit. the "wait what" escape hatch 🫢

πŸ”₯ EXAMPLES πŸ”₯

Example 1. Generate a window frame and raytrace it

window_frame -fwin.g -n1 -H1618 -w1000 -d100 -r50 -i75
rt -o win.png -s 1024 win.g wfra

okay so the first command writes win.g containing a single 1618 mm by 1000 mm frame, 100 mm deep, with 50 mm rounded corners and 75 mm of frame material. chef's kiss, no notes. πŸ’…

the second command raytraces the generated group wfra (that's the first frame's group, iykyk) into a 1024x1024 image called win.png. and then you look at it. and it's beautiful. 😭✨


πŸ’– SEE ALSO πŸ’–

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

(the whole friend group showed up, we love to see it 🫢)


πŸ‘‘ 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

like, if something's weird, tell the devs, don't suffer in silence bestie πŸ’€πŸ’œ


and that's the whole page!! mwah πŸ’‹

this little love letter came to you from the BRL-CAD manual β€” window_frame(1), so you always know where to find her again πŸŒΈπŸŽ€πŸ’–

πŸ“¦ where this page comes from