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

MoveTo() from AIS_InteractiveContext sometimes doesn't redraw the viewer, even if the flag is set to true #176

Open
VladislavVitalievichRomashko opened this issue Dec 2, 2024 · 1 comment
Labels
1. Visualization AIS cases, animation, ray-tracing, viewer integration into external software and etc... 2. Bug Something isn't working 5. Internal

Comments

@VladislavVitalievichRomashko

Category

Visualization

Severity

Minor

Description

The method MoveTo() being called with the flag theToRedrawOnUpdate = true, sometimes doesn't redraw the viewer. It depends on whether it detects anything under the mouse or not. If not, the method does nothing, including the redrawing of the viewer. It seems it would be better if it does what it is asked to do.

Expected Behavior

Redrawing of the viewer, if the flag is set to true.

Actual Behavior

If nothing is detected, it doesn't redraw the viewer in spite of the value of the input flag.

Sample Code or DRAW Tcl Script

ctx->MoveTo(winx, winy, view, true);

Operating System

Windows

Compiler

MSVC

Compiler Version

2019

Bitness

32-bit

OCCT Version

7.6

Precise OCCT Version or Branch

7.6

Environment

No response

Additional Files

No response

@dpasukhi dpasukhi added 2. Bug Something isn't working 1. Visualization AIS cases, animation, ray-tracing, viewer integration into external software and etc... labels Dec 3, 2024
@dpasukhi
Copy link
Member

dpasukhi commented Dec 5, 2024

Possible and recommended solution: update method description to have clear definition.
The issue was based on 2 MoveTo calls one by one, where the first - without asking to redraw, the second with the same argument to move, but with ask to redraw.

@dpasukhi dpasukhi moved this from Todo to Analyzing in Maintenance Dec 11, 2024
@dpasukhi dpasukhi moved this from Analyzing to Todo in Maintenance Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Visualization AIS cases, animation, ray-tracing, viewer integration into external software and etc... 2. Bug Something isn't working 5. Internal
Projects
Status: Todo
Development

No branches or pull requests

2 participants