Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/sphere-mesh
Generates spherical meshes
https://github.com/mikolalysenko/sphere-mesh
Last synced: about 2 months ago
JSON representation
Generates spherical meshes
- Host: GitHub
- URL: https://github.com/mikolalysenko/sphere-mesh
- Owner: mikolalysenko
- Created: 2013-03-15T19:40:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-25T17:22:34.000Z (over 11 years ago)
- Last Synced: 2024-10-20T14:28:11.218Z (2 months ago)
- Language: JavaScript
- Size: 108 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sphere-mesh
===========
Generates a subdivided spherical mesh, useful for testing purposes or just for creating an object for display.Install:
========npm install sphere-mesh
Usage
=====
```javascript
var resolution = 10
var radius = 10var mesh = require("sphere-mesh")(resolution, radius)
```### `require("sphere-mesh")([resolution, radius])`
Creates a spherical mesh from a subdivided cube* `resolution` is the resolution of the mesh
* `radius` is the radius of the sphere to generate (Default 1)**Returns** A simplicial complex represented as a json object with two properties:
* `positions` the positions of the spherical mesh
* `cells` the cells of the spherical meshCredits
=======
(c) 2013 Mikola Lysenko. MIT License