{"id":17222768,"url":"https://github.com/cheind/supershape","last_synced_at":"2025-04-14T00:16:46.939Z","repository":{"id":57472409,"uuid":"285281023","full_name":"cheind/supershape","owner":"cheind","description":"Python code to compute 3D parametric supershapes; additional Blender mesh generation support","archived":false,"fork":false,"pushed_at":"2021-01-31T08:52:05.000Z","size":336,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T00:16:30.977Z","etag":null,"topics":["superformula","supershape"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cheind.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}},"created_at":"2020-08-05T12:26:15.000Z","updated_at":"2025-04-03T14:49:17.000Z","dependencies_parsed_at":"2022-08-31T06:30:22.357Z","dependency_job_id":null,"html_url":"https://github.com/cheind/supershape","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fsupershape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fsupershape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fsupershape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fsupershape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheind","download_url":"https://codeload.github.com/cheind/supershape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799950,"owners_count":21163404,"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":["superformula","supershape"],"created_at":"2024-10-15T04:06:18.832Z","updated_at":"2025-04-14T00:16:46.909Z","avatar_url":"https://github.com/cheind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# supershape\nPython code to efficiently generate  [3D SuperShapes](https://en.wikipedia.org/wiki/Superformula).\n\n3D SuperShapes are a family of parametric surfaces that can take on a variety of shapes depending on the parametrization. The following snippet creates 3D coordinates of a flower-like object\n```python\nimport supershape as sshape\n\nx,y,z = sshape.supercoords(\n    # m, a, b, n1, n2, n3 (1x6 or 2x6)\n    [7, 1, 1, 0.2, 1.7, 1.7], \n    # u,v resolution\n    shape=(50,50)\n)\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg  src=\"etc/flower.png\"\u003e\n\u003c/p\u003e\n\nTo reproduce the above result, run\n```\npython -m supershape\n```\n\n## Install\nVia `pip`\n\n```\npip install supershape\n```\n\n## Blender support\nAdd the cloned folder path to your `PYTONPATH`, then launch Blender (\u003e=v2.8) as follows\n```\nblender --python-use-system-env --python scripts\\blender_demo.py\n```\nto get \n\u003cp align=\"center\"\u003e\n  \u003cimg  src=\"etc/flower_blender.png\"\u003e\n\u003c/p\u003e\n\nTo avoid modifying your `PYTHONPATH`, you can may install `supershape` into the Blender Python environment. See [this script](https://github.com/cheind/pytorch-blender/blob/eb2793e4ad90d3dd8210724feec5021d773f6beb/scripts/install_btb.py) for example.\n\n## Releases\nTags on master are pushed as releases to PyPi. \n1. Version bump\n1. Commit push and await build result.\n1. `git tag \u003ctagname\u003e -a`\n1. `git push origin --tags`\nOr create the tag throuh the `Releases` page in github.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheind%2Fsupershape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheind%2Fsupershape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheind%2Fsupershape/lists"}