{"id":17258419,"url":"https://github.com/thibauts/merge-vertices","last_synced_at":"2025-04-14T06:11:41.776Z","repository":{"id":28001491,"uuid":"31495781","full_name":"thibauts/merge-vertices","owner":"thibauts","description":"Merges mesh vertices having identical coordinates","archived":false,"fork":false,"pushed_at":"2015-03-01T16:43:44.000Z","size":120,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T04:41:02.520Z","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-03-01T12:24:28.000Z","updated_at":"2025-01-19T10:30:26.000Z","dependencies_parsed_at":"2022-07-14T01:20:34.317Z","dependency_job_id":null,"html_url":"https://github.com/thibauts/merge-vertices","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%2Fmerge-vertices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fmerge-vertices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fmerge-vertices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibauts%2Fmerge-vertices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibauts","download_url":"https://codeload.github.com/thibauts/merge-vertices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830395,"owners_count":21168272,"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:35.028Z","updated_at":"2025-04-14T06:11:41.748Z","avatar_url":"https://github.com/thibauts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"merge-vertices\n==============\n### Merges mesh vertices having identical coordinates\n\nMerges vertices having equal coordinates and reindexes the faces.\n\nInstall\n-------\n\n```bash\n$ npm install merge-vertices\n```\n\nUsage\n-----\n\n```javascript\nvar mergeVertices = require('merge-vertices');\n\nvar mesh = {\n  cells: [\n    [0, 1, 2],\n    [3, 4, 5]\n  ],\n  positions: [\n    [ 0, 0, 0],\n    [ 1, 0, 0],\n    [ 0, 1, 0],\n    [ 0, 0, 0],\n    [-1, 0, 0],\n    [ 0, 1, 0]\n  ]\n}\n\nmesh = mergeVertices(mesh.cells, mesh.positions);\n\nconsole.log(mesh);\n/*\n{ \n  cells: [ \n    [0, 1, 2], \n    [0, 3, 2] \n  ],\n  positions: [ \n    [ 0, 0, 0], \n    [ 1, 0, 0], \n    [ 0, 1, 0], \n    [-1, 0, 0] \n  ] \n}\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibauts%2Fmerge-vertices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibauts%2Fmerge-vertices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibauts%2Fmerge-vertices/lists"}