Skip to content

How does Fornjot handle numerical stability? #653

Answered by hannobraun
rockandsalt asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @rockandsalt!

Really cool project

Thank you!

one of the reason why making a CAD kernel is so hard is that you have to take into account numerical stability in all your algorithm that relies on equality checks. Additionally, you need to keep it under control or else you won't get what you expect if you do a lot of operation. I was wondering how does fornjot handle it? Are you doing it the CGAL way with a flexible type system that switches between exact and floating point math. Or you are doing it like Open Cascade where most function have a precision input ie : if point is within +-d of the line then the point is on the line.

Neither, actually. Instead, Fornjot tries to avoid any …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rockandsalt
Comment options

You must be logged in to vote
2 replies
@hannobraun
Comment options

@XYCaptain
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants