Skip to content

Commit e14dee8

Browse files
author
tdevillemagne
committed
update core geometry example
1 parent 87e8250 commit e14dee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/core_geometry_face_recognition_from_stepfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ def exit(event=None):
133133

134134
if __name__ == "__main__":
135135
display, start_display, add_menu, add_function_to_menu = init_display()
136-
display.SetSelectionModeFace() # switch to Face selection mode
137136
display.register_select_callback(recognize_clicked)
138137
# first loads the STEP file and display
139138
shp = read_step_file(
140139
os.path.join("..", "assets", "models", "face_recognition_sample_part.stp")
141140
)
142-
display.DisplayShape(shp, update=True)
141+
display.DisplayShape(shp, update=True)
142+
display.SetSelectionModeFace() # switch to Face selection mode
143143
add_menu("recognition")
144144
add_function_to_menu("recognition", recognize_batch)
145-
start_display()
145+
start_display()

0 commit comments

Comments
 (0)