#Removing triangles from meshes?
1 messages ยท Page 1 of 1 (latest)
so any ideas?
ohh actually
i might have one
oh uhh I mightve just accidentally wasted your time if my idea works sorry but feel free to lmk your solution
do you have one?
Oh ok.
Well you could loop through the triangles and remove those where all 3 vertices are not in the circle.
IDK exactly and that would be kinda bad since you would have a lot of unused vertices so if you have a better solution, great! ๐
yeah I was just gonna loop through every vertex and check which ones were outside of the cirlce and just multiply the index the vertex was on by 3 and remove the next 3 integers in my triangles[] array
idk how viable it is but ill try it
sorry for wasting your time lol
Yes that's pretty much the same idea ๐
No problem ๐
The only problem I see would be that your vertice array would contain a lot of unused vertices and I don't know if Unity will optimise it or if it will just use memory for nothing.
But if memory is not a problem, it should work great ๐