关闭剖面视图中的 shading/hatching 功能

Turning off the shading/hatching feature in section view

在 Forge viewer 中,在剖面模式下,如果剪切平面穿过对象,则切割面将以黄色阴影和黑色阴影线显示。我想知道是否有任何方法可以关闭 shading/hatching?

遗憾的是,没有正式的方法来禁用帽网格。

如果您对骇人听闻的解决方案感兴趣:剖面工具将帽盖网格插入到场景中两个特别命名的对象中,您可以移除这些对象(但请记住,一旦您移动,该扩展程序就会重新创建这些对象截面平面):

const section3D = viewer.scene.getObjectByName('section3D');
if (section3D)
    viewer.scene.remove(section3D);
const section2D = viewer.sceneAfter.getObjectByName('section2D');
if (section2D)
    viewer.sceneAfter.remove(section2D);