Hi everyone,
I am a newbie to learn three.js. I am rendering a STL file as the image shows.
But I see a better effect with a smoother mesh. How can I get the effect that we can’t see the line from stl mesh grid. Thank you.
Hi everyone,
I am a newbie to learn three.js. I am rendering a STL file as the image shows.
You could try:
geometry.setAttribute('normal',null)
geometry = BufferGeometryUtils.mergeVertices(geometry);
geometry.computeVertexNormals();
mesh.geometry = geometry;
``
https://threejs.org/docs/#examples/en/utils/BufferGeometryUtils.mergeVertices