Find simple 2D shapes collision

Yes, like so:

I colorized the triangle vertices that are inside the cube, so you can drag them around and see which ones are which:

image

Important notice: you can’t get vertices from the geometry attribute array - that array forms triangles for the mesh, you meed to mention points in the order they make border lines of the shape.

1 Like