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

@ -27,7 +27,9 @@ license:
See the License for the specific language governing permissions and
limitations under the License.
"""
from build123d import *
from ocp_vscode import show
class Club(BaseSketchObject):
@ -169,6 +171,4 @@ with BuildPart() as lid_builder:
extrude(amount=-wall_t, mode=Mode.SUBTRACT)
lid = lid_builder.part.moved(Location((0, 0, (wall_t + pocket_t) / 2)))
if "show_object" in locals():
show_object(box, name="box")
show_object(lid, name="lid", options={"alpha": 0.6})
show(box, lid, names=["box", "lid"], alphas=[1.0, 0.6])