stlviewer.html

Thu, 06 Apr 2017 17:18:24 +0200

author
mdd
date
Thu, 06 Apr 2017 17:18:24 +0200
changeset 19
32de35694e56
parent 18
ff1941c85fd3
permissions
-rw-r--r--

finishing first release

<!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>

			<div class="infocontainer">
				<div id="infocontainer"></div>
				<img src="" id="image2d" />
			</div>

			<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>

		<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