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

Isosurface opacity #3545

Merged
merged 13 commits into from
Feb 18, 2019
Merged

Isosurface opacity #3545

merged 13 commits into from
Feb 18, 2019

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Feb 15, 2019

This PR enables opacity attribute for isosurface traces.
Also it addressed bug #3546 and removed the second drawings to find the edges see here.

In addition some improvements such as reduction of tolerance (to remove glitch in mesh generation #3547) are made in this PR. Various functions now return true or false result in case triangles are generated. This information is stored in the first pass & could be used in second pass processes.

This PR would be helpful for the volume PR #3488.
@plotly/plotly_js

Before codepen.
After codepen.

@archmoj archmoj added the bug something broken label Feb 15, 2019
@etpinard
Copy link
Contributor

@archmoj Is this one ready to review?

@@ -235,10 +235,11 @@ colorscaleAttrs('', {

colorbar: colorbarAttrs,

contour: meshAttrs.contour,
opacity: meshAttrs.opacity,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably point out in the mesh3d attributes that the current behavior isn't perfect and may be subject to change in the (near) future cc #3243

@archmoj
Copy link
Contributor Author

archmoj commented Feb 15, 2019

@archmoj Is this one ready to review?

Yes please. @etpinard I thank you in advance!

@etpinard
Copy link
Contributor

Looks good!

#3545 (comment) is my only comment.

@etpinard etpinard added this to the v1.45.0 milestone Feb 15, 2019
@archmoj
Copy link
Contributor Author

archmoj commented Feb 16, 2019

Looks good!

#3545 (comment) is my only comment.

@etpinard Thanks for the review.
In respect to your comment, it is done in abc8ae2.

@etpinard
Copy link
Contributor

Thanks @archmoj !

💃

@archmoj archmoj merged commit 0714286 into master Feb 18, 2019
@archmoj archmoj deleted the isosurface-opacity branch February 18, 2019 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken feature something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants