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 committed 2026-08-18 22:09:48 +03:00
1 parent 08f4cc97f8
commit 7c818d15e9
12 files changed
+127 -60

No files matched your search

+8
View File
@@ -1012,6 +1012,10 @@ pub struct FilletCommand {
impl FilletCommand {
pub fn new(radius: f64, all_entities: Vec<EntityType>) -> Self {
let all_entities: Vec<EntityType> = all_entities
.iter()
.map(crate::entities::curve::entity_with_lwpolyline_world_xy)
.collect();
let entity_index = ModifyEntityIndex::build(&all_entities);
Self {
radius: radius as f64,
@@ -1392,6 +1396,10 @@ pub struct ChamferCommand {
impl ChamferCommand {
pub fn new(dist: f64, all_entities: Vec<EntityType>) -> Self {
let all_entities: Vec<EntityType> = all_entities
.iter()
.map(crate::entities::curve::entity_with_lwpolyline_world_xy)
.collect();
let entity_index = ModifyEntityIndex::build(&all_entities);
Self {
dist1: dist as f64,