{"id":39766060,"url":"https://github.com/prideout/svg3d","last_synced_at":"2026-01-18T11:45:04.287Z","repository":{"id":65560785,"uuid":"195543095","full_name":"prideout/svg3d","owner":"prideout","description":"generate 3D wireframes as vector art","archived":false,"fork":false,"pushed_at":"2021-11-12T01:50:07.000Z","size":8188,"stargazers_count":328,"open_issues_count":4,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2023-11-07T17:19:38.414Z","etag":null,"topics":["svg"],"latest_commit_sha":null,"homepage":"https://prideout.net/blog/svg_wireframes/","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/prideout.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":"2019-07-06T13:34:46.000Z","updated_at":"2023-10-20T16:43:01.000Z","dependencies_parsed_at":"2023-01-29T16:25:10.599Z","dependency_job_id":null,"html_url":"https://github.com/prideout/svg3d","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/prideout/svg3d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fsvg3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fsvg3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fsvg3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fsvg3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prideout","download_url":"https://codeload.github.com/prideout/svg3d/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fsvg3d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["svg"],"created_at":"2026-01-18T11:45:04.214Z","updated_at":"2026-01-18T11:45:04.268Z","avatar_url":"https://github.com/prideout.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://prideout.net/blog/svg_wireframes/filmstrip.svg\" width=\"512px\"\u003e\n\nThis is a single-file Python library for generating 3D wireframes in SVG format.\n\nFor a description of how the library was designed and implemented, check out\n[this blog post](https://prideout.net/blog/svg_wireframes/#using-the-api).\n\n## Usage example\n\n```python\nimport numpy, svg3d, pyrr, math\n\ndef get_octahedron_faces():\n    f = math.sqrt(2.0) / 2.0\n    verts = numpy.float32([ ( 0, -1,  0), (-f,  0,  f), ( f,  0,  f), ( f,  0, -f), (-f,  0, -f), ( 0,  1,  0) ])\n    triangles = numpy.int32([ (0, 2, 1), (0, 3, 2), (0, 4, 3), (0, 1, 4), (5, 1, 2), (5, 2, 3), (5, 3, 4), (5, 4, 1) ])\n    return 15.0 * verts[triangles]\n\ndef generate_svg(filename):\n    view = pyrr.matrix44.create_look_at(eye=[50, 40, 120], target=[0, 0, 0], up=[0, 1, 0])\n    projection = pyrr.matrix44.create_perspective_projection(fovy=15, aspect=1, near=10, far=200)\n    camera = svg3d.Camera(view, projection)\n\n    style = dict(\n        fill=\"white\", fill_opacity=\"0.75\",\n        stroke=\"black\", stroke_linejoin=\"round\", stroke_width=\"0.005\")\n\n    mesh = svg3d.Mesh(get_octahedron_faces(), style=style)\n    view = svg3d.View(camera, svg3d.Scene([mesh]))\n    svg3d.Engine([view]).render(filename)\n\ngenerate_svg(\"octahedron.svg\")\n```\n\nThe above code snippet generates an image like this:\n\n\u003cimg src=\"https://prideout.net/blog/svg_wireframes/octahedron.svg\" width=\"256px\"\u003e\n\n## Running the test script\n\n```\npipenv shell\npipenv install\ncd extras\n./test.py \u0026\u0026 open gallery.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprideout%2Fsvg3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprideout%2Fsvg3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprideout%2Fsvg3d/lists"}