Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ohpyupi/three-stl-viewer
https://github.com/ohpyupi/three-stl-viewer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ohpyupi/three-stl-viewer
- Owner: ohpyupi
- Created: 2018-03-11T02:21:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T02:47:15.000Z (over 6 years ago)
- Last Synced: 2024-10-05T11:47:39.729Z (about 1 month ago)
- Language: JavaScript
- Size: 688 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Three STL Viewer
## Introduction
Three STL Viewer is a 3D model viewr for STL objects based on Three.js 3D engine.
[Examples](https://three-stl-viewer.herokuapp.com/)## Installation
```
npm install three-stl-viewer --save
```## Dependencies
Three STL Viewer has dependencies, jQuery, spectrum, and Three.js. To utilize the package, it is required to install the dependencies properly.```
npm install jquery --save
npm install spectrum-colorpicker --save
npm install three --save
```## How to use
```
// jQuery should exist in the global scope.
import 'spectrum-colorpicker';
import 'spectrum-colorpicer/spectrum.css';
import ThreeSTLViewer from 'three-stl-viewer';...
let viewer = new ThreeSTLViewer({
selector: '#pikachu.stl-viewer',
urlToSTL: '/stl/pikachu.stl',
});
```## Authors
* **Hoseong Lee** - *Initial work* - [email protected]