cylinder-mesh

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cylinder-mesh

Weekly Downloads

4

Version

1.0.1

License

none

Last publish

Collaborators

  • neiltron