fix(revcloud): correct arcs and property editing

This commit is contained in:
ramox81 committed 2026-08-20 14:43:55 +03:00
1 parent 4f375da191
commit be2335bfa1
4 files changed
+230 -19

No files matched your search

+5 -1
View File
@@ -798,7 +798,11 @@ fn make_revcloud(
if area.abs() <= f64::EPSILON {
return None;
}
let outward = if area > 0.0 { -1.0 } else { 1.0 };
// A positive bulge bows to the right of the directed chord in the
// lightweight-polyline convention used by the renderer. A
// counter-clockwise guide therefore needs positive bulges for the bumps
// to remain outside the enclosed boundary (and vice versa).
let outward = if area > 0.0 { 1.0 } else { -1.0 };
let bulge = BUMP_BULGE * outward * if reverse { -1.0 } else { 1.0 };
let mut vertices = Vec::new();
for index in 0..points.len() {