refactor(wire): add WireModel.points_low parallel buffer (empty default)

Foundation for double-single positions: WireModel now carries an
index-paired f32 residual buffer (`points_low`) next to the existing
`points` high half. Empty means "all-zero residual", so every existing
constructor (interactive draw, previews) is unchanged in behaviour;
tessellation from CAD f64 will fill it in the next steps so vertex
precision survives at UTM-scale coordinates.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 4.7 committed 2026-06-23 18:28:52 +03:00
1 parent a0b4968ad2
commit 97d6993768
39 files changed
+72 -1

No files matched your search

+5
View File
@@ -1158,6 +1158,7 @@ fn tessellate_dimension_inner(
wires.push(WireModel {
name: name.clone(),
points: ext1,
points_low: Vec::new(),
color: ext_color,
selected,
aci: 0,
@@ -1177,6 +1178,7 @@ fn tessellate_dimension_inner(
wires.push(WireModel {
name: name.clone(),
points: ext2,
points_low: Vec::new(),
color: ext_color,
selected,
aci: 0,
@@ -1196,6 +1198,7 @@ fn tessellate_dimension_inner(
wires.push(WireModel {
name: name.clone(),
points: geom.ext_lines,
points_low: Vec::new(),
color: ext_color,
selected,
aci: 0,
@@ -1216,6 +1219,7 @@ fn tessellate_dimension_inner(
wires.push(WireModel {
name: name.clone(),
points: geom.dim_lines,
points_low: Vec::new(),
color: dim_color,
selected,
aci: 0,
@@ -1247,6 +1251,7 @@ fn tessellate_dimension_inner(
wires.push(WireModel {
name: name.clone(),
points: vec![],
points_low: Vec::new(),
color: fill_color,
selected,
aci: 0,
+2
View File
@@ -603,6 +603,7 @@ impl LeaderTess for Leader {
return WireModel {
name,
points: vec![],
points_low: Vec::new(),
color,
selected,
aci: 0,
@@ -701,6 +702,7 @@ impl LeaderTess for Leader {
WireModel {
name,
points,
points_low: Vec::new(),
color,
selected,
aci: 0,
+6
View File
@@ -1295,6 +1295,7 @@ impl MultiLeaderTess for MultiLeader {
wires.push(WireModel {
name: name.clone(),
points,
points_low: Vec::new(),
color: line_color,
selected,
aci: 0,
@@ -1541,6 +1542,7 @@ impl MultiLeaderTess for MultiLeader {
wires.push(WireModel {
name: name.clone(),
points: vec![p0, p1],
points_low: Vec::new(),
color: text_color,
selected,
aci: 0,
@@ -1581,6 +1583,7 @@ impl MultiLeaderTess for MultiLeader {
wires.push(WireModel {
name: name.clone(),
points: vec![],
points_low: Vec::new(),
color: text_color,
selected,
aci: 0,
@@ -1619,6 +1622,7 @@ impl MultiLeaderTess for MultiLeader {
wires.push(WireModel {
name: name.clone(),
points: text_points,
points_low: Vec::new(),
color: text_color,
selected,
aci: 0,
@@ -1676,6 +1680,7 @@ impl MultiLeaderTess for MultiLeader {
wires.push(WireModel {
name: name.clone(),
points: vec![],
points_low: Vec::new(),
color: fill_color,
selected,
aci: 0,
@@ -1704,6 +1709,7 @@ impl MultiLeaderTess for MultiLeader {
wires.push(WireModel {
name,
points: frame_points,
points_low: Vec::new(),
color: text_color,
selected,
aci: 0,
+1
View File
@@ -702,6 +702,7 @@ pub fn tessellate_table(
WireModel {
name: name.clone(),
points,
points_low: Vec::new(),
color,
selected,
pattern_length: 0.0,