I ran into this specific problem when trying to generate sampled mathematical surfaces for testing. Quite possibly the simplest mathematical surface that I can think of is the plane, so I tried generating points that satisfy the equation z = 0 (i.e. arbitrary points). This input crashes rotation system reconstruction during the normal generation step because the covariance matrix given to smallestEigenVector is singular. It also crashes for y = 0 and x = 0 but not for other planes as far as I can tell.
Although it seems extremely unlikely that this case is reached in any "real input", it is also the simplest input that came to my mind.
An example input triggering the crash is provided below:
math_points.obj
I ran into this specific problem when trying to generate sampled mathematical surfaces for testing. Quite possibly the simplest mathematical surface that I can think of is the plane, so I tried generating points that satisfy the equation z = 0 (i.e. arbitrary points). This input crashes rotation system reconstruction during the normal generation step because the covariance matrix given to smallestEigenVector is singular. It also crashes for y = 0 and x = 0 but not for other planes as far as I can tell.
Although it seems extremely unlikely that this case is reached in any "real input", it is also the simplest input that came to my mind.
An example input triggering the crash is provided below:
math_points.obj