![在这里插入图片描述](https://img-blog.csdnimg.cn/9aa40ca740334d21989c11943d1bff71.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA6aOO6Zuo6aOY5pGH5Lit55qE55-z5a
S0,size_9,color_FFFFFF,t_70,g_se,x_16)
gp_Pnt_0 = gp_Pnt(30,30, 5)
gp_Pnt_1 = gp_Pnt(30, 30, 6)
display.DisplayShape(gp_Pnt_0, update=True)
display.DisplayShape(gp_Pnt_1, update=True)
qumian=qiumian()
face_1=[]
anFaceExplorer_1 = TopExp_Explorer(qumian, TopAbs_FACE) #
while anFaceExplorer_1.More(): # 有更多子形状去挖掘
anFAce_1 = topods.Face(anFaceExplorer_1.Current()) # 当前被探索到的子形状是哪一个, topods_Vertex
aface_1 = BRep_Tool.Surface(anFAce_1) # 转换成gp_Pnt
face_1.append(aface_1) # 加入数据
display.DisplayShape(anFAce_1, update=True) # 顯示
anFaceExplorer_1.Next() # 下一个子形状
point_1= GeomAPI_ProjectPointOnSurf(gp_Pnt_0, face_1[0])#曲面
point_2 = GeomAPI_ProjectPointOnSurf(gp_Pnt_1, face_1[0]) # 曲面
display.DisplayShape(qumian, update=True)
display.DisplayShape(point_1.Point(1), update=True)#
display.DisplayShape(point_1.Point(1), update=True)#
display.DisplayShape(point_2.Point(1), update=True) #
display.DisplayShape(point_2.Point(1), update=True) #