display = self.occWidget._display
display.SetSelectionModeVertex() # This is the required function
display.register_select_callback(recognize_clicked)
你在哪里
def recognize_clicked(shp, *kwargs):
""" This is the function called every time
a face is clicked in the 3d view
"""
for shape in shp:
print("Face selected: ", shape)
好的,找到了。万一有人需要:
你在哪里
面选择-
SetSelectionModeFace()
顶点选择-
SetSelectionModeVertex()
边选择-
SetSelectionModeEdge()
形状选择-
SetSelectionModeShape()
中性(默认)选择-
SetSelectionModeNeutral()
这就是我在其他例子中发现的所有模式。请,如果你发现更多,写在一个评论,该资源。你知道吗
相关问题 更多 >
编程相关推荐