ecialized literature. .
The gradient of the scalar field at each point of the grid is also a normal vector to the assumed isosurface passing through this point. Therefore, it is possible to interpolate these normals along the edges of each cube in order to find the normals of the generated vertices, for the correct display of the model when using lighting.
This algorithm is widely used in medicine, for example, in computer and magnetic resonance imaging , as well as for three-dimensional modeling of metaspheres or other metasurfaces.
The Marching Cubes algorithm was the first example in the field of computer graphics that provoked a scandal in the field of software patenting . It was patented despite the relative obviousness of solving the problem of surface generation. Later, a similar algorithm was developed, called marching tetrahedrons , which, in order to bypass the patent, uses tetrahedrons instead of cubes. The patent expired in 2005, now the algorithm can be freely used. (Patent of June 5, 1985 [2] ).