{"id":13544701,"url":"https://github.com/mattatz/unity-teddy","last_synced_at":"2025-04-05T18:07:17.121Z","repository":{"id":56281056,"uuid":"67866296","full_name":"mattatz/unity-teddy","owner":"mattatz","description":"Teddy algorithm implementation in Unity.","archived":false,"fork":false,"pushed_at":"2023-04-20T05:03:39.000Z","size":8231,"stargazers_count":471,"open_issues_count":0,"forks_count":66,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-29T17:07:42.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":"2016-09-10T11:00:39.000Z","updated_at":"2025-03-27T19:28:58.000Z","dependencies_parsed_at":"2024-01-06T15:54:32.602Z","dependency_job_id":"1d509aff-79de-4e3d-a175-b0c7d5d63e83","html_url":"https://github.com/mattatz/unity-teddy","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-teddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-teddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-teddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattatz%2Funity-teddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattatz","download_url":"https://codeload.github.com/mattatz/unity-teddy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378142,"owners_count":20929296,"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-01T11:00:52.428Z","updated_at":"2025-04-05T18:07:17.102Z","avatar_url":"https://github.com/mattatz.png","language":"C#","readme":"This repository is deprecated. \n[The official release version](https://www.assetstore.unity3d.com/#!/content/99075) is in the asset store!\n\n[Teddy](https://www.assetstore.unity3d.com/#!/content/99075)\n\nunity-teddy\n=====================\n\nTeddy algorithm (converting 2D polygon into 3D model) implementation in Unity.\n\n\u003cimg src=\"https://raw.githubusercontent.com/mattatz/unity-teddy/master/Captures/Demo.gif\" width=\"620px\"\u003e\n\n## Usage\n\n```cs\n// input points for a Polygon2D contor\nList\u003cVector2\u003e points = new List\u003cVector2\u003e();\n\n// Add Vector2 to points\npoints.Add(new Vector2(-2.5f, -2.5f));\npoints.Add(new Vector2(2.5f, -2.5f));\npoints.Add(new Vector2(4.5f, 2.5f));\npoints.Add(new Vector2(0.5f, 4.5f));\npoints.Add(new Vector2(-3.5f, 2.5f));\n\n// construct Teddy \nTeddy teddy = new Teddy(points);\n\nMesh mesh = teddy.Build(\n    MeshSmoothingMethod.HC,  // select mesh smoothing methods : None, Laplacian, HC\n    5, // count of smoothing\n    0.25f, // alpha value for smoothing \n    0.5f // beta value for smoothing\n);\n// GetComponent\u003cMeshFilter\u003e().sharedMesh = mesh;\n```\n\n## Demo\n\n[Demo](https://mattatz.github.io/unity/teddy)\n\n## Compatibility \n\ntested on Unity 2018.2.6f, windows10 (GTX 1060).\n\n## Sources\n\n- Teddy: A Sketching Interface for 3D Freeform Design - http://www-ui.is.s.u-tokyo.ac.jp/~takeo/papers/siggraph99.pdf\n- mattatz/unity-triangulation2D - https://github.com/mattatz/unity-triangulation2D\n- mattatz/unity-mesh-smoothing - https://github.com/mattatz/unity-mesh-smoothing\n\n","funding_links":[],"categories":["Unity3d","C# #","C#","Generator"],"sub_categories":["Miscs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattatz%2Funity-teddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattatz%2Funity-teddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattatz%2Funity-teddy/lists"}