Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neiltron/cylinder-mesh
Generate dynamic cylinder-ish meshes
https://github.com/neiltron/cylinder-mesh
Last synced: 14 days ago
JSON representation
Generate dynamic cylinder-ish meshes
- Host: GitHub
- URL: https://github.com/neiltron/cylinder-mesh
- Owner: neiltron
- License: mit
- Created: 2018-01-24T17:44:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-04T15:45:11.000Z (almost 7 years ago)
- Last Synced: 2024-10-19T00:19:37.799Z (27 days ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cylinder-mesh
Basic mesh generator for building straight tubes/cylinders. It allows for specifying radius, height, and a number of sides.
### Usage
```
import generateCylinderMesh from 'cylinder-mesh';const mesh = generateCylinderMesh();
// outputs { positions: [...], cells: [...] }
```By default, this will give you a cylinder with 5 sides and a height/radius of 1. You can also pass different values:
`generateCylinderMesh(radius, height, numSides);`
### License
[MIT](https://github.com/neiltron/cylinder-mesh/blob/master/LICENSE)