{"id":13786194,"url":"https://github.com/mattatz/unity-subdivision-surface","last_synced_at":"2025-07-05T16:34:38.214Z","repository":{"id":151395084,"uuid":"117227747","full_name":"mattatz/unity-subdivision-surface","owner":"mattatz","description":"Loop subdivision surface algorithm implementation in Unity.","archived":false,"fork":false,"pushed_at":"2018-01-19T05:20:12.000Z","size":43907,"stargazers_count":150,"open_issues_count":2,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T10:54:10.226Z","etag":null,"topics":[],"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/mattatz.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}},"created_at":"2018-01-12T10:27:49.000Z","updated_at":"2025-03-27T03:25:57.000Z","dependencies_parsed_at":"2023-07-06T20:00:23.068Z","dependency_job_id":null,"html_url":"https://github.com/mattatz/unity-subdivision-surface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-subdivision-surface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-subdivision-surface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-subdivision-surface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-subdivision-surface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattatz","download_url":"https://codeload.github.com/mattatz/unity-subdivision-surface/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975299,"owners_count":21192199,"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":[],"created_at":"2024-08-03T19:01:11.372Z","updated_at":"2025-04-14T22:51:21.394Z","avatar_url":"https://github.com/mattatz.png","language":"C#","readme":"unity-subdivision-surface\n=====================\n\nLoop subdivision surface algorithm implementation in Unity.\n\n![Heads](https://raw.githubusercontent.com/mattatz/unity-subdivision-surface/master/Captures/Heads.png)\n\nFrom left to right, original mesh, subdivided 1 time, subdivided 2times model.\n\n![Cubes](https://raw.githubusercontent.com/mattatz/unity-subdivision-surface/master/Captures/Cubes.png)\n\n## Loop subdivision surface\n\n\u003e Loop subdivision surface is an approximating subdivision scheme developed by Charles Loop in 1987 for triangular meshes.\n\u003e [wikipedia](https://en.wikipedia.org/wiki/Loop_subdivision_surface)\n\n## SubdivMorph\n\n![SubdivMorph](https://raw.githubusercontent.com/mattatz/unity-subdivision-surface/master/Captures/SubdivMorph.gif)\n\nSubdivMorph demo morph vertices between original and subdivided.\n\n## Usage\n\n```cs\n\nvar filter = GetComponent\u003cMeshFilter\u003e();\n\n// Require a mesh to weld (require to remove duplicated vertices)\nvar welded = SubdivisionSurface.Weld(filter.mesh, float.Epsilon, filter.mesh.bounds.size.x);\n\nvar mesh = SubdivisionSurface.Subdivide(\n  welded,   // a welded mesh\n  2,        // subdivision count\n  false     // a result mesh is welded or not\n);\nfilter.sharedMesh = mesh;\n\n```\n\nSee demo scenes for details.\n\n## Compatibility\n\ntested on Unity 2017.0.3, windows10 (GTX 1060).\n\n## Sources\n\n- Free low poly head model by hexonian - https://sketchfab.com/models/988a1ffdb6244eaab9b293d296c6e868\n\n- Carnegie Mellon Univ lecture slide - http://www.cs.cmu.edu/afs/cs/academic/class/15462-s14/www/lec_slides/Subdivision.pdf\n\n- Michigan Tech Univ lecture slide - https://pages.mtu.edu/~shene/COURSES/cs3621/SLIDES/Subdivision.pdf\n\n- Matt's Webcorner - Subdivision - https://graphics.stanford.edu/~mdfisher/subdivision.html\n","funding_links":[],"categories":["Mesh"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattatz%2Funity-subdivision-surface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattatz%2Funity-subdivision-surface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattatz%2Funity-subdivision-surface/lists"}