{"id":28332261,"url":"https://github.com/ogrew/unity-proceduralprimitives","last_synced_at":"2026-05-04T19:41:07.922Z","repository":{"id":143670307,"uuid":"399663154","full_name":"ogrew/Unity-ProceduralPrimitives","owner":"ogrew","description":"Procedural builder for some basic primitives in Unity","archived":false,"fork":false,"pushed_at":"2021-08-25T07:30:54.000Z","size":70,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-19T06:38:15.898Z","etag":null,"topics":["c-sharp","generative","mesh","primitive","procedural","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ogrew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-08-25T02:18:02.000Z","updated_at":"2025-06-18T13:29:02.000Z","dependencies_parsed_at":"2023-05-18T04:00:33.441Z","dependency_job_id":null,"html_url":"https://github.com/ogrew/Unity-ProceduralPrimitives","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ogrew/Unity-ProceduralPrimitives","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogrew%2FUnity-ProceduralPrimitives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogrew%2FUnity-ProceduralPrimitives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogrew%2FUnity-ProceduralPrimitives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogrew%2FUnity-ProceduralPrimitives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ogrew","download_url":"https://codeload.github.com/ogrew/Unity-ProceduralPrimitives/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogrew%2FUnity-ProceduralPrimitives/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32622724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c-sharp","generative","mesh","primitive","procedural","unity","unity3d"],"created_at":"2025-05-26T19:45:00.337Z","updated_at":"2026-05-04T19:41:07.916Z","avatar_url":"https://github.com/ogrew.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity-ProceduralPrimitives\n\nProcedural builder for some basic primitives in Unity\n\n```\n- Sphere\n- Box\n- Cylinder\n- Capsule\n- Torus\n- Grid(Terrain)\n- Polygon(Triangle, Rectangle, Circle etc..)\n- Polyhedron\n```\n\n## Screenshots\n![image](https://user-images.githubusercontent.com/21966381/130729996-ce17f055-a375-4081-a8d5-ea945b111f64.png)\n\n## Usage\n\n### [Sphere](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Sphere/SphereBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130739406-704f4764-b695-4948-a9de-7f876f741976.png)\n```cs\n        _sphere.Generate(\n            radius: 1f,\n            level: 4,\n            _redMaterial\n        );\n```\n### [Box](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Box/BoxBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130738860-27090e4b-f159-46e3-b7db-6f5736d53b49.png)\n```cs\n        _box.Generate(\n            width: 1f,\n            height: 1f,\n            depth: 1f,\n            segments: 4, \n            _yellowMaterial\n        );\n```\n\n### [Cylinder](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Cylinder/CylinderBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130739146-771e899d-d283-490c-a2ce-5d0c20217894.png)\n```cs\n        _cylinder.Generate(\n            radialSegments: 24,\n            heightSegments: 24,\n            topRadius: 0.5f,\n            bottomRadius: 0.5f,\n            height: 2f,\n            _blueMaterial\n        );\n```\n\n### [Capsule](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Capsule/CapsuleBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130738972-aa632a8d-58c2-4383-9a3f-345942016bb2.png)\n```cs\n        _capsule.Generate(\n            radius: 0.5f,\n            height: 1f,\n            lats: 16,\n            lons: 32,\n            rings: 2,\n            _redMaterial\n        );\n```\n\n### [Torus](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Torus/TorusBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130739654-c24f1c1c-f523-4dab-9c19-7bcb18f7382a.png)\n```cs\n        _torus.Generate(\n            majorRadius: .5f,\n            minorRadius: .25f,\n            majorSegment: 24,\n            minorSegment: 16,\n            _yellowMaterial\n        );\n```\n\n### [Grid(Terrain)](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Grid/GridBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130739845-5d56a748-0011-43e8-8818-6f62310c5b31.png)\n```cs\n        _grid.Generate(\n            width: 12f,\n            height: 6f,\n            divX: 12,\n            divY: 12,\n            _blueMaterial\n        );\n```\n\n### [Polygon](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/2D/PolygonBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130740407-80fb2766-b1ef-44fa-8bc0-f4f185bb1635.png)\n```cs\n        _polygon.Generate(\n            shape: 3,\n            size: 2f,\n            _redMaterial\n        );\n```\n\n### [Polyhedron](https://github.com/ogrew/Unity-ProceduralPrimitives/blob/main/Assets/Scripts/3D/Polyhedron/PolyhedronBuilder.cs)\n![image](https://user-images.githubusercontent.com/21966381/130741449-d83028f1-ba9b-4740-9a9a-f75a143113b0.png)\n```cs\n        _polyhedron.Generate(\n            type: SolidType.Icosahedron,\n            size: 1f,\n            _redMaterial\n        );\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogrew%2Funity-proceduralprimitives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogrew%2Funity-proceduralprimitives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogrew%2Funity-proceduralprimitives/lists"}