英文:
Is it possible to change the zoom factor of the fitToVIew function?
问题
我想要改变缩放因子,因为它离对象太近了。有没有解决方法?似乎没有相关参数。
英文:
https://autodeskviewer.com/viewers/latest/docs/Autodesk.Viewing.Viewer3D.html#fitToView
I want to change the zoom factor because it's so close to the object. Are there any workaround to this? There doesn't seem to be a parameter regarding that.
答案1
得分: 1
很遗憾,这是不可更改的,但您可以获取对象的边界框并将其缩放到与您所期望的摄像机位置相匹配的适当大小。
英文:
Unfortunately, it's not changeable, but you could get the object bounding box and scale it to a proper size that matches your desired camera location.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论