Skip to content

Fix non-manifold edges because end point is close to but not exactly … - #250

Open
North101 wants to merge 1 commit into
sgenoud:mainfrom
North101:fix-non-manifold-edges
Open

Fix non-manifold edges because end point is close to but not exactly …#250
North101 wants to merge 1 commit into
sgenoud:mainfrom
North101:fix-non-manifold-edges

Conversation

@North101

Copy link
Copy Markdown

When .close is called it checks if the endpoint is the same as the last point, but if the last point isn't exactly equal to the first point it can create non-manifold edges in the stl. This PR fixes this by replacing any end point that passes samePoint with the first point

@North101

Copy link
Copy Markdown
Author

Fixes #247 though a better fix might be to just rewrite the last point

@North101

Copy link
Copy Markdown
Author
Screenshot 2025-12-24 at 16 06 04 Still get issues because of this kind of rounding error but thats to be expected and I guess I just need to use a script to fix it. The library that converts paths to absolutes adds lots of floating point drift which was probably causing this issue at a very imperceptible scale

@North101

Copy link
Copy Markdown
Author

Opened this PR sgenoud/replicad-decorate#3 as either an alternative or in addition to this PR

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