line-simplification: Add area function.