index.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>项目模型查看</title>
  8. <!-- <link rel="stylesheet" href="./style.min.css" type="text/css">
  9. <script lang="javascript" src="./viewer3D.min.js"></script> -->
  10. <link rel="stylesheet" href="https://developer.api.autodesk.com/modelderivative/v2/viewers/style.min.css?v=v7.*"
  11. type="text/css">
  12. <script language="JavaScript"
  13. src="https://developer.api.autodesk.com/modelderivative/v2/viewers/viewer3D.min.js?v=v7.*"></script>
  14. </head>
  15. <body>
  16. <div id="viewerDiv"></div>
  17. <script>
  18. var myViewerDiv = document.getElementById('viewerDiv');
  19. var viewer = new Autodesk.Viewing.Private.GuiViewer3D(myViewerDiv);
  20. var options = {
  21. 'env': 'Local',
  22. 'document': './shaver/0.svf'
  23. };
  24. Autodesk.Viewing.Initializer(options, function () {
  25. viewer.start(options.document, options);
  26. });
  27. </script>
  28. </body>
  29. </html>