Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/mesh-combine
Combine multiple indexed meshes into a single indexed mesh
https://github.com/hughsk/mesh-combine
Last synced: 12 days ago
JSON representation
Combine multiple indexed meshes into a single indexed mesh
- Host: GitHub
- URL: https://github.com/hughsk/mesh-combine
- Owner: hughsk
- License: other
- Created: 2014-07-09T05:56:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T14:17:45.000Z (over 7 years ago)
- Last Synced: 2024-10-17T16:40:30.557Z (22 days ago)
- Language: JavaScript
- Size: 118 KB
- Stars: 10
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mesh-combine [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
Combine multiple indexed meshes into a single indexed mesh.
This should help constructing indexed meshes from smaller primitives without
getting too bogged down in indexing everything manually.## Usage
[![NPM](https://nodei.co/npm/mesh-combine.png)](https://nodei.co/npm/mesh-combine/)
### mesh = combine(meshes)
Given an array of `meshes`, return a combined mesh. Each mesh in the array
should be an object with two properties:* `positions`: the positions in the individual mesh.
* `cells`: a list of faces in the individual mesh.## See Also
* [simplicial-complex](http://github.com/mikolalysenko/simplicial-complex/)
* [indexed-geometry-demo](http://github.com/hughsk/indexed-geometry-demo/)## License
MIT. See [LICENSE.md](http://github.com/hughsk/mesh-combine/blob/master/LICENSE.md) for details.