online-3d-viewer-zh

0.12.0 • Public • Published

3D模型查看器

导入: 3dm, 3ds, 3mf, amf, bim, brep, dae, fbx, fcstd, gltf, ifc, iges, step, stl, obj, off, ply, wrl. 导出: 3dm, bim, gltf, obj, off, stl, ply.

使用教程

  1. npm i安装依赖
  2. npm run start启动项目
  3. 打开http://127.0.0.1:8080/website/index.html 即可访问
  4. 源码位置在 /source/ 文件夹下 修改相应文件之后运行npm run build_website_dev 打包路径 在 build\website_dev
  5. 项目改自于开源项目 https://github.com/kovacsv/Online3DViewer

外部调用方法

npm install online-3d-viewer
import * as OV from 'online-3d-viewer';


<script type="text/javascript" src="o3dv.min.js"></script>


<div class="online_3d_viewer"
    style="width: 800px; height: 600px;"
    model="model.obj, model.mtl">
</div>


window.addEventListener ('load', () => {
    // tell the engine where to find the libs folder
    OV.SetExternalLibLocation ('libs');
    // init all viewers on the page
    OV.Init3DViewerElements ();
});

Package Sidebar

Install

npm i online-3d-viewer-zh

Weekly Downloads

4

Version

0.12.0

License

MIT

Unpacked Size

20.9 MB

Total Files

142

Last publish

Collaborators

  • wujinhui0