Function getElementPointsCoords