Calculations of geometric properties using quadtrees