{"id":19036291,"url":"https://github.com/lace/hobart-svg","last_synced_at":"2026-02-26T03:49:38.893Z","repository":{"id":48331438,"uuid":"152681043","full_name":"lace/hobart-svg","owner":"lace","description":"Render polygons, polylines, and mesh cross sections to SVG","archived":false,"fork":false,"pushed_at":"2023-09-01T08:54:13.000Z","size":171,"stargazers_count":4,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-25T12:59:37.139Z","etag":null,"topics":["cross-section","mesh","polygons","polylines","svg"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lace.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2018-10-12T02:12:15.000Z","updated_at":"2023-07-07T12:20:40.000Z","dependencies_parsed_at":"2025-04-23T19:07:43.561Z","dependency_job_id":"e68ff586-b4a2-4e73-b1af-25418d075db1","html_url":"https://github.com/lace/hobart-svg","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lace/hobart-svg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lace%2Fhobart-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lace%2Fhobart-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lace%2Fhobart-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lace%2Fhobart-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lace","download_url":"https://codeload.github.com/lace/hobart-svg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lace%2Fhobart-svg/sbom","scorecard":{"id":576586,"data":{"date":"2025-08-11","repo":{"name":"github.com/lace/hobart-svg","commit":"0515b8a7047f94a36d1893467dd94fec8a83d2ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":4,"reason":"Found 7/17 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T17:58:26.455Z","repository_id":48331438,"created_at":"2025-08-20T17:58:26.455Z","updated_at":"2025-08-20T17:58:26.455Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29848654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cross-section","mesh","polygons","polylines","svg"],"created_at":"2024-11-08T21:53:59.121Z","updated_at":"2026-02-26T03:49:38.876Z","avatar_url":"https://github.com/lace.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hobart-svg\n\n[![version](https://img.shields.io/pypi/v/hobart-svg?style=flat-square)][pypi]\n[![license](https://img.shields.io/pypi/l/hobart-svg?style=flat-square)][pypi]\n[![build](https://img.shields.io/circleci/project/github/lace/hobart-svg/master?style=flat-square)][build]\n[![docs build](https://img.shields.io/readthedocs/hobart-svg?style=flat-square)][docs build]\n[![code style](https://img.shields.io/badge/code%20style-black-black?style=flat-square)][black]\n\nRender polygons, polylines, and mesh cross sections to SVG.\n\n[pypi]: https://pypi.org/project/hobart-svg/\n[black]: https://black.readthedocs.io/en/stable/\n[build]: https://circleci.com/gh/lace/hobart-svg/tree/master\n[docs build]: https://hobart-svg.readthedocs.io/en/latest/\n\n\nFeatures\n--------\n\n- Render 2D and 3D polygons and polylines to SVG, with automatic computation\n  of the bounding rectangle.\n- Render cross sections of [lacecore][]-style polygonal meshes.\n\u003c!--\n- Complete documentation: https://hobart-svg.readthedocs.io/en/stable/\n--\u003e\n\n[lacecore]: https://github.com/lace/lacecore\n\n\nInstallation\n------------\n\n```sh\npip install hobart-svg\n```\n\nUsage\n-----\n\n```sh\npython -m hobart_svg.cli horizontal-xs \\\n    --reference vitra_with_xs.dae \\\n    examples/vitra/vitra_without_materials.obj \\\n    15 30 45 60\n```\n\n```py\nfrom hobart_svg import render_longest_xsection_to_svg\nimport lacecore\nimport numpy as np\nfrom polliwog import Plane\nimport vg\n\nmesh = lacecore.load_obj(filename=\"mesh.obj\", triangulate=True)\n\nplane = Plane(\n    reference_point=np.array([0.0, 30.0, 0.0]),\n    normal=vg.basis.y\n)\n\nrender_longest_xsection_to_svg(\n    mesh=mesh,\n    plane=plane,\n    filename=\"cross_section.svg\")\n```\n\n```py\nfrom hobart_svg import render_longest_xsection_to_svg\nimport lacecore\nfrom polliwog import Plane\nfrom tri_again import Scene\n\nmesh = lacecore.load_obj(\n    filename=\"examples/vitra/vitra_without_materials.obj\",\n    triangulate=True\n)\nplane = Plane(\n    reference_point=np.array([-0.869231, 60.8882, -20.1071]),\n    normal=vg.normalize(np.array([0., 0.1, -1.]))\n)\nxs = render_longest_xsection_to_svg(\n    mesh=mesh,\n    plane=plane,\n    filename=\"vitra_cross_section.svg\"\n)\n\nScene().add_meshes(mesh).add_lines(xs).write(\"vitra_with_cross_section.dae\")\n```\n\n## Development\n\nFirst, [install Poetry][].\n\nAfter cloning the repo, run `./bootstrap.zsh` to initialize a virtual\nenvironment with the project's dependencies.\n\nSubsequently, run `./dev.py install` to update the dependencies.\n\n[install poetry]: https://python-poetry.org/docs/#installatio\n\n\nLicense\n-------\n\nThe project is licensed under the two-clause BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flace%2Fhobart-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flace%2Fhobart-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flace%2Fhobart-svg/lists"}