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
Forums: 

HI

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)
    
    p2=????
    display.DisplayShape(p2, update=True)
    display.DisplayMessage(p2, "P2")

 axis()

Thanks in advance.