Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/stanford-dragon
The Stanford Dragon
https://github.com/hughsk/stanford-dragon
Last synced: 12 days ago
JSON representation
The Stanford Dragon
- Host: GitHub
- URL: https://github.com/hughsk/stanford-dragon
- Owner: hughsk
- Created: 2014-04-17T16:34:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T15:08:00.000Z (almost 6 years ago)
- Last Synced: 2024-10-17T16:39:01.975Z (22 days ago)
- Language: JavaScript
- Size: 10.6 MB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stanford-dragon [![stable](http://hughsk.github.io/stability-badges/dist/stable.svg)](http://github.com/hughsk/stability-badges)
![stanford dragon](http://imgur.com/d8r89j9.png)
## Usage ##
[![stanford-dragon](https://nodei.co/npm/stanford-dragon.png?mini=true)](https://nodei.co/npm/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')`: 476KBIt's all a trade-off between file size/performance and quality.