?!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 井壁取心三维立体图演C?/title> <script type='text/javascript' src='x3d/jquery-1.11.1.min.js'> </script> <script type='text/javascript' src='x3d/x3dom.js'> </script> <link rel='stylesheet' type='text/css' href='x3d/x3dom.css'/> <meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> </head> <body id="content" style="height:1000px"> <div style="position:fixed;left:-9000px;top:-9000px;"></div> <div style="float:left;position:fixed;top:20px;left:5px;height:600px;width:100%"> 井壁取心三维立体图演C:鼠标左键拖动可以旋{Q鼠标滚轮可以放大羃? <div id="msg"> <img src="x3d/loading.gif" align="middle"/>囑փ下蝲中,L?.. </div> <x3d> <scene> <transform id="ts" scale='1,1,1'> <transform id="ts_top" translation='0 2 0' scale='1,1,1'> <shape> <appearance> <ImageTexture url='x3d/dm2.jpg'></ImageTexture> </appearance> <cylinder id="cy1" bottom='false' top='true' radius="1.0" height="0.001"></cylinder> </shape> </transform> <transform id="ts_yx" translation='0 0 0' scale='1,1,1'> <shape> <appearance> <ImageTexture url='x3d/wbm.jpg'></ImageTexture> </appearance> <cylinder id="cy2" bottom='false' top='false' radius="1.0" height="4"></cylinder> </shape> </transform> <transform id="ts_bottom" translation='0 -2 0' scale='1,1,1'> <shape> <appearance> <ImageTexture url='x3d/dm1.jpg'></ImageTexture> </appearance> <cylinder id="cy3" bottom='true' top='false' radius="1.0" height="0.001"></cylinder> </shape> </transform> </transform> </scene> </x3d> </div> <script type="text/javascript"> var pi = 3.141592657; var img_top = new Image(); img_top.src = "x3d/dm2.jpg"; var img_bottom = new Image(); img_bottom.src = "x3d/dm1.jpg"; var img = new Image(); img.src = "x3d/wbm.jpg"; img.onload = function () { $("#msg").html(""); var w = img.naturalWidth; //囄真实宽度 var h = img.naturalHeight; h = h / 100; var translation_y = h / 2; console.log(w + "," + h + ",translation_y:" + translation_y); //计算半径 var r = w / (2 * pi * 100); console.log(r); r = r.toFixed(3); console.log(r); document.getElementById('cy1').setAttribute('radius', r); //document.getElementById('cy1').setAttribute('height','0.1'); document.getElementById('cy2').setAttribute('radius', r); document.getElementById('cy2').setAttribute('height', h); document.getElementById('cy3').setAttribute('radius', r); //document.getElementById('cy3').setAttribute('height','0.1'); document.getElementById('ts_top').setAttribute('translation', '0 ' + translation_y + ' 0'); document.getElementById('ts_bottom').setAttribute('translation', '0 -' + translation_y + ' 0'); document.getElementById('ts_top').setAttribute('rotation', '0 1 0 -2.16'); document.getElementById('ts_bottom').setAttribute('rotation', '0 1 0 1'); if (r > 10) { document.getElementById('ts').setAttribute('scale', '0.15,0.15,0.15'); } else if (r > 4 && r <= 10) { document.getElementById('ts').setAttribute('scale', '0.3,0.3,0.3'); } else if (r <= 4 && r > 3) { document.getElementById('ts').setAttribute('scale', '0.5,0.5,0.5'); } else if (r <= 3 && r > 2) { document.getElementById('ts').setAttribute('scale', '0.6,0.6,0.6'); } else if (r <= 2 && r > 1) { document.getElementById('ts').setAttribute('scale', '0.8,0.8,0.8'); } else { document.getElementById('ts').setAttribute('scale', '1,1,1'); } } if (window.parent.length > 0) { var h = $("#content").height(); window.parent.document.all.mainFrame.style.height = h; } </script> <a href="http://www.webmobilees.com/">日韩精品无码专区_www.好吊操_中文字幕在线观看av_一级黄片免费在线观看_日本三级在线_中文字幕av网站</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body> </html>