From 54d30c7cf14d0e250cdb712de2a09fb0651812ee Mon Sep 17 00:00:00 2001 From: Martin Walters <104021577+waltersma@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:32:56 +0100 Subject: [PATCH] Update 11_solder_ball.py --- examples/gallery/11_solder_ball.py | 46 +++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/examples/gallery/11_solder_ball.py b/examples/gallery/11_solder_ball.py index 73e96ea345..62391ab22e 100644 --- a/examples/gallery/11_solder_ball.py +++ b/examples/gallery/11_solder_ball.py @@ -99,11 +99,11 @@ # Display the model without the infill so the cylindrical geometry of the solder # is visible. -display = PrimePlotter() -display.plot( - model, scope=prime.ScopeDefinition(model=model, label_expression="solder_cyl*,pad*,layer*") -) -display.show() +# display = PrimePlotter() +# display.plot( +# model, scope=prime.ScopeDefinition(model=model, label_expression="solder_cyl*,pad*,layer*") +# ) +# display.show() ############################################################################### # Connect geometry @@ -142,9 +142,9 @@ ) scaffolder.merge_overlapping_topo_faces(merged_part.get_topo_faces(), params) -display = PrimePlotter() -display.plot(model) -display.show() +# display = PrimePlotter() +# display.plot(model) +# display.show() ############################################################################### # Volume sweeper @@ -194,9 +194,9 @@ prime.lucid.Mesh(model).surface_mesh(min_size=0.2, scope=base_scope, generate_quads=True) -display = PrimePlotter() -display.plot(model) -display.show() +# display = PrimePlotter() +# display.plot(model) +# display.show() stackbase_results = sweeper.stack_base_face( part_id=merged_part.id, @@ -212,9 +212,9 @@ merged_part._print_mesh = True print(merged_part) -display = PrimePlotter() -display.plot(model) -display.show() +# display = PrimePlotter() +# display.plot(model) +# display.show() ############################################################################### # Import sphere geometry for match morphing @@ -231,9 +231,9 @@ imported_cad_part_ids = [part.id for part in model.parts if part.get_topo_faces()] target_part = model.get_part(imported_cad_part_ids[0]) -display = PrimePlotter() -display.plot(model, scope=prime.ScopeDefinition(model, part_expression=target_part.name)) -display.show() +# display = PrimePlotter() +# display.plot(model, scope=prime.ScopeDefinition(model, part_expression=target_part.name)) +# display.show() print(model) @@ -349,13 +349,13 @@ model.delete_parts([target_part.id]) -display = PrimePlotter() -display.plot(model) -display.show() +# display = PrimePlotter() +# display.plot(model) +# display.show() -display = PrimePlotter() -display.plot(model, scope=prime.ScopeDefinition(model=model, label_expression="solder*")) -display.show() +# display = PrimePlotter() +# display.plot(model, scope=prime.ScopeDefinition(model=model, label_expression="solder*")) +# display.show() ############################################################################### # Export mesh