Three STL Viewer

created by ohpyupi


Github

Introduction

Three STL Viewer is designed to provide a widget to easily render 3D models out of STL objects based on STLLoader from Three.js. Visit Thingiverse to get a lot of STL files and test the visualization of those STL objects with Three STL Viewer!

Dependencies

Download

      
        npm install three-stl-viewer
      
    

Get Started

      
        // jQuery or $ should exist in 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',
        });
      
    

Examples