Skip to content

is this library deterministic/portable if I were to only perform operations using Path64s? (as opposed to PathD) #765

Answered by AngusJohnson
grimaldini asked this question in Q&A
Discussion options

You must be logged in to vote

is this library deterministic/portable

If by this you're meaning that irrespective of language (Delphi, C# or C++) then no, it's not.

If you're only concerned with a specific language eg. C++, then results may be reproducable using different compilers on different platforms. I think all the sort algorithms are stable, so that should support reproducability. However, the library doesn't entirely avoid the double type internally, so there are still integer to double type conversions (see GetIntersectPoint function in clipper.core.cpp) and I guess that may introduce variable results with different compilers.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by grimaldini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants