STEP文件部分图形问题

问题描述 投票:3回答:1

我试图在Solidworks和OnShape中创建的STEP文件上使用切片工具,并且在该部分的部分边缘看到非常粗的线条。我尝试了最新的查看器版本(6.1),但仍然遇到了问题。请参阅以下屏幕截图:

STEP File Section Graphical Issue

这不是特定于STEP文件的,我也看到了(在较小程度上)本机SLDPRT和Creo文件。

想知道是否有其他人遇到过这个问题,是否有办法解释/缓解客户端?

autodesk-forge autodesk-viewer forge autodesk-model-derivative
1个回答
2
投票

正如原始问题所讨论的,这是观众中已知且困难的错误。目前没有正式的方法来禁用部分大纲,但你可以通过一些黑客和功夫来做到这一点:

// get the scene containing the section geometry
let section = NOP_VIEWER.impl.sceneAfter.getObjectByName("section");
let area = section.children[0]; // this is the hatched section area
let outline = section.children[1]; // this is the outline that's causing problems
section.remove(outline);

这种方法的一个缺点是,每当重新创建部分时,您必须运行这段代码,例如,在每个cutplanes-change-event事件上。

希望有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.