display a local coordinate origin

Hi,everyone! My current OCC program requires moving a local coordinate in the global coordinate space and display the local coordinate origin along with its 3 axises with different colors, just like the UCS(user coordinate system) in AutoCAD. Then all the models created are located in respect to the local coordinate space. Can anybody tell me does OCC provide such functionality or should I create the local coordinate origin and the 3 axies myself, if so, how to place(display) them always on top of other objects?

jjgu_153562's picture

Hi, I am a beginner of OCC. I plan to build and display some coordinate systems with OCC. Would you please tell me how to create and display the coordinate origin along with its 3 axises with different colors?

Benjamin Bihler's picture

Your question does not fit to the topic of the original post. Anyway, for displaying coordinate systems I use this code:

Handle(AIS_InteractiveObject) interactiveObject = new AIS_Trihedron(new Geom_Axis2Placement(...));

Hope it helps...

Benjamin