Added FreeCAD examples 5 through 7 and cleaned up the other examples a tiny bit.

This commit is contained in:
Jeremy Wright
2014-06-23 16:54:48 -04:00
parent 15e53f1762
commit 0fcd01b3b0
7 changed files with 128 additions and 8 deletions

View File

@ -26,10 +26,10 @@ rectange_length = 19.0
thickness = 13.0
#Extrude a cylindrical plate with a rectangular hole in the middle of it
bb = cadquery.Workplane("front").circle(circle_radius).rect(rectangle_width, rectange_length).extrude(thickness)
result = cadquery.Workplane("front").circle(circle_radius).rect(rectangle_width, rectange_length).extrude(thickness)
#Get a cadquery solid object
solid = bb.val()
solid = result.val()
#Use the wrapped property of a cadquery primitive to get a FreeCAD solid
Part.show(solid.wrapped)