…, not every face
Since 58a51d3 (tangency-labs#21763, for tangency-labs#21721), a face move (Offset Face, Shell,
Draft, and a modelled thread setting its face to size) asks SMLib for a
point inside every face of the body (`face_points`, solidcore's `face_internal_points`),
then keeps the points of the faces it moves. One face SMLib finds no point
inside refuses the move of any other face.
A modelled thread with a face each turn (`continuous_flanks: false`) leaves
such a face. Through an 11 mm plate, a second M4x0.7 Thread feature beside
the first is refused while setting its hole's wall to size:
"smlib_brep_face_points: topology::face::p2: no line interval classifies
into the face".
`Brep::face_points_of` asks SMLib for the given faces alone, through the
same solidcore call. The face move uses it wherever the record numbers
SMLib's faces. A body numbered apart from its record still finds its faces
by the points of every face.
Release command-line tool on a 14-core Mac, main ae46216:
- 4 holes in an 11 mm plate, one Thread feature each, a face each turn:
main refuses the second; this change builds all 4 (33.9 s), to the
volume continuous flanks give (23.6 s).
- One Thread feature on 3 holes of a 13 mm plate, a face each turn: main
refuses it; this change builds it (22.4 s).
- One Thread feature on 6 holes, continuous: 71.8 s on main, 70.1 s here.
Tests: `flat_flank_threads_on_holes_beside_each_other_all_build` (engine
thread tests) threads 4 holes of an 11 mm plate, one feature each, with a
face each turn and with continuous flanks: all build, to the same volume.
On main it fails with the error above.
`face_points_of_chosen_faces_match_every_face_s` (smlib) and the
entry-point lists cover `face_points_of`. smlib face_points and entry-point
tests 4 of 4, kernel offset, draft and shell tests 98 of 98, the engine
test 1 of 1 pass.
Change
A face move pushes chosen faces of a solid in or out. Offset Face, Shell and Draft use it, and so does a modelled thread setting a hole's wall to the thread's size. Since 58a51d3, merged with Offset Face, Shell and Draft take the picked wall of a thin ring for offset face is applied to wrong face, a face move asks SMLib for a point inside every face of the body, then keeps the points of the faces it moves. So one face SMLib finds no point inside refuses the move of any other face.
A modelled thread with a face each turn (
continuous_flanks: false) leaves such a face. Through an 11 mm plate, a second M4x0.7 Thread feature beside the first is refused while it sets its own hole's wall to size. The face SMLib can't place a point in belongs to the first thread, which the move never touches.How it works now:
Brep::face_points_of(crates/smlib/src/trim.rs) asks SMLib for points inside the given faces alone, through the same solidcore call. The face move (face_pointsincrates/kernel/src/offset_backend.rs) uses it wherever the record numbers SMLib's faces. A body numbered apart from its record still finds its faces by the points of every face, as before. 58a51d3's title promises a point inside each chosen face; this makes the call ask for those alone.A limit that stays: picking that thread face itself for a face move still fails in solidcore's point search.
Changes a default: no
Validation
Release
solidcraft-cli, 14-core Mac,mainat ae46216:mainmain's refusal in the first three rows: "a modelled thread sets its face to the thread's size first, and this 4 mm hole can't be set to 3.242228 mm, the M4 thread's minor diameter: the kernel could not move its face there (the operation failed: SMLib offset faces: a point inside each face: solidcore: smlib_brep_face_points: topology::face::p2: no line interval classifies into the face)".The flat and continuous 4-hole plates match in volume to 3e-11 mm³ and in area to 1e-6 mm².
Tests:
thread_tests::flat_flank_threads_on_holes_beside_each_other_all_build(new,crates/engine/src/thread_tests.rs): the 4-hole plate, built with a face each turn and with continuous flanks. All features build, and the two volumes agree to 1e-6 of the volume. Onmainit fails with the error above.face_points_of_chosen_faces_match_every_face_s(new,crates/smlib/src/core/trim_tests.rs): the points for chosen faces are the points the every-face call gives for them. The smlib entry-point lists coverface_points_of.cargo test -p solidcraft-smlib --lib -- face_points every_entry_point: 4 of 4 pass.cargo test -p solidcraft-kernel --lib -- offset draft shell: 98 of 98 pass.mainat ae46216: fmt, clippy-D warnings,xtask layers,lists,skillsandmesh-decisionspass. Plain tests: 32,351 ran, 32,335 pass, and the 16 ontests/KNOWN_FAILING_TESTSfail as listed. Routed tests: 9,779 of 9,779 pass.Screenshots of the behavior
The 4-hole plate, a face each turn, one Thread feature per hole, cut through the hole centres and seen from the front.
mainrefuses the second feature with the error above. This branch builds all 4:Integration status
mainat ae46216. It merges withmainat 30c5fc0 (2026-12-04) without conflicts.mainhas not changedoffset_backend.rsorcrates/smlib/src/trim.rssince.Summary by CodeRabbit