Skip to content

Avoid infinite recursion also on linux - #45

Merged
kmokstad merged 3 commits into
mainfrom
surf-normal
Mar 9, 2026
Merged

Avoid infinite recursion also on linux#45
kmokstad merged 3 commits into
mainfrom
surf-normal

Conversation

@kmokstad

@kmokstad kmokstad commented Mar 9, 2026

Copy link
Copy Markdown

There seems to be a deep bug in the surface reduction algorithm causing infinite recursion with stack overflow crash at the end.
This (third commit) is a workaround terminating the recursion after 4500 levels. This workaround was active already on Windows.

Also some cosmetic changes in classes FFlVisEdge and FFlVisFace.

kmokstad and others added 3 commits March 9, 2026 21:04
Use a C-array of fixed length for the vertex pointer members.
Flip default values of isLineShape and isIndexShape members.
Avoid capturing this in the lambda methods, for clarity.
@kmokstad
kmokstad merged commit f108389 into main Mar 9, 2026
1 check passed
@kmokstad
kmokstad deleted the surf-normal branch March 9, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant