and figure out what values of x you need to avoid double-counting and iterate over all the x values, summing the areas of each segment, but I was wondering if there was some more elegant way to do this, something along the lines of
No "total section area" method is built in. Nothing says you can't cobble up a function that takes a section as an argument and returns its total area.