The cartesian equation for a rose is:
$x = rcos(k\theta)cos(\theta)$
$y = rcos(k\theta)sin(\theta)$
When $k=4$ the figure formed has 8 petals. If I wish draw those 8 petals as polygons in a graphics system such as Processing, I can iterate over $\theta$ with steps small enough to smoothly draw the vertices of the polygons. The first polygon's vertices will be drawn for $0<=\theta<\pi/4$, for instance. The next for $\pi/4<=\theta<\pi/2$.
When $k$ is not an integer we have more complex figures where the petals appear to "overlap". For instance when $k=3/2$ we have the picture below, with 6 petals which overlap their neighbour. When $k=5/2$ the situation is more complex.
For any arbitrary rational value of $k$, how do we calculate the ranges of $\theta$ which will break the rose down into distinct shapes? Is there a better way to tackle this problem?
To make my question clearer, I've added a further figure for $k=3/2$. The perimeter I can find is in red. The perimeters of polygons I'd like to find are in blue and green for this value of k.
