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

Add a VolumeCutPlanes class #21

Merged
merged 2 commits into from Oct 7, 2014
Merged

Conversation

jwiggins
Copy link
Member

@jwiggins jwiggins commented Oct 6, 2014

This is an ABCVolumeSceneMember which creates and manages image cut planes which start out in the X, Y, and Z planes.

data_level = (data_low + data_high) / 2.0
data_radius = (data_high - data_low) / 2.0
level = data_level - data_radius * self.cut_brightness
radius = data_radius * pow(2, -self.cut_contrast)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you break these computations out into a separate function with a docstring explaining what is being done?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can break them out, but I don't have a docstring because I didn't write this code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does that mean that you don't know what's going on either?

Copy link
Member Author

Choose a reason for hiding this comment

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

Other than "adjusting the brightness and contrast", no.

@jwiggins
Copy link
Member Author

jwiggins commented Oct 7, 2014

Unit tests have been updated.

@noraderam
Copy link
Contributor

Thanks for testing!

noraderam pushed a commit that referenced this pull request Oct 7, 2014
@noraderam noraderam merged commit 1c2d447 into master Oct 7, 2014
@noraderam noraderam deleted the feature/volume-render-cut-planes branch October 7, 2014 19:34
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.

None yet

2 participants