ss-component-new 1.3.49 → 1.3.50
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.
- package/dist/{MTLLoader-D-urUdrf.cjs → MTLLoader-CEOtxyh2.cjs} +1 -1
- package/dist/{MTLLoader-EdMOXCr9.js → MTLLoader-GkOcupU3.js} +40 -40
- package/dist/{OrbitControls-Bqm95jie.js → OrbitControls-BFsEQ8wY.js} +1 -1
- package/dist/{OrbitControls-CsZhoVbh.cjs → OrbitControls-Cg-eGwSp.cjs} +1 -1
- package/dist/{URDFLoader-Dv2_yu9H.cjs → URDFLoader-VqEU-Bt0.cjs} +1 -1
- package/dist/{URDFLoader-Dj_qDDyi.js → URDFLoader-ehXmhBFT.js} +200 -200
- package/dist/{animationData-B3clqdCz.js → animationData-5o0D2SPA.js} +18 -18
- package/dist/{animationData-j8q9GL9s.cjs → animationData-h3_OEBhG.cjs} +1 -1
- package/dist/{array-DBmb_dbA.cjs → array-DN-yv0nl.cjs} +1 -1
- package/dist/{array-CuxW2kDp.js → array-_E6SKuKJ.js} +4 -4
- package/dist/{iconfont-CNymCHn6.cjs → iconfont-D0Cr9kuj.cjs} +1 -1
- package/dist/{iconfont-CvYchHEP.js → iconfont-DCFi7bPb.js} +46 -46
- package/dist/{index-CNydDYrN.cjs → index-B-1umMBk.cjs} +1 -1
- package/dist/{index-DQQGHkNg.cjs → index-B1U12Kov.cjs} +1 -1
- package/dist/{index-CISOplCk.js → index-B2iB_sIJ.js} +7 -8
- package/dist/{index-C2uQtrJb.js → index-B6jDYtpC.js} +8 -8
- package/dist/{index-BU_tmMwb.js → index-B7QR-Lou.js} +2 -2
- package/dist/index-BEQHIheQ.cjs +1 -0
- package/dist/{index-BeljvnZD.cjs → index-BFKHCjkd.cjs} +1 -1
- package/dist/{index-DAMlyIHp.js → index-BFMsMcD8.js} +4936 -5119
- package/dist/{index-C--Cb4yz.cjs → index-BJWrNIga.cjs} +1 -1
- package/dist/index-BJac5xKn.cjs +1 -0
- package/dist/{index-DOMPCPNk.js → index-BQSHrnLz.js} +3 -3
- package/dist/{index-Dqqp33r1.cjs → index-BZST7lPo.cjs} +11 -11
- package/dist/{index-COudEqtW.js → index-B_4AbtRg.js} +7 -7
- package/dist/{index-DVccu9rG.js → index-BdgLWDfL.js} +2111 -2353
- package/dist/{index-XroQ9gxP.js → index-BfEF_JC6.js} +7 -7
- package/dist/{index-CS4i2VJg.js → index-BgDSEEhr.js} +7 -7
- package/dist/{index-BRRItZG6.js → index-BnlicLlu.js} +2 -2
- package/dist/{index-N47WYmXL.cjs → index-C0KanvaS.cjs} +1 -1
- package/dist/{index-DvkpICHb.js → index-C1QaJ_Nu.js} +3 -3
- package/dist/{index-BvlEnbTN.js → index-CFn5-3eu.js} +2 -2
- package/dist/index-CGchY9n4.cjs +1 -0
- package/dist/{index-DQdNqcDC.js → index-CJIRsR3f.js} +2 -2
- package/dist/{index-CwhxnRyA.js → index-CX12hzsx.js} +1545 -1510
- package/dist/{index-D7dH9fVy.js → index-ClKAqw9M.js} +8 -8
- package/dist/{index-Dnry90NJ.js → index-CnKvPKWE.js} +3 -3
- package/dist/{index-CW3QZYd0.cjs → index-Cw_ZOIg_.cjs} +1 -1
- package/dist/{index-CaQxsLai.js → index-CwiUgaGI.js} +5 -5
- package/dist/index-D3MoBe24.cjs +15 -0
- package/dist/index-D6D9SCPa.cjs +1 -0
- package/dist/{index-DfcsvIY5.cjs → index-DB8oLdoK.cjs} +1 -1
- package/dist/{index-B94M9CMw.cjs → index-DLPQoVA6.cjs} +1 -1
- package/dist/{index-D3_jq7cX.cjs → index-DQJPWEqk.cjs} +1 -1
- package/dist/{index-9nY56-QR.cjs → index-DYQ5ZvYh.cjs} +1 -1
- package/dist/{index-CVLV7-M9.js → index-DYSziVz4.js} +9 -9
- package/dist/{index-BKrkAcBB.cjs → index-DcLb0XZD.cjs} +1 -1
- package/dist/{index-C9K9NG79.cjs → index-Dg5D5xCR.cjs} +1 -1
- package/dist/{index-DO_oafZe.js → index-Dg8irIqw.js} +5 -5
- package/dist/{index-DECdW2FW.js → index-DgVgB13t.js} +1 -1
- package/dist/{index-7G6RnWL-.js → index-DnkflWQf.js} +1 -1
- package/dist/{index-DLsU_7sc.js → index-DrFxQ8Ki.js} +2 -2
- package/dist/{index-D1TGlpbP.cjs → index-DwaW_eAE.cjs} +1 -1
- package/dist/{index-CGAzwavt.js → index-DzkWy2PD.js} +638 -639
- package/dist/{index-osT7gQ0k.cjs → index-F3XHv6p-.cjs} +1 -1
- package/dist/{index-DaObODQd.cjs → index-FrwJsit5.cjs} +1 -1
- package/dist/{index-CebyFRzl.cjs → index-KJ5I6heb.cjs} +1 -1
- package/dist/{index-CVhEAMxc.cjs → index-WSa1Enje.cjs} +1 -1
- package/dist/{index-C4Y_0Pqx.js → index-Wkp3bFzx.js} +1 -1
- package/dist/{index-MtuCSFch.js → index-XyzV8czh.js} +3 -3
- package/dist/{index-BBpfH3U5.cjs → index-aliiazw8.cjs} +1 -1
- package/dist/{index-B_ab3YNj.js → index-hkchRNAV.js} +10 -11
- package/dist/{index-CZ_1yrbo.cjs → index-tADecIkG.cjs} +1 -1
- package/dist/{index-DhdGSuCy.cjs → index-z2md-yku.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dim6PXfX.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js} +27358 -26694
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BimFR8f6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DD10WrJ2.cjs} +392 -382
- package/dist/{index.vue_vue_type_style_index_1_lang-DlkNXxzZ.cjs → index.vue_vue_type_style_index_1_lang-CdWzb_V-.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-RJi0lv4v.js → index.vue_vue_type_style_index_1_lang-LDqCgKnI.js} +57 -57
- package/dist/{main-aZoig-Ic.cjs → main-Bv2Plrj7.cjs} +1 -1
- package/dist/{main-CKRcAjah.js → main-CsLazQpe.js} +4 -4
- package/dist/{menuIndex-BOUigvDC.cjs → menuIndex-CnGLkky9.cjs} +1 -1
- package/dist/{menuIndex-C1JdgI18.js → menuIndex-I5ECgNWt.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +15 -15
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-BZ92nN2I.js → threeModel-Cnyc_Xfm.js} +45 -45
- package/dist/{threeModel-DocL2Wps.cjs → threeModel-Dy7yCJzh.cjs} +1 -1
- package/dist/{threePreview-Bg9IDV16.js → threePreview-CAXTHct3.js} +137 -137
- package/dist/{threePreview-rZ-Mn3yx.cjs → threePreview-rc0Y3L69.cjs} +1 -1
- package/dist/{threeSceneView-D9GroZ9j.cjs → threeSceneView-BUb8pd-o.cjs} +1 -1
- package/dist/{threeSceneView-FqQJ7ZrG.js → threeSceneView-DsioOlOb.js} +137 -137
- package/dist/{threeSceneViewForCPMPIP-WugeC6sT.cjs → threeSceneViewForCPMPIP-D6en-lGr.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BKeIA1xt.js → threeSceneViewForCPMPIP-vG44vNGe.js} +8 -8
- package/dist/{threeTrackPathView-Dx18ZIwF.js → threeTrackPathView-BaONHAhM.js} +56 -56
- package/dist/{threeTrackPathView-BE28zw_v.cjs → threeTrackPathView-CZTeW2Pq.cjs} +1 -1
- package/dist/{threeViewerHost-Dn4RvDFi.js → threeViewerHost-CLtCJAE_.js} +14 -14
- package/dist/{threeViewerHost-ZjhprZMr.cjs → threeViewerHost-DO4F_9O0.cjs} +1 -1
- package/dist/{urdfTree-C_IB0S4H.cjs → urdfTree-CnCpOTGQ.cjs} +1 -1
- package/dist/{urdfTree-D4JGxfMF.js → urdfTree-DrdQVTXa.js} +1 -1
- package/dist/{workpieceTreePanel-Di9vo3vC.cjs → workpieceTreePanel-BFPaqDJD.cjs} +1 -1
- package/dist/{workpieceTreePanel-jgqhd2py.js → workpieceTreePanel-BLpxZYf-.js} +72 -72
- package/package.json +1 -1
- package/dist/index-3m8kfH7_.js +0 -38
- package/dist/index-BM--4cI-.cjs +0 -1
- package/dist/index-DX9jk8Sp.cjs +0 -11
- package/dist/index-Dc1Bh93L.cjs +0 -1
- package/dist/index-LEeC_fJN.cjs +0 -1
- package/dist/index-syxWjmqB.cjs +0 -15
- package/dist/index-ytduJbtp.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as Le, ref as h, watch as ne, shallowRef as be, computed as
|
|
2
|
-
import { r as
|
|
3
|
-
import { u as Je, a as Qe, b as et, C as tt } from "./iconfont-
|
|
4
|
-
import { U as lt, u as ot, a as at, W as nt } from "./workpieceTreePanel-
|
|
5
|
-
import { c as st } from "./index-
|
|
1
|
+
import { defineComponent as Le, ref as h, watch as ne, shallowRef as be, computed as ke, onUnmounted as Ie, resolveComponent as U, createElementBlock as Te, openBlock as Q, createElementVNode as u, createVNode as l, withCtx as M, createBlock as ye, createCommentVNode as Pe, unref as X, toDisplayString as he, onMounted as Ge, onBeforeUnmount as Ze, Fragment as He, renderList as Ke, nextTick as qe, withDirectives as pe, vShow as de, renderSlot as Me } from "vue";
|
|
2
|
+
import { r as De, s as Ye } from "./threeViewerHost-CLtCJAE_.js";
|
|
3
|
+
import { u as Je, a as Qe, b as et, C as tt } from "./iconfont-DCFi7bPb.js";
|
|
4
|
+
import { U as lt, u as ot, a as at, W as nt } from "./workpieceTreePanel-BLpxZYf-.js";
|
|
5
|
+
import { c as st } from "./index-CX12hzsx.js";
|
|
6
6
|
import { a6 as it, E, at as rt, an as ct } from "./index-B8HqIYd5.js";
|
|
7
|
-
import {
|
|
8
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
+
import { ac as Ve, ad as xe, V, aa as H, ab as ut, aD as pt, a1 as Se, aE as dt, aF as mt, aG as vt, aH as ft, aI as gt, aJ as ht, aK as bt, aL as yt, a7 as _t, aM as Be, aN as wt, aO as Ct, aP as Pt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_1_lang-LDqCgKnI.js";
|
|
9
9
|
import "./index-BHtNKL1L.js";
|
|
10
10
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
11
|
-
import "./index-
|
|
12
|
-
import { f as
|
|
13
|
-
import { g as
|
|
11
|
+
import "./index-DYSziVz4.js";
|
|
12
|
+
import { f as kt, a as xt, g as Rt, b as Mt } from "./animationData-5o0D2SPA.js";
|
|
13
|
+
import { g as Dt, a as Tt, b as Vt, c as St, U as At, J as $t } from "./urdfTree-DrdQVTXa.js";
|
|
14
14
|
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import { s as Ft } from "./index-
|
|
15
|
+
import { s as Ft } from "./index-DnkflWQf.js";
|
|
16
16
|
import { T as Y } from "./svgIcon-4u4PW7Is.js";
|
|
17
17
|
const I = 1e-3, oe = ut.degToRad, Ee = new dt({
|
|
18
18
|
// 灰色
|
|
@@ -44,8 +44,8 @@ const Ne = (y) => y.reduce((v, d) => {
|
|
|
44
44
|
if (d > 0 && (s.pos.add(s.localY.clone().multiplyScalar(d * I)), v.push(s.pos.clone())), m > 0 && _ > 0) {
|
|
45
45
|
const b = oe(m), f = _ * I, w = s.pos.clone().add(s.localX.clone().multiplyScalar(-f)), n = Math.max(16, Math.ceil(m / 5));
|
|
46
46
|
for (let C = 1; C <= n; C++) {
|
|
47
|
-
const p = b * C / n,
|
|
48
|
-
v.push(
|
|
47
|
+
const p = b * C / n, P = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(P), D = w.clone().add(c);
|
|
48
|
+
v.push(D);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
return v;
|
|
@@ -69,7 +69,7 @@ function Yt(y, v) {
|
|
|
69
69
|
if (f > 0) {
|
|
70
70
|
const p = a.pos.clone();
|
|
71
71
|
a.pos.add(a.localY.clone().multiplyScalar(f * I));
|
|
72
|
-
const
|
|
72
|
+
const P = a.pos.clone(), r = Lt(p, P, v * I);
|
|
73
73
|
r.userData = {
|
|
74
74
|
segmentType: "straight",
|
|
75
75
|
segmentIndex: m,
|
|
@@ -81,11 +81,11 @@ function Yt(y, v) {
|
|
|
81
81
|
Bt(d, _, c, v * I), m++;
|
|
82
82
|
}
|
|
83
83
|
if (n > 0 && C > 0) {
|
|
84
|
-
const p = oe(n),
|
|
84
|
+
const p = oe(n), P = C * I, r = [];
|
|
85
85
|
r.push(a.pos.clone());
|
|
86
|
-
const c = a.pos.clone().add(a.localX.clone().multiplyScalar(-
|
|
87
|
-
for (let g = 1; g <=
|
|
88
|
-
const
|
|
86
|
+
const c = a.pos.clone().add(a.localX.clone().multiplyScalar(-P)), D = Math.max(16, Math.ceil(n / 5));
|
|
87
|
+
for (let g = 1; g <= D; g++) {
|
|
88
|
+
const T = p * g / D, B = new H().makeRotationAxis(a.localZ, T), Z = a.localX.clone().multiplyScalar(P).applyMatrix4(B), ee = c.clone().add(Z);
|
|
89
89
|
r.push(ee);
|
|
90
90
|
}
|
|
91
91
|
const A = Ut(r, v * I);
|
|
@@ -114,12 +114,12 @@ function Bt(y, v, d, a) {
|
|
|
114
114
|
w.computeLineDistances(), y.add(w);
|
|
115
115
|
const n = document.createElement("canvas"), C = n.getContext("2d");
|
|
116
116
|
n.width = 128, n.height = 128, C.clearRect(0, 0, 128, 128), C.fillStyle = "#FF0000", C.font = "bold 80px Arial", C.textAlign = "center", C.textBaseline = "middle", C.fillText(v.toString(), 64, 64);
|
|
117
|
-
const p = new ht(n),
|
|
117
|
+
const p = new ht(n), P = new bt({
|
|
118
118
|
map: p,
|
|
119
119
|
transparent: !0,
|
|
120
120
|
depthTest: !1,
|
|
121
121
|
depthWrite: !1
|
|
122
|
-
}), r = new yt(
|
|
122
|
+
}), r = new yt(P), c = a * 3;
|
|
123
123
|
r.scale.set(c, c, 1), r.position.copy(_), r.name = `Label_${v}`, r.userData = { labelNumber: v }, y.add(r);
|
|
124
124
|
}
|
|
125
125
|
function Lt(y, v, d) {
|
|
@@ -153,29 +153,29 @@ function je(y, v, d, a, m, _ = 0) {
|
|
|
153
153
|
localX: new V(1, 0, 0),
|
|
154
154
|
localZ: new V(0, 0, 1)
|
|
155
155
|
};
|
|
156
|
-
const
|
|
156
|
+
const P = [];
|
|
157
157
|
for (let r = s.length - 1; r >= 0; r--) {
|
|
158
|
-
const c = s[r],
|
|
159
|
-
if (
|
|
160
|
-
const A =
|
|
158
|
+
const c = s[r], D = We(c);
|
|
159
|
+
if (D.length > 0) {
|
|
160
|
+
const A = D.map((B) => {
|
|
161
161
|
const L = B.clone(), Z = new H();
|
|
162
162
|
return Z.makeBasis(p.localX, p.localY, p.localZ), L.applyMatrix4(Z), L.add(p.pos);
|
|
163
163
|
});
|
|
164
|
-
|
|
164
|
+
P.push(A);
|
|
165
165
|
const $ = A[A.length - 1];
|
|
166
166
|
p.pos = $.clone();
|
|
167
|
-
const g = c.B ?? 0,
|
|
167
|
+
const g = c.B ?? 0, T = c.C ?? 0;
|
|
168
168
|
if (g !== 0) {
|
|
169
169
|
const B = new H().makeRotationAxis(p.localY, oe(g));
|
|
170
170
|
p.localX.applyMatrix4(B), p.localZ.applyMatrix4(B);
|
|
171
171
|
}
|
|
172
|
-
if (
|
|
173
|
-
const B = oe(
|
|
172
|
+
if (T > 0) {
|
|
173
|
+
const B = oe(T), L = new H().makeRotationAxis(p.localZ, B);
|
|
174
174
|
p.localY.applyMatrix4(L), p.localX.applyMatrix4(L);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
for (const r of
|
|
178
|
+
for (const r of P)
|
|
179
179
|
r.length > 1 && n.push(...r.slice(1));
|
|
180
180
|
n.length < 2 && n.push(new V(0, 1e-3, 0));
|
|
181
181
|
try {
|
|
@@ -210,23 +210,23 @@ function Oe(y, v, d, a = 0) {
|
|
|
210
210
|
};
|
|
211
211
|
const C = [];
|
|
212
212
|
for (let p = m.length - 1; p >= 0; p--) {
|
|
213
|
-
const
|
|
213
|
+
const P = m[p], r = We(P);
|
|
214
214
|
if (r.length > 0) {
|
|
215
215
|
const c = r.map((g) => {
|
|
216
|
-
const
|
|
217
|
-
return B.makeBasis(n.localX, n.localY, n.localZ),
|
|
216
|
+
const T = g.clone(), B = new H();
|
|
217
|
+
return B.makeBasis(n.localX, n.localY, n.localZ), T.applyMatrix4(B), T.add(n.pos);
|
|
218
218
|
});
|
|
219
219
|
C.push(c);
|
|
220
|
-
const
|
|
221
|
-
n.pos =
|
|
222
|
-
const A =
|
|
220
|
+
const D = c[c.length - 1];
|
|
221
|
+
n.pos = D.clone();
|
|
222
|
+
const A = P.B ?? 0, $ = P.C ?? 0;
|
|
223
223
|
if (A !== 0) {
|
|
224
224
|
const g = new H().makeRotationAxis(n.localY, oe(A));
|
|
225
225
|
n.localX.applyMatrix4(g), n.localZ.applyMatrix4(g);
|
|
226
226
|
}
|
|
227
227
|
if ($ > 0) {
|
|
228
|
-
const g = oe($),
|
|
229
|
-
n.localY.applyMatrix4(
|
|
228
|
+
const g = oe($), T = new H().makeRotationAxis(n.localZ, g);
|
|
229
|
+
n.localY.applyMatrix4(T), n.localX.applyMatrix4(T);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -238,9 +238,9 @@ function Xe(y, v, d, a, m, _, s, b = 0, f = 0) {
|
|
|
238
238
|
const w = m - f, n = Oe(a, w, s, b);
|
|
239
239
|
let p = Oe(d, f, s, b);
|
|
240
240
|
p.forEach((r) => r.y = -r.y), p.reverse();
|
|
241
|
-
const
|
|
241
|
+
const P = [...p, ...n];
|
|
242
242
|
try {
|
|
243
|
-
const r = new Ve(
|
|
243
|
+
const r = new Ve(P, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, P.length * 4), _ * I, 18, !1);
|
|
244
244
|
v.geometry.dispose(), y.geometry.dispose(), v.parent && v.parent.remove(v), y.geometry = c;
|
|
245
245
|
} catch (r) {
|
|
246
246
|
console.error("管件更新失败", r);
|
|
@@ -262,19 +262,19 @@ const Et = { class: "panel-content" }, jt = { class: "action-bar" }, Ot = { clas
|
|
|
262
262
|
});
|
|
263
263
|
const _ = async () => {
|
|
264
264
|
let e = {};
|
|
265
|
-
m.value ===
|
|
265
|
+
m.value === De.SINGLE && (e = await kt()), m.value === De.DOUBLE && (e = await xt());
|
|
266
266
|
const {
|
|
267
267
|
initialPipeLength: o = 0,
|
|
268
268
|
pipeRadius: t = 0,
|
|
269
269
|
clampLength: i = 0,
|
|
270
270
|
animationData: R
|
|
271
271
|
} = e;
|
|
272
|
-
$.value = o, g.value = t,
|
|
273
|
-
const x = st(a.value), le = fe(G.value),
|
|
274
|
-
s.value =
|
|
272
|
+
$.value = o, g.value = t, T.value = i, a.value = R;
|
|
273
|
+
const x = st(a.value), le = fe(G.value), q = (x == null ? void 0 : x["输出(动画数据)"]) || [];
|
|
274
|
+
s.value = q.length ? q : [le];
|
|
275
275
|
}, s = h([]), b = h(!1), f = h(""), w = h(!1), n = h(0), C = h(0), p = h(1e3);
|
|
276
|
-
let
|
|
277
|
-
const r = h(null), c = be(null),
|
|
276
|
+
let P = !1;
|
|
277
|
+
const r = h(null), c = be(null), D = be(null), A = be(null), $ = h(0), g = h(12.5), T = h(30), B = h([]), L = h(null), Z = ke(() => d.model ? Dt(d.model).map((t) => t.name) : []), ee = h(["Y", "B", "C", "R"]), G = ke(() => [...Z.value, ...ee.value]), _e = ke(() => G.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
|
|
278
278
|
${G.value.join(" ")}
|
|
279
279
|
0 0 0 ...
|
|
280
280
|
1 2 3 ...` : "请先加载模型。"), ve = () => s.value.map((e) => ({
|
|
@@ -285,14 +285,14 @@ ${G.value.join(" ")}
|
|
|
285
285
|
})), se = () => {
|
|
286
286
|
const e = [], o = [];
|
|
287
287
|
return s.value.forEach((t) => {
|
|
288
|
-
const { Y1: i, B1: R, C1: x, R1: le, Y2:
|
|
288
|
+
const { Y1: i, B1: R, C1: x, R1: le, Y2: q, B2: ue, C2: Ce, R2: z } = t;
|
|
289
289
|
e.push({
|
|
290
290
|
Y: parseFloat(i) || 0,
|
|
291
291
|
B: parseFloat(R) || 0,
|
|
292
292
|
C: parseFloat(x) || 0,
|
|
293
293
|
R: parseFloat(le) || 0
|
|
294
294
|
}), o.push({
|
|
295
|
-
Y: parseFloat(
|
|
295
|
+
Y: parseFloat(q) || 0,
|
|
296
296
|
B: parseFloat(ue) || 0,
|
|
297
297
|
C: parseFloat(Ce) || 0,
|
|
298
298
|
R: parseFloat(z) || 0
|
|
@@ -302,24 +302,24 @@ ${G.value.join(" ")}
|
|
|
302
302
|
negPipeYbcr: o
|
|
303
303
|
};
|
|
304
304
|
}, S = (e = 0, o = 0) => {
|
|
305
|
-
if (c.value &&
|
|
305
|
+
if (c.value && D.value) {
|
|
306
306
|
const t = se();
|
|
307
307
|
Xe(
|
|
308
308
|
c.value,
|
|
309
|
-
|
|
309
|
+
D.value,
|
|
310
310
|
t.posPipeYbcr,
|
|
311
311
|
t.negPipeYbcr,
|
|
312
312
|
$.value,
|
|
313
313
|
g.value,
|
|
314
314
|
e,
|
|
315
315
|
o,
|
|
316
|
-
|
|
316
|
+
T.value
|
|
317
317
|
);
|
|
318
318
|
} else if (c.value) {
|
|
319
319
|
const t = ve();
|
|
320
320
|
je(c.value, t, $.value, g.value, e, o);
|
|
321
321
|
}
|
|
322
|
-
},
|
|
322
|
+
}, k = (e) => {
|
|
323
323
|
if (e < 0 || e >= s.value.length) {
|
|
324
324
|
console.error(`帧索引 ${e} 超出范围`);
|
|
325
325
|
return;
|
|
@@ -339,9 +339,9 @@ ${G.value.join(" ")}
|
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
341
|
if (!w.value) {
|
|
342
|
-
w.value = !0,
|
|
342
|
+
w.value = !0, P = !1, s.value.length - 1 === n.value && (n.value = 0);
|
|
343
343
|
try {
|
|
344
|
-
for (let e = n.value + 1; e < s.value.length && !
|
|
344
|
+
for (let e = n.value + 1; e < s.value.length && !P; e++) {
|
|
345
345
|
n.value = e;
|
|
346
346
|
const o = s.value[e], t = {};
|
|
347
347
|
r.value && Z.value.forEach((i) => {
|
|
@@ -355,7 +355,7 @@ ${G.value.join(" ")}
|
|
|
355
355
|
}
|
|
356
356
|
) : (await new Promise((i) => setTimeout(i, p.value)), C.value = (e + 1) / s.value.length * 100);
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
P || E.success("动画播放完成");
|
|
359
359
|
} catch (e) {
|
|
360
360
|
console.error("动画播放出错:", e), E.error("动画播放出错");
|
|
361
361
|
} finally {
|
|
@@ -363,22 +363,22 @@ ${G.value.join(" ")}
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}, j = () => {
|
|
366
|
-
|
|
366
|
+
P = !0, w.value = !1, C.value = 0, E.info("动画已停止");
|
|
367
367
|
}, N = () => {
|
|
368
368
|
n.value = 0;
|
|
369
369
|
}, O = () => {
|
|
370
|
-
if (c.value &&
|
|
370
|
+
if (c.value && D.value) {
|
|
371
371
|
const e = se();
|
|
372
372
|
Xe(
|
|
373
373
|
c.value,
|
|
374
|
-
|
|
374
|
+
D.value,
|
|
375
375
|
e.posPipeYbcr,
|
|
376
376
|
e.negPipeYbcr,
|
|
377
377
|
$.value,
|
|
378
378
|
g.value,
|
|
379
379
|
-1,
|
|
380
380
|
0,
|
|
381
|
-
|
|
381
|
+
T.value
|
|
382
382
|
);
|
|
383
383
|
} else if (c.value) {
|
|
384
384
|
const e = ve();
|
|
@@ -393,14 +393,14 @@ ${G.value.join(" ")}
|
|
|
393
393
|
}
|
|
394
394
|
}, te = () => {
|
|
395
395
|
r.value && r.value.resetToZero(), O(), N(), E.success("机器人和管件已重置");
|
|
396
|
-
},
|
|
397
|
-
w.value && j(),
|
|
396
|
+
}, K = (e) => `第 ${e + 1} 帧`, W = (e) => {
|
|
397
|
+
w.value && j(), k(e);
|
|
398
398
|
}, ie = () => {
|
|
399
|
-
w.value && j(), !(n.value + 1 >= s.value.length) &&
|
|
399
|
+
w.value && j(), !(n.value + 1 >= s.value.length) && k(n.value + 1);
|
|
400
400
|
}, F = () => {
|
|
401
|
-
w.value && j(), n.value !== 0 &&
|
|
401
|
+
w.value && j(), n.value !== 0 && k(n.value - 1);
|
|
402
402
|
}, ae = () => {
|
|
403
|
-
A.value && (A.value.visible = !0), c.value && c.value.parent && c.value.parent.remove(c.value), A.value = null, c.value = null,
|
|
403
|
+
A.value && (A.value.visible = !0), c.value && c.value.parent && c.value.parent.remove(c.value), A.value = null, c.value = null, D.value = null;
|
|
404
404
|
}, fe = (e) => e == null ? void 0 : e.reduce((o, t) => (o[t] = "0", o), {});
|
|
405
405
|
ne(G, (e, o) => {
|
|
406
406
|
if (JSON.stringify(e) !== JSON.stringify(o))
|
|
@@ -439,15 +439,15 @@ ${G.value.join(" ")}
|
|
|
439
439
|
);
|
|
440
440
|
return o.name = "managed_pipe_clone", (i = (t = e == null ? void 0 : e.parent) == null ? void 0 : t.add) == null || i.call(t, o), o.position.copy(e.position), o.rotation.copy(e.rotation), o.scale.copy(e.scale), o;
|
|
441
441
|
};
|
|
442
|
-
ne([L,
|
|
442
|
+
ne([L, T, $, re], ([e, o]) => {
|
|
443
443
|
if (ae(), d.model && e) {
|
|
444
|
-
const t =
|
|
444
|
+
const t = Tt(d.model, e);
|
|
445
445
|
if (console.log(t, "meshToReplace"), t && t.parent) {
|
|
446
446
|
A.value = t, t.visible = !1;
|
|
447
447
|
const i = Re(t);
|
|
448
|
-
if (m.value ===
|
|
448
|
+
if (m.value === De.SINGLE && (i.position.y -= o * 1e-3), c.value = i, m.value === De.DOUBLE) {
|
|
449
449
|
const R = Re(t);
|
|
450
|
-
|
|
450
|
+
D.value = R;
|
|
451
451
|
}
|
|
452
452
|
S(0, 0);
|
|
453
453
|
} else
|
|
@@ -484,21 +484,21 @@ ${G.value.join(" ")}
|
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
486
|
const R = e.slice(1).map((x) => {
|
|
487
|
-
const le = x.split(" "),
|
|
487
|
+
const le = x.split(" "), q = {};
|
|
488
488
|
return G.value.forEach((ue) => {
|
|
489
|
-
|
|
489
|
+
q[ue] = "0";
|
|
490
490
|
}), Object.entries(t).forEach(([ue, Ce]) => {
|
|
491
491
|
const z = le[parseInt(ue)];
|
|
492
|
-
z !== void 0 && z.trim() !== "" && (
|
|
493
|
-
}),
|
|
492
|
+
z !== void 0 && z.trim() !== "" && (q[Ce] = z.trim());
|
|
493
|
+
}), q;
|
|
494
494
|
});
|
|
495
495
|
R.length > 0 ? (s.value = R, E.success(`成功导入 ${R.length} 行数据!`), b.value = !1, f.value = "") : E.error("未能解析到有效数据,请检查格式。");
|
|
496
496
|
};
|
|
497
497
|
return Ie(() => {
|
|
498
|
-
ae(),
|
|
498
|
+
ae(), P = !0;
|
|
499
499
|
}), v({ playAnimation: J, stopAnimation: j, forwardFrame: ie, backwardFrame: F }), (e, o) => {
|
|
500
|
-
const t = U("el-icon"), i = U("el-input-number"), R = U("el-form-item"), x = U("el-form"), le = U("el-slider"),
|
|
501
|
-
return Q(),
|
|
500
|
+
const t = U("el-icon"), i = U("el-input-number"), R = U("el-form-item"), x = U("el-form"), le = U("el-slider"), q = U("el-progress"), ue = U("el-input"), Ce = U("el-dialog");
|
|
501
|
+
return Q(), Te("div", Et, [
|
|
502
502
|
u("div", jt, [
|
|
503
503
|
l(me, {
|
|
504
504
|
onClick: _,
|
|
@@ -524,7 +524,7 @@ ${G.value.join(" ")}
|
|
|
524
524
|
l(X(it))
|
|
525
525
|
]),
|
|
526
526
|
_: 1
|
|
527
|
-
})) :
|
|
527
|
+
})) : Pe("", !0)
|
|
528
528
|
]),
|
|
529
529
|
_: 1
|
|
530
530
|
}, 8, ["disabled"]),
|
|
@@ -596,8 +596,8 @@ ${G.value.join(" ")}
|
|
|
596
596
|
}, {
|
|
597
597
|
default: M(() => [
|
|
598
598
|
l(i, {
|
|
599
|
-
modelValue:
|
|
600
|
-
"onUpdate:modelValue": o[3] || (o[3] = (z) =>
|
|
599
|
+
modelValue: T.value,
|
|
600
|
+
"onUpdate:modelValue": o[3] || (o[3] = (z) => T.value = z),
|
|
601
601
|
min: 0,
|
|
602
602
|
style: { width: "100%" }
|
|
603
603
|
}, null, 8, ["modelValue"])
|
|
@@ -623,14 +623,14 @@ ${G.value.join(" ")}
|
|
|
623
623
|
min: 0,
|
|
624
624
|
max: s.value.length > 0 ? s.value.length - 1 : 0,
|
|
625
625
|
step: 1,
|
|
626
|
-
"format-tooltip":
|
|
626
|
+
"format-tooltip": K,
|
|
627
627
|
onInput: W,
|
|
628
628
|
disabled: s.value.length === 0,
|
|
629
629
|
style: { "flex-grow": "1", margin: "0 10px" }
|
|
630
630
|
}, null, 8, ["modelValue", "max", "disabled"])
|
|
631
631
|
]),
|
|
632
632
|
u("div", Nt, [
|
|
633
|
-
l(
|
|
633
|
+
l(q, {
|
|
634
634
|
percentage: C.value,
|
|
635
635
|
"show-text": !1,
|
|
636
636
|
"stroke-width": 6
|
|
@@ -672,17 +672,17 @@ ${G.value.join(" ")}
|
|
|
672
672
|
]);
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
}), Ht = /* @__PURE__ */ Ue(It, [["__scopeId", "data-v-49a19db9"]]),
|
|
675
|
+
}), Ht = /* @__PURE__ */ Ue(It, [["__scopeId", "data-v-49a19db9"]]), Kt = async () => {
|
|
676
676
|
const v = await Rt(["工件库", "弯管"]), d = Be("工件列表", v), a = wt(d);
|
|
677
677
|
return a == null ? void 0 : a.map((_) => ({
|
|
678
678
|
name: _,
|
|
679
679
|
mainKey: _
|
|
680
680
|
}));
|
|
681
|
-
},
|
|
681
|
+
}, qt = async (y) => {
|
|
682
682
|
const d = await Ct(["工件库", "弯管"], y), a = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
|
|
683
683
|
outerDiameter: 0,
|
|
684
684
|
ybcrList: []
|
|
685
|
-
}, s = Mt(a), b =
|
|
685
|
+
}, s = Mt(a), b = Pt(m);
|
|
686
686
|
return _.outerDiameter = (s == null ? void 0 : s.外径) || 0, _.ybcrList = b || [], _;
|
|
687
687
|
}, Qt = { class: "pipe-analysis-dialog-header" }, el = { class: "header-right" }, tl = { class: "pipe-analysis-dialog-body" }, ll = { class: "panel-left" }, ol = { class: "pipe-analysis-input" }, al = { class: "input-params" }, nl = { class: "pipe-analysis-output" }, sl = { class: "ouput-params" }, il = /* @__PURE__ */ Le({
|
|
688
688
|
__name: "pipeAnalysisPanel",
|
|
@@ -697,12 +697,12 @@ ${G.value.join(" ")}
|
|
|
697
697
|
cleanup: n,
|
|
698
698
|
setModels: C,
|
|
699
699
|
clearAllModels: p,
|
|
700
|
-
axesHelperVisible:
|
|
700
|
+
axesHelperVisible: P,
|
|
701
701
|
toggleAxesVisibility: r,
|
|
702
702
|
addModelAndFit: c
|
|
703
703
|
} = Je(a);
|
|
704
704
|
h(null);
|
|
705
|
-
const
|
|
705
|
+
const D = h({ file: null, pipe: "" });
|
|
706
706
|
h(null), h(!1);
|
|
707
707
|
const A = h([]), $ = (S) => {
|
|
708
708
|
A.value = S;
|
|
@@ -712,26 +712,26 @@ ${G.value.join(" ")}
|
|
|
712
712
|
form: {},
|
|
713
713
|
list: [],
|
|
714
714
|
reverse: !1
|
|
715
|
-
}),
|
|
716
|
-
const { length:
|
|
715
|
+
}), T = (S) => {
|
|
716
|
+
const { length: k, outerDiameter: J, innerDiameter: j, thickness: N, ybcrList: O } = S || {};
|
|
717
717
|
g.value.form = {
|
|
718
|
-
length:
|
|
718
|
+
length: k,
|
|
719
719
|
outerDiameter: J,
|
|
720
720
|
innerDiameter: j,
|
|
721
721
|
thickness: N
|
|
722
722
|
}, g.value.list = O;
|
|
723
723
|
}, B = () => {
|
|
724
|
-
const { form: S, list:
|
|
724
|
+
const { form: S, list: k } = g.value, {
|
|
725
725
|
outerDiameter: J
|
|
726
|
-
} = S, j = J / 2, N =
|
|
727
|
-
const { y:
|
|
726
|
+
} = S, j = J / 2, N = k == null ? void 0 : k.map((te) => {
|
|
727
|
+
const { y: K, b: W, c: ie, r: F, Y: ae, B: fe, C: re, R: we } = te;
|
|
728
728
|
return ae ? {
|
|
729
729
|
Y: ae,
|
|
730
730
|
B: fe,
|
|
731
731
|
C: re,
|
|
732
732
|
R: we
|
|
733
733
|
} : {
|
|
734
|
-
Y:
|
|
734
|
+
Y: K,
|
|
735
735
|
B: W,
|
|
736
736
|
C: ie,
|
|
737
737
|
R: F
|
|
@@ -748,11 +748,11 @@ ${G.value.join(" ")}
|
|
|
748
748
|
}, _e = () => {
|
|
749
749
|
ee.value = !0;
|
|
750
750
|
}, ve = async () => {
|
|
751
|
-
const S = await
|
|
751
|
+
const S = await Kt();
|
|
752
752
|
$(S);
|
|
753
753
|
}, se = async (S) => {
|
|
754
|
-
const
|
|
755
|
-
|
|
754
|
+
const k = await qt(S);
|
|
755
|
+
T(k);
|
|
756
756
|
};
|
|
757
757
|
return ne(() => g, () => {
|
|
758
758
|
B();
|
|
@@ -772,8 +772,8 @@ ${G.value.join(" ")}
|
|
|
772
772
|
ve();
|
|
773
773
|
}), Ze(() => {
|
|
774
774
|
window.removeEventListener("resize", f), n();
|
|
775
|
-
}), v({ openDialog: _e }), (S,
|
|
776
|
-
const J = U("el-icon"), j = U("el-option"), N = U("el-select"), O = U("el-form-item"), te = U("el-form"),
|
|
775
|
+
}), v({ openDialog: _e }), (S, k) => {
|
|
776
|
+
const J = U("el-icon"), j = U("el-option"), N = U("el-select"), O = U("el-form-item"), te = U("el-form"), K = U("el-input"), W = U("el-table-column"), ie = U("el-table");
|
|
777
777
|
return Q(), ye(Ft, {
|
|
778
778
|
class: "pipe-analysis-dialog",
|
|
779
779
|
visible: ee.value,
|
|
@@ -783,7 +783,7 @@ ${G.value.join(" ")}
|
|
|
783
783
|
}, {
|
|
784
784
|
header: M(() => [
|
|
785
785
|
u("div", Qt, [
|
|
786
|
-
|
|
786
|
+
k[6] || (k[6] = u("div", {
|
|
787
787
|
class: "header-left",
|
|
788
788
|
title: "管件解析"
|
|
789
789
|
}, " 管件解析 ", -1)),
|
|
@@ -807,12 +807,12 @@ ${G.value.join(" ")}
|
|
|
807
807
|
u("div", tl, [
|
|
808
808
|
u("div", ll, [
|
|
809
809
|
u("div", ol, [
|
|
810
|
-
|
|
810
|
+
k[7] || (k[7] = u("span", { class: "item-view-group" }, [
|
|
811
811
|
u("span", { class: "group-name-wrap" }, "输入")
|
|
812
812
|
], -1)),
|
|
813
813
|
u("div", al, [
|
|
814
814
|
l(te, {
|
|
815
|
-
model:
|
|
815
|
+
model: D.value,
|
|
816
816
|
"label-width": "auto",
|
|
817
817
|
"label-position": "top"
|
|
818
818
|
}, {
|
|
@@ -820,13 +820,13 @@ ${G.value.join(" ")}
|
|
|
820
820
|
l(O, { label: "弯管" }, {
|
|
821
821
|
default: M(() => [
|
|
822
822
|
l(N, {
|
|
823
|
-
modelValue:
|
|
824
|
-
"onUpdate:modelValue":
|
|
823
|
+
modelValue: D.value.pipe,
|
|
824
|
+
"onUpdate:modelValue": k[0] || (k[0] = (F) => D.value.pipe = F),
|
|
825
825
|
placeholder: "请选择弯管",
|
|
826
826
|
onChange: se
|
|
827
827
|
}, {
|
|
828
828
|
default: M(() => [
|
|
829
|
-
(Q(!0),
|
|
829
|
+
(Q(!0), Te(He, null, Ke(A.value, (F) => (Q(), ye(j, {
|
|
830
830
|
label: F.name,
|
|
831
831
|
value: F.mainKey
|
|
832
832
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -846,7 +846,7 @@ ${G.value.join(" ")}
|
|
|
846
846
|
default: M(() => [
|
|
847
847
|
l(N, {
|
|
848
848
|
modelValue: g.value.reverse,
|
|
849
|
-
"onUpdate:modelValue":
|
|
849
|
+
"onUpdate:modelValue": k[1] || (k[1] = (F) => g.value.reverse = F),
|
|
850
850
|
placeholder: "请选择加工方向"
|
|
851
851
|
}, {
|
|
852
852
|
default: M(() => [
|
|
@@ -864,7 +864,7 @@ ${G.value.join(" ")}
|
|
|
864
864
|
]),
|
|
865
865
|
_: 1
|
|
866
866
|
}),
|
|
867
|
-
|
|
867
|
+
k[8] || (k[8] = u("span", { class: "item-view-group" }, [
|
|
868
868
|
u("span", { class: "group-name-wrap" }, "输出(弯管基础参数)")
|
|
869
869
|
], -1)),
|
|
870
870
|
u("div", sl, [
|
|
@@ -877,36 +877,36 @@ ${G.value.join(" ")}
|
|
|
877
877
|
default: M(() => [
|
|
878
878
|
l(O, { label: "管长" }, {
|
|
879
879
|
default: M(() => [
|
|
880
|
-
l(
|
|
880
|
+
l(K, {
|
|
881
881
|
modelValue: g.value.form.length,
|
|
882
|
-
"onUpdate:modelValue":
|
|
882
|
+
"onUpdate:modelValue": k[2] || (k[2] = (F) => g.value.form.length = F)
|
|
883
883
|
}, null, 8, ["modelValue"])
|
|
884
884
|
]),
|
|
885
885
|
_: 1
|
|
886
886
|
}),
|
|
887
887
|
l(O, { label: "外径" }, {
|
|
888
888
|
default: M(() => [
|
|
889
|
-
l(
|
|
889
|
+
l(K, {
|
|
890
890
|
modelValue: g.value.form.outerDiameter,
|
|
891
|
-
"onUpdate:modelValue":
|
|
891
|
+
"onUpdate:modelValue": k[3] || (k[3] = (F) => g.value.form.outerDiameter = F)
|
|
892
892
|
}, null, 8, ["modelValue"])
|
|
893
893
|
]),
|
|
894
894
|
_: 1
|
|
895
895
|
}),
|
|
896
896
|
l(O, { label: "内径" }, {
|
|
897
897
|
default: M(() => [
|
|
898
|
-
l(
|
|
898
|
+
l(K, {
|
|
899
899
|
modelValue: g.value.form.innerDiameter,
|
|
900
|
-
"onUpdate:modelValue":
|
|
900
|
+
"onUpdate:modelValue": k[4] || (k[4] = (F) => g.value.form.innerDiameter = F)
|
|
901
901
|
}, null, 8, ["modelValue"])
|
|
902
902
|
]),
|
|
903
903
|
_: 1
|
|
904
904
|
}),
|
|
905
905
|
l(O, { label: "壁厚" }, {
|
|
906
906
|
default: M(() => [
|
|
907
|
-
l(
|
|
907
|
+
l(K, {
|
|
908
908
|
modelValue: g.value.form.thickness,
|
|
909
|
-
"onUpdate:modelValue":
|
|
909
|
+
"onUpdate:modelValue": k[5] || (k[5] = (F) => g.value.form.thickness = F)
|
|
910
910
|
}, null, 8, ["modelValue"])
|
|
911
911
|
]),
|
|
912
912
|
_: 1
|
|
@@ -963,7 +963,7 @@ ${G.value.join(" ")}
|
|
|
963
963
|
}, dl = {
|
|
964
964
|
ref: "pipe2",
|
|
965
965
|
class: "pipe-container"
|
|
966
|
-
}, ml = { class: "buttonGroup-topLeft" }, vl = { class: "buttonGroup-left" }, fl = { class: "buttonGroup-right" }, gl = { class: "buttonGroup-bottom" }, hl = { class: "top-panel" }, bl = { class: "panel-header" }, yl = { class: "panel-body" }, _l = { class: "left-panel" }, wl = { class: "panel-header" }, Cl = { class: "panel-body" },
|
|
966
|
+
}, ml = { class: "buttonGroup-topLeft" }, vl = { class: "buttonGroup-left" }, fl = { class: "buttonGroup-right" }, gl = { class: "buttonGroup-bottom" }, hl = { class: "top-panel" }, bl = { class: "panel-header" }, yl = { class: "panel-body" }, _l = { class: "left-panel" }, wl = { class: "panel-header" }, Cl = { class: "panel-body" }, Pl = { class: "right-panel" }, kl = { class: "panel-header" }, xl = { class: "panel-body" }, Rl = {
|
|
967
967
|
key: 0,
|
|
968
968
|
class: "loading-overlay"
|
|
969
969
|
}, Ml = /* @__PURE__ */ Le({
|
|
@@ -973,12 +973,12 @@ ${G.value.join(" ")}
|
|
|
973
973
|
threeData: {}
|
|
974
974
|
},
|
|
975
975
|
setup(y) {
|
|
976
|
-
const v = y, d = h(Ye.ROBOT), a = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), n = h(""), C = h(!1), p = h(""),
|
|
977
|
-
currentModels:
|
|
976
|
+
const v = y, d = h(Ye.ROBOT), a = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), n = h(""), C = h(!1), p = h(""), P = be(null), r = be(null), c = h(), {
|
|
977
|
+
currentModels: D,
|
|
978
978
|
resetView: A,
|
|
979
979
|
initThreeJS: $,
|
|
980
980
|
handleResize: g,
|
|
981
|
-
getThreeJSObjects:
|
|
981
|
+
getThreeJSObjects: T,
|
|
982
982
|
cleanup: B,
|
|
983
983
|
setAndFitModels: L,
|
|
984
984
|
axesHelperVisible: Z,
|
|
@@ -986,15 +986,15 @@ ${G.value.join(" ")}
|
|
|
986
986
|
zoomIn: G,
|
|
987
987
|
zoomOut: _e
|
|
988
988
|
} = Je(a), { loadSceneFromFile: ve } = at(
|
|
989
|
-
D,
|
|
990
989
|
T,
|
|
990
|
+
D,
|
|
991
991
|
_,
|
|
992
992
|
s
|
|
993
|
-
), { isAnimating: se, toggleAnimation: S, startAnimation:
|
|
993
|
+
), { isAnimating: se, toggleAnimation: S, startAnimation: k, stopAnimation: J } = Qe(T, D), { isClipping: j, activeClippingAxis: N, toggleClipping: O, updateClippingPlanes: te } = et(T, D), { initRaycaster: K, selectedObject3D: W, setSelectedObjVisible: ie, updatePosition: F, updateRotation: ae, dispose: fe } = ot(a, T, D), re = () => {
|
|
994
994
|
ee();
|
|
995
995
|
}, we = (t) => {
|
|
996
996
|
N.value = t, te();
|
|
997
|
-
}, Ae =
|
|
997
|
+
}, Ae = ke(() => d.value === Ye.ROBOT), $e = ke(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
|
|
998
998
|
b.value = !0, f.value = t, t === "剖面视图" && !j.value && O();
|
|
999
999
|
}, ge = (t) => {
|
|
1000
1000
|
w.value = !0, n.value = t;
|
|
@@ -1017,24 +1017,24 @@ ${G.value.join(" ")}
|
|
|
1017
1017
|
if (!i.name.toLowerCase().endsWith(".urdf"))
|
|
1018
1018
|
return;
|
|
1019
1019
|
ve(i).then((R) => {
|
|
1020
|
-
|
|
1020
|
+
P.value = R;
|
|
1021
1021
|
}).catch((R) => {
|
|
1022
|
-
console.error("加载URDF文件时发生错误:", R), E.error("加载urdf模型失败"),
|
|
1022
|
+
console.error("加载URDF文件时发生错误:", R), E.error("加载urdf模型失败"), P.value = null;
|
|
1023
1023
|
});
|
|
1024
1024
|
} else
|
|
1025
|
-
|
|
1025
|
+
P.value = null;
|
|
1026
1026
|
}, {
|
|
1027
1027
|
immediate: !0,
|
|
1028
1028
|
deep: !0
|
|
1029
|
-
}), ne(
|
|
1030
|
-
L(t ? [t] : []),
|
|
1029
|
+
}), ne(P, (t) => {
|
|
1030
|
+
L(t ? [t] : []), K();
|
|
1031
1031
|
});
|
|
1032
1032
|
let o = null;
|
|
1033
1033
|
return Ge(async () => {
|
|
1034
|
-
await
|
|
1034
|
+
await qe();
|
|
1035
1035
|
try {
|
|
1036
1036
|
$(), a.value && (o = new ResizeObserver(g), o.observe(a.value));
|
|
1037
|
-
const t =
|
|
1037
|
+
const t = T();
|
|
1038
1038
|
r.value = t.scene;
|
|
1039
1039
|
} catch (t) {
|
|
1040
1040
|
console.error("Three.js 初始化失败:", t), E.error("渲染引擎初始化失败!");
|
|
@@ -1043,7 +1043,7 @@ ${G.value.join(" ")}
|
|
|
1043
1043
|
f.value = "", n.value = "", o && o.disconnect(), se.value && J(), B(), fe();
|
|
1044
1044
|
}), (t, i) => {
|
|
1045
1045
|
const R = U("el-scrollbar");
|
|
1046
|
-
return Q(),
|
|
1046
|
+
return Q(), Te("div", cl, [
|
|
1047
1047
|
pe(u("div", {
|
|
1048
1048
|
ref_key: "threejsContainer",
|
|
1049
1049
|
ref: a,
|
|
@@ -1219,20 +1219,20 @@ ${G.value.join(" ")}
|
|
|
1219
1219
|
return [
|
|
1220
1220
|
f.value === "场景树" ? (Q(), ye(At, {
|
|
1221
1221
|
key: 0,
|
|
1222
|
-
model:
|
|
1223
|
-
}, null, 8, ["model"])) :
|
|
1222
|
+
model: P.value
|
|
1223
|
+
}, null, 8, ["model"])) : Pe("", !0),
|
|
1224
1224
|
f.value === "剖面视图" ? (Q(), ye(tt, {
|
|
1225
1225
|
key: 1,
|
|
1226
1226
|
value: X(N),
|
|
1227
1227
|
onChange: we
|
|
1228
|
-
}, null, 8, ["value"])) :
|
|
1228
|
+
}, null, 8, ["value"])) : Pe("", !0),
|
|
1229
1229
|
f.value === "工件树" ? (Q(), ye(nt, {
|
|
1230
1230
|
key: 2,
|
|
1231
1231
|
model: (x = X(W)) == null ? void 0 : x.obj,
|
|
1232
1232
|
onVisibleChange: X(ie),
|
|
1233
1233
|
onUpdatePosition: X(F),
|
|
1234
1234
|
onUpdateRotation: X(ae)
|
|
1235
|
-
}, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) :
|
|
1235
|
+
}, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : Pe("", !0)
|
|
1236
1236
|
];
|
|
1237
1237
|
}),
|
|
1238
1238
|
_: 1
|
|
@@ -1241,8 +1241,8 @@ ${G.value.join(" ")}
|
|
|
1241
1241
|
], 512), [
|
|
1242
1242
|
[de, b.value]
|
|
1243
1243
|
]),
|
|
1244
|
-
pe(u("div",
|
|
1245
|
-
u("div",
|
|
1244
|
+
pe(u("div", Pl, [
|
|
1245
|
+
u("div", kl, [
|
|
1246
1246
|
u("span", null, he(n.value), 1),
|
|
1247
1247
|
u("span", {
|
|
1248
1248
|
class: "close",
|
|
@@ -1252,13 +1252,13 @@ ${G.value.join(" ")}
|
|
|
1252
1252
|
u("div", xl, [
|
|
1253
1253
|
l(R, { height: "100%" }, {
|
|
1254
1254
|
default: M(() => [
|
|
1255
|
-
pe(l($t, { model:
|
|
1255
|
+
pe(l($t, { model: P.value }, null, 8, ["model"]), [
|
|
1256
1256
|
[de, n.value === "关节控制"]
|
|
1257
1257
|
]),
|
|
1258
1258
|
pe(l(Ht, {
|
|
1259
1259
|
ref_key: "animationPanelRef",
|
|
1260
1260
|
ref: c,
|
|
1261
|
-
model:
|
|
1261
|
+
model: P.value,
|
|
1262
1262
|
threeData: v.threeData
|
|
1263
1263
|
}, null, 8, ["model", "threeData"]), [
|
|
1264
1264
|
[de, n.value === "动画仿真"]
|
|
@@ -1271,10 +1271,10 @@ ${G.value.join(" ")}
|
|
|
1271
1271
|
], 512), [
|
|
1272
1272
|
[de, w.value]
|
|
1273
1273
|
]),
|
|
1274
|
-
_.value ? (Q(),
|
|
1274
|
+
_.value ? (Q(), Te("div", Rl, [
|
|
1275
1275
|
i[10] || (i[10] = u("div", { class: "loading-spinner" }, null, -1)),
|
|
1276
1276
|
u("p", null, he(s.value), 1)
|
|
1277
|
-
])) :
|
|
1277
|
+
])) : Pe("", !0),
|
|
1278
1278
|
l(rl, {
|
|
1279
1279
|
ref_key: "pipeAnalysisPanelRef",
|
|
1280
1280
|
ref: m
|