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

Any way to create a gizmo

Alex Sbyshko's picture


I need to create a gizmo in the visualizer for selected objects.

Something like in attached picture.

Are there some general tips on how to do this with OpenCASCADE?

Or at least how draw any shape on screen which will be attached to the "camera" and not changes its size when zoomed/rotated?

Daniel Neander's picture


This may not be the best way

Have a look at OpenGl_Trihedron for drawing it (this doesn't include selection). ViewerTest_OpenGlCommands.cxx has example of using OpenGl_Element.

For creating plane from part transformation

Handle(Geom_Axis2Placement) shapeCoordSystemPlacement = new Geom_Axis2Placement(gp::XOY());


Handle(Geom_Plane) axe_xy_plane = new Geom_Plane(shapeCoordSystemPlacement->Location(), shapeCoordSystemPlacement->Direction());

Handle(Geom_Plane) axe_xz_plane = new Geom_Plane(shapeCoordSystemPlacement->Location(), shapeCoordSystemPlacement->YDirection());

Handle(Geom_Plane) axe_yz_plane = new Geom_Plane(shapeCoordSystemPlacement->Location(), shapeCoordSystemPlacement->XDirection());

For other calculations use

Alex Sbyshko's picture

Thank you very much, Daniel! You helped me a lot :)

Forum supervisor's picture

Dear Alex,

You can try the new interactive object AIS_Manipulator.
This object is not yet available in OCCT master, but it can be retrieved from the branch CR27038_3 of official git repository.
You are welcome to our support services if you need any help!

Best regards

Alex Sbyshko's picture

Oh, that is really great! Thank you all for help!

Daniel Neander's picture

Thats great news

jelle's picture

AIS_Manipulator sounds exciting indeed...

Mimosa Olive's picture

You mean a gimbal.. not a gizmo

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.