Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenRubens committed Jan 16, 2021
1 parent 3098c90 commit 1afae0a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/Ex003_Pillow_Block_With_Counterbored_Holes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

# These can be modified rather than hardcoding values for each dimension.
length = 80.0 # Length of the block
width = 60.0 # Width of the block
height = 100.0 # Height of the block
width = 100.0 # Width of the block
thickness = 10.0 # Thickness of the block
center_hole_dia = 22.0 # Diameter of center hole in block
cbore_hole_diameter = 2.4 # Bolt shank/threads clearance hole diameter
Expand All @@ -15,7 +14,7 @@
# and 4 counterbored holes for bolts
# 1. Establishes a workplane that an object can be built on.
# 1a. Uses the X and Y origins to define the workplane, meaning that the
# positive Z direction is "up", and the negative Z direction is "down".
# positive Z direction is "up", and the negative Z direction is "down".
# 2. The highest(max) Z face is selected and a new workplane is created on it.
# 3. The new workplane is used to drill a hole through the block.
# 3a. The hole is automatically centered in the workplane.
Expand All @@ -28,13 +27,13 @@
# hole is placed at each of the vertices (all 4 of them at once).
result = (
cq.Workplane("XY")
.box(length, height, thickness)
.box(length, width, thickness)
.faces(">Z")
.workplane()
.hole(center_hole_dia)
.faces(">Z")
.workplane()
.rect(length - cbore_inset, height - cbore_inset, forConstruction=True)
.rect(length - cbore_inset, width - cbore_inset, forConstruction=True)
.vertices()
.cboreHole(cbore_hole_diameter, cbore_diameter, cbore_depth)
.edges("|Z")
Expand Down

0 comments on commit 1afae0a

Please sign in to comment.