MeshTools::all_rbb() to generate IGA rational quadratic meshes#4442
Merged
Conversation
This takes an interpolated quadratic Lagrange mesh and turns it into an IGA (Rational Bezier-Bernstein) mapped mesh, assuming that all curves are intended to be circular/cylindrical/spherical.
1D on the X axis is pointless, but 1D meshes embedded in 2D or 3D space may still benefit from perfect circles.
This still gets us isogeometry on aligned cylinders, but also on cones and some types of spheres, and gets us a sort of optimality on non-exactly-representable surfaces.
It's the same either way but it just read wrong the other way.
I was about to stop capturing it, to fix an unused var warning, but this is better.
GiudGiud
reviewed
May 21, 2026
Thanks to Guillaume for catching these
This is still a hack I'm working on replacing, but now it's a *slightly faster* hack!
Just because it's trivial doesn't definitely mean it's not broken!
Even a p=1 face can have a different volume if the vertex weights differ and the face is embedded in 3D with non-coplanar vertices.
I'm not sure when we'll try using RBB polygons, but if we started now we actually wouldn't need the specialization for this one.
The R part is working but I didn't realize we'd never implemented the BB part, and that'll be a separate PR.
I was trying to be clever with my if statements but I was missing out on all sorts of complications; the code was fine but the tests weren't even close.
GiudGiud
reviewed
May 24, 2026
Contributor
|
btw I can't resolve threads with this level of permissions either |
This is more robust in general, plus I need it to get a robust Hex27 solution
Glad that clang++ caught this!
GiudGiud
approved these changes
May 26, 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.
This needs proper test coverage before merging but I've been letting it sit in a separate branch for too long and I want to at least make sure it's not interfering with any CI builds.