{"id":16126802,"url":"https://github.com/mikolalysenko/parse-obj","last_synced_at":"2025-03-18T13:31:50.271Z","repository":{"id":11265355,"uuid":"13669151","full_name":"mikolalysenko/parse-obj","owner":"mikolalysenko","description":"Parses a .OBJ file","archived":false,"fork":false,"pushed_at":"2022-12-01T01:14:44.000Z","size":126,"stargazers_count":23,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-20T14:28:20.011Z","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/mikolalysenko.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":"2013-10-18T04:38:56.000Z","updated_at":"2024-06-15T14:29:54.000Z","dependencies_parsed_at":"2023-01-13T16:25:03.563Z","dependency_job_id":null,"html_url":"https://github.com/mikolalysenko/parse-obj","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/mikolalysenko%2Fparse-obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fparse-obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fparse-obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fparse-obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikolalysenko","download_url":"https://codeload.github.com/mikolalysenko/parse-obj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221712220,"owners_count":16868094,"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-09T21:40:27.896Z","updated_at":"2024-10-27T17:44:27.766Z","avatar_url":"https://github.com/mikolalysenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"parse-obj\n=========\nA simple parser for .OBJ mesh files.\n\n## Example\n\n```javascript\nvar fs = require(\"fs\")\nvar parseOBJ = require(\"parse-obj\")\n\nparseOBJ(fs.createReadStream(\"mesh.obj\"), function(err, result) {\n  if(err) {\n    throw new Error(\"Error parsing OBJ file: \" + err)\n  }\n  console.log(\"Got mesh: \", result)\n})\n```\n\n### `require(\"parse-obj\")(stream, cb(err, result))`\nParses a read stream into a .OBJ format mesh\n\n* `stream` is a read stream\n* `cb` is a callback that gets executed once the stream is parsed.  The `result` object is a structure with the following data:\n\n  + `vertexPositions` an array of vertex position data\n  + `vertexNormals` an array of vertex normal data\n  + `vertexUVs` an array of vertex UV coordinates\n  + `facePositions` an array of indices for face positions\n  + `faceNormals` an array of indices for face normals\n  + `faceUVs` an array of indices for face texture coordinates\n\n\n## Credits\n(c) 2013 Mikola Lysenko. MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fparse-obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikolalysenko%2Fparse-obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fparse-obj/lists"}