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

drawing a point and arrows for a newly created local coordinate system

James Ha's picture


I am trying to create a point named p2 (1,1,1) on a new local coordinate system, called a1.

I created a local coordinate system a1 with 'gp_Ax2', but I am having trouble putting a dot on the center of this new local coordinate system and drawing arrows indicating x,y,z direction of the system.

my code is below.

def axis():
    p = gp_Pnt(1., 0., 0.)
    d = gp_Dir(1., 0., 0.)
    a1 = gp_Ax2(p, d)
    display.DisplayShape(p2, update=True)
    display.DisplayMessage(p2, "P2")


Thanks in advance.

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.