Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forum
Open Source community
Training and e-learning
A la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forum / MoveTo() hilighting object in wrong location

Forum

MoveTo() hilighting object in wrong location
EricThompson2010/08/05 17:28
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.

Thanks!
Paul Jimenez2010/08/09 08:05
Any chance it may be caused by http://www.opencascade.org/org/forum/thread_14852/ ?
EricThompson2010/08/09 19:44
Paul-

Thanks for the suggestion, but that does not appear to be the problem in my case.
Forum supervisor2010/08/27 12:01
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
 
 
Latest news
  • FAQ section updated
  • OPEN CASCADE Uses Intel ® Parallel Studio XE to Introduce Parallelism into SALOME SMESH Module
  • Open CASCADE Technology 6.5.2 is available for download!

  • © OPEN CASCADE 2000 - 2012  |  Search  |  Contacts   |  Site map