Skip to content
fabian-flassig edited this page Apr 21, 2026 · 7 revisions

The pygeo.* api functions contain geometry-processing helpers for 2D polygonal data.

These functions operate on geometric loop data and return cleaned polygon loops. They do not create PYTHA parts themselves.

Currently available functions:

Notes

The pygeo.* namespace is intended for geometric preprocessing and analysis.

In particular, the cleaning functions can be used to:

  • remove self-intersections from 2D polygon input
  • normalize outer and inner loops
  • convert arc-based polygon definitions into cleaned point loops

The returned loop orientation follows the usual convention:

  • outer loops are counter-clockwise (CCW)
  • inner loops are clockwise (CW)

See also:

pytha, pyux

Clone this wiki locally