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

ENH add blend_curvature method to Vertex, Vertex2D, and VertexRGB #425

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

TomDLT
Copy link
Contributor

@TomDLT TomDLT commented Jan 27, 2022

Vertex objects cannot use transparency as Volume objects because they are implemented differently in the viewer.
This PR adds a method to Vertex, Vertex2D, and VertexRGB, to mimic the transparency of Volume objects. The method blends the Vertex data with a curvature map, depending on a transparency (alpha) map, and returns a VertexRGB object.

It is a workaround for #323 and #387, using the method described in #323 (comment).

Copy link
Contributor

@mvdoc mvdoc left a comment

Choose a reason for hiding this comment

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

cool!

@mvdoc mvdoc merged commit 56eb1d8 into gallantlab:main Jan 28, 2022
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