PICKET_FENCE(1)
π PICKET_FENCE(1) π
okay bestie, grab a lil snack because this is a page from the BRL-CAD manual and it's literally about building fences out of math. yes. fences. out of math. let's go π
β¨ NAME β¨
picket_fence β the tool that makes you a whole BRL-CAD database full of picket fence, following 3D waypoints like a little GPS for carpentry π¦
πΈ SYNOPSIS πΈ
picket_fence filename prefix height spacing [-r] x0 y0 z0 ... xn yn zn
π DESCRIPTION π
So picket_fence generates a BRL-CAD geometry database β that's your filename β and inside it? a picket fence. iconic. π‘β¨
Every single dimension is in millimeters, no cap. And the fence path comes from two or more 3D coordinate waypoints. For each consecutive pair of waypoints, picket_fence builds a fence section between them, complete with posts, pickets, and two horizontal backing rails. the whole package, bestie π«Ά
Here's the cute part β each section gets built at the origin first, with the backing boards in the negative x halfspace and the pickets in the positive x halfspace, and then it gets rotated and translated into place. so if you wanna enclose an area with the pickets facing outward, specify your waypoints in counter-clockwise order. that's the vibe check right there π«
Now the numbers, and these matter:
- height β the overall fence height, and it must be positive. no zero, no negatives, we don't do that here π ββοΈ
- spacing β the gap between adjacent pickets, and it must be non-negative.
All the generated objects get named using prefix, and the top-level assembly is prefix*fence.c*. Result can be viewed and edited with mged(1). slay π
π OPTIONS π
-rβ adds a round post (a cylinder) at each waypoint, on top of the default square posts. one lil catch though: when this flag is present it must appear immediately after the spacing argument and before the first coordinate. order matters, don't test it π
π EXAMPLES π
β Example 1. A single straight fence run
picket_fence fence.g Imy 2000 15 0 0 0 100 6000 0
Creates a fence two meters high and roughly six meters long, with fifteen millimeter gaps between pickets, running from the origin to (100, 6000, 0). Object names are prefixed with "Imy", so the assembly is named "Imyfence.c". cute name, cute fence π
β Example 2. An enclosed yard with round posts
picket_fence yard.g yd 1200 10 -r 0 0 0 5000 0 0 5000 5000 0 0 5000 0 0 0 0
Builds a closed, square fence that's 1.2 meters high with round posts at every corner. The waypoints are listed counter-clockwise and the loop is closed by repeating the starting point, so the pickets face outward. Render the result with rt(1) or inspect it interactively in mged(1). main character fence energy fr fr π₯
π¦ SEE ALSO π¦
brlcad(1), fence(1), mged(1), rt(1)
π 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
ngl if something's broken, tell the devs β that's the whole point of the address π
okay that's the whole page bestie, go build a fence π§π«
β this lil manual page is from BRL-CAD (the PICKET_FENCE(1) page), so like, credit where credit's due, mwah π
πΈ
π¦ 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