I thought the shape of the sail was built into the body of the sail rather than simply curving the luff and applying it to a straight mast.
It's actually both. On a panelled sail, they build shape both through luff-curve, and by shaping the edges of each panel so that they provide shape when the panels are sewn together.