{"id":16126728,"url":"https://github.com/mikolalysenko/normals","last_synced_at":"2025-03-16T09:32:02.962Z","repository":{"id":6807041,"uuid":"8054910","full_name":"mikolalysenko/normals","owner":"mikolalysenko","description":"Computes normals for triangulated meshes","archived":false,"fork":false,"pushed_at":"2016-05-20T22:27:35.000Z","size":6,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-19T02:23:10.698Z","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-02-06T16:20:51.000Z","updated_at":"2022-02-03T21:08:20.000Z","dependencies_parsed_at":"2022-07-21T14:02:14.776Z","dependency_job_id":null,"html_url":"https://github.com/mikolalysenko/normals","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%2Fnormals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fnormals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fnormals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fnormals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikolalysenko","download_url":"https://codeload.github.com/mikolalysenko/normals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221643676,"owners_count":16856671,"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:04.640Z","updated_at":"2024-10-27T10:17:34.130Z","avatar_url":"https://github.com/mikolalysenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"normals\n=======\nEstimates normals for surface meshes.\n\nInstallation\n============\nUsing [npm](https://npmjs.org/):\n\n    npm install normals\n    \nExample\n=======\nHere is how to compute the vertex and face normals for the Stanford bunny:\n\n```js\n    var bunny = require(\"bunny\");\n    bunny.vertexNormals = require(\"normals\").vertexNormals(bunny.cells, bunny.positions[,epsilon]);\n    bunny.faceNormals = require(\"normals\").faceNormals(bunny.cells, bunny.positions[,epsilon]);\n```\n\n`require(\"normals\").vertexNormals(cells, positions[,epsilon])`\n----------------------------------------------------\nThis estimates the vertex normals for an oriented mesh.\n\n* `cells` is an array of indexed vertex positions\n* `positions` is an array of vertex positions\n\nReturns: An array of length = `positions.length` of the per-vertex normals.\n\n\n`require(\"normals\").faceNormals(cells, positions[,epsilon])`\n----------------------------------------------------\nThis estimates the face normals for an oriented mesh.\n\n* `cells` is an array of indexed vertex positions\n* `positions` is an array of vertex positions\n\nReturns: An array of length = `cells.length` of the per-face normals.\n\n\nCredits\n=======\n(c) 2013 Mikola Lysenko. BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fnormals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikolalysenko%2Fnormals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fnormals/lists"}