Repository navigation
test(LBIE): AdapterKeepsLbiesHexahedronCorners expects #808's fitted sphere - #830
Merged
Merged
Conversation
…sphere Master fails LbieMesherTest.AdapterKeepsLbiesHexahedronCorners on every platform: mean scaled Jacobian 0.49893 < 0.5. #802 added the test and #808 merged 13 minutes later from a branch that never had it, so neither PR's CI ran the two together. The mesh is fine; the threshold was set on the wrong mesh. The test's sphere (17^3 samples over [-1,1]^3, voxels 0.125 across) meshes as 27 hexahedra, a 3x3x3 block with 64 vertices, before and after #808. Measured: - #802's LBIE: the block was a cube inside the sphere. Its 56 outer vertices were 0.31-0.50 from the centre (radius 0.5), every hexahedron ~1.0, mean 0.9996. - #808's LBIE: the 56 outer vertices are on the sphere (0.491-0.513). The edge and corner hexahedra become wedges: mean 0.499, worst 0.218, none inverted. - The pre-#802 twisted adapter on today's mesh: every hexahedron inside out, mean -0.78. So the check that matters is that no hexahedron is inverted. The test now requires every hexahedron to be right-handed (it allowed a tenth to be inverted) and a mean above 0.4 instead of 0.5. The twisted layout still fails both by far.
transfix
enabled auto-merge (squash)
October 27, 2026 00:13
transfix
added a commit
that referenced
this pull request
Oct 27, 2026
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
Master is red on every platform since #808 merged:
LbieMesherTest.AdapterKeepsLbiesHexahedronCornersfails with a mean scaled Jacobian of 0.49893, against a limit of 0.5. The value is identical on Linux, macOS and Windows; see master'spackage-linux / libcvc-debugandpackage-macos / libcvc-debugjobs for a87215b. Every PR cut from master inherits it, for example #825.How it happened: #802 added this test, and #808 merged 13 minutes later from a branch that never contained #802 (their merge base is 3cb8c4c). Neither PR's CI ran the two together.
Cause: #808 fitted the mesh to the sphere; the threshold assumed the old cube
The test's sphere (17³ samples over [−1,1]³, voxels 0.125 across) meshes as 27 hexahedra, a 3×3×3 block with 64 vertices, both before and after #808. Measured with a temporary diagnostic (not committed):
So nothing is broken: #808's grid-unit fix reached hexahedra too, and bending the block onto the sphere turns its edge and corner hexahedra into wedges. The test exists to catch twisted (inverted) hexahedra, and the twisted layout still scores −0.78.
Change
Test only:
src/cvc/tests/lbie_mesher_test.cpp.Verification
lbie_mesher_test, the whole binary, passes all 58 tests: Windows, MSVC 14.44 Release, cvcpkg prefix.