Video link: https://youtu.be/2Q-ZY_NmGdw

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/89e1bb02-47a1-4e1e-b05d-307d064d4d68/image8.png

Intention

Implementation

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/94d2d710-f2f8-4730-9f49-e77e319e9590/image1.png

I have the formula to calculate every vertex coordinate. My problem is how I can use code to set triangles index, I found the solution here, and got the result I want.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d44cad79-4a4d-424b-9de8-3ece4b96cfd3/image26.png

What’s next