{"id":25060014,"url":"https://github.com/stla/pytorusthreepoints","last_synced_at":"2025-08-15T22:11:20.174Z","repository":{"id":73101601,"uuid":"415095425","full_name":"stla/PyTorusThreePoints","owner":"stla","description":"Draw a torus passing through three given points.","archived":false,"fork":false,"pushed_at":"2021-11-19T21:54:57.000Z","size":25979,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T11:15:14.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stla.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}},"created_at":"2021-10-08T18:50:43.000Z","updated_at":"2021-11-19T21:55:01.000Z","dependencies_parsed_at":"2023-03-02T17:45:32.467Z","dependency_job_id":null,"html_url":"https://github.com/stla/PyTorusThreePoints","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stla/PyTorusThreePoints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPyTorusThreePoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPyTorusThreePoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPyTorusThreePoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPyTorusThreePoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stla","download_url":"https://codeload.github.com/stla/PyTorusThreePoints/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPyTorusThreePoints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263628009,"owners_count":23490893,"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":"2025-02-06T15:56:24.292Z","updated_at":"2025-07-04T22:32:25.964Z","avatar_url":"https://github.com/stla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyTorusThreePoints\r\n\r\nDraw a torus passing through three given points.\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/example2.png)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/example3.png)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/example4.png)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/HopfFibration.png)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/HopfGreatCircle.gif)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/CliffordCircles.gif)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/VillarceauCircles.gif)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/NestedCliffordCircles.gif)\r\n\r\n![](https://github.com/stla/PyTorusThreePoints/raw/main/examples/TwistedAstroidalClifford.gif)\r\n\r\n\r\n## Usage\r\n\r\n```python\r\nimport numpy as np\r\nimport pyvista as pv\r\nfrom torus_three_points.main import torusThreePoints\r\n\r\nplotter = pv.Plotter()\r\n\r\ntorusThreePoints(\r\n  plotter, p1, p2, p3, r, S=64, s=32, show=False, ....\r\n)\r\n```\r\n\r\n#### Arguments\r\n\r\n- `plotter`: PyVista plotter region\r\n- `p1, p2, p3`: three points (numpy arrays)\r\n- `r`: minor radius\r\n- `S,s`: numbers of subdivisions for the torus mesh\r\n- `show`: whether to show the figure (if `True`, this closes the plotter)\r\n- `...`: parameters passed on to `pyvista.add_mesh`, such as `smooth_shading=True, color=\"red\", specular=0.9`\r\n\r\nInstead of setting `show=True`, you can run `plotter.show()` once you're done.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fpytorusthreepoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstla%2Fpytorusthreepoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fpytorusthreepoints/lists"}