ss-component-new 1.2.91 → 1.2.92
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-BFJXexXd.js → MTLLoader-B5xRp-vz.js} +1 -1
- package/dist/{MTLLoader-B7nny5Fq.cjs → MTLLoader-D80GV1WB.cjs} +1 -1
- package/dist/{OrbitControls-xaR75UGu.cjs → OrbitControls-CqIpswqa.cjs} +1 -1
- package/dist/{OrbitControls-C9jawbH9.js → OrbitControls-Dh9PyFO4.js} +1 -1
- package/dist/{animationData-CBP3-eEz.cjs → animationData-BtND2VWy.cjs} +1 -1
- package/dist/{animationData-CgRkXv4t.js → animationData-DZ0i7k1j.js} +1 -1
- package/dist/{iconfont-CP5tSbKZ.cjs → iconfont-0T5xTLj8.cjs} +1 -1
- package/dist/{iconfont-CjxxsF1M.js → iconfont-DN8mra_i.js} +2 -2
- package/dist/{index-DFI9yzK6.js → index-1gXFTnuu.js} +13 -13
- package/dist/{index-DqVT7oIp.cjs → index-BGvxk4QX.cjs} +1 -1
- package/dist/{index-CETcLmm9.js → index-BKaTMDZC.js} +3 -3
- package/dist/{index-vOASo2vq.cjs → index-BUYZ6Pzj.cjs} +1 -1
- package/dist/{index-BtAr_AHh.cjs → index-BYoEVm0h.cjs} +1 -1
- package/dist/{index-Dp0Qfw7S.cjs → index-B_KvjL9P.cjs} +1 -1
- package/dist/{index-BlCQ16SZ.cjs → index-BdwtuRne.cjs} +1 -1
- package/dist/{index-BekTYc0y.cjs → index-BeEVAZ15.cjs} +1 -1
- package/dist/{index-BQ2epFRD.js → index-BjFqn1jw.js} +1 -1
- package/dist/{index-DYPr6Y5L.cjs → index-BooqzjWY.cjs} +1 -1
- package/dist/{index-DUVWJUDm.cjs → index-BprBzYZ5.cjs} +1 -1
- package/dist/{index-Bb1-JDSj.js → index-BtKhX2oM.js} +2 -2
- package/dist/{index-C3T-KdRt.js → index-BvxyAOvM.js} +1 -1
- package/dist/{index-BAhJFVq5.js → index-C07slqLJ.js} +2 -2
- package/dist/{index-1K0-Lril.js → index-C1aAW06_.js} +3 -3
- package/dist/{index-DvGuZe_T.js → index-C7HjGMoA.js} +3 -3
- package/dist/{index-BMP_6QMQ.js → index-CQ7UrLDv.js} +4 -4
- package/dist/{index-C8yBntW8.cjs → index-CRe-_A5B.cjs} +1 -1
- package/dist/{index-BEvmMS0i.js → index-CZLI4UKD.js} +1 -1
- package/dist/{index-Vsjvei0H.js → index-CZsCZbCY.js} +2 -2
- package/dist/{index-BXnPM7aS.cjs → index-C_DIwBxS.cjs} +1 -1
- package/dist/{index-Dp6H2nKE.js → index-CewrcECw.js} +1 -1
- package/dist/{index-B_PGXhqu.js → index-CfHIgB5C.js} +1 -1
- package/dist/{index-D9EZRG95.js → index-CiNYm1fC.js} +1 -1
- package/dist/{index-aQEd-0P6.cjs → index-CpYf3edW.cjs} +1 -1
- package/dist/{index-BuBu-8ML.cjs → index-CtOo2IDL.cjs} +1 -1
- package/dist/{index-DG16Kf33.cjs → index-CuchbMC7.cjs} +1 -1
- package/dist/{index-B2gEqMwz.cjs → index-CylLhQJV.cjs} +1 -1
- package/dist/{index-Ebo1c622.js → index-DJ14vVkb.js} +1 -1
- package/dist/{index-8zvR_tOe.js → index-DQTbLJJt.js} +1 -1
- package/dist/{index-CUEf5Kz5.cjs → index-DSmsp4fK.cjs} +1 -1
- package/dist/{index-7slO1Rxz.cjs → index-DVMvlM3X.cjs} +1 -1
- package/dist/{index-aSIQAW_v.cjs → index-DW_lU8F7.cjs} +1 -1
- package/dist/{index-dDyNP3sZ.js → index-DwsI_FxR.js} +6 -6
- package/dist/{index-5IXozXfb.cjs → index-NMPHjxEr.cjs} +1 -1
- package/dist/{index-q5RVI5cd.js → index-Q33CutvH.js} +3 -3
- package/dist/{index-4C4_axeD.js → index-YxS-TBi2.js} +1 -1
- package/dist/{index-7Birt--o.cjs → index-Z2dyIgOs.cjs} +1 -1
- package/dist/{index-C-L7sbsd.js → index-a_TWt7Sj.js} +6 -6
- package/dist/{index-ihwK0f5N.cjs → index-bz_QKqhV.cjs} +1 -1
- package/dist/{index-B8bmwRCI.js → index-fbsH9PEh.js} +1 -1
- package/dist/{index-CP7aP3gS.cjs → index-m_VPPkQD.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DecIEtG7.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CjVqxeCk.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CFsZEbkA.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-qrHH3IDA.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKwIZnH1.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DEgtwZwW.js} +1642 -1647
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cwx8FIbY.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-QzgaFA5S.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BX54cUHO.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-9r-1e4S8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-B10uDdFf.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-IuoTm-WE.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-B-okL2FZ.js → index.vue_vue_type_style_index_1_lang-CDl_PU-6.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-CTa9TwBd.cjs → index.vue_vue_type_style_index_1_lang-DR71_XjN.cjs} +1 -1
- package/dist/{main-Cwa67iI0.cjs → main-BxTLrfxf.cjs} +1 -1
- package/dist/{main-t0azuc9l.js → main-D_3GSDl9.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-Byx2BFHA.js → threeModel-BKLggDE-.js} +4 -4
- package/dist/{threeModel-BsTUf7j3.cjs → threeModel-D4-2rEpM.cjs} +1 -1
- package/dist/{threePreview-DGcEWlwZ.cjs → threePreview-QIurmOdU.cjs} +1 -1
- package/dist/{threePreview-B9a62AVY.js → threePreview-oszvdj-G.js} +578 -579
- package/dist/threeSceneView-BR1l9yTW.js +1341 -0
- package/dist/threeSceneView-CaHI2V82.cjs +5 -0
- package/dist/threeSceneViewForCPMPIP-DbvRq5YC.cjs +5 -0
- package/dist/{threeSceneViewForCPMPIP-BslGbi80.js → threeSceneViewForCPMPIP-wZTvUhLm.js} +232 -238
- package/dist/{threeTrackPathView-CNiRDEIa.js → threeTrackPathView-CAK5om32.js} +258 -305
- package/dist/{threeTrackPathView-C5outYjx.cjs → threeTrackPathView-CF9ierHN.cjs} +2 -2
- package/dist/{threeViewerHost-C2iVAVlI.js → threeViewerHost-CeTJmyoE.js} +2 -2
- package/dist/{threeViewerHost-D3ZmD_As.cjs → threeViewerHost-iajMfGA9.cjs} +2 -2
- package/dist/{urdfTree-DEo6cc0y.cjs → urdfTree-CWwnorES.cjs} +1 -1
- package/dist/{urdfTree-D_oX4idQ.js → urdfTree-DIyCunQo.js} +1 -1
- package/dist/{workpieceTreePanel--92uvFwB.js → workpieceTreePanel-DC0GHh3g.js} +5 -5
- package/dist/{workpieceTreePanel-C0Lq3HIU.cjs → workpieceTreePanel-YfDCHyA3.cjs} +1 -1
- package/package.json +1 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeSceneView-BYc0Z0CJ.cjs +0 -5
- package/dist/threeSceneView-C59wI_1_.js +0 -1369
- package/dist/threeSceneViewForCPMPIP-kGIus7ge.cjs +0 -5
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as ft, a as pt, b as mt, f as ht, d as Ue } from "./iconfont-
|
|
3
|
-
import { C as
|
|
4
|
-
import { r as Et } from "./threeViewerHost-
|
|
5
|
-
import { E as
|
|
6
|
-
import { U as Mt, J as Lt } from "./urdfTree-
|
|
7
|
-
import { _ as
|
|
8
|
-
import { T as
|
|
9
|
-
import { i as
|
|
10
|
-
function
|
|
1
|
+
import { defineComponent as ke, computed as R, ref as E, resolveComponent as q, createElementBlock as ae, openBlock as Y, createElementVNode as m, createVNode as y, withCtx as ce, toDisplayString as K, shallowRef as Q, watch as lt, onMounted as ct, onBeforeUnmount as ut, withDirectives as j, createCommentVNode as ve, unref as x, renderSlot as Ae, createBlock as dt, isRef as ee, vModelRadio as te, vShow as ne } from "vue";
|
|
2
|
+
import { u as ft, a as pt, b as mt, f as ht, d as Ue } from "./iconfont-DN8mra_i.js";
|
|
3
|
+
import { C as ue, k as Be, aE as vt, v as gt, V as M, aF as yt, aG as xe, aH as be, av as H, aI as wt, B as _e, aD as De, aJ as xt, aK as re, aL as Fe, Y as Oe, aM as le, aN as J, aO as bt, r as _t, s as Ie, t as St, w as Ct, a5 as zt, ag as At, ao as Ut } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DEgtwZwW.js";
|
|
4
|
+
import { r as Et } from "./threeViewerHost-CeTJmyoE.js";
|
|
5
|
+
import { E as Z } from "./index-BUYYl2Pc.js";
|
|
6
|
+
import { U as Mt, J as Lt } from "./urdfTree-DIyCunQo.js";
|
|
7
|
+
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
import { T as U } from "./svgIcon-D-_fXUBL.js";
|
|
9
|
+
import { i as Tt } from "./isString-BATKat46.js";
|
|
10
|
+
function Pt(o = 0.5, e = 4) {
|
|
11
11
|
const n = new Be(
|
|
12
12
|
new vt(o, e, 32),
|
|
13
13
|
new gt({
|
|
@@ -20,30 +20,30 @@ function Tt(o = 0.5, e = 4) {
|
|
|
20
20
|
), i = n.geometry.parameters.height;
|
|
21
21
|
return n.geometry.translate(0, -i / 2, 0), n.rotation.set(-90, 0, 0, "XYZ"), n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function kt(o, e) {
|
|
24
24
|
o.position.copy(e);
|
|
25
25
|
}
|
|
26
|
-
function Bt(o, e, n = new
|
|
26
|
+
function Bt(o, e, n = new ue(16711680)) {
|
|
27
27
|
const i = new M();
|
|
28
28
|
e.getWorldPosition(i);
|
|
29
|
-
const t = o.geometry.attributes.position, s = o.geometry.attributes.color, r = new
|
|
30
|
-
let a = 1 / 0,
|
|
29
|
+
const t = o.geometry.attributes.position, s = o.geometry.attributes.color, r = new ue(55551);
|
|
30
|
+
let a = 1 / 0, d = -1;
|
|
31
31
|
for (let u = 0; u < t.count; u++) {
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const f = new M().fromBufferAttribute(t, u).distanceTo(i);
|
|
33
|
+
f < a && (a = f, d = u);
|
|
34
34
|
}
|
|
35
35
|
for (let u = 0; u < s.count; u++) r.toArray(s.array, u * 3);
|
|
36
|
-
if (
|
|
37
|
-
const u = n.toArray(), p =
|
|
38
|
-
for (let
|
|
39
|
-
s.array[
|
|
36
|
+
if (d !== -1) {
|
|
37
|
+
const u = n.toArray(), p = d * 3 + 2;
|
|
38
|
+
for (let f = 0; f < p; f = f + 3)
|
|
39
|
+
s.array[f] = u[0], s.array[f + 1] = u[1], s.array[f + 2] = u[2];
|
|
40
40
|
}
|
|
41
41
|
s.needsUpdate = !0;
|
|
42
42
|
}
|
|
43
|
-
function Ve(o, e, n, i = new
|
|
44
|
-
|
|
43
|
+
function Ve(o, e, n, i = new ue(16711680)) {
|
|
44
|
+
kt(o, e), Bt(n, o, i);
|
|
45
45
|
}
|
|
46
|
-
const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot = { class: "control-row" },
|
|
46
|
+
const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot = { class: "control-row" }, It = { class: "control-row" }, jt = { class: "frame-info" }, Vt = { class: "control-row" }, Nt = /* @__PURE__ */ ke({
|
|
47
47
|
__name: "trackAnimationPanel",
|
|
48
48
|
props: {
|
|
49
49
|
cloud: {},
|
|
@@ -53,58 +53,58 @@ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot
|
|
|
53
53
|
emits: ["getThreeData"],
|
|
54
54
|
setup(o, { expose: e, emit: n }) {
|
|
55
55
|
const i = o, t = R(() => i.vectors), s = E(!1), r = E(0), a = E(50);
|
|
56
|
-
let
|
|
57
|
-
const u = (
|
|
58
|
-
if (
|
|
59
|
-
console.error(`帧索引 ${
|
|
56
|
+
let d = !1;
|
|
57
|
+
const u = (v) => `第 ${v + 1} 帧`, p = (v) => {
|
|
58
|
+
if (v < 0 || v >= t.value.length) {
|
|
59
|
+
console.error(`帧索引 ${v} 超出范围`);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
r.value =
|
|
64
|
-
},
|
|
62
|
+
const w = t.value[v];
|
|
63
|
+
r.value = v, Ve(i.knife, w, i.cloud);
|
|
64
|
+
}, f = async () => {
|
|
65
65
|
if (t.value.length === 0) {
|
|
66
|
-
|
|
66
|
+
Z.error("无法播放动画:无数据");
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
if (!s.value) {
|
|
70
|
-
s.value = !0,
|
|
70
|
+
s.value = !0, d = !1, t.value.length - 1 === r.value && (r.value = 0);
|
|
71
71
|
try {
|
|
72
|
-
for (let
|
|
73
|
-
await new Promise((
|
|
74
|
-
|
|
75
|
-
} catch (
|
|
76
|
-
console.error("动画播放出错:",
|
|
72
|
+
for (let v = r.value + 1; v < t.value.length && !d; v++)
|
|
73
|
+
await new Promise((w) => setTimeout(w, a.value)), p(v);
|
|
74
|
+
d || Z.success("动画播放完成");
|
|
75
|
+
} catch (v) {
|
|
76
|
+
console.error("动画播放出错:", v), Z.error("动画播放出错");
|
|
77
77
|
} finally {
|
|
78
78
|
s.value = !1;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
s.value &&
|
|
81
|
+
}, h = () => {
|
|
82
|
+
d = !0, s.value = !1, Z.info("动画已停止");
|
|
83
|
+
}, z = (v) => {
|
|
84
|
+
s.value && h(), p(v);
|
|
85
85
|
};
|
|
86
|
-
return e({ playAnimation:
|
|
87
|
-
s.value &&
|
|
86
|
+
return e({ playAnimation: f, stopAnimation: h, forwardFrame: () => {
|
|
87
|
+
s.value && h(), !(r.value + 1 >= t.value.length) && p(r.value + 1);
|
|
88
88
|
}, backwardFrame: () => {
|
|
89
|
-
s.value &&
|
|
90
|
-
} }), (
|
|
91
|
-
const C =
|
|
92
|
-
return
|
|
89
|
+
s.value && h(), r.value !== 0 && p(r.value - 1);
|
|
90
|
+
} }), (v, w) => {
|
|
91
|
+
const C = q("el-input-number"), A = q("el-form-item"), T = q("el-form"), fe = q("el-slider");
|
|
92
|
+
return Y(), ae("div", Dt, [
|
|
93
93
|
m("div", Ft, [
|
|
94
94
|
m("div", Ot, [
|
|
95
|
-
|
|
95
|
+
y(T, {
|
|
96
96
|
"label-width": "auto",
|
|
97
97
|
style: { width: "100%" }
|
|
98
98
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
|
|
99
|
+
default: ce(() => [
|
|
100
|
+
y(A, {
|
|
101
101
|
label: "帧间隔 (ms):",
|
|
102
102
|
prop: "frameDuration"
|
|
103
103
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
104
|
+
default: ce(() => [
|
|
105
|
+
y(C, {
|
|
106
106
|
modelValue: a.value,
|
|
107
|
-
"onUpdate:modelValue":
|
|
107
|
+
"onUpdate:modelValue": w[0] || (w[0] = (G) => a.value = G),
|
|
108
108
|
min: 0,
|
|
109
109
|
max: 5e3,
|
|
110
110
|
step: 10,
|
|
@@ -117,20 +117,20 @@ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot
|
|
|
117
117
|
_: 1
|
|
118
118
|
})
|
|
119
119
|
]),
|
|
120
|
-
m("div",
|
|
121
|
-
|
|
122
|
-
m("span",
|
|
120
|
+
m("div", It, [
|
|
121
|
+
w[2] || (w[2] = m("label", null, "当前帧:", -1)),
|
|
122
|
+
m("span", jt, K(r.value + 1) + " / " + K(t.value.length), 1)
|
|
123
123
|
]),
|
|
124
124
|
m("div", Vt, [
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
w[3] || (w[3] = m("label", null, "动画进度:", -1)),
|
|
126
|
+
y(fe, {
|
|
127
127
|
modelValue: r.value,
|
|
128
|
-
"onUpdate:modelValue":
|
|
128
|
+
"onUpdate:modelValue": w[1] || (w[1] = (G) => r.value = G),
|
|
129
129
|
min: 0,
|
|
130
130
|
max: t.value.length > 0 ? t.value.length - 1 : 0,
|
|
131
131
|
step: 1,
|
|
132
132
|
"format-tooltip": u,
|
|
133
|
-
onInput:
|
|
133
|
+
onInput: z,
|
|
134
134
|
disabled: t.value.length === 0,
|
|
135
135
|
style: { "flex-grow": "1", margin: "0 10px" }
|
|
136
136
|
}, null, 8, ["modelValue", "max", "disabled"])
|
|
@@ -139,7 +139,7 @@ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot
|
|
|
139
139
|
]);
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
}), Wt = /* @__PURE__ */
|
|
142
|
+
}), Wt = /* @__PURE__ */ je(Nt, [["__scopeId", "data-v-93cde733"]]), Ee = new _e(), ie = new M();
|
|
143
143
|
class Ne extends yt {
|
|
144
144
|
/**
|
|
145
145
|
* Constructs a new line segments geometry.
|
|
@@ -236,14 +236,14 @@ class Ne extends yt {
|
|
|
236
236
|
this.boundingBox.getCenter(i);
|
|
237
237
|
let t = 0;
|
|
238
238
|
for (let s = 0, r = e.count; s < r; s++)
|
|
239
|
-
|
|
239
|
+
ie.fromBufferAttribute(e, s), t = Math.max(t, i.distanceToSquared(ie)), ie.fromBufferAttribute(n, s), t = Math.max(t, i.distanceToSquared(ie));
|
|
240
240
|
this.boundingSphere.radius = Math.sqrt(t), isNaN(this.boundingSphere.radius) && console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.", this);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
toJSON() {
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
le.line = {
|
|
247
247
|
worldUnits: { value: 1 },
|
|
248
248
|
linewidth: { value: 1 },
|
|
249
249
|
resolution: { value: new Oe(1, 1) },
|
|
@@ -253,11 +253,11 @@ ue.line = {
|
|
|
253
253
|
gapSize: { value: 1 }
|
|
254
254
|
// todo FIX - maybe change to totalSize
|
|
255
255
|
};
|
|
256
|
-
|
|
256
|
+
re.line = {
|
|
257
257
|
uniforms: Fe.merge([
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
le.common,
|
|
259
|
+
le.fog,
|
|
260
|
+
le.line
|
|
261
261
|
]),
|
|
262
262
|
vertexShader: (
|
|
263
263
|
/* glsl */
|
|
@@ -650,9 +650,9 @@ class Se extends xt {
|
|
|
650
650
|
constructor(e) {
|
|
651
651
|
super({
|
|
652
652
|
type: "LineMaterial",
|
|
653
|
-
uniforms: Fe.clone(
|
|
654
|
-
vertexShader:
|
|
655
|
-
fragmentShader:
|
|
653
|
+
uniforms: Fe.clone(re.line.uniforms),
|
|
654
|
+
vertexShader: re.line.vertexShader,
|
|
655
|
+
fragmentShader: re.line.fragmentShader,
|
|
656
656
|
clipping: !0
|
|
657
657
|
// required for clipping support
|
|
658
658
|
}), this.isLineMaterial = !0, this.setValues(e);
|
|
@@ -792,17 +792,17 @@ class Se extends xt {
|
|
|
792
792
|
this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
const ge = new
|
|
795
|
+
const ge = new J(), Me = new M(), Le = new M(), b = new J(), _ = new J(), k = new J(), ye = new M(), we = new _t(), S = new bt(), Te = new M(), oe = new _e(), se = new De(), B = new J();
|
|
796
796
|
let D, W;
|
|
797
|
-
function
|
|
797
|
+
function Pe(o, e, n) {
|
|
798
798
|
return B.set(0, 0, -e, 1).applyMatrix4(o.projectionMatrix), B.multiplyScalar(1 / B.w), B.x = W / n.width, B.y = W / n.height, B.applyMatrix4(o.projectionMatrixInverse), B.multiplyScalar(1 / B.w), Math.abs(Math.max(B.x, B.y));
|
|
799
799
|
}
|
|
800
800
|
function Gt(o, e) {
|
|
801
801
|
const n = o.matrixWorld, i = o.geometry, t = i.attributes.instanceStart, s = i.attributes.instanceEnd, r = Math.min(i.instanceCount, t.count);
|
|
802
|
-
for (let a = 0,
|
|
803
|
-
|
|
802
|
+
for (let a = 0, d = r; a < d; a++) {
|
|
803
|
+
S.start.fromBufferAttribute(t, a), S.end.fromBufferAttribute(s, a), S.applyMatrix4(n);
|
|
804
804
|
const u = new M(), p = new M();
|
|
805
|
-
D.distanceSqToSegment(
|
|
805
|
+
D.distanceSqToSegment(S.start, S.end, p, u), p.distanceTo(u) < W * 0.5 && e.push({
|
|
806
806
|
point: p,
|
|
807
807
|
pointOnLine: u,
|
|
808
808
|
distance: D.origin.distanceTo(p),
|
|
@@ -815,32 +815,32 @@ function Gt(o, e) {
|
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
function Rt(o, e, n) {
|
|
818
|
-
const i = e.projectionMatrix, s = o.material.resolution, r = o.matrixWorld, a = o.geometry,
|
|
819
|
-
D.at(1,
|
|
820
|
-
for (let
|
|
821
|
-
if (
|
|
818
|
+
const i = e.projectionMatrix, s = o.material.resolution, r = o.matrixWorld, a = o.geometry, d = a.attributes.instanceStart, u = a.attributes.instanceEnd, p = Math.min(a.instanceCount, d.count), f = -e.near;
|
|
819
|
+
D.at(1, k), k.w = 1, k.applyMatrix4(e.matrixWorldInverse), k.applyMatrix4(i), k.multiplyScalar(1 / k.w), k.x *= s.x / 2, k.y *= s.y / 2, k.z = 0, ye.copy(k), we.multiplyMatrices(e.matrixWorldInverse, r);
|
|
820
|
+
for (let h = 0, z = p; h < z; h++) {
|
|
821
|
+
if (b.fromBufferAttribute(d, h), _.fromBufferAttribute(u, h), b.w = 1, _.w = 1, b.applyMatrix4(we), _.applyMatrix4(we), b.z > f && _.z > f)
|
|
822
822
|
continue;
|
|
823
|
-
if (
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
} else if (
|
|
827
|
-
const
|
|
828
|
-
|
|
823
|
+
if (b.z > f) {
|
|
824
|
+
const A = b.z - _.z, T = (b.z - f) / A;
|
|
825
|
+
b.lerp(_, T);
|
|
826
|
+
} else if (_.z > f) {
|
|
827
|
+
const A = _.z - b.z, T = (_.z - f) / A;
|
|
828
|
+
_.lerp(b, T);
|
|
829
829
|
}
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
|
|
833
|
-
const
|
|
834
|
-
if (
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
D.distanceSqToSegment(
|
|
838
|
-
point:
|
|
839
|
-
pointOnLine:
|
|
840
|
-
distance: D.origin.distanceTo(
|
|
830
|
+
b.applyMatrix4(i), _.applyMatrix4(i), b.multiplyScalar(1 / b.w), _.multiplyScalar(1 / _.w), b.x *= s.x / 2, b.y *= s.y / 2, _.x *= s.x / 2, _.y *= s.y / 2, S.start.copy(b), S.start.z = 0, S.end.copy(_), S.end.z = 0;
|
|
831
|
+
const P = S.closestPointToPointParameter(ye, !0);
|
|
832
|
+
S.at(P, Te);
|
|
833
|
+
const v = Ie.lerp(b.z, _.z, P), w = v >= -1 && v <= 1, C = ye.distanceTo(Te) < W * 0.5;
|
|
834
|
+
if (w && C) {
|
|
835
|
+
S.start.fromBufferAttribute(d, h), S.end.fromBufferAttribute(u, h), S.start.applyMatrix4(r), S.end.applyMatrix4(r);
|
|
836
|
+
const A = new M(), T = new M();
|
|
837
|
+
D.distanceSqToSegment(S.start, S.end, T, A), n.push({
|
|
838
|
+
point: T,
|
|
839
|
+
pointOnLine: A,
|
|
840
|
+
distance: D.origin.distanceTo(T),
|
|
841
841
|
object: o,
|
|
842
842
|
face: null,
|
|
843
|
-
faceIndex:
|
|
843
|
+
faceIndex: h,
|
|
844
844
|
uv: null,
|
|
845
845
|
uv1: null
|
|
846
846
|
});
|
|
@@ -866,7 +866,7 @@ class Ht extends Be {
|
|
|
866
866
|
*/
|
|
867
867
|
computeLineDistances() {
|
|
868
868
|
const e = this.geometry, n = e.attributes.instanceStart, i = e.attributes.instanceEnd, t = new Float32Array(2 * n.count);
|
|
869
|
-
for (let r = 0, a = 0,
|
|
869
|
+
for (let r = 0, a = 0, d = n.count; r < d; r++, a += 2)
|
|
870
870
|
Me.fromBufferAttribute(n, r), Le.fromBufferAttribute(i, r), t[a] = a === 0 ? 0 : t[a - 1], t[a + 1] = t[a] + Me.distanceTo(Le);
|
|
871
871
|
const s = new be(t, 2, 1);
|
|
872
872
|
return e.setAttribute("instanceDistanceStart", new H(s, 1, 0)), e.setAttribute("instanceDistanceEnd", new H(s, 1, 1)), this;
|
|
@@ -882,26 +882,26 @@ class Ht extends Be {
|
|
|
882
882
|
t === null && !i && console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');
|
|
883
883
|
const s = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
|
|
884
884
|
D = e.ray;
|
|
885
|
-
const r = this.matrixWorld, a = this.geometry,
|
|
886
|
-
W =
|
|
885
|
+
const r = this.matrixWorld, a = this.geometry, d = this.material;
|
|
886
|
+
W = d.linewidth + s, a.boundingSphere === null && a.computeBoundingSphere(), se.copy(a.boundingSphere).applyMatrix4(r);
|
|
887
887
|
let u;
|
|
888
888
|
if (i)
|
|
889
889
|
u = W * 0.5;
|
|
890
890
|
else {
|
|
891
|
-
const
|
|
892
|
-
u =
|
|
891
|
+
const f = Math.max(t.near, se.distanceToPoint(D.origin));
|
|
892
|
+
u = Pe(t, f, d.resolution);
|
|
893
893
|
}
|
|
894
|
-
if (
|
|
894
|
+
if (se.radius += u, D.intersectsSphere(se) === !1)
|
|
895
895
|
return;
|
|
896
|
-
a.boundingBox === null && a.computeBoundingBox(),
|
|
896
|
+
a.boundingBox === null && a.computeBoundingBox(), oe.copy(a.boundingBox).applyMatrix4(r);
|
|
897
897
|
let p;
|
|
898
898
|
if (i)
|
|
899
899
|
p = W * 0.5;
|
|
900
900
|
else {
|
|
901
|
-
const
|
|
902
|
-
p =
|
|
901
|
+
const f = Math.max(t.near, oe.distanceToPoint(D.origin));
|
|
902
|
+
p = Pe(t, f, d.resolution);
|
|
903
903
|
}
|
|
904
|
-
|
|
904
|
+
oe.expandByScalar(p), D.intersectsBox(oe) !== !1 && (i ? Gt(this, n) : Rt(this, t, n));
|
|
905
905
|
}
|
|
906
906
|
onBeforeRender(e) {
|
|
907
907
|
const n = this.material.uniforms;
|
|
@@ -980,7 +980,7 @@ function Xt(o) {
|
|
|
980
980
|
e.push(+i, +t, +s);
|
|
981
981
|
}), e;
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function de(o, e, n) {
|
|
984
984
|
switch (o) {
|
|
985
985
|
case "X":
|
|
986
986
|
e.x = +n || 0;
|
|
@@ -1004,15 +1004,15 @@ function qt(o) {
|
|
|
1004
1004
|
if (!s)
|
|
1005
1005
|
return;
|
|
1006
1006
|
let r = null, a = "";
|
|
1007
|
-
for (let
|
|
1008
|
-
const u = s[
|
|
1007
|
+
for (let d = 0; d < (s == null ? void 0 : s.length); d++) {
|
|
1008
|
+
const u = s[d], p = n.find((f) => f === u);
|
|
1009
1009
|
if (p) {
|
|
1010
|
-
r &&
|
|
1010
|
+
r && de(r, t, a), a = "", r = p;
|
|
1011
1011
|
continue;
|
|
1012
1012
|
}
|
|
1013
1013
|
a = a + u;
|
|
1014
1014
|
}
|
|
1015
|
-
|
|
1015
|
+
de(r, t, a), e.push(t.x, t.y, t.z);
|
|
1016
1016
|
}), e;
|
|
1017
1017
|
}
|
|
1018
1018
|
const Yt = (o) => o == null ? void 0 : o.filter((n) => n.includes("=")), Zt = (o) => o.replace(/,/g, ""), Kt = (o) => o == null ? void 0 : o.map((n) => Zt(n)), Jt = (o) => {
|
|
@@ -1022,11 +1022,11 @@ const Yt = (o) => o == null ? void 0 : o.filter((n) => n.includes("=")), Zt = (o
|
|
|
1022
1022
|
function Qt(o) {
|
|
1023
1023
|
const e = Jt(o), n = [];
|
|
1024
1024
|
return e.forEach((i) => {
|
|
1025
|
-
var
|
|
1025
|
+
var f, h, z, F, P, v;
|
|
1026
1026
|
let [t, s, r, a] = i.trim().split(/\s+/);
|
|
1027
|
-
s = (
|
|
1028
|
-
const [,
|
|
1029
|
-
n.push(+
|
|
1027
|
+
s = (f = s == null ? void 0 : s.trim) == null ? void 0 : f.call(s), r = (h = r == null ? void 0 : r.trim) == null ? void 0 : h.call(r), a = (z = a == null ? void 0 : a.trim) == null ? void 0 : z.call(a);
|
|
1028
|
+
const [, d] = (F = s == null ? void 0 : s.split) == null ? void 0 : F.call(s, "="), [, u] = (P = r == null ? void 0 : r.split) == null ? void 0 : P.call(r, "="), [, p] = (v = a == null ? void 0 : a.split) == null ? void 0 : v.call(a, "=");
|
|
1029
|
+
n.push(+d, +u, +p);
|
|
1030
1030
|
}), n;
|
|
1031
1031
|
}
|
|
1032
1032
|
function en(o) {
|
|
@@ -1040,15 +1040,15 @@ function en(o) {
|
|
|
1040
1040
|
if (!s)
|
|
1041
1041
|
return;
|
|
1042
1042
|
let r = null, a = "";
|
|
1043
|
-
for (let
|
|
1044
|
-
const u = s[
|
|
1043
|
+
for (let d = 0; d < (s == null ? void 0 : s.length); d++) {
|
|
1044
|
+
const u = s[d], p = n.find((f) => f === u);
|
|
1045
1045
|
if (p) {
|
|
1046
|
-
r &&
|
|
1046
|
+
r && de(r, t, a), a = "", r = p;
|
|
1047
1047
|
continue;
|
|
1048
1048
|
}
|
|
1049
1049
|
a = a + u;
|
|
1050
1050
|
}
|
|
1051
|
-
|
|
1051
|
+
de(r, t, a), e.push(t.x, t.y, t.z);
|
|
1052
1052
|
}), e;
|
|
1053
1053
|
}
|
|
1054
1054
|
function tn(o) {
|
|
@@ -1109,36 +1109,36 @@ function cn(o, e) {
|
|
|
1109
1109
|
if (!n || !i || !t || !s)
|
|
1110
1110
|
return;
|
|
1111
1111
|
const r = [];
|
|
1112
|
-
for (let
|
|
1113
|
-
r.push(new M(e[
|
|
1114
|
-
const
|
|
1115
|
-
u.setPositions(
|
|
1112
|
+
for (let h = 0; h < e.length; h += 3)
|
|
1113
|
+
r.push(new M(e[h], e[h + 1], e[h + 2]));
|
|
1114
|
+
const d = new St(r, !1, "catmullrom", 0.5).getPoints(150).flatMap((h) => [h.x, h.y, h.z]), u = new We();
|
|
1115
|
+
u.setPositions(d);
|
|
1116
1116
|
const p = new Se({
|
|
1117
1117
|
color: 55551,
|
|
1118
1118
|
linewidth: 3,
|
|
1119
1119
|
// 像素宽度,可 >1
|
|
1120
1120
|
resolution: new Oe(window.innerWidth, window.innerHeight)
|
|
1121
|
-
}),
|
|
1122
|
-
return
|
|
1121
|
+
}), f = new $t(u, p);
|
|
1122
|
+
return f.name = "轨迹路径", n.add(f), f;
|
|
1123
1123
|
}
|
|
1124
1124
|
function un(o, e, n, i = 4, t = 50) {
|
|
1125
|
-
let s = 1 / 0, r = -1 / 0, a = 1 / 0,
|
|
1126
|
-
for (let
|
|
1127
|
-
const
|
|
1128
|
-
s = Math.min(s,
|
|
1125
|
+
let s = 1 / 0, r = -1 / 0, a = 1 / 0, d = -1 / 0, u = 1 / 0, p = -1 / 0;
|
|
1126
|
+
for (let v = 0; v < o.length; v += 3) {
|
|
1127
|
+
const w = o[v], C = o[v + 1], A = o[v + 2];
|
|
1128
|
+
s = Math.min(s, w), r = Math.max(r, w), a = Math.min(a, C), d = Math.max(d, C), u = Math.min(u, A), p = Math.max(p, A);
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1131
|
-
return Math.max(1,
|
|
1130
|
+
const h = Math.sqrt((r - s) ** 2 + (d - a) ** 2 + (p - u) ** 2) * 0.05, z = Ie.degToRad(e.fov), F = 2 * Math.tan(z / 2) * t, P = h / F * n.domElement.height * (i / 4);
|
|
1131
|
+
return Math.max(1, P);
|
|
1132
1132
|
}
|
|
1133
1133
|
function dn(o) {
|
|
1134
1134
|
if (o.length % 3 !== 0)
|
|
1135
1135
|
return console.error("points array length is not a multiple of 3:", o), null;
|
|
1136
|
-
const e = new
|
|
1136
|
+
const e = new Ct();
|
|
1137
1137
|
e.setAttribute("position", new xe(o, 3));
|
|
1138
1138
|
const n = new Float32Array(o.length);
|
|
1139
1139
|
for (let s = 0; s < o.length; s += 3)
|
|
1140
1140
|
n[s] = 0, n[s + 1] = 0.847, n[s + 2] = 1;
|
|
1141
|
-
e.setAttribute("color", new
|
|
1141
|
+
e.setAttribute("color", new zt(n, 3));
|
|
1142
1142
|
const i = new At({
|
|
1143
1143
|
vertexColors: !0,
|
|
1144
1144
|
size: 1,
|
|
@@ -1160,13 +1160,13 @@ function fn(o, e) {
|
|
|
1160
1160
|
const a = un(e, i, t, 0.4, 50);
|
|
1161
1161
|
return r.material.size = a, r;
|
|
1162
1162
|
}
|
|
1163
|
-
const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-
|
|
1163
|
+
const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-topLeft" }, hn = { class: "buttonGroup-left" }, vn = { class: "buttonGroup-right" }, gn = { class: "buttonGroup-bottom" }, yn = { class: "left-panel" }, wn = { class: "panel-header" }, xn = { class: "panel-body" }, bn = {
|
|
1164
1164
|
key: 1,
|
|
1165
1165
|
class: "clipping-content"
|
|
1166
|
-
},
|
|
1166
|
+
}, _n = { class: "radio-group" }, Sn = { class: "radio-label" }, Cn = { class: "radio-label" }, zn = { class: "radio-label" }, An = { class: "radio-label" }, Un = { class: "right-panel" }, En = { class: "panel-header" }, Mn = { class: "panel-body" }, Ln = {
|
|
1167
1167
|
key: 0,
|
|
1168
1168
|
class: "loading-overlay"
|
|
1169
|
-
}, Tn = /* @__PURE__ */
|
|
1169
|
+
}, Tn = /* @__PURE__ */ ke({
|
|
1170
1170
|
__name: "threeTrackPathView",
|
|
1171
1171
|
props: {
|
|
1172
1172
|
fileBlobs: {},
|
|
@@ -1175,22 +1175,22 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
|
|
|
1175
1175
|
},
|
|
1176
1176
|
emits: ["getAnimationData", "getThreeData"],
|
|
1177
1177
|
setup(o, { emit: e }) {
|
|
1178
|
-
const n = e, i = o, t = E(null), s = E(!1), r = E(""), a = E(),
|
|
1178
|
+
const n = e, i = o, t = E(null), s = E(!1), r = E(""), a = E(), d = E(!1), u = E(""), p = E(!1), f = E(""), h = Q(null), z = Q(null), {
|
|
1179
1179
|
currentModels: F,
|
|
1180
|
-
resetView:
|
|
1181
|
-
initThreeJS:
|
|
1182
|
-
handleResize:
|
|
1180
|
+
resetView: P,
|
|
1181
|
+
initThreeJS: v,
|
|
1182
|
+
handleResize: w,
|
|
1183
1183
|
getThreeJSObjects: C,
|
|
1184
|
-
cleanup:
|
|
1185
|
-
axesHelperVisible:
|
|
1186
|
-
toggleAxesVisibility:
|
|
1184
|
+
cleanup: A,
|
|
1185
|
+
axesHelperVisible: T,
|
|
1186
|
+
toggleAxesVisibility: fe
|
|
1187
1187
|
} = ft(t), { isAnimating: G, toggleAnimation: Ge, stopAnimation: Re } = pt(C, F), { isClipping: He, activeClippingAxis: L, toggleClipping: $e, updateClippingPlanes: O } = mt(C, F), Xe = () => {
|
|
1188
|
-
|
|
1189
|
-
},
|
|
1190
|
-
|
|
1191
|
-
},
|
|
1192
|
-
p.value = !0,
|
|
1193
|
-
}, he = E([]),
|
|
1188
|
+
fe();
|
|
1189
|
+
}, pe = (c) => {
|
|
1190
|
+
d.value = !0, u.value = c, c === "剖面视图" && !He.value && $e();
|
|
1191
|
+
}, me = (c) => {
|
|
1192
|
+
p.value = !0, f.value = c, c === "动画仿真" && n("getAnimationData");
|
|
1193
|
+
}, he = E([]), $ = E([]), qe = R(() => {
|
|
1194
1194
|
var l;
|
|
1195
1195
|
return (l = i.trackFileType) == null ? void 0 : l.isUv;
|
|
1196
1196
|
}), Ye = R(() => {
|
|
@@ -1206,29 +1206,29 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
|
|
|
1206
1206
|
const c = i.fileBlobs || [];
|
|
1207
1207
|
return c == null ? void 0 : c[0];
|
|
1208
1208
|
});
|
|
1209
|
-
let
|
|
1209
|
+
let I = Q(), N = Q();
|
|
1210
1210
|
const Je = () => {
|
|
1211
1211
|
const { scene: c } = C();
|
|
1212
|
-
|
|
1212
|
+
I.value && c && (Ue(I.value, c), I.value = null);
|
|
1213
1213
|
}, Qe = () => {
|
|
1214
1214
|
const { scene: c } = C();
|
|
1215
1215
|
N.value && c && (Ue(N.value, c), N.value = null);
|
|
1216
|
-
},
|
|
1216
|
+
}, Ce = () => {
|
|
1217
1217
|
Je(), Qe();
|
|
1218
1218
|
}, et = async (c) => {
|
|
1219
|
-
const l = URL.createObjectURL(c),
|
|
1220
|
-
if (URL.revokeObjectURL(l),
|
|
1221
|
-
const
|
|
1222
|
-
he.value =
|
|
1223
|
-
const
|
|
1224
|
-
qe.value && (
|
|
1219
|
+
const l = URL.createObjectURL(c), X = await Et(l);
|
|
1220
|
+
if (URL.revokeObjectURL(l), Tt(X)) {
|
|
1221
|
+
const g = await rn(X, i.trackFileType) || [];
|
|
1222
|
+
he.value = g;
|
|
1223
|
+
const ze = he.value;
|
|
1224
|
+
qe.value && (I.value = cn(C, ze)), (Ye.value || Ze.value || V.value) && (I.value = fn(C, ze)), ht(C, I.value);
|
|
1225
1225
|
}
|
|
1226
1226
|
}, tt = () => {
|
|
1227
1227
|
var c, l;
|
|
1228
|
-
N.value =
|
|
1228
|
+
N.value = Pt(), $.value = ln(he.value), $.value && $.value.length && (Ve(N.value, $.value[0], I.value, new ue(16711680)), (l = (c = z.value) == null ? void 0 : c.add) == null || l.call(c, N.value));
|
|
1229
1229
|
};
|
|
1230
1230
|
lt(() => Ke.value, async (c) => {
|
|
1231
|
-
c && (
|
|
1231
|
+
c && (Ce(), await et(c), V.value && tt());
|
|
1232
1232
|
}, {
|
|
1233
1233
|
immediate: !0,
|
|
1234
1234
|
deep: !0
|
|
@@ -1246,163 +1246,116 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
|
|
|
1246
1246
|
var c;
|
|
1247
1247
|
V.value && ((c = a == null ? void 0 : a.value) == null || c.backwardFrame());
|
|
1248
1248
|
}, at = () => {
|
|
1249
|
-
|
|
1249
|
+
v(), window.addEventListener("resize", w);
|
|
1250
1250
|
const c = C();
|
|
1251
|
-
|
|
1251
|
+
z.value = c.scene, z.value && (z.value.name = "CPMPIP");
|
|
1252
1252
|
}, rt = () => {
|
|
1253
|
-
window.removeEventListener("resize",
|
|
1253
|
+
window.removeEventListener("resize", w), G.value && Re(), Ce(), A();
|
|
1254
1254
|
};
|
|
1255
1255
|
return ct(async () => {
|
|
1256
1256
|
try {
|
|
1257
1257
|
at();
|
|
1258
1258
|
} catch (c) {
|
|
1259
|
-
console.error("Three.js 初始化失败:", c),
|
|
1259
|
+
console.error("Three.js 初始化失败:", c), Z.error("渲染引擎初始化失败!");
|
|
1260
1260
|
}
|
|
1261
1261
|
}), ut(() => {
|
|
1262
1262
|
rt();
|
|
1263
1263
|
}), (c, l) => {
|
|
1264
|
-
const
|
|
1265
|
-
return
|
|
1264
|
+
const X = q("el-scrollbar");
|
|
1265
|
+
return Y(), ae("div", pn, [
|
|
1266
1266
|
m("div", {
|
|
1267
1267
|
ref_key: "threejsContainer",
|
|
1268
1268
|
ref: t,
|
|
1269
1269
|
class: "threejs-container"
|
|
1270
1270
|
}, null, 512),
|
|
1271
1271
|
m("div", mn, [
|
|
1272
|
-
|
|
1273
|
-
name: "guanjianjiexi",
|
|
1274
|
-
size: "34"
|
|
1275
|
-
}),
|
|
1276
|
-
h(w, {
|
|
1277
|
-
name: "guanjiekongzhi",
|
|
1278
|
-
size: "34"
|
|
1279
|
-
}),
|
|
1280
|
-
h(w, {
|
|
1281
|
-
name: "gongyishengcheng",
|
|
1282
|
-
size: "34"
|
|
1283
|
-
}),
|
|
1284
|
-
h(w, {
|
|
1285
|
-
name: "buchangshezhi",
|
|
1286
|
-
size: "34"
|
|
1287
|
-
}),
|
|
1288
|
-
h(w, {
|
|
1289
|
-
name: "shuchujiagongchengxu",
|
|
1290
|
-
size: "34"
|
|
1291
|
-
})
|
|
1292
|
-
]),
|
|
1293
|
-
m("div", hn, [
|
|
1294
|
-
h(w, {
|
|
1272
|
+
y(U, {
|
|
1295
1273
|
name: "viewReset",
|
|
1296
1274
|
size: "24",
|
|
1297
|
-
onClick:
|
|
1275
|
+
onClick: x(P),
|
|
1298
1276
|
title: "重置"
|
|
1299
1277
|
}, null, 8, ["onClick"]),
|
|
1300
|
-
|
|
1278
|
+
y(U, {
|
|
1301
1279
|
name: "fangda",
|
|
1302
1280
|
size: "24",
|
|
1303
1281
|
title: "放大"
|
|
1304
1282
|
}),
|
|
1305
|
-
|
|
1283
|
+
y(U, {
|
|
1306
1284
|
name: "suoxiao",
|
|
1307
1285
|
size: "24",
|
|
1308
1286
|
title: "缩小"
|
|
1309
1287
|
}),
|
|
1310
|
-
|
|
1288
|
+
y(U, {
|
|
1311
1289
|
name: "lookAround",
|
|
1312
1290
|
size: "24",
|
|
1313
|
-
onClick:
|
|
1314
|
-
title:
|
|
1291
|
+
onClick: x(Ge),
|
|
1292
|
+
title: x(G) ? "停止动画" : "动画视图"
|
|
1315
1293
|
}, null, 8, ["onClick", "title"]),
|
|
1316
|
-
|
|
1294
|
+
y(U, {
|
|
1317
1295
|
name: "zuobiaoxi",
|
|
1318
1296
|
size: "24",
|
|
1319
|
-
active:
|
|
1297
|
+
active: x(T),
|
|
1320
1298
|
onClick: Xe,
|
|
1321
1299
|
title: "显隐坐标轴"
|
|
1322
1300
|
}, null, 8, ["active"])
|
|
1323
1301
|
]),
|
|
1324
|
-
m("div",
|
|
1325
|
-
Ae(c.$slots, "button-left", { switchRightPanel:
|
|
1326
|
-
|
|
1302
|
+
m("div", hn, [
|
|
1303
|
+
Ae(c.$slots, "button-left", { switchRightPanel: pe }, void 0, !0),
|
|
1304
|
+
y(U, {
|
|
1327
1305
|
name: "jiegoushu",
|
|
1328
1306
|
size: "24",
|
|
1329
|
-
onClick: l[0] || (l[0] = (
|
|
1330
|
-
active:
|
|
1307
|
+
onClick: l[0] || (l[0] = (g) => pe("场景树")),
|
|
1308
|
+
active: d.value && u.value === "场景树",
|
|
1331
1309
|
title: "场景树"
|
|
1332
1310
|
}, null, 8, ["active"]),
|
|
1333
|
-
|
|
1311
|
+
y(U, {
|
|
1334
1312
|
name: "clipping",
|
|
1335
1313
|
size: "24",
|
|
1336
|
-
onClick: l[1] || (l[1] = (
|
|
1337
|
-
active:
|
|
1314
|
+
onClick: l[1] || (l[1] = (g) => pe("剖面视图")),
|
|
1315
|
+
active: d.value && u.value === "剖面视图",
|
|
1338
1316
|
title: "剖面视图"
|
|
1339
|
-
}, null, 8, ["active"])
|
|
1340
|
-
h(w, {
|
|
1341
|
-
name: "donghuafangzhen",
|
|
1342
|
-
size: "24",
|
|
1343
|
-
onClick: l[2] || (l[2] = (y) => $("场景树3"))
|
|
1344
|
-
}),
|
|
1345
|
-
h(w, {
|
|
1346
|
-
name: "donghuafangzhen",
|
|
1347
|
-
size: "24",
|
|
1348
|
-
onClick: l[3] || (l[3] = (y) => $("场景4"))
|
|
1349
|
-
})
|
|
1317
|
+
}, null, 8, ["active"])
|
|
1350
1318
|
]),
|
|
1351
|
-
m("div",
|
|
1352
|
-
Ae(c.$slots, "button-right", { switchRightPanel:
|
|
1353
|
-
|
|
1354
|
-
name: "donghuafangzhen",
|
|
1355
|
-
size: "24"
|
|
1356
|
-
}),
|
|
1357
|
-
h(w, {
|
|
1319
|
+
m("div", vn, [
|
|
1320
|
+
Ae(c.$slots, "button-right", { switchRightPanel: me }, void 0, !0),
|
|
1321
|
+
y(U, {
|
|
1358
1322
|
name: "guanjiekongzhi",
|
|
1359
1323
|
size: "24",
|
|
1360
|
-
onClick: l[
|
|
1361
|
-
active: p.value &&
|
|
1324
|
+
onClick: l[2] || (l[2] = (g) => me("关节控制")),
|
|
1325
|
+
active: p.value && f.value === "关节控制",
|
|
1362
1326
|
title: "关节控制"
|
|
1363
1327
|
}, null, 8, ["active"]),
|
|
1364
|
-
|
|
1328
|
+
y(U, {
|
|
1365
1329
|
name: "donghuafangzhen",
|
|
1366
1330
|
size: "24",
|
|
1367
1331
|
title: "动画仿真",
|
|
1368
|
-
onClick: l[
|
|
1369
|
-
active: p.value &&
|
|
1370
|
-
}, null, 8, ["active"])
|
|
1371
|
-
h(w, {
|
|
1372
|
-
name: "donghuafangzhen",
|
|
1373
|
-
size: "24",
|
|
1374
|
-
title: "urdf动画",
|
|
1375
|
-
onClick: l[6] || (l[6] = (y) => ee("urdf动画")),
|
|
1376
|
-
active: p.value && d.value === "urdf动画"
|
|
1377
|
-
}, null, 8, ["active"]),
|
|
1378
|
-
h(w, {
|
|
1379
|
-
name: "donghuafangzhen",
|
|
1380
|
-
size: "24"
|
|
1381
|
-
})
|
|
1332
|
+
onClick: l[3] || (l[3] = (g) => me("动画仿真")),
|
|
1333
|
+
active: p.value && f.value === "动画仿真"
|
|
1334
|
+
}, null, 8, ["active"])
|
|
1382
1335
|
]),
|
|
1383
|
-
m("div",
|
|
1384
|
-
|
|
1336
|
+
m("div", gn, [
|
|
1337
|
+
y(U, {
|
|
1385
1338
|
name: "kuaitui",
|
|
1386
1339
|
size: "24",
|
|
1387
1340
|
backgroundColor: "#ffffff",
|
|
1388
1341
|
title: "快退",
|
|
1389
1342
|
onClick: st
|
|
1390
1343
|
}),
|
|
1391
|
-
|
|
1344
|
+
y(U, {
|
|
1392
1345
|
name: "bofang",
|
|
1393
1346
|
size: "24",
|
|
1394
1347
|
backgroundColor: "#ffffff",
|
|
1395
1348
|
title: "播放",
|
|
1396
1349
|
onClick: nt
|
|
1397
1350
|
}),
|
|
1398
|
-
|
|
1351
|
+
y(U, {
|
|
1399
1352
|
name: "kuaijin",
|
|
1400
1353
|
size: "24",
|
|
1401
1354
|
backgroundColor: "#ffffff",
|
|
1402
1355
|
title: "快进",
|
|
1403
1356
|
onClick: ot
|
|
1404
1357
|
}),
|
|
1405
|
-
|
|
1358
|
+
y(U, {
|
|
1406
1359
|
name: "zanting",
|
|
1407
1360
|
size: "24",
|
|
1408
1361
|
backgroundColor: "#ffffff",
|
|
@@ -1410,74 +1363,74 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
|
|
|
1410
1363
|
onClick: it
|
|
1411
1364
|
})
|
|
1412
1365
|
]),
|
|
1413
|
-
|
|
1414
|
-
m("div",
|
|
1415
|
-
m("span", null,
|
|
1366
|
+
j(m("div", yn, [
|
|
1367
|
+
m("div", wn, [
|
|
1368
|
+
m("span", null, K(u.value), 1),
|
|
1416
1369
|
m("span", {
|
|
1417
1370
|
class: "close",
|
|
1418
|
-
onClick: l[
|
|
1371
|
+
onClick: l[4] || (l[4] = (g) => d.value = !1)
|
|
1419
1372
|
}, " X ")
|
|
1420
1373
|
]),
|
|
1421
|
-
m("div",
|
|
1422
|
-
|
|
1423
|
-
default:
|
|
1424
|
-
u.value === "场景树" ? (
|
|
1374
|
+
m("div", xn, [
|
|
1375
|
+
y(X, { height: "100%" }, {
|
|
1376
|
+
default: ce(() => [
|
|
1377
|
+
u.value === "场景树" ? (Y(), dt(Mt, {
|
|
1425
1378
|
key: 0,
|
|
1426
|
-
model:
|
|
1379
|
+
model: h.value
|
|
1427
1380
|
}, null, 8, ["model"])) : ve("", !0),
|
|
1428
|
-
u.value === "剖面视图" ? (
|
|
1429
|
-
m("div",
|
|
1430
|
-
m("label",
|
|
1431
|
-
|
|
1381
|
+
u.value === "剖面视图" ? (Y(), ae("div", bn, [
|
|
1382
|
+
m("div", _n, [
|
|
1383
|
+
m("label", Sn, [
|
|
1384
|
+
j(m("input", {
|
|
1432
1385
|
type: "radio",
|
|
1433
1386
|
name: "clipping-axis",
|
|
1434
1387
|
value: "none",
|
|
1435
|
-
"onUpdate:modelValue": l[
|
|
1436
|
-
onChange: l[
|
|
1437
|
-
(...
|
|
1388
|
+
"onUpdate:modelValue": l[5] || (l[5] = (g) => ee(L) ? L.value = g : null),
|
|
1389
|
+
onChange: l[6] || (l[6] = //@ts-ignore
|
|
1390
|
+
(...g) => x(O) && x(O)(...g))
|
|
1438
1391
|
}, null, 544), [
|
|
1439
|
-
[
|
|
1392
|
+
[te, x(L)]
|
|
1440
1393
|
]),
|
|
1441
|
-
l[
|
|
1394
|
+
l[14] || (l[14] = m("span", { class: "radio-text" }, "无切割", -1))
|
|
1442
1395
|
]),
|
|
1443
1396
|
m("label", Cn, [
|
|
1444
|
-
|
|
1397
|
+
j(m("input", {
|
|
1445
1398
|
type: "radio",
|
|
1446
1399
|
name: "clipping-axis",
|
|
1447
1400
|
value: "x",
|
|
1448
|
-
"onUpdate:modelValue": l[
|
|
1449
|
-
onChange: l[
|
|
1450
|
-
(...
|
|
1401
|
+
"onUpdate:modelValue": l[7] || (l[7] = (g) => ee(L) ? L.value = g : null),
|
|
1402
|
+
onChange: l[8] || (l[8] = //@ts-ignore
|
|
1403
|
+
(...g) => x(O) && x(O)(...g))
|
|
1451
1404
|
}, null, 544), [
|
|
1452
|
-
[
|
|
1405
|
+
[te, x(L)]
|
|
1453
1406
|
]),
|
|
1454
|
-
l[
|
|
1407
|
+
l[15] || (l[15] = m("span", { class: "radio-text" }, "X轴切割", -1))
|
|
1455
1408
|
]),
|
|
1456
|
-
m("label",
|
|
1457
|
-
|
|
1409
|
+
m("label", zn, [
|
|
1410
|
+
j(m("input", {
|
|
1458
1411
|
type: "radio",
|
|
1459
1412
|
name: "clipping-axis",
|
|
1460
1413
|
value: "y",
|
|
1461
|
-
"onUpdate:modelValue": l[
|
|
1462
|
-
onChange: l[
|
|
1463
|
-
(...
|
|
1414
|
+
"onUpdate:modelValue": l[9] || (l[9] = (g) => ee(L) ? L.value = g : null),
|
|
1415
|
+
onChange: l[10] || (l[10] = //@ts-ignore
|
|
1416
|
+
(...g) => x(O) && x(O)(...g))
|
|
1464
1417
|
}, null, 544), [
|
|
1465
|
-
[
|
|
1418
|
+
[te, x(L)]
|
|
1466
1419
|
]),
|
|
1467
|
-
l[
|
|
1420
|
+
l[16] || (l[16] = m("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
1468
1421
|
]),
|
|
1469
|
-
m("label",
|
|
1470
|
-
|
|
1422
|
+
m("label", An, [
|
|
1423
|
+
j(m("input", {
|
|
1471
1424
|
type: "radio",
|
|
1472
1425
|
name: "clipping-axis",
|
|
1473
1426
|
value: "z",
|
|
1474
|
-
"onUpdate:modelValue": l[
|
|
1475
|
-
onChange: l[
|
|
1476
|
-
(...
|
|
1427
|
+
"onUpdate:modelValue": l[11] || (l[11] = (g) => ee(L) ? L.value = g : null),
|
|
1428
|
+
onChange: l[12] || (l[12] = //@ts-ignore
|
|
1429
|
+
(...g) => x(O) && x(O)(...g))
|
|
1477
1430
|
}, null, 544), [
|
|
1478
|
-
[
|
|
1431
|
+
[te, x(L)]
|
|
1479
1432
|
]),
|
|
1480
|
-
l[
|
|
1433
|
+
l[17] || (l[17] = m("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
1481
1434
|
])
|
|
1482
1435
|
])
|
|
1483
1436
|
])) : ve("", !0)
|
|
@@ -1486,46 +1439,46 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
|
|
|
1486
1439
|
})
|
|
1487
1440
|
])
|
|
1488
1441
|
], 512), [
|
|
1489
|
-
[
|
|
1442
|
+
[ne, d.value]
|
|
1490
1443
|
]),
|
|
1491
|
-
|
|
1492
|
-
m("div",
|
|
1493
|
-
m("span", null,
|
|
1444
|
+
j(m("div", Un, [
|
|
1445
|
+
m("div", En, [
|
|
1446
|
+
m("span", null, K(f.value), 1),
|
|
1494
1447
|
m("span", {
|
|
1495
1448
|
class: "close",
|
|
1496
|
-
onClick: l[
|
|
1449
|
+
onClick: l[13] || (l[13] = (g) => p.value = !1)
|
|
1497
1450
|
}, " X ")
|
|
1498
1451
|
]),
|
|
1499
|
-
m("div",
|
|
1500
|
-
|
|
1501
|
-
default:
|
|
1502
|
-
|
|
1503
|
-
[
|
|
1452
|
+
m("div", Mn, [
|
|
1453
|
+
y(X, { height: "100%" }, {
|
|
1454
|
+
default: ce(() => [
|
|
1455
|
+
j(y(Lt, { model: h.value }, null, 8, ["model"]), [
|
|
1456
|
+
[ne, f.value === "关节控制"]
|
|
1504
1457
|
]),
|
|
1505
|
-
|
|
1458
|
+
j(y(Wt, {
|
|
1506
1459
|
ref_key: "animationPanelRef",
|
|
1507
1460
|
ref: a,
|
|
1508
|
-
cloud:
|
|
1509
|
-
knife:
|
|
1510
|
-
vectors:
|
|
1461
|
+
cloud: x(I),
|
|
1462
|
+
knife: x(N),
|
|
1463
|
+
vectors: $.value
|
|
1511
1464
|
}, null, 8, ["cloud", "knife", "vectors"]), [
|
|
1512
|
-
[
|
|
1465
|
+
[ne, f.value === "动画仿真" && V.value]
|
|
1513
1466
|
])
|
|
1514
1467
|
]),
|
|
1515
1468
|
_: 1
|
|
1516
1469
|
})
|
|
1517
1470
|
])
|
|
1518
1471
|
], 512), [
|
|
1519
|
-
[
|
|
1472
|
+
[ne, p.value]
|
|
1520
1473
|
]),
|
|
1521
|
-
s.value ? (
|
|
1522
|
-
l[
|
|
1523
|
-
m("p", null,
|
|
1474
|
+
s.value ? (Y(), ae("div", Ln, [
|
|
1475
|
+
l[18] || (l[18] = m("div", { class: "loading-spinner" }, null, -1)),
|
|
1476
|
+
m("p", null, K(r.value), 1)
|
|
1524
1477
|
])) : ve("", !0)
|
|
1525
1478
|
]);
|
|
1526
1479
|
};
|
|
1527
1480
|
}
|
|
1528
|
-
}),
|
|
1481
|
+
}), Nn = /* @__PURE__ */ je(Tn, [["__scopeId", "data-v-48ba356f"]]);
|
|
1529
1482
|
export {
|
|
1530
|
-
|
|
1483
|
+
Nn as default
|
|
1531
1484
|
};
|