three-cad-viewer 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,6 +22,7 @@ interface EdgeData {
|
|
|
22
22
|
edges: Float32Array | number[][];
|
|
23
23
|
segments_per_edge?: number[] | Uint32Array;
|
|
24
24
|
obj_vertices?: Float32Array | number[];
|
|
25
|
+
edge_types?: number[] | Uint8Array | Uint32Array;
|
|
25
26
|
}
|
|
26
27
|
interface VertexData {
|
|
27
28
|
obj_vertices: Float32Array | number[];
|
|
@@ -87606,11 +87606,14 @@ class NestedGroup {
|
|
|
87606
87606
|
// widen + recolor the flagged segment in-shader (Option A).
|
|
87607
87607
|
this.highlight?.patchEdgeMaterial(edges.material);
|
|
87608
87608
|
// Internal measurement backend: record the standalone edge node's geometry
|
|
87609
|
-
// (obj_vertices lets the hover status resolve a picked corner's coords
|
|
87609
|
+
// (obj_vertices lets the hover status resolve a picked corner's coords,
|
|
87610
|
+
// edge_types the exact curve type — without it every edge reads as "other"
|
|
87611
|
+
// and a circle/arc loses its center + radius readout).
|
|
87610
87612
|
this.meshGeometry.register(path, {
|
|
87611
87613
|
edges: edgeData.edges,
|
|
87612
87614
|
segments_per_edge: edgeData.segments_per_edge,
|
|
87613
87615
|
obj_vertices: edgeData.obj_vertices,
|
|
87616
|
+
edge_types: edgeData.edge_types,
|
|
87614
87617
|
}, group, null);
|
|
87615
87618
|
}
|
|
87616
87619
|
group.setEdges(edges);
|
|
@@ -97308,7 +97311,7 @@ class Tools {
|
|
|
97308
97311
|
}
|
|
97309
97312
|
}
|
|
97310
97313
|
|
|
97311
|
-
const version = "5.0.
|
|
97314
|
+
const version = "5.0.2";
|
|
97312
97315
|
|
|
97313
97316
|
/**
|
|
97314
97317
|
* `PickedComponent` over a GPU id-pick result. Drives the shader
|