【问题标题】:Implementing Draco 3D data Compression in Angular 7 to compress .STL files?在 Angular 7 中实施 Draco 3D 数据压缩以压缩 .STL 文件?
【发布时间】:2019-09-07 08:41:55
【问题描述】:

有没有可能在 Angular 7 中实现 Draco 3D 压缩的方法? 或者给我一些例子。

谢谢。

【问题讨论】:

    标签: angular npm stl drc


    【解决方案1】:

    以下要安装在您的 Angular 项目中的文件。

    > npm install three-full
    > npm install three-orbit-control
    

    三全都有draco解码器和编码器文件。

    必须在以下行中给出 draco 编码器路径 示例:THREE.DRACOLoader.setDecoderPath('./assets/draco/'); THREE.DRACOLoader.setDecoderConfig({ type: 'JS' });

    接着是渲染编码

    它将调用 draco_wasm_wrapper.js

    因此它将在您的应用中加载您的 .drc(stl draco 编码)文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-06
      • 1970-01-01
      • 2019-02-24
      • 2013-10-30
      • 2019-11-25
      • 2013-03-09
      • 1970-01-01
      相关资源
      最近更新 更多