Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

stanford-dragon

1.1.1 • Public • Published

stanford-dragon stable

stanford dragon

Usage

stanford-dragon

require('stanford-dragon')

Returns an object with the following properties:

  • positions: the position vertices of the dragon.
  • cells: an indexed list of the dragon's positions.

You can require decimated versions of the original model too – by default, quality level 2 is used, but the following are possible:

  • require('stanford-dragon/1'): 43MB (the original model)
  • require('stanford-dragon/2'): 9.4MB
  • require('stanford-dragon/3'): 2.1MB
  • require('stanford-dragon/4'): 476KB

It's all a trade-off between file size/performance and quality.

install

npm i stanford-dragon

Downloadsweekly downloads

17

version

1.1.1

license

none

repository

githubgithub

last publish

collaborators

  • avatar