Hello. I’m very new to this technology, so I would appreciate patience.
I’m not sure how to obtain positions and info of every face of a given mesh. I can obtain individual vertices through geometry.attributes.position.array. I had assumed the verts given this way are put together in order, tri by tri. Therefore I tried to loop through the array to put the coordinates into vector3s, so that three vector3s one after another would constitute one triangle.
From there, I wanted to draw lines over the edges of those triangles - so I did it by drawing lines from vertice 1 to 2, 2 to 3, and 1 to 3. This however was the wrong way to go about it as it resulted in whatever this is: Imgur: The magic of the Internet
Maybe the part where I drew lines was wrong. But even besides this error, I’m curious about what would be the “correct” way to achieve this, as well as making sure the method works with any model (I think many of them may use quads instead of triangles after all.) Any help would be appreciated.