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 πŸ¦‹β­