Skip to content

simplify mesh with mach #1

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

Open
wants to merge 1 commit into
base: flow360
Choose a base branch
from

Conversation

majinge7846
Copy link

No description provided.

@majinge7846 majinge7846 marked this pull request as draft August 18, 2023 08:06
@majinge7846 majinge7846 marked this pull request as ready for review August 18, 2023 08:06
float ei = quadricError(qi, vertex_positions[i1]);
float ej = quadricError(qj, vertex_positions[j1]);

if(fabsf(vertex_mach[i1] - vertex_mach[j1]) >= mach_bound256) {
Copy link

@awkrupka awkrupka Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main difference - when mach value difference at opposite edge points pass a given threshold we set error to a high value which prevents collapse, looks good.

Copy link

@awkrupka awkrupka Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea - if we wanted to collapse the mesh further we could try checking whether the parameter-wise second derivatives of the velocity field (rate of gradient change) are non-zero in preprocessing - for values close to zero we could collapse the edges anyway and handle color changes from the shader via simple builtin UV bilinear interpolation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants