STLファイルと、 WebGL



<script src="/js/three.js-dev/build/three.js"></script>
<script src="/js/three.js-dev/examples/js/loaders/STLLoader.js"></script>

        var loader = new THREE.STLLoader();
        loader.load( 'SMA.stl', function ( geometry ) {
                var material = new THREE.MeshLambertMaterial( { ambient: 0xff5533, color: 0x8f55f3} );
                mesh = new THREE.Mesh( geometry, material );
                APP.scene.add( mesh );
                APP.controls = new THREE.TrackballControls( );

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.