Skip to content

Conversation

@maartenbreddels
Copy link
Collaborator

Maps integer data to a single color, and gives a dropdown to select which layers to show
Example usage:

ipv.figure()

light = ipv.light_ambient(intensity=0.4);
ipv.light_hemisphere(intensity=1);
tf = ipv.transfer_function_discrete(2, labels=["gap", "solid"], enabled=[False, True], colors=["#ff0000", "#00ff00"])

volume = ipv.volshow(solid, tf=tf)
ipv.show()

discrete-transfer-function

@maartenbreddels maartenbreddels force-pushed the feat_discrete_transfer_function branch 2 times, most recently from e0fa972 to 1e71b93 Compare July 7, 2023 14:23
@maartenbreddels maartenbreddels force-pushed the feat_discrete_transfer_function branch from 1e71b93 to 8664ea5 Compare July 7, 2023 14:39
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