{"id":20750535,"url":"https://github.com/micycle1/srpg","last_synced_at":"2025-06-26T13:33:04.618Z","repository":{"id":244028888,"uuid":"614369484","full_name":"micycle1/SRPG","owner":"micycle1","description":"Super Random Polygon Generator","archived":false,"fork":false,"pushed_at":"2024-06-12T10:32:28.000Z","size":1823,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T14:22:17.575Z","etag":null,"topics":["polygon-construction","polygon-generator","polygons","shape-generation"],"latest_commit_sha":null,"homepage":"https://sbgdb.cs.sbg.ac.at/generators/genpoly-srpg/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micycle1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-15T13:00:06.000Z","updated_at":"2024-06-12T10:32:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8471839-338e-4d35-92f1-82d16bdf9cb6","html_url":"https://github.com/micycle1/SRPG","commit_stats":null,"previous_names":["micycle1/srpg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/micycle1/SRPG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2FSRPG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2FSRPG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2FSRPG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2FSRPG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micycle1","download_url":"https://codeload.github.com/micycle1/SRPG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2FSRPG/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262076696,"owners_count":23255048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["polygon-construction","polygon-generator","polygons","shape-generation"],"created_at":"2024-11-17T08:27:47.860Z","updated_at":"2025-06-26T13:33:04.575Z","avatar_url":"https://github.com/micycle1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/micycle1/SRPG.svg)](https://jitpack.io/#micycle1/SRPG)\n\n# SRPG – Super Random Polygon Generator\n\nSRPG is a library that generates well-formed random polygons using a regular grid consisting of square cells.\n\nIt starts with axis \u0026 grid-aligned basic rectangular shapes, but can systematically manipulate them through repeated corner-cutting and perturbations to create a variety of polygonal and curve-like shapes, both on the grid and with offset/rotated orientations.\n\nThis library is based on *Martin Held*'s C [implementation](https://github.com/cgalab/genpoly-srpg).\n\n## Usage\nSRPG is available as Maven/Gradle artifact via [Jitpack](https://jitpack.io/#micycle1/SRPG).\n\n## Argument Illustrations\n\nSRPG accepts a variety of input arguments that affect shape geometry, providing a good level of customisation over the output. The following illustrations provide an idea of how each argument visually affects the random polygon:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003eHierarchy\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003eDiagonal\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003ePerturb+align\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003eSmooth\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/hierarchy.gif\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/diagonal1.gif\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/perturbAlign.gif\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/smooth.gif\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n### Grid size (nX, nY)\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003e5x5\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003e10x10\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003e100x100\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003e500x500\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/n_5.png\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/n_20.png\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/n_100.png\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width=\"25%\"\u003e\u003cimg src=\"resources/n_500.png\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicycle1%2Fsrpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicycle1%2Fsrpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicycle1%2Fsrpg/lists"}