Repository navigation
Open
Labels
area:kernelB-rep kernel, booleans, blends, STEP/IGESin progresssomeone is working on it (see comments)needs-triageno priority yet; a maintainer sorts it with /triage
Description
What are you trying to do
The Thread command (solid.thread) only accepts a cylindrical face. I model wood screws and self-tapping screws. On these screws, the thread carries on from the shank down the cone of the point. Today I can't get that result. If I pick the cone, the command refuses it with "no cylindrical face there to thread". If I thread the shank, the groove stops at the point or runs one pitch into it. It never follows the point.
SolidCraft already threads a cone for taper pipe threads (NPT, R/Rc), but that code is fixed at a taper of 1 in 16. The kernel's helical sweep already accepts a radius that changes as it turns. That sweep is screw_sweep with a radial law, used through kernel::sweep_helix_radial.
How you imagine it working
- Thread a conical face. The
face(orfaces) point can be on a cone. The groove follows the cone at the cone's own angle. A cone that is almost a cylinder is threaded as a cylinder. - Follow the point. A new option,
point: follow, is for modelled external threads. The default,none, keeps today's behaviour. Withfollow, the thread runs off the end it starts from and down the coaxial cone there, as one continuous groove. The crest is the cone's own surface. The thread keeps its full depth until the core gets thin. Then its depth fades to zero at the tip (point_depth: fade, the default). Withpoint_depth: full, the thread keeps its full depth down to the cone's small end. - Refusals. A clear message refuses each of these:
- a cone steeper than the thread's flank allows (the message names the largest angle),
- a cone that is not on the shank's axis,
- a cone that widens,
point: followon a cosmetic thread,point: followtogether withtip.
Acceptance criteria
-
solid.threadwithmodeled: trueon a cone's face cuts a groove. Along the thread, the groove's root stays at a constant depth below the cone. - A cylinder that ends in a cone, threaded with
point: follow, gets one continuous groove from the shank to the tip. Withpoint_depth: fade, the depth reaches zero at the tip. - Each refusal above returns an error that names its cause. No input makes the app crash.
- Designs saved without the new options rebuild unchanged. There is one pending design-format file.
- Engine tests check the root radius and the groove volume against values derived by hand. A UI scenario covers the dialog option.
- The PR shows before and after screenshots of a wood screw.
Pointers
- The cone is refused at
thread_on_in,crates/doc/src/eval_thread.rs:198-224, by way ofkernel::cylinder_face_at(crates/kernel/src/topo.rs:420-461). That lookup is inxtask/mesh-decisions.txt, so the cone lookup must be exact, not mesh-based. - The groove and its radial law are built by
thread_grooves(L484-691). The taper code ismajor_at,with_taperandtaper_envelope(L506, L695, L719). - The command is
thread()incrates/engine/src/cmd/features.rs:4277. The saved feature isFeatureKind::Threadincrates/doc/src/document.rs:1108. - Related: Coil: an optional taper, so a thread follows a cone #4735 (a taper option for Coil), Threads: real thread ends, pipe threads (G, Rp, R/Rc, NPT), modelled tapped holes and tap makers' drills #7775 (pipe threads), Thread: input and output schemas for solid.thread (part of #2829) #14630 (the Thread schema), Threads: screw-swept walls keep their exact definition, and bodies with them save, draw and move #13891 (exact screw walls).
Reacted by raykholo
Metadata
Metadata
Assignees
Labels
area:kernelB-rep kernel, booleans, blends, STEP/IGESin progresssomeone is working on it (see comments)needs-triageno priority yet; a maintainer sorts it with /triage
Activity
raykholo commentedon Nov 18, 2026
Threading a cone face, and running the groove on down a screw's point, is new: in 0.44.1 the Thread command (
solid.thread) has no cone-face or point-following option, and picking a cone gives "no cylindrical face there to thread". This is kernel work (Solidcore), and the request is related to #4735, which asks for an optional taper on Coil so a thread follows a cone.For a screw whose shank is only partly threaded, should the groove start at the end of the thread run and then continue onto the point?
KyleTryon commentedon Nov 18, 2026
/claim
github-actions commentedon Nov 18, 2026
Claimed by @KyleTryon. Please open a draft PR referencing #18873 within 72 h; the claim lapses otherwise.
/unclaimreleases it.KyleTryon commentedon Nov 20, 2026
Yes. With Follow point, a partial thread runs along the part of the shank next to the point, then continues down the point in one continuous groove. The rest of the shank stays smooth.
The [regression test in #18877](https://github.com/KyleTryon/solidcraft/blob/624c5cbd8d5c6573281d0e18879cf8da5e9ab5e4/crates/engine/src/thread_tests.rs#L55) uses a 4 mm shank with a 3 mm thread length. It checks that the groove continues across the shank-to-cone joint and that the remaining 1 mm of shank stays unthreaded.