Use oriented kernel bisectors for opposite XLINE rays

This commit is contained in:
ramox81 committed 2026-09-11 13:24:49 +03:00
1 parent b42a9e7735
commit bc63d8a716
1 file changed
+3 -1
+3 -1
View File
@@ -165,7 +165,9 @@ impl XLineCommand {
let base = self.base?;
let first = self.reference?.1;
let last = (pt - base).try_normalize()?;
(base, first + last)
let direction = cadkernel::space::curve::angle_bisector(
first.to_array(), last.to_array(), self.plane.z.to_array())?;
(base, DVec3::from_array(direction))
}
XLineMode::OffsetSide => {
let (base, dir) = self.reference?;