9 pin triangles- connect points with clicks

I got intrigued by a post on Twitter this morning referencing Nine-pin Triangles

I am wondering how to create a triangle when clicking on three points on the circumference. Here is what I have so far. Stuck with getting segments to be created when the points are clicked.

Would be neat for the S’s to somehow generate a gallery of the triangles they think are unique.

Something like this might do the trick for making the triangles appear upon clicking the points on the circle:

At the moment, three clicks produce a triangle, the fourth click resets to blank.

3 Likes

That’s really nice. Some neat stuff I get to learn about :slight_smile: TY!

This is great! Here’s my approach. It behaves the same way but grabs indices using a parallel list so only one action is needed. 9 point triangle

1 Like