{"id":17258444,"url":"https://github.com/thibauts/serialize-stl-binary","last_synced_at":"2025-03-26T09:21:08.621Z","repository":{"id":30081094,"uuid":"33630676","full_name":"thibauts/serialize-stl-binary","owner":"thibauts","description":"STL binary serialization","archived":false,"fork":false,"pushed_at":"2015-04-08T21:07:36.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T03:49:57.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/thibauts.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":"2015-04-08T20:32:17.000Z","updated_at":"2019-09-25T16:54:41.000Z","dependencies_parsed_at":"2022-08-26T05:00:16.886Z","dependency_job_id":null,"html_url":"https://github.com/thibauts/serialize-stl-binary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fserialize-stl-binary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fserialize-stl-binary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fserialize-stl-binary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fserialize-stl-binary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibauts","download_url":"https://codeload.github.com/thibauts/serialize-stl-binary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623030,"owners_count":20645681,"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":"2024-10-15T07:20:40.657Z","updated_at":"2025-03-26T09:21:08.602Z","avatar_url":"https://github.com/thibauts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"serialize-stl-binary\n====================\n### STL binary serialization\n\nProduces a [STL](http://en.wikipedia.org/wiki/STL_%28file_format%29) (STereoLithography) binary buffer from a mesh. Face normals are computed internally if not provided.\n\nInstall\n-------\n\n```bash\n$ npm install serialize-stl-binary\n```\n\nUsage\n-----\n\n```javascript\nvar serializeSTL = require('serialize-stl-binary');\nvar fs = require('fs');\n\nvar mesh = {\n  positions: [\n    [-1.0, 0.0, 0.0],\n    [ 0.0, 1.0, 0.0],\n    [ 1.0, 0.0, 0.0]\n  ],\n  cells: [\n    [0, 1, 2]\n  ]\n};\n\nvar buf = serializeSTL(mesh.cells, mesh.positions/*, faceNormals*/);\nfs.writeFileSync('mesh.stl', buf);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibauts%2Fserialize-stl-binary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibauts%2Fserialize-stl-binary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibauts%2Fserialize-stl-binary/lists"}