title: How to subdivide irregular polygons in SVG
body: <p>Given a polygon of indeterminate shape, and given you know which path(s) to start from, I need to slice up these polygons (defined in SVG format) into n shapes using the start-path as a guide.</p>
  
  <p>It's kind of hard to explain, but think seat sections and their rows in a stadium:
  <img src="https://i.stack.imgur.com/iPzoE.png" alt="sections cut into rows"> </p>
  
  <p>When dealing with rectangles, it doesn't seem too difficult. What I'm stuck on is how to do it with an irregularly shaped polygon. A universal solution would be best, especially if it can work with curves but I can see how that would only complicate matters.</p>
  
  <p>Is there any specific algorithm that I should start my studies with? I've started digging into polygon triangulation and how to use ear clipping methods to decompose these polygons in a monotone fashion, but my head is starting to spin here.</p>
  
  <p>PS: Not sure if it's super important, but these polygons are defined in SVG.</p>