#Removing triangles from meshes?

1 messages ยท Page 1 of 1 (latest)

cobalt tapir
#

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?

rocky nacelle
#

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! ๐Ÿ˜‰

cobalt tapir
#

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

rocky nacelle
#

Yes that's pretty much the same idea ๐Ÿ™‚

rocky nacelle
rocky nacelle
# cobalt tapir idk how viable it is but ill try it

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 ๐Ÿ™‚