-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utility for symmetric metric #155
Comments
Is it not sufficient to just apply the |
Oh hang on, do you mean symmetric in space rather than within the entries at a given point? |
Ah sorry for not being clear! I did mean in space, yes - so that the generated mesh would be symmetric. |
And I think my suggestion would only work if the original mesh is symmetric so that the new and old nodes would still align after the transformation Also saw this repo now https://github.com/MmgTools/MirrorMesh |
Hey @jwallwork23, could you please tell me what you think about the workflow below? I modified the
|
Would it not be sufficient to just interpolate the rotated metric rather than rotating the mesh and interpolating between meshes? To copy a mesh I normally do |
That won't work if
Thanks, but that doesn't seem to create a deepcopy unfortunately (the above example doesn't work). I'll dig more :) |
And just a sidenote... having a symmetric metric doesn't guarantee at all that the mesh will be symmetric. But it should be close enough. |
How about |
But even with rotating the mesh you still interpolate back into |
Please could you clarify in what sense you want the metric to be symmetric? I was under the impression you wanted it to be symmetric (e.g.) in the |
Will start by saying that if you think this isn't something worth spending time on at the moment, please don't waste time thinking about it. I am just working on this for my lock exchange case and thought I'd implement it here while it's fresh, but can get back to it later :)
Sadly not. When I do
Ah great point with supermeshing! And yes, sorry - I am assuming that the original mesh isn't horribly asymmetric.
In my specific case (lock exchange) I indeed want to have 180deg rotational symmetry. But I thought that this approach is quite general if we wanted to add this utility to animate: transform the metric in whatever way (reflect, rotate...) and take the mean. |
I think that it would be useful to add a utility to make the metric symmetric, as we'd want to sometimes have a symmetric mesh (when the problem is symmetric). I guess we can do this easily by copying the metric, rotating it and then taking the mean of the two?
The text was updated successfully, but these errors were encountered: