Skip to content

fix(glyph): clear stale source shift scale#3493

Open
PaulHax wants to merge 1 commit intoKitware:masterfrom
PaulHax:glyph3dmapper-stale-shift-scale-test
Open

fix(glyph): clear stale source shift scale#3493
PaulHax wants to merge 1 commit intoKitware:masterfrom
PaulHax:glyph3dmapper-stale-shift-scale-test

Conversation

@PaulHax
Copy link
Copy Markdown
Collaborator

@PaulHax PaulHax commented Apr 29, 2026

Bug fix. Clear stale coordinate shift/scale state on glyph source VBOs when vtkGlyph3DMapper no longer needs shift/scale normalization for glyph centers.

Details

vtkGlyph3DMapper applies shift/scale normalization to glyph center matrices for large coordinate ranges. It also applies the same transform to glyph source primitives after the base PolyDataMapper builds source VBOs.

Previously, when a later frame no longer required center shift/scale, the mapper stopped applying the transform to center matrices but did not clear the previous transform from the source primitive CABOs. That left glyph centers and glyph source geometry using different coordinate transforms.

This updates Glyph3DMapper to always set the source primitive shift/scale state: pass the computed shift/scale when active, otherwise pass null, null to clear stale state.

Copy link
Copy Markdown
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

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

LGTM but @jadh4v may know more than me about shift/scale.

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