ImageCheck out DvdHntr's latest upload a calculation for second moment of area based on rectangular segments.