简体   繁体   English

隐藏除选定 Autodesk-Forge 查看器之外的所有查看器

[英]Hide all but Selected Autodesk-Forge Viewer

I am using the forge viewer in a web application.我在 web 应用程序中使用伪造查看器。 I have made an isolate-part button.我制作了一个隔离部分按钮。 Currently when a part is isolated, it highlights that part and fades the rest of the model.当前,当一个部分被隔离时,它会突出显示该部分并淡化 model 的 rest。 Is there any way that when I isolate a part, the rest of the model can be completely hidden?有什么方法可以在我隔离一个零件时,完全隐藏model的rest? I do not want the faded grey lines showing the rest of the model.我不希望褪色的灰线显示 model 的 rest。 Thanks for the help!谢谢您的帮助! Cheers!干杯!

yes, you can use the setGhosting() method on the viewer with a boolean parameter (true or false)是的,您可以在查看器上使用带有 boolean 参数(真或假)的 setGhosting() 方法

MyViewer.setGhosting(bool)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM