Forge Viewer的applyScaling方法在DWG模型上不起作用。

huangapple go评论71阅读模式
英文:

Forge Viewer applyScaling not working for dwg model

问题

我们正在尝试在Forge Viewer中查看一对3D模型。其中一个是以米为基本单位的rvm文件。第二个模型是以毫米为基本单位的.DWG文件。

当我们加载每个模型时,我们正在指定以下值(如此帖子中所述:https://stackoverflow.com/questions/55383830/loading-models-with-different-units-into-forge-viewer)

  • 模型1(rvm):applyScaling:'m'
  • 模型2(dwg):applyScaling:'mm'

对于每个模型,我们在loadDocumentNode期间传递所需的baseUnit值给applyScaling。

然而,缩放未应用于第二个模型。我们是否需要采取其他措施以正确实现此功能?

英文:

We are trying to view a pair of 3D models in the Forge Viewer. One is an rvm file with a base unit of Meters. The second model is a .DWG file with a base unit of millimeters.

As we load each model we are specifying the following values (as described in this post: https://stackoverflow.com/questions/55383830/loading-models-with-different-units-into-forge-viewer)

  • model 1 (rvm): applyScaling: 'm'
  • model 2 (dwg): applyScaling: 'mm'

For each model we are passing the desired baseUnit value to applyScaling during loadDocumentNode

However the scaling is not being applied to the second model. Is there something different we need to do to make this work correctly?

答案1

得分: 0

applyScaling属性应指示您希望应用的目标单位(假设加载的模型包含有关原始单位的信息),因此您很可能希望将相同的缩放('m')传递给两个模型。

英文:

The applyScaling property should indicate the target units you want to apply (assuming that the loaded model contains information about the original units), so you'll most likely want to pass the same scaling ('m') to both models.

huangapple
  • 本文由 发表于 2023年7月11日 00:30:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76655686.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定