stanford-dragon
The Stanford Dragon
Last updated 6 years ago by hughsk .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stanford-dragon 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.1.1                                ...           latest (6 years ago)

3 Versions

  • 1.1.1                                ...           6 years ago
  • 1.0.0                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 8
Last Day 1
Last Week 3
Last Month 14
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |