Currently, as Hypo makes CGAL calls to process geometry, there is no error checking. If the input is invalid and it causes an error, the program will crash, and if we're luckily running in debug there may be an assertion line number to look at.
We should make it so that errors can be properly reported and propagated back to the user.
In the future, we could potentially associate TypeScript callstacks with the errors, but this means we'd have to associate TypeScript callstacks with each Reify node. But that might actually be a really nice feature.
Some potential errors we may wish to report:
Polygon soups that are not oriented correctly and cannot be converted to Nef_polyhedron_3s.
Extrusions that result in invalid meshes that cannot be converted to Nef_polyhedron_3s.
Currently, as Hypo makes CGAL calls to process geometry, there is no error checking. If the input is invalid and it causes an error, the program will crash, and if we're luckily running in debug there may be an assertion line number to look at.
We should make it so that errors can be properly reported and propagated back to the user.
In the future, we could potentially associate TypeScript callstacks with the errors, but this means we'd have to associate TypeScript callstacks with each Reify node. But that might actually be a really nice feature.
Some potential errors we may wish to report: