Repository navigation
Conversation
A vertex, edge or face picked into the Box window's Point input wrote its X, Y and Z as millimetre text whatever the design's length unit was, so an inch design showed "50.8 mm" where the other fields read inches. The fields now take the point through length_input::model, as Move and the Hole references do, so they read "2 in" there and stay "50.8 mm" in a millimetre design. The same applies to the Sphere and Torus centre. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
length_input::model divides without rounding, so a vertex at 38.1 mm read "1.5000000000000002 in" in an inch design. length_input::shown rounds to a millionth of the design's unit, as the millimetre text did before, and the test pins that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
length_input::shown rounds to a millionth of the design's unit, and the picked point's text is what OK sends, so in a metre design a vertex moved by up to half a micrometre times a thousand. Document::design_length keeps the micrometre in every unit and still writes 38.1 mm as "1.5 in". The test now covers a metre design with a point that is not round in mm, and the Sphere and Torus centre. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
@coderabbitai review |
Action not completed
|
Owner
Author
|
@coderabbitai full review |
Action performed
|
dannyow
pushed a commit
that referenced
this pull request
Nov 16, 2026
…cy-labs#14830 step 1) (tangency-labs#17783) A box, cylinder, sphere or ring torus straight from make_box, make_cylinder, make_sphere or make_torus keeps its template (origin and sizes) beside the body, cleared by any mutable access as fix B's proof is. When an operation first takes such a body as an operand, Expect::of_held runs the manifold test and check_brep Level 0 as before, then proves the volume positive from the template instead of the enclosure: is_outward_primitive (new kernel module topology/brep/primitive_outward.rs) bounds V(B) below by the template's closed-form volume minus the per-face flux differences of (0, 0, z - z0) and the strips' and caps' share, in rounded interval arithmetic. A body that is not its template (face count or kind, degrees, net, knots, weights, trims or sense not the recipe's) gets no certificate. A body without a template, or one the certificate does not prove, gets the full proof as before. A body only measured is never proved, so the measure path does no new work. Measured (callgrind Ir, base 08be6d6 vs fix, own targets): boolean/boxes-cut -26.6%, boxes-union -23.1%, tube-flush-ends -22.9%; volume_sign calls 3 -> 1. Results and STLs bit-identical. The 1e-4 cube fails check_brep Level 0 (SmSurface Test #2), so it falls through to the old proof. Part of tangency-labs#14830 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dannyow
pushed a commit
that referenced
this pull request
Nov 16, 2026
…ransform tolerances, validation trims) (tangency-labs#17400) * solidcore: claim the topology-2 UpstreamFixes retirement batch Empty claim commit for retiring the batch "topology-2" flags (part of tangency-labs#14246). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtsWyH5fjgiavRsRdt * solidcore: retire five topology-2 UpstreamFixes flags (tangency-labs#14246) The fixed path becomes the only path for proto_vertex_miss_is_false (WR-73), proto_edge_split_upper_keeps_the_old_max (WR-101), validation_does_not_make_uv_trims (WR-446), transform_scales_each_tolerance (WR-507) and transform_model_size_from_body_box (WR-508). Each field, its preset line in crates/smlib/src/core.rs, its fixes.json and issue_2260 list entries, every test setting of it and the old path are removed, and each WR record gets a flag-removed addendum. Goldens certificates (cfg(test) only) replay every case of the touched units: - proto_topology p1/p3: a remove that answers true removed the vertex (WR-73); a split's children are (min, t) and (t, old max) (WR-101); every B-rep transform meets the WR-507/508 closed form. - brep_p5 op 12 and brep_mirror 4x4 transforms: the model size is the box diagonal of the scaled body (bit for bit) and each tolerance is max(zone, t * s). brep_mirror replays transform_matrix step by step, checking each Transform and matching the result bit for bit. - brep_constructor: the three moved validation rows equal main's topology once the trims the check used to make are made. Part of tangency-labs#14246 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtsWyH5fjgiavRsRdt * goldens: re-bless the rows moved by the topology-2 flag retirement 131 rows across five units, each covered by a certificate in the previous commit: topology.proto_topology_p1 (63), proto_topology_p3 (39), brep_mirror (25), brep_constructor (3), brep_p5 (1). No other unit moves. proto_topology p1 test proto_vertices_combine_and_remove: the off-curve vertex (1, 5, 0) is 5 from the line y = z = 0, past its 1e-5 tolerance, so the point solve misses and the answer is now false (WR-73); it stays listed as before. Part of tangency-labs#14246 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtsWyH5fjgiavRsRdt * goldens: tighten the topology-2 certificates after review - Each certificate test replays its unit through the goldens check in the test build and requires every case to agree with its blessed line, so the certificates check the computation the rows record and their side work changes none of them. - Checks are counted per case, and each moved row must have gone through its certified site: the WR-73 rows a `false` answer that kept its proto vertex, the scaled transform rows the closed form, the unit-scale rows the unchanged branch. - WR-73 now checks both answers: `true` removed a listed vertex, `false` left the listing as it was. - The transform identity exit also requires every vertex point to be unchanged, and certificate errors panic instead of skipping. - The WR-101 goldens check is dropped: no goldens case reaches it, and since the main merge WR-101 moves no row. The p2 unit test pins the interval. Part of tangency-labs#14246 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtsWyH5fjgiavRsRdt * goldens: re-bless the topology-2 rows on the merged main After the main merge the retirement moves 41 rows here on top of the earlier re-bless: - topology.proto_topology_p3 (35): the WR-73 rows on main's p3. The three WR-101 rows and gen1717 no longer move, because main (tangency-labs#17399, tangency-labs#16608) refuses the splits that left [dT, dT]. - boolean.api_brep (6): issue1036_coincident_skins_* stay refusals, with status 1001 where it was 1007. WR-73 alone moves them (scratch leave-one-out on the merged head). Part of tangency-labs#14246 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtsWyH5fjgiavRsRdt * plan: update the topology-2 addenda to the merged-main row counts WR-73 moves 72 rows (66 proto-topology answers, 6 boolean refusals whose status code changes), WR-507/508 58 (46 scaled, 12 unit-scale), and WR-101 none since tangency-labs#17399 and tangency-labs#16608. Part of tangency-labs#14246 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: drop a redundant path qualification in the topology-2 certificate test The test module already imports BTreeMap, so clippy's unused_qualifications lint rejects `std::collections::BTreeMap` in the row lookup closure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * solidcore: keep proto_vertex_miss_is_false (WR-73) as a flag for now Retiring WR-73 alone turns a refused shell into an invalid body. In fork_1b016ca_cavity_floor_under_opening (a ribbed block shelled 0.5 inward, open at the rib's outer side 0.15 in), the default shell refused with OffsetFailure::Unsound { NotManifoldSolid } and kept its input. With a miss read as FALSE and offset_resolve_crossing_loops still off, it returns a manifold body of the closed-form volume 587.5 (F/E/V 22/52/34) whose offset top face keeps its crossing loops: check_brep reports "SmLoop::Test #2 Bad Loop Orient" at Level 0 and adds "SmFace::Test tangency-labs#38 Intersecting Face Loops" at Level 2. With offset_resolve_crossing_loops on, the same shell is valid at Level 0 and Level 2 (23/56/36), and the rib 0.6 in is valid either way. WR-73 can retire only together with the crossing-loop resolution (or a shell that refuses crossing offset loops). Restore the flag, its SolidCraft and test flag-list entries, its unit tests and regression test, and drop the WR-73 goldens certificate and its addendum. The WR-507 / WR-508 transform certificate stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: derive the transform certificate's zone from the certified size The WR-507 / WR-508 certificate read the zone back from the transformed body and checked each tolerance against max(zone, t * s), so a body tolerance that did not follow the new model size would still pass. Derive the zone from the box diagonal with size_estimate_to_zone_tol_3d and assert the body's tolerance equals it, bit for bit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: restore the WR-73 rows now that the flag stays With proto_vertex_miss_is_false kept as a flag (off by default), the 72 rows its retirement had moved go back to main's lines exactly: topology.proto_topology_p1 31, topology.proto_topology_p3 35 and boolean.api_brep 6. A full --all --bless on the head moves nothing else; the PR's remaining moved rows are the 61 transform and validation rows (proto_topology_p1 32, brep_mirror 25, brep_constructor 3, brep_p5 1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: re-bless topology.brep_mirror after the catch-up merge The merge took main's side of the conflicting file. `goldens --all --bless` on the merged tree moves only this file, and every row it moves relative to main equals this PR's already-proven row (rowcheck: 61 match, 0 new); the four certificate tests pass on the merged tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: pass the transform certificate log down from each replay The WR-507 / WR-508 certificate counted its checks in a thread_local recorder (FIRED), which the no-global-state rule forbids. Each replay (replay_matches_golden) now owns its per-case logs: it runs the unit through a Replay wrapper whose run_rust hands a fresh log to the runner's run_certified, and the runners of topology.brep_p5, topology.brep_mirror and topology.proto_topology_p1 pass that log explicitly down to every checked transform (Snapshot::check takes it). Plain run_rust keeps a throwaway log, so test builds still check every transform. The checks, their order and the runs' outputs are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: skip the brep_mirror certificate replay without upstream files Every topology.brep_mirror case reads an upstream test file. Without the upstream checkout the replay's cases break, so the certificate test now returns early as successful_near_singular_transform_is_valid_or_known does, and still fails when SOLIDCORE_REQUIRE_UPSTREAM is set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * solidcore: check validation keeps the trim geometry it found wr446_all_trims_present_is_inert compared two runs' trim geometry, both read after validate_pointers, so an edit both runs made would pass. The run now samples every trim before validation and asserts the samples after it are the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * goldens: fix clippy dead-code and unused-self errors in transform runners rust_run in topology_proto_topology_p1 is only called from the p1 and p2 test modules, so gate it with #[cfg(test)] instead of leaving it dead in non-test builds. Runner::run in topology_brep_mirror and topology_brep_p5 never read self, so make it an associated fn called as Self::run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dannyow
pushed a commit
that referenced
this pull request
Nov 17, 2026
* solidcore: claim group-B topology flag retirement Part of tangency-labs#14246: degenerate_proto_edge_in_one_vertex, imprint_extends_edge_to_proto_vertex, keep_operand_uv_trims, face_swap_uv_transposes_trims (proto_edge_splits_at_captured_vertices is held for the open tangency-labs#17340). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * solidcore: retire imprint_extends_edge_to_proto_vertex (tangency-labs#14246 group B) The WR-453 end continuation of an intersection edge to a proto vertex past its end is now the only path. Remove the UpstreamFixes field, SolidCraft's preset line, its fixes.json entry, the goldens enable_fix arm and every test setting of it; delete the tests' flag-off halves. Add the WR-453 addendum (results and proof) and a WR-306 finding addendum recording why degenerate_proto_edge_in_one_vertex cannot retire as is (wr_619 loses a 1e-3 circle; the absorb bound uses the capture distance). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * solidcore: expectations for retiring imprint_extends_edge_to_proto_vertex Test change: re-bless three blend.feature_executive rows on Fillet/fillet1019.smb (fillet_each_fillet1019, fillet_group_fillet1019_rb23, single_face_fillet1019_3); only the defeatured base's digests move. The first and third are PROVEN by issue_3218_defeature_limits (faces on model surfaces, certified volume enclosure); rb23 is MEASURED (L2 clean, manifold, same counts and certified enclosure with and without the extension). wr469's default union worst edge-end gap is 7.034859535377774e-6 (was 7.4750471556652e-6): the extension brings that end nearer its vertex; topology, check, vertex tolerances and volume are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * solidcore: certify fillet1019's three-round defeature (rb23) against the model Add Removed::All to issue_3218_defeature_limits' certify and certify_feature: with rounds 3, 6 and 8 as one feature the base is the plain frustum (12 faces, all on the bottom, top and wall planes within 1.8e-13; the frustum's volume 59980.76795 inside the certified enclosure [59980.7511, 59980.7837]) and the feature is the three gaps as one solid (model volume [666.1098, 666.1485] inside its enclosure [666.0232, 666.2231]). The goldens' fillet_group_fillet1019_rb23 is now PROVEN, not MEASURED. WR-453 addendum: the feature B-reps' digests move too (feature0_record in all three rows, feature0_geometry in rb23); the proof is the certified tests, not the soundness probe's enclosures; the rb23 NotEnclosed refusal went with tangency-labs#16380 (refuses at its parent with the extension on, builds at c04ed90). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * solidcore: pin wr575's 1e-5 row at one gap pair now WR-453's continuation is always on With imprint_extends_edge_to_proto_vertex retired, the default kernel continues the intersection edge that stopped 2.77e-6 short of its proto vertex at the tubes' -y junction vertex. Its edge-use ends there now lie 5.0e-6 from the vertex (the circle edges' own gap) instead of 7.77e-6, under half the vertex tolerance (7.5e-6), so check test SmBrep #0/#2 drops that pair. The remaining pair (8.15e-6, WR-751's) is unchanged. At the +y vertex the other continued edge goes from 2.73e-6 to 1.12e-6. Every other edge-use end of the body has the same gap with and without the continuation. This is the second expectations commit of tangency-labs#17825 (no force-push, so it follows ce3f048 rather than amending it). The row still asserts the exact report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV * Name both tolerances in the WR-306 retirement addendum's absorb bound The containment radius uses the proto vertex's tolerance and upstream's bound the proto edge's; writing both as m_dTol hid the difference behind the gen0960 row (CodeRabbit on tangency-labs#17825). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BUqX4Moqx5bbkSocgEbsSV --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dannyow
pushed a commit
that referenced
this pull request
Nov 18, 2026
…angency-labs#18852) A gap vertex kept by three or more faces was taken as fixed where they meet. Where their planes all run through one line (a ridge, as where a round between a wall and a rib ends on the ridge of a sloped top), the vertex is not fixed: it slides along the ridge to the corner the gap closes at. It stayed, and the rib's top came back with an edge along the ridge out to the round's old tangent point and back, which the check refuses (SmFace tangency-labs#34, SmLoop #2) on every later operation on the body. Such a vertex now moves to the nearest closing corner on all its planes, and a plane meeting the gap only at that corner follows it with its straight edges when every moved corner stays on it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dannyow
pushed a commit
that referenced
this pull request
Nov 18, 2026
…le turn (tangency-labs#18980) A torus found from its NURB (is_nurb_surface_torus, and its rebuild from NURB parameters) takes its tube interval from the angles of the NURB's two ends. A closed tube's ends are one point but carry the rounding of their coordinates; for a 0.05 mm tube 1000 mm from the origin that is about 1.6e-9 degrees, past SM_EFF_ZERO_DEG, so the tube ended short of its generator's whole turn and the check refused the torus (SmSurfOfRevolution #2, SmTorus #2). A circle swept round an arc there (the Dutchman stress corpus S0049 and S0332) could not be joined. The tolerance for the ends is now the recogniser's own length zero (grown with the points' size) turned about the tube's radius, and ends within it close a whole turn exactly. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dannyow
pushed a commit
that referenced
this pull request
Nov 22, 2026
…4) (tangency-labs#18861) Some exporters write an outline that runs out a few microns and back along itself as a wall: one face whose two sides are the same line written twice and whose ends are closed edges that stay within the tolerance of their vertex, sometimes with a cap bounded by such an edge alone. Read as it is, the part fails the check (SmFace tangency-labs#33/tangency-labs#34 coincident edges, SmLoop #2) before any operation, and every join or cut on it is refused. The reader now leaves such a wall out (Assembly::drop_hairpin_faces, before the twin-edge merge): its closed edges drop out of the faces beside it, a face they alone bound goes too, and its two sides, each then used by one face, are made one edge. The reader notes it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Private pre-review on the fork (CodeRabbit trial). Not the upstream PR.
A point picked into the Box window's Point input (and the Sphere and Torus centre) was written into X, Y and Z as millimetre text whatever the design's length unit was. primitive_placement::picked now formats it with length_input::shown, in the design's unit to a millionth of it, so an inch design reads 2 in and 1.5 in, and a millimetre design reads exactly what it did before. The Box made is the same size and in the same place; only the field text changes.
Test: a_point_picked_in_the_box_dialog_reads_in_the_design_unit in primitive_units_tests.rs fails before and passes after; primitive_units_tests 19 passed; fmt, clippy and xtask lists clean.
Summary by CodeRabbit
Changes a default: no