WINDOW(1)

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

πŸ’… WINDOW(1) β€” the BRL-CAD one, bestie πŸͺŸβœ¨

okay so real talk, this is window from the BRL-CAD manual, and it's literally the cutest way to conjure a .g file full of rounded lil windows. no cap. let's get into it 🫢


✨ NAME ✨

window β€” makes a BRL-CAD geometry database stuffed with rounded windows πŸ’–


🌸 SYNOPSIS 🌸

window [-h] [-f_name.g_] [-n_count_] [-H_height_] [-w_width_] [-d_depth_] [-r_radius_]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so window creates a BRL-CAD geometry database (that's a .g file, iykyk) and fills it up with one or more identical window models, each one having rounded edges and corners. it's giving cozy architecture ✨

every single window is built from two arb8 solids and four cylinders. the front face is centered at the origin (0, 0, 0), and the window extends in the negative X direction by its depth. geometry queen behavior.

you can make up to 256 windows in a single run β€” that's the ceiling, periodt. window uses the libwdb library to write the database, and it's a great starting point for further editing in mged(1). main character energy fr fr πŸ’…

if you invoke it with no arguments, window prints a usage message and then prompts you interactively for the database name, window count, dimensions, and corner radius. super chill. but the moment you supply any argument, all parameters get read from the command line and no prompting occurs. zero questions asked πŸ™ˆ

⚠️ important vibe check: an option and its value are written together with no intervening space. so it's -n3, not -n 3. don't do the space thing, it will not slay.

πŸŽ€ OPTIONS πŸŽ€

  • -h β€” print a brief usage and explanation message, then exit. (-? behaves the same, they're twins πŸ’œ)
  • -f name.g β€” name of the output BRL-CAD database to create. defaults to window.g in interactive mode if left blank πŸ’–
  • -n count β€” number of windows to create. values greater than 256 are clamped to 256 (so yes, 256 is the moment, the limit, the icon πŸ‘‘)
  • -H height β€” height of each window, in millimeters πŸ“
  • -w width β€” width of each window, in millimeters πŸ“
  • -d depth β€” depth of each window, in millimeters πŸ•³οΈ
  • -r radius β€” radius of the rounded corners, in millimeters πŸŽ€ (this is the part that makes it soft, obsessed)

πŸ”₯ EXAMPLES πŸ”₯

Example 1. Generate a set of windows and raytrace them ⭐

window -fwindows.g -n3 -H200 -w300 -d20 -r30
rt -o windows.png -s512 windows.g wina winb winc

creates a database named windows.g containing three identical windows, each 200 mm high, 300 mm wide, 20 mm deep, with 30 mm rounded corners β€” then renders the three resulting groups (wina, winb, winc) to an image with rt(1). absolutely ate. πŸ’…βœ¨


🌈 SEE ALSO 🌈

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

like go read those too, they're all part of the family 🫢


πŸ’œ AUTHOR πŸ’œ

BRL-CAD Team β€” iconic, no notes πŸ‘‘


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 β€” don't be shy, they wanna know πŸ’Œ


okay that's the whole page bestie, go forth and make rounded windows πŸŒΈπŸ’–βœ¨

sign-off: this was the window page from the BRL-CAD manual set β€” source/version BRL-CAD, dated 1989-2026 on the copyright tip. mwah πŸ’‹

πŸ“¦ where this page comes from