stlviewer.html

Wed, 05 Apr 2017 01:00:00 +0200

author
mdd
date
Wed, 05 Apr 2017 01:00:00 +0200
changeset 15
0760f2016167
parent 14
ba3d8c56e6f5
child 16
800e8da193a7
permissions
-rw-r--r--

Added tag cylindertransport_v2 for changeset ba3d8c56e6f5

<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>ScubaTools Object Viewer</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

		<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />
		<link rel="stylesheet" href="stlviewer.css" />
  		<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  		<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

		<script src="https://threejs.org/build/three.js"></script>
		<script src="https://threejs.org/examples/js/Detector.js"></script>
		<script src="https://threejs.org/examples/js/loaders/STLLoader.js"></script>
        <script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script>

    </head>
	<body>
		<div id="info">
			<div class="listcontainer">
				<h2>Available:</h2>
				move to selected
				<ul id="sortable1">
					<!-- PLACEHOLDER CYLINDERS -->
				</ul>
			</div>
			<div class="listcontainer">
				<h2>Selected:</h2>
				<a href="#" id="clearselected">clear list</a>
				<ul id="sortable2">
					
				</ul>
			</div>

            <a href="https://neo-soft.org" target="_blank">NeoSoft</a> ScubaTools -  
			<a href="https://threejs.org/" target="_blank">three.js</a> -
			STL loader by <a href="https://github.com/aleeper" target="_blank">aleeper</a>.
            <br/>
            Left mouse: rotate camera, right mouse: move camera, middle mouse or wheel: zoom


		</div>

		<div id="rendercontainer"></div>

		<script src="stlviewer.js"></script>

		<script>
	     	if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
			var container;
			var controls;
			var camera, cameraTarget, scene, renderer;
			var m_spacer = new THREE.MeshPhongMaterial( {
                color: 0x736f6e, specular: 0x111111, shininess: 100 } );

            var m_cylinder = new THREE.MeshPhongMaterial( {
                color: 0x4682b4, specular: 0x111111, shininess: 200 } );

  			init();
			animate();

		</script>
	

</body></html>

mercurial