A while back, I posted a video about how to place points randomly inside of an arbitrary polygon. [Click here] This video prompted a question about how to place points in a more systematic manner. If you are only allowed to change the edge length of an equilateral triangular grid, how can you get a set number of points into a given polygon.
This is the first in a two part series on how to do that. This video focuses on how to generate the grid. The second video will cover how to vary the edge length until the goal of getting a set number of points into the polygon is reached.
Doug, great example, but there’s a math error in your code…ySpace should be ‘ySpace = e*sin(60)’ instead of ‘ySpace = e/sin(60)’.
Thanks!
Johnny,
Oops, I never noticed because when E = 1 it just does not matter.
Good catch!
Thanks,
Doug
What i would like to know is how can you automate a label method for the generated samples in a sppecified direction
Juliane,
I am not sure what you mean. Please be more specific.
Doug