Mesh-connected computer algorithms for determining geometric properties of figures