-
-
Notifications
You must be signed in to change notification settings - Fork 399
Add control for coordinate precision shifting and scaling and fix widgets #3345
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -694,8 +694,14 @@ function vtkOpenGLGlyph3DMapper(publicAPI, model) { | |
| const garray = model.renderable.getMatrixArray(); | ||
|
|
||
| const pts = model.renderable.getInputData(0).getPoints(); | ||
| const { useShiftAndScale, coordShift, coordScale } = | ||
| computeCoordShiftAndScale(pts); | ||
| let useShiftAndScale = false; | ||
| let coordShift = 0.0; | ||
| let coordScale = 1.0; | ||
|
|
||
| if (model.renderable.getCoordShiftScaleEnabled() && pts) { | ||
| ({ useShiftAndScale, coordShift, coordScale } = | ||
| computeCoordShiftAndScale(pts)); | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of having a flag, could you detect when shift/scale have "bad" values ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe a metric could be computed with regard to the current camera settings. |
||
|
|
||
| if (model.hardwareSupport) { | ||
| // update the buffer objects if needed | ||
|
|
||
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.
please add comment to explain when/why you would want to turn it off.