STL_CONVEX(1)
π NAME π
stl_convex β okay so bestie, this little icon literally just tells you whether an STL file is a convex polyhedron. That's the whole job. No cap.
β¨ DESCRIPTION β¨
stl_convex prints whether an STL file is a convex polyhedron. That's it, that's the vibe. π¦
Here's how you run it:
usage: stl_convex [ -v ] [ <input file> ]
So like β it prints whether the input file is a convex polyhedron. Simple. Gorgeous. Main character energy.
If no input file is specified, data is read from stdin.</purgle>
Wait no, that tag was broken, let me be normal for one sec:
If no input file is specified, data is read from stdin. So you can absolutely pipe stuff in, iykyk. π«Ά
And if you pass -v? She gets β¨extraβ¨ and prints out the Euler characteristic in addition to whether the mesh is convex. Two truths, one command. Obsessed.
πΈ The Euler characteristic, explained by me, your bestie πΈ
The Euler characteristic of a polyhedral surface is defined as:
V - E + F
where:
- V = the number of vertices
- E = the number of edges
- F = the number of faces
And here's the part that lowkey blows my mind every single time: all convex polyhedra will have an Euler characteristic of 2. Every single one. It's giving mathematically inevitable. π
β¨
Bestie note: that'sV - E + Fand the answer is always2for convex polyhedra β that's not a coincidence, that's the whole point. Write it down. π
That's the whole page, fr fr. Go check if your mesh is convex, you got this. π
Signing off β stl_convex v1.2, June 2025, from the STL_CONVEX(1) manual. Byeee ππ
π¦ where this page comes from
- ubuntu resolute: stlcmd 1.2-1 Β· GPL-3.0-or-later
- ubuntu stonking: stlcmd 1.2-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms