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

Smooth By Normals #776

Merged
merged 8 commits into from
Mar 26, 2024
Merged

Smooth By Normals #776

merged 8 commits into from
Mar 26, 2024

Conversation

elalish
Copy link
Owner

@elalish elalish commented Mar 25, 2024

Follow-on to #771, that allows smoothing based on input normal properties. Has the convenient side effect of making a solid test since we now have two different paths to create the same type of smoothing, in the case of sharp edges.

I also added ForVert, which I think is a good start toward addressing #775.

@elalish elalish self-assigned this Mar 25, 2024
@hrgdavor
Copy link

mm, this look interesting, could you add a screenshot or two ?

@elalish
Copy link
Owner Author

elalish commented Mar 25, 2024

This is still WIP, even once I merge this. I still need to add quad support, as right now it's still pretty ugly.

@elalish elalish requested a review from pca006132 March 26, 2024 00:02
@pca006132
Copy link
Collaborator

Will take a bit of time for me to review this, I have a hundred assignments to grade, probably will review this weekend.

template <typename T>
void ForVert(int halfedge, std::function<T(int halfedge)> transform,
std::function<void(int halfedge, const T& here, const T& next)>
binaryOp) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

@pca006132 Don't worry about a serious review - I was mostly curious if you thought this was a reasonable way to handle #775.

@elalish elalish merged commit 3e05284 into master Mar 26, 2024
16 checks passed
@elalish elalish deleted the normalsmooth branch March 26, 2024 16:30
@elalish elalish mentioned this pull request Jun 12, 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.

3 participants