aabtop / reify

Reify lets you embed a customized TypeScript runtime within a C++ application.
MIT License
6 stars 0 forks source link

Add support for error checking during geometry construction. #25

Closed aabtop closed 3 years ago

aabtop commented 4 years ago

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: