Updated Examples

This commit is contained in:
gumyr 2024-02-29 11:34:40 -05:00
parent 78a73a9963
commit f43dac38e2
56 changed files with 677 additions and 574 deletions

View file

@ -1,4 +1,7 @@
# [Code]
from build123d import *
from ocp_vscode import show_object
segment_count = 6
@ -32,8 +35,8 @@ for i in range(segment_count + 1):
# Create the handle by sweeping along the path
handle = sweep(sections, path=handle_path, multisection=True)
if "show_object" in locals():
show_object(handle_path.wrapped, name="handle_path")
for i, circle in enumerate(sections):
show_object(circle.wrapped, name="section" + str(i))
show_object(handle, name="handle", options=dict(alpha=0.6))
show_object(handle_path.wrapped, name="handle_path")
for i, circle in enumerate(sections):
show_object(circle.wrapped, name="section" + str(i))
show_object(handle, name="handle", options=dict(alpha=0.6))
# [End]