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 normal discontinuity in SDF conePills #779

Merged
merged 2 commits into from
Jun 13, 2019
Merged

fix normal discontinuity in SDF conePills #779

merged 2 commits into from
Jun 13, 2019

Conversation

Speierers
Copy link
Contributor

@Speierers Speierers commented Jun 11, 2019

Cone pills implement a smooth profile (sigmoid-like). Unfortunately, this creates discontinuities in the normals as shown on this render:
current_blend

This pull request fixes this:
smoother

As explained in this article we could use either the smooth() function, or the smoother() function, which have slightly different stepness.

Here using smooth:
smooth

I am not certain what is the better solution in this case.

@Speierers Speierers added the bug label Jun 11, 2019
@Speierers Speierers requested a review from karjonas June 11, 2019 14:50
@Speierers Speierers self-assigned this Jun 11, 2019
@ppodhajski
Copy link
Contributor

retest this please

Copy link
Contributor

@karjonas karjonas left a comment

Choose a reason for hiding this comment

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

Great fix

@Speierers Speierers merged commit 14eeb99 into BlueBrain:master Jun 13, 2019
@Speierers Speierers deleted the normal_discontinuity branch June 13, 2019 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants