from OCC.Core.gp import gp_Pnt
p1 = gp_Pnt(1,2,3)
p2 = gp_Pnt(2,3,4)
dist_p1_p2 = p1.Distance(p2)
注释:gp_Pnt的Distance可以计算两点距离
from OCC.Core.gp import gp_Pnt
p1 = gp_Pnt(1,2,3)
p2 = gp_Pnt(2,3,4)
dist_p1_p2 = p1.Distance(p2)
注释:gp_Pnt的Distance可以计算两点距离