In scientific visualization the asymptotic decider is an algorithm developed by Nielson and Hamann in 1991 that creates isosurfaces from a given scalar field. It was proposed as an improvement to the marching cubes algorithm, which can produce some "bad" topology, but can also be considered an algorithm in its own right.
Principle
The algorithm first divides the scalar field into uniform cubes. It draws topologically correct contours on the sides of the cubes. These contours can then be connected to polygons and triangulated. The triangles of all cubes form the isosurfaces and are thus the output of the algorithm. Sometimes there is more than one way to connect adjacent constructs. This algorithm describes a method for resolving these ambiguous configurations in a consistent manner. Ambiguous cases often occur if diagonally opposing points are found on the same side of the isoline, but on a different side to the other points in the square or cube. In a 2D case this means that there are two possibilities. If we suppose that we mark the corners as positive if their value is greater than that of the isoline, or negative if it is less, then either the positive corners are separated by two isolines, or the positive corners are in the main section of the square and the negative corners are separated by two isolines. The correct situation depends on the value at the asymptote of the isolines. Isolines are hyperbolae which can be described using the following formula: where is the normalised distance in the square from the left-hand side, and is the normalised distance in the square from the bottom. The values and are therefore the coordinates of the asymptotes, and is the value at the position. This point ought tobelong to the section which contains two corners. Therefore, if is greater than the value of the isoline the positive corners are in the main section of the square and the negative corners are separated by two isolines, and if is less than the value of isoline the negative corners are in the main section of the square and the positive corners are separated by two isolines. A similar solution is used the 3D version.