feat(dgn-ls): dash walls from start + fix wall connector and cap identity

DET pipe walls now carry the stroke pattern (dash_from_start), which
tiles from each wall's own start vertex and skips the A-type end
alignment that was force-lighting a solid dash under the end symbol.

Two rendering fixes on top:
- Dedup the host polyline's vertices before offsetting the walls. Some
  DGN pipe polylines carry trailing duplicate end vertices; a zero-length
  segment gave offset_xy a degenerate normal, leaving that vertex
  un-offset and folding the wall down to the centre line. The two walls'
  fold segments met at the centre and drew a spurious line linking them.
- Re-key the symbol (end circle / half-ellipse) wires to the host handle
  so the whole pipe picks and selects as one entity instead of the
  symbols acting as separate phantom entities.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-07-17 01:49:18 +03:00
commit 48e6d0d553
42 changed files with 124 additions and 8 deletions

View file

@ -1352,6 +1352,7 @@ fn tessellate_dimension_inner(
let (ext1, ext2) = split_ext_lines(&geom.ext_lines);
if !ext1.is_empty() {
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points: ext1,
@ -1374,6 +1375,7 @@ fn tessellate_dimension_inner(
}
if !ext2.is_empty() {
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points: ext2,
@ -1396,6 +1398,7 @@ fn tessellate_dimension_inner(
}
} else {
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points: geom.ext_lines,
@ -1419,6 +1422,7 @@ fn tessellate_dimension_inner(
}
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points: geom.dim_lines,
@ -1458,6 +1462,7 @@ fn tessellate_dimension_inner(
aci_to_rgba(&c)
};
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points: vec![],

View file

@ -589,6 +589,7 @@ impl LeaderTess for Leader {
if verts.len() < 2 {
return WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name,
points: vec![],
@ -691,6 +692,7 @@ impl LeaderTess for Leader {
}
WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name,
points,

View file

@ -1399,6 +1399,7 @@ impl MultiLeaderTess for MultiLeader {
// WireModels so the renderer respects per-piece coloring.
let mut wires: Vec<WireModel> = Vec::new();
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points,
@ -1682,6 +1683,7 @@ impl MultiLeaderTess for MultiLeader {
xy = xy.max(y);
}
wires.push(WireModel {
dash_from_start: false,
text_verts: sdf_verts,
name: name.clone(),
points: vec![],
@ -1745,6 +1747,7 @@ impl MultiLeaderTess for MultiLeader {
wcs_corners[3],
];
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points: vec![],
@ -1776,6 +1779,7 @@ impl MultiLeaderTess for MultiLeader {
wcs_corners[0],
];
wires.push(WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name,
points: frame_points,

View file

@ -748,6 +748,7 @@ pub fn tessellate_table(
let mk =
|color: [f32; 4], points: Vec<[f32; 3]>, fill_tris: Vec<[f32; 3]>, lw: f32| -> WireModel {
WireModel {
dash_from_start: false,
text_verts: Vec::new(),
name: name.clone(),
points,