-
-
Notifications
You must be signed in to change notification settings - Fork 372
Initial Implementation of the Normal rendering mode. #2811
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
base: master
Are you sure you want to change the base?
Conversation
|
\ci fast |
4de79a4 to
ba33574
Compare
|
That looks good. I've run the main CI but I think you will have to add a test to cover the warning. Let's see what the coverage check says. |
8838220 to
7c6f3ab
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2811 +/- ##
==========================================
- Coverage 96.73% 96.71% -0.02%
==========================================
Files 154 154
Lines 13256 13291 +35
==========================================
+ Hits 12823 12855 +32
- Misses 433 436 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| ngs.GlyphMapper->SetSourceConnection(arrowSource->GetOutputPort()); | ||
| ngs.GlyphMapper->SetOrientationModeToDirection(); | ||
| ngs.GlyphMapper->SetOrientationArray(vtkDataSetAttributes::NORMALS); | ||
| ngs.GlyphMapper->SetScaleFactor(0.2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should that depends on the bounds of the data ?
| ngs.InputDataHasNormals = points->GetPointData()->GetNormals() != nullptr; | ||
|
|
||
| vtkNew<vtkArrowSource> arrowSource; | ||
| ngs.GlyphMapper->SetInputData(points); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you use masking ?
| this->ColoringPointSpritesMappersConfigured = true; | ||
| } | ||
|
|
||
| //// Handle Normal Glyphs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| //// Handle Normal Glyphs | |
| // Handle Normal Glyphs |
|
|
||
| /** | ||
| * Set the visibility of the normal glyphs actor. | ||
| * It will only be shown if raytracing and volume, and Point Sprites are not enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is not super clear
mwestphal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes needed
Describe your changes
Implement the Normal Rendering mode, displaying arrows on top of the geometry to depict vertex normals.
Added option
--normal-glyphswith bindingctrl+nto toggle on/off.Added auto-test for the functionality.
Issue ticket number and link if any
Issue #4
Checklist for finalizing the PR
.github/workflows/versions.json, I have updateddocker_timestampContinuous integration
Please write a comment to run CI, eg:
\ci fast.See here for more info.