For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages


viviana andrea agudelo moreno's picture


I have made a rotation like this:

gp_Trsf Rotar;
TopoDS_Shape ATopo1, ATopo2;

Rotar.SetRotation(gp::OX(), this->Get_AngRotX());
BRepBuilderAPI_Transform xrot(Topo, Rotar);
ATopo1 = xrot.Shape();

Rotar.SetRotation(gp::OY(), this->Get_AngRotX());
BRepBuilderAPI_Transform xrot(ATopo1, Rotar);
ATopo2 = xrot.Shape();

But it appears to rotate the hole coordinates system, that means that when I rotate with this code and my object is not initially at the origin (0,0,0), the new object appears in other point of the space and also rotated. I just want to rotate the object without moving his origin. What am I doing wrong?

Another question is: How can I get the information of the parameters of the object (position and dimensions) once it has been shown as an interactive object?

The last question is because maybe I have to remove the translation that it has been made, and the only way is to know where is the object.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.