gleToroid(3GLE)
π gleToroid π
okay bestie, welcome to gleToroid from the GLE manual β the generalized torus, aka a lathe with a circle contour. she's a 3GLE girlie and she's serving geometry. periodt. π©β¨
πΈ NAME πΈ
gleToroid β Generalized torus, lathe with circle contour. no cap, that's literally the whole pitch. π
β¨ SYNTAX β¨
void gleToroid (gleDouble rToroid,
gleDouble up[3],
gleDouble startRadius,
gleDouble drdTheta,
gleDouble startZ,
gleDouble dzdTheta,
gleDouble startXform[2][3],
gleDouble dXformdTheta[2][3],
gleDouble startTheta,
gleDouble sweepTheta);
that's a whole lot of gleDoubles and honestly? iconic. copy it exactly, don't get cute with it. π
π¦ ARGUMENTS π¦
rToroidβ the circle contour (torus) radius. the roundness. the donut energy. π©startRadiusβ where the spiral starts in the x-y plane.drdThetaβ the change in radius per revolution. so like, how much the radius grows every time you go all the way around. πstartZβ the starting z value. your beginning height, bestie.dzdThetaβ the change in Z per revolution. how much taller (or shorter) she gets each lap.startXformβ starting contour affine transformation.dXformdThetaβ tangent change xform per revolution.startThetaβ start angle in the x-y plane. where you begin your little journey. πsweepThetaβ degrees to spiral around. how far you're taking this thing. go off. π
also <cyan>up[3]</cyan> is sitting right there in the synopsis being mysterious and we respect her privacy. π«Ά
π DESCRIPTION π
Generalized Torus. Similar to gleLathe, except the contour is a circle. Uses gleLathe to draw.
that's it, that's the description β short and slay. she's a lathe underneath, just doing it with a circular contour instead. the way that works is lowkey elegant ngl. π
π₯ SEE ALSO π₯
- gleSpiral
- gleHelicoid
go read those too, bestie, they're in the same friend group. π
π AUTHOR π
Linas Vepstas (linas@linas.org)
and that's a wrap, my love!! π this page is from GLE, version 3.0 β gleToroid(3GLE) β so if you ever need to cite her, that's the vibe check right there. now go draw a torus and eat, you deserve it. π β¨π¦
π¦ where this page comes from
- debian bookworm: libgle3-dev 3.1.0-10 Β· GPL-2.0-only
- debian trixie: libgle3-dev 3.1.2-1+b2 Β· GPL-2.0-only
- fedora 43: libgle-devel 3.1.0-36.fc43 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- fedora 43: libgle-devel 3.1.0-36.fc43 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- fedora 44: libgle-devel 3.1.0-37.fc44 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- fedora 44: libgle-devel 3.1.0-37.fc44 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- nixos 26.05: gle 3.1.2
- nixpkgs unstable: gle 3.1.2
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- ubuntu jammy: libgle3-dev 3.1.0-10 Β· GPL-2.0-only
- ubuntu noble: libgle3-dev 3.1.2-1build1 Β· GPL-2.0-only
- ubuntu questing: libgle3-dev 3.1.2-1build1
- ubuntu resolute: libgle3-dev 3.1.2-1build2 Β· GPL-2.0-only
- ubuntu stonking: libgle3-dev 3.1.2-1build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms