{"_id":"primitive-sphere","_rev":"8-6c5cd985cd051a580b5e7f092b3df53c","name":"primitive-sphere","description":"a sphere mesh with normals, texture coordinates and indices","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.1":{"name":"primitive-sphere","version":"1.0.1","description":"a sphere mesh with normals, texture coordinates and indices","main":"./primitive-sphere.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.1.4","gl-vec3":"^1.0.3"},"devDependencies":{"browserify":"^10.2.4","budo":"^4.1.0","faucet":"0.0.1","garnish":"^2.1.3","glo-demo-primitive":"^1.0.2","tape":"^4.0.0","uglify-js":"^2.4.23"},"scripts":{"build":"browserify demo.js | uglifyjs -cm > bundle.js","test":"node test.js | faucet","start":"budo demo.js --live --verbose | garnish"},"keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"homepage":"https://github.com/glo-js/primitive-sphere","bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"gitHead":"a67b2b321baa820e7e34bc9796778edf47f47a64","_id":"primitive-sphere@1.0.1","_shasum":"bd058937f3b6637bad8d9a2c0dd187e547bb63f7","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"bd058937f3b6637bad8d9a2c0dd187e547bb63f7","tarball":"https://registry.npmjs.org/primitive-sphere/-/primitive-sphere-1.0.1.tgz","integrity":"sha512-PoOO31jGIuJylSR1ohUz2Drqklj1XKvxp7+bLVnNfJKI/TQ/DzXEMz7qY//bLbUa3u7kTq4l/EESNBr4j/wwaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK9MvsjeB2E+ci+yXdtQtrk/7mvp6PC/J3sqyrFMm+egIhAKTKz6TnBQY1eQ+XkPzOkcbGs13RaPJqavqyFuHo0RIM"}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.0.2":{"name":"primitive-sphere","version":"1.0.2","description":"a sphere mesh with normals, texture coordinates and indices","main":"./primitive-sphere.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.1.4","gl-vec3":"^1.0.3"},"devDependencies":{"browserify":"^10.2.4","budo":"^4.1.0","faucet":"0.0.1","garnish":"^2.1.3","glo-demo-primitive":"^1.0.2","tape":"^4.0.0","uglify-js":"^2.4.23"},"scripts":{"build":"browserify demo.js | uglifyjs -cm > bundle.js","test":"node test.js | faucet","start":"budo demo.js --live --verbose | garnish"},"keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"homepage":"https://github.com/glo-js/primitive-sphere","bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"gitHead":"95dd3769a1cadf79ba26f2eacf016169937c228f","_id":"primitive-sphere@1.0.2","_shasum":"21b3f7dd8516085089b61ef24da82e818e199848","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"21b3f7dd8516085089b61ef24da82e818e199848","tarball":"https://registry.npmjs.org/primitive-sphere/-/primitive-sphere-1.0.2.tgz","integrity":"sha512-Dc35fjyq0yGocRDO7Z/K15fd8kELtuAG4a1c4YV+Pj8H0TTPaU6GhbK2ZJR0K4lhyk1jn1tSLavuofUo6E8uAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChFnNbzlhl6IOCFEOfB3TLopRAOkflpshQKQ2s3kGs/AIgJvW+5TQClBMwlZdPFx6sVzwDko7GVDCO5GmuutIVg2w="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.0.3":{"name":"primitive-sphere","version":"1.0.3","description":"a sphere mesh with normals, texture coordinates and indices","main":"./primitive-sphere.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.1.4","gl-vec3":"^1.0.3"},"devDependencies":{"browserify":"^10.2.4","budo":"^4.1.0","faucet":"0.0.1","garnish":"^2.1.3","glo-demo-primitive":"^1.0.2","tape":"^4.0.0","uglify-js":"^2.4.23"},"scripts":{"build":"browserify demo.js | uglifyjs -cm > bundle.js","test":"node test.js | faucet","start":"budo demo.js:bundle.js --live --verbose | garnish"},"keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"homepage":"https://github.com/glo-js/primitive-sphere","bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"gitHead":"af1a6acf3b34dd5c8c899db9085367ef7bfe20fb","_id":"primitive-sphere@1.0.3","_shasum":"acb0826c6063aa787e22e9f98ad756b46e4f5ccb","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"acb0826c6063aa787e22e9f98ad756b46e4f5ccb","tarball":"https://registry.npmjs.org/primitive-sphere/-/primitive-sphere-1.0.3.tgz","integrity":"sha512-sG1MYdFuh/703Cb6freGrgJESGq/u6ZQUo20ORSD2d2qVfgxEmu62+bWgkN/BsziU1xT5L+b35ectRzd1KjZww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHY7HSqdXOS32wtBjXL8E++mD6tqJNFB2zRtK1IezB5AiBoF0LeExLJESCQnfcikcAu2p67aJgq15qAfbDgs2Jfkw=="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.0.4":{"name":"primitive-sphere","version":"1.0.4","description":"a sphere mesh with normals, texture coordinates and indices","main":"./primitive-sphere.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.1.4","gl-vec3":"^1.0.3"},"devDependencies":{"browserify":"^10.2.4","budo":"^4.1.0","faucet":"0.0.1","garnish":"^2.1.3","glo-demo-primitive":"^1.0.2","tape":"^4.0.0","uglify-js":"^2.4.23"},"scripts":{"build":"browserify demo.js | uglifyjs -cm > bundle.js","test":"node test.js | faucet","start":"budo demo.js:bundle.js --live --verbose | garnish"},"keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"homepage":"https://github.com/glo-js/primitive-sphere","bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"gitHead":"12353fe28cf554da5d30fd4f20b6d28519cbd386","_id":"primitive-sphere@1.0.4","_shasum":"febc39835c2b2302b1853559c8760960c340be50","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"febc39835c2b2302b1853559c8760960c340be50","tarball":"https://registry.npmjs.org/primitive-sphere/-/primitive-sphere-1.0.4.tgz","integrity":"sha512-K7RS1lgAIruMKVQzK0Q51c9/i9dO5JM3TCCK3AS1KX+1llJW+3BtMeKUUSr8gppjvzJcH/pW/CCU1S7LYZBR3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPptRNDc/ZR1UKRlTgQhttCdWdeGvMw/S3gxhsPV4KiAiEAgs/oLCgaSiYBrEBabxw9BFJLjFOost7N3OZPprLM0as="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"2.0.0":{"name":"primitive-sphere","version":"2.0.0","description":"a sphere mesh with normals, texture coordinates and indices","main":"./primitive-sphere.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.1.4","gl-vec3":"^1.0.3"},"devDependencies":{"browserify":"^10.2.4","budo":"^4.1.0","faucet":"0.0.1","garnish":"^2.1.3","glo-demo-primitive":"^1.0.2","tape":"^4.0.0","uglify-js":"^2.4.23"},"scripts":{"build":"browserify demo.js | uglifyjs -cm > bundle.js","test":"node test.js | faucet","start":"budo demo.js:bundle.js --live --verbose | garnish"},"keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"homepage":"https://github.com/glo-js/primitive-sphere","bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"gitHead":"aed580ba2a2cd3de6eac839e79bc460f52bbf15b","_id":"primitive-sphere@2.0.0","_shasum":"ea674487abb58c8bcd497a4dd4d7cb2757ae9e1c","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"ea674487abb58c8bcd497a4dd4d7cb2757ae9e1c","tarball":"https://registry.npmjs.org/primitive-sphere/-/primitive-sphere-2.0.0.tgz","integrity":"sha512-jk36GACdIatwKANv9iTgZlyarboXntqNK0bZ4Y5RUeMrqnXFBBoihP2oVp6Lsjhc3gXWgSBShAqv7t8paJYosw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDz2NP33QEgAkRQibvRL3Lpn1+97RGGz/2OVLSEw+sJ/AiEA7Moh8XLb+/3V5Sl8WbqjwTlz0XLXIaKTO5wzNUqZY1w="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"3.0.0":{"name":"primitive-sphere","version":"3.0.0","description":"a sphere mesh with normals, texture coordinates and indices","main":"./primitive-sphere.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.1.4","gl-vec3":"^1.0.3"},"devDependencies":{"browserify":"^10.2.4","budo":"^4.1.0","faucet":"0.0.1","garnish":"^2.1.3","glo-demo-primitive":"^2.0.1","tape":"^4.0.0","uglify-js":"^2.4.23"},"scripts":{"build":"browserify demo.js | uglifyjs -cm > bundle.js","test":"node test.js | faucet","start":"budo demo.js:bundle.js --live --verbose | garnish"},"keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"homepage":"https://github.com/glo-js/primitive-sphere","bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"gitHead":"78b7c50245954c165a98e85ff4f5fea5e78cbd77","_id":"primitive-sphere@3.0.0","_shasum":"7609bda5f6f6c9252213efa3127060ee65e6f732","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"7609bda5f6f6c9252213efa3127060ee65e6f732","tarball":"https://registry.npmjs.org/primitive-sphere/-/primitive-sphere-3.0.0.tgz","integrity":"sha512-qWdk0LMwcO45plX2Y00IRFTlEzvwXEzpLCMV2CGdO13s6iSY7wmoftOlYabBZ1Ng3/3IOcADYpLdgD7+si82+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoK09DRNm+KuOGI3CeutmRMl31IQKqaVohZZl94B91GAiBcdv9GX3G/rve3WsBT+yNczx2t/uQfNu5gECqQ08QR5g=="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/primitive-sphere-3.0.0.tgz_1491231947709_0.31343498453497887"}}},"readme":"# primitive-sphere\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\n[![screen](http://i.imgur.com/Kdb9J76.png)](http://glo-js.github.io/primitive-sphere/)\n\n[(demo)](http://glo-js.github.io/primitive-sphere/)\n\nA minimal UV sphere geometry for 3D rendering, including normals, UVs and cell indices. The algorithm has been adapted from [BabylonJS](https://github.com/BabylonJS/Babylon.js).\n\n## Example\n\n```js\nvar radius = 1\nvar mesh = require('primitive-sphere')(radius, {\n  segments: 16\n})\n\n// the simplicial complex\nconsole.log(mesh.positions, mesh.cells)\n\n// rendering attributes\nconsole.log(mesh.uvs)\nconsole.log(mesh.normals)\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/primitive-sphere.png)](https://www.npmjs.com/package/primitive-sphere)\n\n#### `mesh = sphere(radius, [opt])`\n\nCreates a new UV sphere mesh with the given `radius` (default 1) and options:\n\n- `segments` number of segments to use, defaults to 32\n\nThe returned mesh is an object with the following data:\n\n```\n{\n  positions: [ [x, y, z], [x, y, z], ... ],\n  cells: [ [a, b, c], [a, b, c], ... ],\n  uvs: [ [u, v], [u, v], ... ],\n  normals: [ [x, y, z], [x, y, z], ... ]\n}\n```\n\n## See Also\n\n- [primitive-icosphere](https://www.npmjs.com/package/primitive-icosphere)\n- [sphere-mesh](https://www.npmjs.com/package/sphere-mesh) - numerically robust\n- [icosphere](https://www.npmjs.com/package/icosphere) - a simple icosphere simplicial complex\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/glo-js/primitive-sphere/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-24T15:43:56.713Z","created":"2015-06-26T21:47:16.362Z","1.0.1":"2015-06-26T21:47:16.362Z","1.0.2":"2015-06-26T21:48:46.533Z","1.0.3":"2015-06-27T20:05:44.850Z","1.0.4":"2015-06-27T20:07:57.658Z","2.0.0":"2015-06-28T20:17:46.265Z","3.0.0":"2017-04-03T15:05:49.858Z"},"homepage":"https://github.com/glo-js/primitive-sphere","keywords":["sphere","simplicial","complex","mesh","geom","geometry","primitive","stackgl","glsl","webgl","gl","glo","glojs","glo-js"],"repository":{"type":"git","url":"git://github.com/glo-js/primitive-sphere.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"bugs":{"url":"https://github.com/glo-js/primitive-sphere/issues"},"license":"MIT","readmeFilename":"README.md"}