Hide edges in 3d

Thanks for your code but it didn’t work for me.
I have uploaded to codepen an example that loads a stl with your code and I still see the edges.
You can see the example and edit it here: https://codepen.io/jreyero/pen/VYwLwRr