Skip to content

Commit 289d6af

Browse files
spin direction sign fix
1 parent ef61090 commit 289d6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

attachments.scad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3755,7 +3755,7 @@ function _find_anchor(anchor, geom) =
37553755
direction= unit(mean([for(face=edgefaces) polygon_normal(select(vnf[0],vnf[1][face]))])),
37563756
edgedir = edge[1]-edge[0],
37573757
nz = [for(i=[0:2]) if (!approx(edgedir[i],0)) i],
3758-
flip = last(nz) < 0 ? -1 : 1,
3758+
flip = edgedir[last(nz)] < 0 ? -1 : 1,
37593759
spin = _compute_spin(direction, flip*edgedir)
37603760
)
37613761
[direction,spin]

0 commit comments

Comments
 (0)