Continuing with the series of pysanky eggs I've been working on with Python and POV-ray - another week, another egg. This one is a Lemko design. The dots, I believe, represent stars.
Getting the crown and base was relatively easy, as it just required the correct positioning of a single stroke, then rotating it:
def makecrown(baseobj):
crownstrokes = [baseobj]
theta = STEP
while theta < 360.0:
crownstrokes.append(pov.Object(baseobj,
rotate = (0.0, theta, 0.0)))
theta += STEP
return pov.Union(*crownstrokes)
In this case, step = 360.0/24.0.
Likewise, I have a function for the dots that made them easier to place:
def movedot(basedot, xtheta, ytheta):
dot = pov.Object(basedot, rotate = (xtheta, ytheta, 0.0))
return pov.Object(dot, translate = (0.0, 1.0, 0.0))
Ultimately, I'd like to get enough egg designs coded to put together some sort of scene in POV-ray dedicated to the eggs. The following two scenes show what I have so far:
If I can identify a few more attractive, computationally friendly designs, I should be able to come up with enough eggs for a decent POV-ray egg scene. In the meantime, thanks for having a look.



