The list of error codes and messages can also be found in the function terminatetetgen() defined in the file tetgen.h.
code 1 message Error: Out of memory
code 2 message Please report this bug to Hang.Si@wias-berlin.de. Include the message above, your input data set, and the exact command line you used to run this program, thank you description This failure was caused by a known bug of TetGen.
code 3 message A self-intersection was detected. Program stopped. Hint: use -d option to detect all self-intersections. description This failure was caused by an input error.
code 4 message A very small input feature size was detected. Program stopped. Hint: use -T option to set a smaller tolerance. description This failure was caused by a possible input error. For example, there are two segments nearly intersecting each. other. If you want to ignore this possible error, set a smaller tolerance by the -T switch, default is 10−8.
code 5 message Two very close input facets were detected. Program stopped. Hint: use -Y option to avoid adding Steiner points on boundary. description This failure was caused by a possible input error. For example, there are two facets nearly overlapping each other. Once Steiner points are added to one of the facets, it will cause a self-intersection.
code 10 message An input error was detected. Program stopped. description This failure was caused by an input error.