stlviewer.html

Thu, 06 Apr 2017 15:03:40 +0200

author
mdd
date
Thu, 06 Apr 2017 15:03:40 +0200
changeset 16
800e8da193a7
parent 14
ba3d8c56e6f5
child 17
dee15870206a
permissions
-rw-r--r--

added dependencies to local repo

<!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="js/jquery-ui.css" />
		<link rel="stylesheet" href="stlviewer.css" />
		<script src="js/jquery-1.12.4.min.js"></script>
		<script src="js/jquery-ui.min.js"></script>

		<script src="js/three.min.js"></script>
		<script src="js/Detector.js"></script>
		<script src="js/STLLoader.js"></script>
        <script src="js/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