Salzburg Database of Geometric Inputs
  • Input Classes
  • Generators
  • Credits

SRPG - Super Random Polygon Generator

Salzburg Database

srpg generates simply-connected and multiply-connected polygons by means of a regular grid (with quadratic cells). Source code is available on github.

See the srpg* directories in /db/wip/polygons/random/ for polygons and /db/wip/polygons-with-holes/random/ for polygons with holes.

There are several variants:

  • srpg_iso: orthogonal polygons.
  • srpg_iso_aligned: orthogonal polygons on an integer grid.
  • srpg_octa: octagonal polygons.
  • srpg_perturbed: random polygons.
  • srpg_perturbed_smo: random polygons with smoothed corners.
  • srpg_perturbed_smr: random polygons with even smoother corners.

SRPG ISO
srpg0000051

SRPG ISO aligned
srpg_iso0000039

SRPG Octa
srpg_octa0000035

SRPG Perturbed
srpg_smo0000123

SRPG Perturbed SMO
srpg_mc0000166

SRPG Perturbed SMR
srpg_iso_aligned_mc0000150

    © Salzburg Database of Geometric Inputs 2025