Move and Rotation Problem

Hi guys,
i have problem to move and rotate model file.
please let me know, if you have any idea to avoid this.

fine attached file(BREP file) and movie for your understand
model file : http://www.solutionware.co.kr/Plate.brep
movie(captured by using cad exchanger) : http://www.solutionware.co.kr/occ.mp4

Shing Liu's picture

hi,
I test the file in the example program ImportExport, when I zoom in then rotate, the model will disappear.

Forum supervisor's picture

Hello Benjamin,

It would be good if you could provide some means to reproduce your problem - a CAD file, scenario in Draw etc.

Alternatively, if you want to look onto a very small part of a big model, you might choose another rotation center (e.g. point under the mouse cursor) to keep this part within the camera position.

Best regards,

Forum supervisor

Forum supervisor's picture

Hello Benjamin,

We have sent to you a personal message - please, check your mailbox.

As for your specific problem: often applications use V3d_View::StartRotation() method to start the rotation process and then call V3d_View::Rotation(int X, int Y) on mouse move.

V3d_View::StartRotation() defines the anchor point for rotation as the center of bounding box(es) of the object(s) currently visible in the viewer.

With big zoom factor, this point might be very far away from what user see on the screen, causing object fly off the screen even with a very small rotation step.

To prevent such behavior, an application might specify an alternative anchor point by calling other overloads of V3d_View::Rotate() method.

For example - the point might be specified as a point on an object right under the mouse cursor, which can be retrieved from selection services.

Best regards,

Forum supervisor