bdy(3gv)
β¨ bdy β the boundary curve finder β¨
okay bestie, this is the bdy page from the 3gv manual and it's literally about finding boundary curves π
buckle up
πΈ NAME πΈ
bdy β boundary curve finder. that's it. that's the whole job. she finds boundaries. π
π¦ SYNOPSIS π¦
#include "bdy.h"
Geom *Bdy(Geom *, float prec);
so you pull in the header, and you call Bdy() with a geom and a precision, and you get a Geom * back. no cap. β¨
π DESCRIPTION π
okay so Bdy() is a function that takes a geom as its argument. like, hands it a geom, that's the vibe.
that geom gets converted to a polylist, and then it gets compressed (see plconsol(3) β go read it, iykyk).
then Bdy() does the main character thing: it counts the number of edges in the polylist that are used once and only once, and returns a vector object containing exactly those edges. those are your boundary edges bestie. that's the whole point. π
now, the precision, prec β she's important. prec determines the maximum distance between vertices which may be considered identical. so:
- if the vertices must have identical coordinates, set this value to
0.0. - but honestly? it's generally desirable to set the value somewhat higher to allow for round-off error. floating point is messy, we all know this. π
the vector object is always black. always. no notes. π€
π BUGS π
not me having to tell you this but: the vector object is not a particularly compact representation of itself, because it contains many 2-vertex segments which could totally be combined into a longer polyline. like, she could be sleeker. she is not. π«
π§ LINKING π§
Bdy() is part of the geomutil library π so go see geomutil(3) for the tea on how to link your program with this library. don't skip this step, fr fr.
π SEE ALSO π
π AUTHOR π
Celeste Fowler wrote this β¨
The Geometry Center π
okay and that's the page!! this one's from The Geometry Center, dated June 15, 1992, and it's page bdy(3gv) of the manual π slay, go find some boundaries bestie π¦β
π¦ where this page comes from
- debian bookworm: libgeomview-dev 1.9.5-4+b1
- debian trixie: libgeomview-dev 1.9.5-5
- fedora 43: geomview 1.9.5-33.20190630git1d6759e.fc43 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 44: geomview 1.9.5-35.20190630git1d6759e.fc44 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- ubuntu jammy: libgeomview-dev 1.9.5-3build1
- ubuntu noble: libgeomview-dev 1.9.5-4.1build2
- ubuntu questing: libgeomview-dev 1.9.5-6
- ubuntu resolute: libgeomview-dev 1.9.5-6build1
- ubuntu stonking: libgeomview-dev 1.9.5-6build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms