fix stroke bug

This commit is contained in:
Adrian Mariano 2023-04-16 09:05:44 -04:00
parent a37b5d735d
commit d8669065a8
2 changed files with 3 additions and 2 deletions

View file

@ -397,7 +397,8 @@ module stroke(
// Need 90 deg offset to make wedge perpendicular to path, and the wedge // Need 90 deg offset to make wedge perpendicular to path, and the wedge
// position depends on whether we turn left (ang<0) or right (ang>0) // position depends on whether we turn left (ang<0) or right (ang>0)
theta = v_theta(v1) - sign(ang)*90; theta = v_theta(v1) - sign(ang)*90;
ang_eps = 0.1; ang_eps = sign(ang)/10;
if (!approx(ang,0)) if (!approx(ang,0))
arc(d=widths[i], angle=[theta-ang_eps, theta+ang+ang_eps], wedge=true); arc(d=widths[i], angle=[theta-ang_eps, theta+ang+ang_eps], wedge=true);
} }

View file

@ -181,7 +181,7 @@
// threaded_rod(d=10, l=20, pitch=1.25, left_handed=true, $fa=1, $fs=1); // threaded_rod(d=10, l=20, pitch=1.25, left_handed=true, $fa=1, $fs=1);
// threaded_rod(d=25, l=20, pitch=2, $fa=1, $fs=1, end_len=1.5, bevel=true); // threaded_rod(d=25, l=20, pitch=2, $fa=1, $fs=1, end_len=1.5, bevel=true);
// threaded_rod(d=25, l=20, pitch=2, $fa=1, $fs=1, blunt_start=false); // threaded_rod(d=25, l=20, pitch=2, $fa=1, $fs=1, blunt_start=false);
// Example(BIG,NoAxes): Diamond threading where both left-handed and right-handed nuts travel (in the same direction) on the threaded rod: // Example(Big,NoAxes): Diamond threading where both left-handed and right-handed nuts travel (in the same direction) on the threaded rod:
// $fn=32; // $fn=32;
// $slop = 0.075; // $slop = 0.075;
// d = 3/8*INCH; // d = 3/8*INCH;