Repository navigation
Description
Offsetting a modelled thread should work on its definition: a thread wall is a screw-swept ProceduralSweep (#2572 slice 1, tangency-labs/solidcore#2633), and the offset of a screw surface is again a screw surface. Today Offset Face treats thread walls as general NURBS faces. It extends their supports, intersects them in 3D and trims the extensions back, which is what tangency-labs/solidcore#2613 is fighting: periodic seams, extra intersection branches, corners solved on three supports, folded extensions.
Why it is exact and simple. A screw motion moves a screw surface onto itself, and an offset along the normal commutes with that motion, so the offset surface is invariant under the same screw (same axis, same pitch). So:
- The offset wall is the screw sweep of its offset section: the curve where the offset surface meets a half-plane through the axis. Each section point is the wall's point plus
dtimes its unit normal (the true 3D normal, not the planar normal of the profile), carried back into the half-plane by the screw motion. Closed form from the profile and the screw: a newProceduralSweepwith its own net and certified bound, as Offset of a blend built on its definition S, not its net B (a rolling-ball round offset is the round r ± d) #13812 does for blends (r ± d). - Two neighbouring offset walls (flank and crest, flank and root) meet along a helix: the screw image of the point where their two sections cross in the half-plane. That is one 2D curve–curve intersection, not a 3D surface–surface trace, so there are no extra branches, no seam to complete and no corner to solve on three supports.
- What doesn't fit (an offset that closes a groove, sections that stop crossing) shows up in the 2D section as a refusal naming the largest offset that fits, as the blends do.
Steps
- Offset of a
ProceduralSweepscrew wall: its offset section in closed form, built as aProceduralSweepwith net and bound (surface::procedural_sweep,offset). - Offset Face on thread walls: neighbouring walls meet along the screw image of their sections' crossing. Faces that aren't screw walls go through today's path.
- The thread's definition survives SolidCraft's record and history (as The procedural blend's definition kept through SolidCraft's record: a round reopened or split is still solved on S, not its net #13822 does for blends), so a saved or rebuilt thread is still offset on its definition.
- Thread face consolidation (Threads: select a whole thread flank with one click (#519) #11737): a multi-turn face is one screw wall over its whole length, so nothing is segmented per turn.
Tests (geometry first, closed form)
- M20×2.5 external and internal, segmented and continuous, offset ±d on the flanks and on all lateral faces (the 12 cases of fix: rebuild modeled-thread offsets with consistent seams and trims solidcore#2613): every offset wall is a
ProceduralSweep. Its points at off-net parameters lie on the true offset (distance d from the original wall, within the certified bound). Every result is a closed manifold solid, valid at Level 2. - The helix where two offset walls meet lies on both walls, and its section point matches the 2D crossing of the offset sections.
- An offset larger than the groove allows is refused, naming the largest offset that fits.
tangency-labs/solidcore#2613 is on hold until this lands, since most of its construction is not needed once thread walls are offset on their definition. @bendavis, the M20 cases and the defect records you gathered there are exactly this issue's acceptance set.
Related: #13800, tangency-labs/solidcore#2633, #13812, #13822, tangency-labs/solidcore#2613, #11582, #11737, #11776.
🤖 Generated with Claude Code
Activity
docs: the procedural sweep's reference page
MarkusReichart commentedon Nov 6, 2026
@bendavis, tangency-labs/solidcore#2726 has had no commit or progress note since 0b01fd05f (2026-11-05 01:37 UTC). Following AGENTS.md §4, I'm proposing to take over its scope and will wait 12 hours before starting. If you're still on it, or want to keep part of it, say so here and I'll stand back.
Scope I would take over: #13768 as tangency-labs/solidcore#2726 states it, continued from your WIP at 0b01fd05f and rebased onto main. That covers:
ProceduralSweepwith its net and certified bound;Your commits stay as they are, and the PR names you as the author of the construction. Your records WR-744 to 748, 750 and 752 keep their IDs unless main has taken one by then.
Out: the conversion-nesting commits for tangency-labs/solidcore#2671 (c2c437642, 82df8a9d4, e235bb796). They are your separate fix, and I'd leave them to you unless #13768 can't build without them.
Written with Claude Code (AI) on behalf of @MarkusReichart.
bendavis commentedon Nov 6, 2026
Thanks for checking before taking over. I’m retaining this scope; tangency-labs/solidcore#2726 is intentionally paused at a documented review checkpoint.
Following the maintainer’s direction on #2613, I published the replacement procedural-sweep implementation in #2726. Its description requests early review of the generic evaluation wiring and certified-net attachment boundary before further topology and groove-limit work.
The sweep foundations #2633 and #2723 have merged, and my draft incorporates the published interface. The remaining dependency, #2671, is awaiting maintainer review; its code is already included in my branch.
Could a maintainer review the checkpoint or confirm that implementation should continue before that review? Please hold off on the takeover while we resolve that direction.
MarkusReichart commentedon Nov 6, 2026
Understood, I'll stand back. #13768 and tangency-labs/solidcore#2726 stay yours.
Written with Claude Code (AI) on behalf of @MarkusReichart.
github-actions commentedon Nov 8, 2026
Claimed by @bendavis through #13891. The claim lapses after 14 days without pushes.
5 remaining items
Threads: screw sweeps keep their exact definition
Threads: offset screw-swept walls on their retained definitions