Covering the shape by adaptive components

Hello everyone! I’m on the way of studying dynamo so I try to follow the tutorials from http://dynamobim.org/learn/
Right now I have a question about retrieving the poins to cover the shape by adaptive components.(The unit 6 Solar orientation). There the excel file with points is given. The question is how can I split the shape of the building into the litle triangle or square surfaces and get the points to place appropriate (3 or 4 points ) adaptive components for the future analysis of sun orientation. the picture of sample code is attached.


My code is given below. I just don’t know how to cover any shape with adaptive components.Maybe it quite easy)
Thanks in advance!

Don’t hesitate to type your keywords in the search tool, it will help to find interesting related discussions such as this one: