Skip to content

Convert Quasi-Circles

Detects polygons that approximate circles and replaces them with true circle primitives.

When to Use

  • After importing from formats that represent circles as polygons (e.g., GDSII boundaries)
  • To reduce vertex count and improve output quality
  • Before exporting to formats with native circle support (DXF, CIF)

Options

Option Description Default
Tolerance Maximum deviation from a perfect circle 1%
Minimum vertices Minimum polygon vertex count to consider 8
Selected layers only Apply to selected layers instead of all Off

How It Works

  1. Identifies polygons whose vertices all lie within the tolerance of a best-fit circle
  2. Replaces qualifying polygons with circle primitives
  3. Non-qualifying polygons are left unchanged

Technical Notes

  • The tolerance is relative to the circle radius
  • Polygons with fewer vertices than the minimum are skipped (to avoid false matches on squares/hexagons)
  • The resulting circles can be exported as native circles in DXF/CIF, or re-approximated as polygons for GDSII