WINDOW_FRAME(1)
π 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.gdatabase 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
β 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
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
- 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