ArithmeticKernel

Selects the precision kernel used for exact arithmetic computations

The ArithmeticKernel enum specifies which fixed-width arithmetic variant Solidean uses internally. Each kernel defines bit-depths for positions, planes, and intermediates, balancing performance with accuracy. The default choice is Fixed256Pos26, which uses 256-bit intermediates with 26-bit positional inputs - a practical trade-off between robustness and runtime efficiency. Other kernels may be added to support use cases requiring either higher precision or faster evaluation.

Signature

// Selects the precision kernel used for exact arithmetic computations
enum ArithmeticKernel:
    Fixed256Pos26 = 256026

Fixed256Pos26

Using 256 bit intermediate precision and 26 bit for input positions.

Exact vertices have the XYZ192_W192 format. Exact planes have the ABC64_D128 format.