Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

teapot

mikolalysenko268Public Domain1.0.0

The Utah Teapot

teapot, utah, graphics, 3d, model, geometry, mesh

readme

teapot

The Utah teapot needs no introduction, but for the unintiated here is a brief history.

Installation

Via npm:

npm install teapot

Then you can use the mesh in your projects as follows:

var teapot = require("teapot");
drawMesh(teapot.cells, teapot.positions);

Credits

(c) 1984 Matin Newell. Public Domain.

CACM cover image by James Arvo and David Kirk.

CommonJS port maintained by Mikola Lysenko