---
name: "stl_convex"
section: "1"
platform: "linux"
package: "stlcmd"
version: "1.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/stl_convex"
---

# stl\_convex(1)

stl\_convex prints whether an STL file is a convex polyhedron.

## NAME

stl\_convex - stl\_convex prints whether an STL file is a convex polyhedron.

## DESCRIPTION

stl\_convex prints whether an STL file is a convex polyhedron.

usage: stl\_convex \[ **-v** \] \[ \<input file\> \]

-

  Prints whether the input file is a convex polyhedron. If no input file is specified, data is read from stdin. If **-v** is specified, prints out the Euler characteristic in addition to whether the mesh is convex.

The Euler characteristic of a polyhedral surface is defined as V - E + F, where V is the number of vertices, E is the number of edges, and F is the number of faces. All convex polyhedra will have an Euler characteristic of 2.
