Mathematical Model of Multi-Type Marching Squares and Algorithm for Their Implementation
Abstract
The classical Marching Squares algorithm is limited to binary vertex states of a cell and does not allow direct processing of heterogeneous voxel data with multiple material types. This paper proposes an extension of this approach – the Multi-Type Marching Squares (MTMS) model, which expands the topological configuration space of a cell from the classical 16 to 512 states by supporting four material types. To map global material identifiers to the local space of the configuration table, a normalization method based on modular arithmetic is developed. To resolve diagonal ambiguity, a binary flag is introduced, computed by comparing weighted density sums on opposite cell diagonals. It is proved that the proposed encoding via case index ensures a one-to-one correspondence between cell states and configuration table entries. The developed model enables extraction of polygonal boundaries in a single pass over the grid without global synchronization, which is critical for parallel GPU implementations.
Full Text:
PDF (Russian)References
Lorensen W. E., Cline H. E. Marching cubes: A high resolution 3D surface construction algorithm. ACM SIGGRAPH Computer Graphics, 1987, vol. 21(4), pp. 163–169. DOI: 10.1145/37402.37422.
Lewiner T., Lopes H., Vieira A.W., Tavares G. Efficient implementation of marching cubes’ cases with topological guarantees. Journal of Graphics Tools, 2003, vol. 8(2), pp. 1–15. DOI: 10.1080/10867651.2003.10487582.
Chernyaev E.V. Marching cubes 33: Construction of topologically correct isosurfaces. In: CERN Technical Report CN/95-17. Geneva, 1995, 35 p. URL: https://www.researchgate.net/profile/Evgueni-Tcherniaev/publication/2651412_Marching_Cubes_33_Construction_of_Topologically_Correct_Isosurfaces/links/09e41508ae8909f864000000/Marching-Cubes-33-Construction-of-Topologically-Correct-Isosurfaces.pdf?_tp=eyJjb250ZXh0Ijp7ImZpcnN0UGFnZSI6InB1YmxpY2F0aW9uIiwicGFnZSI6InB1YmxpY2F0aW9uIn19.
Smistad E., Falch T.L., Bozorgi M. et al. Medical image segmentation on GPUs – A comprehensive review. Medical Image Analysis, 2015, vol. 20(1), pp. 1–18. DOI: 10.1016/j.media.2014.10.012.
Dyken C., Ziegler G., Theobalt C., Seidel H. P. High-speed marching cubes using histogram pyramids. Computer Graphics Forum, 2008, vol. 27(8), pp. 2028–2039. DOI: 10.1111/j.1467-8659.2008.01179.x.
Zhang J., Li H., Wang K. A two-step surface reconstruction method using signed marching cubes. Applied Sciences, 2022, vol. 12(4), 1792. DOI: 10.3390/app12041792.
Li S., Liu Y., Wang G. Repair of geological models based on multiple material marching cubes. Mathematics, 2021, vol. 9, no. 18, p. 2207. DOI: 10.3390/math9182207.
Chakkour T. Finite element modelling of complex 3D image data with quantification and analysis. Oxford Open Materials Science, 2024, vol. 4(1), itae003. DOI: 10.1093/oxfmat/itae003.
Wang L., Chen F., Yin X. Three-dimensional reconstruction based on improved marching cubes algorithm. Journal of Mechanics in Medicine and Biology, 2020, vol. 20(4), 2040002. DOI: 10.1142/S0219519420400023.
Peters J.F. Computational Geometry, Topology and Physics of Digital Images with Applications. Cham, Springer, 2021, 356 p. DOI: 10.1007/978-3-030-22192-8.
Refbacks
- There are currently no refbacks.
Abava Кибербезопасность ИТ-КОНГРЕСС ВМК МГУ 2026 СНЭ
ISSN: 2307-8162