fitToView函数的缩放因子是否可以更改?

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

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

很遗憾,这是不可更改的,但您可以获取对象的边界框并将其缩放到与您所期望的摄像机位置相匹配的适当大小。

另请参考:
https://stackoverflow.com/questions/65856689/how-to-control-the-distance-between-the-page-and-the-component-with-fittoview

英文:

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.

See also:
https://stackoverflow.com/questions/65856689/how-to-control-the-distance-between-the-page-and-the-component-with-fittoview

huangapple
  • 本文由 发表于 2023年5月30日 10:03:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/76361191.html
匿名

发表评论

匿名网友

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

确定