fix(geometry): honor polyline OCS in commands

Route editing and derived geometry through kernel world-space curves.\n\nRefs #797\nRefs #798\nRefs #799
This commit is contained in:
Hakan Seven 2026-08-18 22:09:48 +03:00
commit 7c818d15e9
12 changed files with 127 additions and 60 deletions

View file

@ -2677,13 +2677,21 @@ impl OpenCADStudio {
}
}
acadrust::EntityType::LwPolyline(p) => {
for v in &mut p.vertices {
let Some(mut world) =
crate::entities::curve::lwpolyline_world_xy(p)
else {
continue;
};
for v in &mut world.vertices {
if in_win(v.location.x, v.location.y) {
v.location.x += dx;
v.location.y += dy;
stretched = true;
}
}
if stretched {
*p = world;
}
}
acadrust::EntityType::Polyline2D(p) => {
for v in &mut p.vertices {