英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论