Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STEP File Section Graphical Issue

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?

like image 510
Jeremy Andrews Avatar asked May 07 '26 23:05

Jeremy Andrews


1 Answers

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.

like image 155
Petr Broz Avatar answered May 10 '26 22:05

Petr Broz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!