Skip to content

Rounding errors and side effects with straight skeleton algorithm #133

Answered by micycle1
micycle1 asked this question in Q&A
Discussion options

You must be logged in to vote

I've done some more digging...

I think most of your problems are probably caused by the default tolerance value of 0.01 (1e-2) in HeightCollision.process().

Reducing this (even to 1e-3) fixes the problems in the demo you gave me.

It make sense that increasing the scale would help, as you've experienced, since this tolerance value becomes relatively smaller compared to the coordinates -- however too small, and deformities can occur again, since events are missed.

Replies: 10 comments 10 replies

Comment options

micycle1
Dec 30, 2024
Maintainer Author

You must be logged in to vote
3 replies
@istinnstudio
Comment options

@istinnstudio
Comment options

@micycle1
Comment options

micycle1 Jan 3, 2025
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

micycle1
Mar 29, 2025
Maintainer Author

You must be logged in to vote
1 reply
@istinnstudio
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

micycle1
Apr 4, 2025
Maintainer Author

You must be logged in to vote
1 reply
@istinnstudio
Comment options

Comment options

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

micycle1 Apr 4, 2025
Maintainer Author

@istinnstudio
Comment options

Comment options

You must be logged in to vote
1 reply
@istinnstudio
Comment options

Comment options

micycle1
Apr 11, 2025
Maintainer Author

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

@micycle1
Comment options

micycle1 Apr 12, 2025
Maintainer Author

Answer selected by micycle1
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