diff --git a/notebook_nueva/hinged_lid.py b/notebook_nueva/hinged_lid.py index 914d3be..a5694d5 100644 --- a/notebook_nueva/hinged_lid.py +++ b/notebook_nueva/hinged_lid.py @@ -35,15 +35,20 @@ def model(): # Hollow box .workplane(offset=-thickness / 2) .box(width, height, thickness) + .edges("|X and >Z and Z and >Y") + .fillet(5) .edges("|Z") .fillet(2) .faces("X") - .workplane(centerOption="CenterOfBoundBox") + .workplane() .center(height / 2 - hinge_offset, thickness / 2 - hinge_radius) .tag("rightSide") + # Outer surface of the hinge + .workplaneFromTagged("rightSide") .placeSketch(cq.Sketch().circle(hinge_radius)) .extrude(-width) # Cut middle section between the hinges diff --git a/notebook_nueva/hinged_lid.stl b/notebook_nueva/hinged_lid.stl index 0e9945f..ce878f6 100644 Binary files a/notebook_nueva/hinged_lid.stl and b/notebook_nueva/hinged_lid.stl differ diff --git a/notebook_nueva/hinged_lid.svg b/notebook_nueva/hinged_lid.svg index 4d2c098..72d083a 100644 --- a/notebook_nueva/hinged_lid.svg +++ b/notebook_nueva/hinged_lid.svg @@ -6,67 +6,73 @@ height="240.0" > - + - + - + - + - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + - + @@ -78,7 +84,6 @@ - @@ -92,23 +97,26 @@ - - - - + - - + - - + + - - + + + + + + + + + @@ -125,14 +133,10 @@ - - + + - - - - @@ -148,12 +152,12 @@ + - @@ -163,13 +167,19 @@ - - + + + + + + + + + - - - - + + + @@ -177,30 +187,33 @@ - - - - - - - - - + + + + + + + + + + + + + - - + - + + - - - - + + + @@ -208,12 +221,32 @@ - + + + - - + + + + + + + + + + + + + + + + + + + +