Skip to content

Commit 6475822

Browse files
committed
sign for arclines
1 parent 7216032 commit 6475822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/offset_polyline_raw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ pub fn arcs_to_raws_single(arcs: &Arcline) -> Vec<OffsetRaw> {
151151
// to identify which endpoint connects to next arc
152152
let bulge = if seg_b_to_next_a || seg_b_to_next_b {
153153
// seg.b connects to next arc -> seg is normal (positive bulge)
154-
1.0
154+
-1.0
155155
} else {
156156
// seg.a connects to next arc -> seg is reversed (negative bulge)
157-
-1.0
157+
1.0
158158
};
159159

160160
let orig = if bulge < ZERO { seg.a } else { seg.b };

0 commit comments

Comments
 (0)