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

display a local coordinate origin

davenkin's picture
Forums: 

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?

Junjie Gu'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

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.