Skip to content
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

Fix vertex_attributes subdivisions and corresponding test added. #2322

Merged
merged 2 commits into from
Nov 9, 2024

Conversation

dbukenberger
Copy link
Contributor

Hey Mike,

I think in the simple subdivision routine, the vertex attribute computation somehow got a bit jumbled.
There is some linear triangle-edge interpolation going on - but the new attributes do not match the values that I would have expected.

Thus, I have simplified the per-edge attribute interpolation to be analog to the actual subdiv-vertex position computation and added a testcase to verify.

Cheers
Dennis

@mikedh mikedh changed the base branch from main to test/iteration November 9, 2024 17:50
@mikedh mikedh merged commit 2a769fa into mikedh:test/iteration Nov 9, 2024
9 checks passed
@mikedh
Copy link
Owner

mikedh commented Nov 9, 2024

Looks good, thanks for the fix and test! Yeah I agree simpler is probably better here.

@mikedh mikedh mentioned this pull request Nov 9, 2024
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