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 / Assign an arbitrary point position on a shape as the viewing rotation center?

Forum

Assign an arbitrary point position on a shape as the viewing rotation center?
c.h.Liu2010/03/05 11:07
Hi,Gentlemen:
I am new to occ, (still in assessment process)
When experiencing the drawexe.exe (test harness), I had a viewing problem.
Is there a way to assign an arbitrary point position on a shape as the viewing rotation center?
It seems only rotating around (0,0,0) of any shape in the viewer.
What if the bounding box of the shape does not contain (0,0,0), on the contrary, it is very far from (0,0,0)? (such as the back-door of a car:
the center of a car model is usually between under the two front head-lights)
When i rotate the view, the back-door shape just swing out of the view.
How can i prevent this?
Please give me a hint? (using what tcl command,or what c++ functions?)
(i can understand both)
Tilman Leune2010/03/09 07:44
this is controlled through the v3dView class.

use v3d_view::Rotate():

from the Reference manual:

Standard_EXPORT void      Rotate (const Quantity_PlaneAngle Ax, const Quantity_PlaneAngle Ay, const Quantity_PlaneAngle Az, const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, const Standard_Boolean Start=Standard_True)

     Rotates the eye about the coordinate system of
reference of the screen
for which the origin is Gravity point {X,Y,Z},
with a relative angular value in RADIANS with respect to
the initial position expressed by Start = Standard_True
c.h.Liu2010/03/09 15:34
Much thank,Tilman. I'll try it latter.
 
 
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