MoveTo() hilighting object in wrong location

I'm having a problem with object hilighting in some cases. It works fine in 3 of my OpenCascade views, but is offset vertically in a 4th view. ( Each view is viewing a seperate interactive context. ) The amount of offset is proportional to the view scale.

I find that I can correct the problem by adjusting my y value as follows before calling MoveTo():

double scale = (*myView).Scale(); // Odd notation because using an arrow does not post to forum well
y = y - (int)(0.65*scale);

This hack is working, but if anyone can tell me what I'm doing wrong that is causing the error, I'd prefer to fix it right.


Paul Jimenez's picture

Any chance it may be caused by ?

EricThompson's picture


Thanks for the suggestion, but that does not appear to be the problem in my case.

Forum supervisor's picture

Hello Eric,

This problem is now registered with reference number OCC21986 "[OCC Forum] MoveTo() hilighting object in wrong location".

Thank you for your cooperation.
Yours sincerely,
Forum Supervisor

Forum supervisor's picture

Dear Eric,
Can you check if the problem is still reproduced in your application with OCCT 6.8.0 beta?
In fact, we don't have any information about your application design and thus can't reproduce the problem ourselves.
Best regards