Problem with mesh texture

Hi, I’m new to this so a lot of concepts I can’t understand yet, but I have one problem that I don’t know how to solve, and I’m hoping someone can explain me or tell me if there is some way in THREEJS to change this.

I’m trying to apply texture to a diamond object.

Sometimes when I take some random piece of the ring and apply texture I get this result, the texture is applied to each face.

image

But sometimes on some other models, the texture is like this, it is not applied on each face but covers the whole object.

What I want to somehow each time when the object is like in number 1 image convert to always be like in the second image. I don’t want the texture to apply to each face. Is it possible and how to change the object to be like that without using a blender?