Tuesday, July 12, 2022

Today's prompt was 'ferris wheel'. I was running late and I think that that shows...


I want to try, for the hundredth or thousandth (or hundred thousandth) time. to create a modified UV sphere with rows of more or less equilateral triangles, starting with an initial 'north' polar triangle fan and proceeding to greater and then lesser rows as we approach the equator and then the antipodes at the 'south' pole. Each row after the initial triangle fan is made up of quads to start with, the base of an upper triangle and a point projected out from the midpoint, p0, p1 and midpt, to some new point, p3 and the projected point of the next triangle, p4. I will make a list of points for this next row and their indices, but keep in mind that these will be modified and additional points will be added to points as needed so that we will have two working rows of points, one for the upper and one for the lower. The upper points will make up the top of the triangles pointing down or outward and the lower points will make up the bottom  or base of the triangles pointed up or inward. If the distance between p3 and p4 is greater than half again the standard distance, we will add p5 at the midpoint and add that to the list of bottom points, soon to be top points on the next row, If the distance is less than half then we need to move the points together, altering the coordinates of p3. The points index for the next point in the row needs to be spliced, replaced with the one for p3 and we simply pretend that that point in the current bottom row doesn't exist, while not splicing it out and messing up our orderly indices!!!

No comments:

Post a Comment