I’m trying to generate a circle using equilateral triangles, but I can’t seem to figure out how to calculate the rotation and amount of needed triangles, based on the width (which I’m currently testing with just an even equilateral triangle for simplicity’s sake).
Well, I’m putting two right triangles together to make an equilateral triangle. I guess the even length can’t properly form a circle. I’m essentially just doing trial and error from the very start, so I don’t really know that length each triangle part should be.
But I’m basically trying to form a complete circle with triangle parts.
Oh! Well, yeah you can form any triangle from two right triangles. With a bunch of isosceles triangles you could form a circle iteratively. Start with an equilateral, then you can subdivide a side into two smaller sides like this:
It’s impossible to make equilateral triangles of a circle as circle sectors. The sum of degrees should be 180, but equilateral triangles require the third side to also be equal in length(which can’t, it’s a segment of about a half circle). If you meant something like pizza slices(sectors), you need to find the radius and degrees per sector.
I’m attempting to make a circular radius that can be blocked by obstacles. My plan was to shoot rays in every direction and make the triangles length based on how far the ray actually got, then fill in the empty space with red.
I don’t really have an example because I don’t have anything that’s working. I just want to know how to make a complete circle with triangles right now, as shown here:
I’m thinking of using a triangle mesh to avoid having to calculate the triangle itself, but I still need to know how to calculate the size and rotation required to make a complete circle. I’d also like to be able to have it be calculated based on the number of triangles I want to use, which would be determined by the actual size of the circle that I want.
I should clarify that I’m obviously not looking for round edges as no circle can truly be round. I’m just going to use more triangles to “smooth” out the edge to make it appear round.