Merge pull request #571 from revarbat/revarbat_dev

Corrected assertion in trapezoidal_threaded_rod()
This commit is contained in:
Revar Desmera 2021-06-08 18:09:58 -07:00 committed by GitHub
commit 7315d7f1ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,7 @@ module trapezoidal_threaded_rod(
higthr1 = ceil(higang1 / 360); higthr1 = ceil(higang1 / 360);
higthr2 = ceil(higang2 / 360); higthr2 = ceil(higang2 / 360);
pdepth = -min(subindex(profile,1)); pdepth = -min(subindex(profile,1));
dummy1 = assert(_r1>2*pdepth) assert(_r2>2*pdepth); dummy1 = assert(_r1>pdepth) assert(_r2>pdepth);
skew_mat = affine3d_skew(sxz=(_r2-_r1)/l); skew_mat = affine3d_skew(sxz=(_r2-_r1)/l);
side_mat = affine3d_xrot(90) * side_mat = affine3d_xrot(90) *
affine3d_mirror([-1,1,0]) * affine3d_mirror([-1,1,0]) *