Skip to content

Enable tracing of a single ray and improve output on infinite distance assert

Severin Diederichs requested to merge single_ray_debugging into surface_model

This PR improves the debugging of the surface model by improving the output when the infinite distance assert fails and by adding the possibility of tracking a single ray.

A macro is added to read 3D vectors in as options, e.g., -point 1 2 3 or -direction 0 1 0. These two options are added in the testRaytracing example. It is asserted that the direction is normalized. If a point and direction are provided, only this single ray is created and tracked, enabling fast debugging of rare failures.

Merge request reports