Reduce edges in wireframe

I’m trying to create wireframe for gltf models using EdgesGeometry, but the outcome



is not as expected.
The first image is a screenshot of the output I got from EdgesGeometry, and the second one is a zoomed image. I would like to know whether there is a way to reduce the number of edges I get.

Thanks,
Binoy

Have you tried modifying the second parameter of EdgesGeometry? From the docs:

thresholdAngle — An edge is only rendered if the angle (in degrees) between the face normals of the adjoining faces exceeds this value. default = 1 degree.

2 Likes

@Mugen87 Thanks for the information, I would like to know whether it is possible to control the threshold angle for each surface in a mesh.

No, that’s not possible. It’s a global setting which influences the entire geometry.

2 Likes

@Mugen87 Is there any way I can set the thresholdAngle dynamically based on different gltf models.

What do you mean with dynamically? I mean you can define a different angle for each instance of EdgesGeometry. Is that what you are looking for?

1 Like