I am trying to use the sectioning tool on STEP files created in Solidworks and OnShape, and am seeing really thick lines along the edges of the part at the section. I tried the newest viewer release (6.1) and am still experiencing the issue. See the following screenshot:
STEP File Section Graphical Issue
This isn't specific to STEP files, I am also seeing it (to a much lesser extent) with native SLDPRT and Creo files, for example.
Wondering if anyone else has experienced this problem, and if there's a way to account for / mitigate it client side?
As discussed under the original question, this is a known and difficult bug in the viewer. There's currently no official way to disable the section outline, but you could do that with a bit of hacking and kung fu:
// 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);
One downside of this approach is that you'd have to run this piece of code whenever the section is recreated, for example, on each cutplanes-change-event event.
Hope that helps.