{"_id":"@ahmerhh/geometry-plane","name":"@ahmerhh/geometry-plane","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@ahmerhh/geometry-plane","version":"1.0.1","description":"Plane geometry, extracted from three.js","main":"dist/index.js","scripts":{"prepublish":"npm run build","build":"babel ./src/index.js --out-file dist/index.js --presets=es2015"},"repository":{"type":"git","url":"git+https://github.com/ahmerhh/geometry-plane.git"},"keywords":["WebGL"],"author":{"name":"ahmerhh","email":"ahmerhh@protonmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ahmerhh/geometry-plane/issues"},"homepage":"https://github.com/ahmerhh/geometry-plane#readme","devDependencies":{"babel-cli":"^6.4.0","babel-preset-es2015":"^6.3.13"},"_id":"@ahmerhh/geometry-plane@1.0.1","gitHead":"6ec5889fd4341a5ef1045b87b29a517db58aba30","_nodeVersion":"18.15.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-JJ3PoipNdNtMjDWUpWJkNGrNI9gZwG4qY/dZe2wcSyRzta8KVh1yBBdE5OdO/Y6lrSlnw0dFJ4qQkKbU7Vzuiw==","shasum":"ad7ae60ce53166e21dd531ad9c56b8bd2a5203ec","tarball":"https://registry.npmjs.org/@ahmerhh/geometry-plane/-/geometry-plane-1.0.1.tgz","fileCount":2,"unpackedSize":1727,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFle/AdAiG1/wjn+47qX2jBOYjBu4HWRVh5GKFIWzIsTAiA/efXF9rgb23YYjzMc1eFxhTnbs+SyMIRF3Nk0s6bFiQ=="}]},"_npmUser":{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"},"directories":{},"maintainers":[{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geometry-plane_1.0.1_1691925847589_0.12615031152104117"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-13T11:24:07.474Z","1.0.1":"2023-08-13T11:24:07.770Z","modified":"2023-08-13T11:24:08.081Z"},"maintainers":[{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"}],"description":"Plane geometry, extracted from three.js","homepage":"https://github.com/ahmerhh/geometry-plane#readme","keywords":["WebGL"],"repository":{"type":"git","url":"git+https://github.com/ahmerhh/geometry-plane.git"},"author":{"name":"ahmerhh","email":"ahmerhh@protonmail.com"},"bugs":{"url":"https://github.com/ahmerhh/geometry-plane/issues"},"license":"MIT","readme":"# @ahmerhh/geometry-plane\r\n\r\nPlane geometry, extracted from three.js\r\n\r\n## Installation\r\n\r\n```\r\n$ npm install --save @ahmerhh/geometry-plane\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nimport getPlaneGeometry from '@ahmerhh/geometry-plane';\r\n\r\nconst { verts, uvs, faces } = getPlaneGeometry(1, 1, 2, 2);\r\n\r\n// create buffers\r\n```\r\n\r\n## API\r\n\r\n#### `geo = getPlaneGeometry(w, h, dx, dy)`\r\n\r\nReturns a new geometry with:\r\n- `verts` is an float32 array of coordinates (by group of 3).\r\n- `uvs` is an float32 array of uvs (by group of 2).\r\n- `faces` is an uint16/32 array of the faces.\r\n\r\nand where:\r\n- `w` is the width of the plane (default is 1).\r\n- `h` is the height of the plane (default is 1).\r\n- `dx` is the number of divisions on the width (default is 1).\r\n- `dy` is the number of divisions on the height (default is 1).\r\n\r\n## License\r\n\r\nMIT, see [LICENSE.md](https://github.com/ahmerhh/geometry-plane/blob/master/LICENSE.md) for more details.\r\n\r\n## Credits\r\n\r\nThanks to [three.js](http://threejs.org/) for the code.","readmeFilename":"README.md"}