Skip to content
fabian-flassig edited this page Jun 8, 2026 · 7 revisions

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

These functions operate on geometric loop or chain data and return cleaned or modified 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 offset functions can be used to:

  • offset open or closed polyline chains by a given distance
  • control the treatment of convex corners (sharp, rounded, chamfer)
  • produce either plain point lists or chains with reconstructed arc segments

The returned loop orientation follows the usual convention:

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

Refer to each function's detail page for its minimum PYTHA version.

See also:

pytha, pyux

Clone this wiki locally