Repository navigation
Knurling round a cylinder: no crumpled diamonds where the facets' points lie near a groove's line - #2050
Merged
Conversation
…nts lie near a groove's line (Facebook group) Raised knurling round a planter had a crumpled diamond here and there, in the view and in the slicer. The second groove family joins two triangles into a quad except over an edge along a first-family line, and that edge was only recognised with both ends exactly on the line (|crossDiff| < 1e-6), measured again from the geometry. Two things put its ends off the line: - Round a cylinder a point cut onto the line lies on its facet's chord; measured again by its angle round the axis it lies off the line, up to 0.06 mm on 20 facets 200 mm across. - A grid point closer to the line than the cut's snap takes its place without lying on it. The quad was then joined across the line, its triangles reached over the ridge and the diamond's flanks bent inside them. The first cut now hands every point its place across (sliceByField's withField): a point cut on a line has the line's value exactly, a snapped grid point lies within the snap. Two points on lines are on the same one when they lie closer together across than half the narrowest step between two lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U6NM2EDqKZmFBDu96BaSKP
Owner
|
@marcus040473 merged, thank you. Knurling round a cylinder now keeps its diamonds clean where a facet's points lie close to a groove's line, which fixes the crumpled diamonds on the planter from the Facebook group. The two new tests fail without the change, and the checks passed. |
Owner
|
@marcus040473 out in 1.173.0. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sliceStripes). For the second familysliceByFieldjoins two triangles over their longest edge into a quad, except over an edgekeepEdgesays lies along a line of the first family. That edge was only recognised with both ends exactly on the line (|crossDiff| < 1e-6), measured again from the geometry, and two things put its ends off the line:aroundAngle), it lies off the line: up to 0.06 mm on 20 facets 200 mm across, a few 0.0001 mm on a fine mesh.min(SURFACE_MIN_EDGE, P / 4)) takes the line's place without lying on it.sliceByField'swithField): a point cut on a line has the line's value exactly, and a snapped grid point lies within the snap. Two points on lines count as on the same one when they lie closer together across than half the narrowest step between two lines. The straight faces' cut (cutRows) gets the same.Testing
npm run typechecknpm teston 1.172.0tests/unit/surfaceTexture.test.ts, a fine planter (64 facets) and a cylinder of 20 facets. Both fail without the change.Notes