remove unused variable
This commit is contained in:
@ -2,8 +2,7 @@ import cadquery as cq
|
||||
|
||||
# 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
|
||||
@ -28,13 +27,13 @@ cbore_depth = 2.1 # Bolt head pocket hole depth
|
||||
# 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")
|
||||
|
Reference in New Issue
Block a user