{"id":19986060,"url":"https://github.com/openrr/mesh-loader","last_synced_at":"2025-05-04T07:31:00.642Z","repository":{"id":41954721,"uuid":"458985038","full_name":"openrr/mesh-loader","owner":"openrr","description":"Fast parser for 3D-model-formats.","archived":false,"fork":false,"pushed_at":"2025-02-27T06:44:44.000Z","size":278,"stargazers_count":4,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T05:36:40.402Z","etag":null,"topics":["collada","dae","obj","rust","stl"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openrr.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":"2022-02-14T02:02:57.000Z","updated_at":"2025-02-27T06:44:47.000Z","dependencies_parsed_at":"2024-07-09T14:35:12.023Z","dependency_job_id":"f6cf94a0-984d-4156-84d0-5289145b9799","html_url":"https://github.com/openrr/mesh-loader","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.11111111111111116","last_synced_commit":"5fe765f42c002d4216e156f0a6be2b49c0ead852"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openrr%2Fmesh-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openrr%2Fmesh-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openrr%2Fmesh-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openrr%2Fmesh-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openrr","download_url":"https://codeload.github.com/openrr/mesh-loader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251296889,"owners_count":21566706,"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":["collada","dae","obj","rust","stl"],"created_at":"2024-11-13T04:27:41.540Z","updated_at":"2025-05-04T07:31:00.161Z","avatar_url":"https://github.com/openrr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mesh-loader\n\n[![crates.io](https://img.shields.io/crates/v/mesh-loader?style=flat-square\u0026logo=rust)](https://crates.io/crates/mesh-loader)\n[![docs.rs](https://img.shields.io/badge/docs.rs-mesh--loader-blue?style=flat-square\u0026logo=docs.rs)](https://docs.rs/mesh-loader)\n[![msrv](https://img.shields.io/badge/msrv-1.60-blue?style=flat-square\u0026logo=rust)](https://www.rust-lang.org)\n[![github actions](https://img.shields.io/github/actions/workflow/status/openrr/mesh-loader/ci.yml?branch=main\u0026style=flat-square\u0026logo=github)](https://github.com/openrr/mesh-loader/actions)\n\nFast parser for 3D-model-formats.\n\nThis currently supports the following three formats commonly used in robotics:\n\n- [STL](https://en.wikipedia.org/wiki/STL_(file_format)) (.stl)\n- [COLLADA](https://en.wikipedia.org/wiki/COLLADA) (.dae)\n- [Wavefront OBJ](https://en.wikipedia.org/wiki/Wavefront_.obj_file) (.obj)\n\n# Usage\n[`Scene`] is filled with mesh data : name, vertices, normals, colors, texcoords and faces. But also its materials : opacity, shininess, index of refraction, texture, colors, ...\n\n[`Loader`] implements `load` and `load_from_slice` which will guess the file media type. But also, `load_{stl/collada/obj}` and `load_{stl/collada/obj}_from_slice` for individual formats.\n\n### Example\n```\nlet path = std::path::Path::new(\"/your/path/to/file/file.{file_format}\");\nlet loader = mesh_loader::Loader::default();\nlet scene = loader.load(path);\n\nif let Ok(scene) = scene {\n    for mesh in \u0026scene.meshes {\n        assert_eq!(mesh.name, \"Your mesh name\");\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenrr%2Fmesh-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenrr%2Fmesh-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenrr%2Fmesh-loader/lists"}