The invention relates to the technical field of
image processing, in particular to a BIM (
Building Information Modeling)
grid mapping method, which comprises the following steps of: sampling the surface of a BIM, and mapping each point p on the surface into a two-dimensional position UV through a function f (p); mapping a three-dimensional space B containing a definition domain of the function f (p) into a
physical space P, then carrying out region division, and independently defining mapping in each region so as to realize that the function f (p) is discontinuous among the regions; skipping blank voxels between the areas, and reducing
processing or calculation on the areas; and finally performing mapping application. In the
fragment processing process, the evaluation of f (p) only needs to apply scale translation q = sigma (p) and perform single trilinear interpolation texture access at q, and then return to tau (q). This operation replaces linear interpolation of vertex-by-vertex UV in conventional
modes, and utilizes trilinear interpolation of texture values supported by native hardware, which is highly optimized in terms of speed and GPU / texture RAM bandwidth.