Can someone create a clean dummy HTML example to use STLLoader.js to display ASCII (not binary) .stl object files on a web page? The result should allow users to manipulate the object in current HTML5 browsers and without visible visual effects outside the surface and background of the object in shades of gray.
For STLLoader.js, you might need the help of three.js or three.min.js, but I do not know. STLLoader.js contains an example usage below, but does not include an HTML shell.
Example usage inside STLLoader.js
/** * Usage: * var loader = new THREE.STLLoader(); * loader.addEventListener( 'load', function ( event ) { * * var geometry = event.content; * scene.add( new THREE.Mesh( geometry ) ); * * } ); * loader.load( './models/stl/slotted_disk.stl' ); */
ForumLeech
source share