The paper demonstrates a generalized approach to modeling the interaction of points and point sets on integer regular grids in metric spaces. The modeling process is based on the definition of spatial relations in "Point-Set" and "Set-Set" pairs, which allows to determine the spatial interaction between arbitrary geometric objects, defined as grid-based geometric models (GGM), which represent point sets on regular grids, generalized schemes of spatial interaction are developed in the work. As a result of the work, software was developed for conducting computer experiments on simulation of interaction in metric spaces of arbitrary dimensions and visualization of their results. The developed approach was tested on data sets of different dimensions. Figs.: 10. Refs.: 11 titles.