ss-component-new 1.2.48 → 1.2.49

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.
Files changed (88) hide show
  1. package/dist/{MTLLoader-CaFP1Ou3.js → MTLLoader-CI8ixwPt.js} +1 -1
  2. package/dist/{MTLLoader-CE4kiml3.cjs → MTLLoader-Dvu7y2QT.cjs} +1 -1
  3. package/dist/{OrbitControls-DArl2VW_.js → OrbitControls-C9e3hYR3.js} +1 -1
  4. package/dist/{OrbitControls-Dp4IKx0f.cjs → OrbitControls-_0hxpyeP.cjs} +1 -1
  5. package/dist/{animationData-Bn6Bb5Do.cjs → animationData-D_zttqoJ.cjs} +1 -1
  6. package/dist/{animationData-CKhRG4G6.js → animationData-X5-Vecw1.js} +1 -1
  7. package/dist/{fileUtil-XthoWjc0.cjs → fileUtil-Bdou_B28.cjs} +1 -1
  8. package/dist/{fileUtil-CGSBIaqQ.js → fileUtil-DfZnK-Hd.js} +1 -1
  9. package/dist/{iconfont-CoOPkcMU.js → iconfont-BqCAG-Xa.js} +2 -2
  10. package/dist/{iconfont-CzHX5Q49.cjs → iconfont-CF0Z-1Zz.cjs} +1 -1
  11. package/dist/{index-DK2gRUQ5.js → index--dF_34pi.js} +3 -3
  12. package/dist/{index-B_N4MySi.js → index-4YT4LSe0.js} +6 -6
  13. package/dist/{index-D6f9QOaT.cjs → index-B67T_D-B.cjs} +1 -1
  14. package/dist/{index-BgGtziMi.js → index-BBhUi01k.js} +1 -1
  15. package/dist/{index-kU-daxaJ.cjs → index-BFDlTBy2.cjs} +1 -1
  16. package/dist/{index-BuLZitf5.js → index-BFbWwBLk.js} +1 -1
  17. package/dist/{index-CC7hLeHW.cjs → index-BNvzsde-.cjs} +1 -1
  18. package/dist/{index-BPAbLPKP.js → index-BXmDJjWZ.js} +3 -3
  19. package/dist/{index-BaCVhcpB.js → index-BayEAjm5.js} +2 -2
  20. package/dist/{index-DeoJm8bD.cjs → index-Bi-eQ_Ao.cjs} +1 -1
  21. package/dist/{index-DlWW881X.cjs → index-BlOdSSAq.cjs} +1 -1
  22. package/dist/{index-BlI13uDG.js → index-BtFLHygK.js} +3 -3
  23. package/dist/{index-CkjmhTCX.cjs → index-CCQIE4Oy.cjs} +1 -1
  24. package/dist/{index-BzE5v5kZ.js → index-CNm1s2vL.js} +1 -1
  25. package/dist/{index-CVvKFbm0.cjs → index-CPUMWDcJ.cjs} +1 -1
  26. package/dist/{index-BGs6f9ia.cjs → index-CQ1e9lYs.cjs} +1 -1
  27. package/dist/{index-CoM7mmmK.js → index-CS0QGxh0.js} +2 -2
  28. package/dist/{index-DS74YOGT.js → index-CS9sM7Hp.js} +13 -13
  29. package/dist/{index-C9kezJl-.cjs → index-CVpMVZV1.cjs} +1 -1
  30. package/dist/{index-C27aVboC.cjs → index-C_sDHKxB.cjs} +1 -1
  31. package/dist/{index-BTFg_bTg.cjs → index-CbBgf-yk.cjs} +1 -1
  32. package/dist/{index-CA2Yz2_0.cjs → index-CkuJ8iH2.cjs} +1 -1
  33. package/dist/{index-D9lY54L2.cjs → index-Cl7W3Ut8.cjs} +1 -1
  34. package/dist/{index-CaVtcERG.js → index-CmhVDhAN.js} +1 -1
  35. package/dist/{index-DtKItKKp.cjs → index-CtG2kfBs.cjs} +1 -1
  36. package/dist/{index-Bp8HFrx8.cjs → index-Ctu9PMCG.cjs} +1 -1
  37. package/dist/{index-Dhr85_ZG.js → index-CuaFndyM.js} +1 -1
  38. package/dist/{index-BM3G9dKv.cjs → index-DE3DTsMe.cjs} +1 -1
  39. package/dist/{index-BIbEt8CC.cjs → index-DbTCGQx3.cjs} +1 -1
  40. package/dist/{index-DhNncUpj.js → index-DcOmBNJf.js} +6 -6
  41. package/dist/{index-CwUGEpBf.js → index-DcaPy4x5.js} +4 -4
  42. package/dist/{index-LviYrEee.cjs → index-DhBSzWe6.cjs} +1 -1
  43. package/dist/{index-Bav-TgWp.cjs → index-DtstoFZP.cjs} +1 -1
  44. package/dist/{index-Cv4ZnuwG.js → index-Dy4T7syW.js} +1 -1
  45. package/dist/{index-D4-Vm_be.js → index-Gf-kIKKw.js} +1 -1
  46. package/dist/{index-DbebBHFx.cjs → index-MRxhNso1.cjs} +1 -1
  47. package/dist/{index-0QG1fhmk.js → index-PQ_QQCkT.js} +3 -3
  48. package/dist/{index-DDIHX4cE.js → index-Z6YOQl0q.js} +1 -1
  49. package/dist/{index-DxoNiiaW.js → index-ZQaet9VV.js} +2 -2
  50. package/dist/{index-DO7yfB4v.cjs → index-ZRiaAb2v.cjs} +1 -1
  51. package/dist/{index-B3tcBTuN.js → index-ahynRrcW.js} +1 -1
  52. package/dist/{index-UbKxbl_Q.js → index-qjBFQjPJ.js} +1 -1
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CVhcJCk3.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B6ZjVCbD.cjs} +1 -1
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DVDkdgUJ.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B6uH3veM.js} +6 -6
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BKmza87s.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bs732h4o.js} +1642 -1647
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CVOmmDqn.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZpdB8yMK.cjs} +58 -58
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BHE0HyLH.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Bo0v68wl.js} +3 -3
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-UPn3ibM8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-D6ACiiu0.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_1_lang-BQu9bRjA.js → index.vue_vue_type_style_index_1_lang-BWrgp4ZE.js} +3 -3
  60. package/dist/{index.vue_vue_type_style_index_1_lang-BCgJtTb9.cjs → index.vue_vue_type_style_index_1_lang-C48UCmcC.cjs} +1 -1
  61. package/dist/{main-C8s1t45C.cjs → main-_mrHlIM9.cjs} +1 -1
  62. package/dist/{main-DYESspnW.js → main-m1Rhr2az.js} +2 -2
  63. package/dist/ss-component.cjs +1 -1
  64. package/dist/ss-component.js +9 -9
  65. package/dist/ss-component2.cjs +1 -1
  66. package/dist/ss-component2.js +10 -10
  67. package/dist/{threeModel-CPfys2Ir.cjs → threeModel-B3mSuqYu.cjs} +1 -1
  68. package/dist/{threeModel-CE2asK8z.js → threeModel-CvPCyPV6.js} +4 -4
  69. package/dist/{threePreview-B4pWTdK0.cjs → threePreview-BadLzWum.cjs} +1 -1
  70. package/dist/{threePreview-D1x3POg8.js → threePreview-C4uFnwJD.js} +3 -3
  71. package/dist/{threeSceneView-B7Rg5mYp.cjs → threeSceneView-BVrwU1JW.cjs} +1 -1
  72. package/dist/{threeSceneView-C_rkxb3y.js → threeSceneView-ZtLxHVG4.js} +6 -6
  73. package/dist/{threeSceneViewForCPMPIP-B6jB5Tek.cjs → threeSceneViewForCPMPIP-1YWF_a61.cjs} +1 -1
  74. package/dist/{threeSceneViewForCPMPIP-68VJDoWr.js → threeSceneViewForCPMPIP-C0FHJPj7.js} +7 -7
  75. package/dist/threeTrackPathView-DUeFqTH4.cjs +370 -0
  76. package/dist/{threeTrackPathView-Cs-yUH16.js → threeTrackPathView-uxK07M8K.js} +283 -263
  77. package/dist/{threeViewerHost-Ca1V8lHT.cjs → threeViewerHost-B0cP0E33.cjs} +1 -1
  78. package/dist/{threeViewerHost-N_id3Zd_.js → threeViewerHost-C5syYs1F.js} +2 -2
  79. package/dist/{urdfTree-D6IvPahB.js → urdfTree-DHVh6IAB.js} +1 -1
  80. package/dist/{urdfTree-Czcl8tzp.cjs → urdfTree-tjbbIpI4.cjs} +1 -1
  81. package/dist/{workpieceTreePanel-Cyhp8KK2.js → workpieceTreePanel-DrKcwg7Z.js} +5 -5
  82. package/dist/{workpieceTreePanel-CWGU_Vea.cjs → workpieceTreePanel-QjGBJMbm.cjs} +1 -1
  83. package/package.json +1 -1
  84. package/dist/obj/model.mtl +0 -42
  85. package/dist/obj/model.obj +0 -26110
  86. package/dist/threeTrackPathView-c50jFDAg.cjs +0 -370
  87. package/public/obj/model.mtl +0 -42
  88. package/public/obj/model.obj +0 -26110
@@ -1,370 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),D=require("./iconfont-CzHX5Q49.cjs"),s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CVOmmDqn.cjs"),ye=require("./fileUtil-XthoWjc0.cjs"),we=require("./index-C8qRkCgn.cjs"),J=require("./urdfTree-Czcl8tzp.cjs"),v=require("./svgIcon-CUM54R6L.cjs"),Se=require("./isString--eJE54G5.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=new s.Box3,R=new s.Vector3;class oe extends s.InstancedBufferGeometry{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const e=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],i=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],o=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(o),this.setAttribute("position",new s.Float32BufferAttribute(e,3)),this.setAttribute("uv",new s.Float32BufferAttribute(i,2))}applyMatrix4(e){const i=this.attributes.instanceStart,o=this.attributes.instanceEnd;return i!==void 0&&(i.applyMatrix4(e),o.applyMatrix4(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(e){let i;e instanceof Float32Array?i=e:Array.isArray(e)&&(i=new Float32Array(e));const o=new s.InstancedInterleavedBuffer(i,6,1);return this.setAttribute("instanceStart",new s.InterleavedBufferAttribute(o,3,0)),this.setAttribute("instanceEnd",new s.InterleavedBufferAttribute(o,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let i;e instanceof Float32Array?i=e:Array.isArray(e)&&(i=new Float32Array(e));const o=new s.InstancedInterleavedBuffer(i,6,1);return this.setAttribute("instanceColorStart",new s.InterleavedBufferAttribute(o,3,0)),this.setAttribute("instanceColorEnd",new s.InterleavedBufferAttribute(o,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new s.WireframeGeometry(e.geometry)),this}fromLineSegments(e){const i=e.geometry;return this.setPositions(i.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new s.Box3);const e=this.attributes.instanceStart,i=this.attributes.instanceEnd;e!==void 0&&i!==void 0&&(this.boundingBox.setFromBufferAttribute(e),K.setFromBufferAttribute(i),this.boundingBox.union(K))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new s.Sphere),this.boundingBox===null&&this.computeBoundingBox();const e=this.attributes.instanceStart,i=this.attributes.instanceEnd;if(e!==void 0&&i!==void 0){const o=this.boundingSphere.center;this.boundingBox.getCenter(o);let n=0;for(let c=0,d=e.count;c<d;c++)R.fromBufferAttribute(e,c),n=Math.max(n,o.distanceToSquared(R)),R.fromBufferAttribute(i,c),n=Math.max(n,o.distanceToSquared(R));this.boundingSphere.radius=Math.sqrt(n),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}s.UniformsLib.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new s.Vector2(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}};s.ShaderLib.line={uniforms:s.UniformsUtils.merge([s.UniformsLib.common,s.UniformsLib.fog,s.UniformsLib.line]),vertexShader:`
2
- #include <common>
3
- #include <color_pars_vertex>
4
- #include <fog_pars_vertex>
5
- #include <logdepthbuf_pars_vertex>
6
- #include <clipping_planes_pars_vertex>
7
-
8
- uniform float linewidth;
9
- uniform vec2 resolution;
10
-
11
- attribute vec3 instanceStart;
12
- attribute vec3 instanceEnd;
13
-
14
- attribute vec3 instanceColorStart;
15
- attribute vec3 instanceColorEnd;
16
-
17
- #ifdef WORLD_UNITS
18
-
19
- varying vec4 worldPos;
20
- varying vec3 worldStart;
21
- varying vec3 worldEnd;
22
-
23
- #ifdef USE_DASH
24
-
25
- varying vec2 vUv;
26
-
27
- #endif
28
-
29
- #else
30
-
31
- varying vec2 vUv;
32
-
33
- #endif
34
-
35
- #ifdef USE_DASH
36
-
37
- uniform float dashScale;
38
- attribute float instanceDistanceStart;
39
- attribute float instanceDistanceEnd;
40
- varying float vLineDistance;
41
-
42
- #endif
43
-
44
- void trimSegment( const in vec4 start, inout vec4 end ) {
45
-
46
- // trim end segment so it terminates between the camera plane and the near plane
47
-
48
- // conservative estimate of the near plane
49
- float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column
50
- float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column
51
- float nearEstimate = - 0.5 * b / a;
52
-
53
- float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );
54
-
55
- end.xyz = mix( start.xyz, end.xyz, alpha );
56
-
57
- }
58
-
59
- void main() {
60
-
61
- #ifdef USE_COLOR
62
-
63
- vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;
64
-
65
- #endif
66
-
67
- #ifdef USE_DASH
68
-
69
- vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;
70
- vUv = uv;
71
-
72
- #endif
73
-
74
- float aspect = resolution.x / resolution.y;
75
-
76
- // camera space
77
- vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );
78
- vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );
79
-
80
- #ifdef WORLD_UNITS
81
-
82
- worldStart = start.xyz;
83
- worldEnd = end.xyz;
84
-
85
- #else
86
-
87
- vUv = uv;
88
-
89
- #endif
90
-
91
- // special case for perspective projection, and segments that terminate either in, or behind, the camera plane
92
- // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space
93
- // but we need to perform ndc-space calculations in the shader, so we must address this issue directly
94
- // perhaps there is a more elegant solution -- WestLangley
95
-
96
- bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column
97
-
98
- if ( perspective ) {
99
-
100
- if ( start.z < 0.0 && end.z >= 0.0 ) {
101
-
102
- trimSegment( start, end );
103
-
104
- } else if ( end.z < 0.0 && start.z >= 0.0 ) {
105
-
106
- trimSegment( end, start );
107
-
108
- }
109
-
110
- }
111
-
112
- // clip space
113
- vec4 clipStart = projectionMatrix * start;
114
- vec4 clipEnd = projectionMatrix * end;
115
-
116
- // ndc space
117
- vec3 ndcStart = clipStart.xyz / clipStart.w;
118
- vec3 ndcEnd = clipEnd.xyz / clipEnd.w;
119
-
120
- // direction
121
- vec2 dir = ndcEnd.xy - ndcStart.xy;
122
-
123
- // account for clip-space aspect ratio
124
- dir.x *= aspect;
125
- dir = normalize( dir );
126
-
127
- #ifdef WORLD_UNITS
128
-
129
- vec3 worldDir = normalize( end.xyz - start.xyz );
130
- vec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) );
131
- vec3 worldUp = normalize( cross( worldDir, tmpFwd ) );
132
- vec3 worldFwd = cross( worldDir, worldUp );
133
- worldPos = position.y < 0.5 ? start: end;
134
-
135
- // height offset
136
- float hw = linewidth * 0.5;
137
- worldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp;
138
-
139
- // don't extend the line if we're rendering dashes because we
140
- // won't be rendering the endcaps
141
- #ifndef USE_DASH
142
-
143
- // cap extension
144
- worldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir;
145
-
146
- // add width to the box
147
- worldPos.xyz += worldFwd * hw;
148
-
149
- // endcaps
150
- if ( position.y > 1.0 || position.y < 0.0 ) {
151
-
152
- worldPos.xyz -= worldFwd * 2.0 * hw;
153
-
154
- }
155
-
156
- #endif
157
-
158
- // project the worldpos
159
- vec4 clip = projectionMatrix * worldPos;
160
-
161
- // shift the depth of the projected points so the line
162
- // segments overlap neatly
163
- vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;
164
- clip.z = clipPose.z * clip.w;
165
-
166
- #else
167
-
168
- vec2 offset = vec2( dir.y, - dir.x );
169
- // undo aspect ratio adjustment
170
- dir.x /= aspect;
171
- offset.x /= aspect;
172
-
173
- // sign flip
174
- if ( position.x < 0.0 ) offset *= - 1.0;
175
-
176
- // endcaps
177
- if ( position.y < 0.0 ) {
178
-
179
- offset += - dir;
180
-
181
- } else if ( position.y > 1.0 ) {
182
-
183
- offset += dir;
184
-
185
- }
186
-
187
- // adjust for linewidth
188
- offset *= linewidth;
189
-
190
- // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...
191
- offset /= resolution.y;
192
-
193
- // select end
194
- vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;
195
-
196
- // back to clip space
197
- offset *= clip.w;
198
-
199
- clip.xy += offset;
200
-
201
- #endif
202
-
203
- gl_Position = clip;
204
-
205
- vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
206
-
207
- #include <logdepthbuf_vertex>
208
- #include <clipping_planes_vertex>
209
- #include <fog_vertex>
210
-
211
- }
212
- `,fragmentShader:`
213
- uniform vec3 diffuse;
214
- uniform float opacity;
215
- uniform float linewidth;
216
-
217
- #ifdef USE_DASH
218
-
219
- uniform float dashOffset;
220
- uniform float dashSize;
221
- uniform float gapSize;
222
-
223
- #endif
224
-
225
- varying float vLineDistance;
226
-
227
- #ifdef WORLD_UNITS
228
-
229
- varying vec4 worldPos;
230
- varying vec3 worldStart;
231
- varying vec3 worldEnd;
232
-
233
- #ifdef USE_DASH
234
-
235
- varying vec2 vUv;
236
-
237
- #endif
238
-
239
- #else
240
-
241
- varying vec2 vUv;
242
-
243
- #endif
244
-
245
- #include <common>
246
- #include <color_pars_fragment>
247
- #include <fog_pars_fragment>
248
- #include <logdepthbuf_pars_fragment>
249
- #include <clipping_planes_pars_fragment>
250
-
251
- vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {
252
-
253
- float mua;
254
- float mub;
255
-
256
- vec3 p13 = p1 - p3;
257
- vec3 p43 = p4 - p3;
258
-
259
- vec3 p21 = p2 - p1;
260
-
261
- float d1343 = dot( p13, p43 );
262
- float d4321 = dot( p43, p21 );
263
- float d1321 = dot( p13, p21 );
264
- float d4343 = dot( p43, p43 );
265
- float d2121 = dot( p21, p21 );
266
-
267
- float denom = d2121 * d4343 - d4321 * d4321;
268
-
269
- float numer = d1343 * d4321 - d1321 * d4343;
270
-
271
- mua = numer / denom;
272
- mua = clamp( mua, 0.0, 1.0 );
273
- mub = ( d1343 + d4321 * ( mua ) ) / d4343;
274
- mub = clamp( mub, 0.0, 1.0 );
275
-
276
- return vec2( mua, mub );
277
-
278
- }
279
-
280
- void main() {
281
-
282
- float alpha = opacity;
283
- vec4 diffuseColor = vec4( diffuse, alpha );
284
-
285
- #include <clipping_planes_fragment>
286
-
287
- #ifdef USE_DASH
288
-
289
- if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps
290
-
291
- if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX
292
-
293
- #endif
294
-
295
- #ifdef WORLD_UNITS
296
-
297
- // Find the closest points on the view ray and the line segment
298
- vec3 rayEnd = normalize( worldPos.xyz ) * 1e5;
299
- vec3 lineDir = worldEnd - worldStart;
300
- vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );
301
-
302
- vec3 p1 = worldStart + lineDir * params.x;
303
- vec3 p2 = rayEnd * params.y;
304
- vec3 delta = p1 - p2;
305
- float len = length( delta );
306
- float norm = len / linewidth;
307
-
308
- #ifndef USE_DASH
309
-
310
- #ifdef USE_ALPHA_TO_COVERAGE
311
-
312
- float dnorm = fwidth( norm );
313
- alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );
314
-
315
- #else
316
-
317
- if ( norm > 0.5 ) {
318
-
319
- discard;
320
-
321
- }
322
-
323
- #endif
324
-
325
- #endif
326
-
327
- #else
328
-
329
- #ifdef USE_ALPHA_TO_COVERAGE
330
-
331
- // artifacts appear on some hardware if a derivative is taken within a conditional
332
- float a = vUv.x;
333
- float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
334
- float len2 = a * a + b * b;
335
- float dlen = fwidth( len2 );
336
-
337
- if ( abs( vUv.y ) > 1.0 ) {
338
-
339
- alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );
340
-
341
- }
342
-
343
- #else
344
-
345
- if ( abs( vUv.y ) > 1.0 ) {
346
-
347
- float a = vUv.x;
348
- float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
349
- float len2 = a * a + b * b;
350
-
351
- if ( len2 > 1.0 ) discard;
352
-
353
- }
354
-
355
- #endif
356
-
357
- #endif
358
-
359
- #include <logdepthbuf_fragment>
360
- #include <color_fragment>
361
-
362
- gl_FragColor = vec4( diffuseColor.rgb, alpha );
363
-
364
- #include <tonemapping_fragment>
365
- #include <colorspace_fragment>
366
- #include <fog_fragment>
367
- #include <premultiplied_alpha_fragment>
368
-
369
- }
370
- `};class $ extends s.ShaderMaterial{constructor(e){super({type:"LineMaterial",uniforms:s.UniformsUtils.clone(s.ShaderLib.line.uniforms),vertexShader:s.ShaderLib.line.vertexShader,fragmentShader:s.ShaderLib.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(e)}get color(){return this.uniforms.diffuse.value}set color(e){this.uniforms.diffuse.value=e}get worldUnits(){return"WORLD_UNITS"in this.defines}set worldUnits(e){e===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}get linewidth(){return this.uniforms.linewidth.value}set linewidth(e){this.uniforms.linewidth&&(this.uniforms.linewidth.value=e)}get dashed(){return"USE_DASH"in this.defines}set dashed(e){e===!0!==this.dashed&&(this.needsUpdate=!0),e===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}get dashScale(){return this.uniforms.dashScale.value}set dashScale(e){this.uniforms.dashScale.value=e}get dashSize(){return this.uniforms.dashSize.value}set dashSize(e){this.uniforms.dashSize.value=e}get dashOffset(){return this.uniforms.dashOffset.value}set dashOffset(e){this.uniforms.dashOffset.value=e}get gapSize(){return this.uniforms.gapSize.value}set gapSize(e){this.uniforms.gapSize.value=e}get opacity(){return this.uniforms.opacity.value}set opacity(e){this.uniforms&&(this.uniforms.opacity.value=e)}get resolution(){return this.uniforms.resolution.value}set resolution(e){this.uniforms.resolution.value.copy(e)}get alphaToCoverage(){return"USE_ALPHA_TO_COVERAGE"in this.defines}set alphaToCoverage(e){this.defines&&(e===!0!==this.alphaToCoverage&&(this.needsUpdate=!0),e===!0?this.defines.USE_ALPHA_TO_COVERAGE="":delete this.defines.USE_ALPHA_TO_COVERAGE)}}const G=new s.Vector4,Q=new s.Vector3,ee=new s.Vector3,w=new s.Vector4,S=new s.Vector4,C=new s.Vector4,H=new s.Vector3,q=new s.Matrix4,x=new s.Line3,te=new s.Vector3,F=new s.Box3,W=new s.Sphere,_=new s.Vector4;let U,N;function ne(a,e,i){return _.set(0,0,-e,1).applyMatrix4(a.projectionMatrix),_.multiplyScalar(1/_.w),_.x=N/i.width,_.y=N/i.height,_.applyMatrix4(a.projectionMatrixInverse),_.multiplyScalar(1/_.w),Math.abs(Math.max(_.x,_.y))}function be(a,e){const i=a.matrixWorld,o=a.geometry,n=o.attributes.instanceStart,c=o.attributes.instanceEnd,d=Math.min(o.instanceCount,n.count);for(let l=0,u=d;l<u;l++){x.start.fromBufferAttribute(n,l),x.end.fromBufferAttribute(c,l),x.applyMatrix4(i);const f=new s.Vector3,m=new s.Vector3;U.distanceSqToSegment(x.start,x.end,m,f),m.distanceTo(f)<N*.5&&e.push({point:m,pointOnLine:f,distance:U.origin.distanceTo(m),object:a,face:null,faceIndex:l,uv:null,uv1:null})}}function ze(a,e,i){const o=e.projectionMatrix,c=a.material.resolution,d=a.matrixWorld,l=a.geometry,u=l.attributes.instanceStart,f=l.attributes.instanceEnd,m=Math.min(l.instanceCount,u.count),y=-e.near;U.at(1,C),C.w=1,C.applyMatrix4(e.matrixWorldInverse),C.applyMatrix4(o),C.multiplyScalar(1/C.w),C.x*=c.x/2,C.y*=c.y/2,C.z=0,H.copy(C),q.multiplyMatrices(e.matrixWorldInverse,d);for(let g=0,M=m;g<M;g++){if(w.fromBufferAttribute(u,g),S.fromBufferAttribute(f,g),w.w=1,S.w=1,w.applyMatrix4(q),S.applyMatrix4(q),w.z>y&&S.z>y)continue;if(w.z>y){const V=w.z-S.z,T=(w.z-y)/V;w.lerp(S,T)}else if(S.z>y){const V=S.z-w.z,T=(S.z-y)/V;S.lerp(w,T)}w.applyMatrix4(o),S.applyMatrix4(o),w.multiplyScalar(1/w.w),S.multiplyScalar(1/S.w),w.x*=c.x/2,w.y*=c.y/2,S.x*=c.x/2,S.y*=c.y/2,x.start.copy(w),x.start.z=0,x.end.copy(S),x.end.z=0;const B=x.closestPointToPointParameter(H,!0);x.at(B,te);const E=s.MathUtils.lerp(w.z,S.z,B),b=E>=-1&&E<=1,I=H.distanceTo(te)<N*.5;if(b&&I){x.start.fromBufferAttribute(u,g),x.end.fromBufferAttribute(f,g),x.start.applyMatrix4(d),x.end.applyMatrix4(d);const V=new s.Vector3,T=new s.Vector3;U.distanceSqToSegment(x.start,x.end,T,V),i.push({point:T,pointOnLine:V,distance:U.origin.distanceTo(T),object:a,face:null,faceIndex:g,uv:null,uv1:null})}}}class Ee extends s.Mesh{constructor(e=new oe,i=new $({color:Math.random()*16777215})){super(e,i),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){const e=this.geometry,i=e.attributes.instanceStart,o=e.attributes.instanceEnd,n=new Float32Array(2*i.count);for(let d=0,l=0,u=i.count;d<u;d++,l+=2)Q.fromBufferAttribute(i,d),ee.fromBufferAttribute(o,d),n[l]=l===0?0:n[l-1],n[l+1]=n[l]+Q.distanceTo(ee);const c=new s.InstancedInterleavedBuffer(n,2,1);return e.setAttribute("instanceDistanceStart",new s.InterleavedBufferAttribute(c,1,0)),e.setAttribute("instanceDistanceEnd",new s.InterleavedBufferAttribute(c,1,1)),this}raycast(e,i){const o=this.material.worldUnits,n=e.camera;n===null&&!o&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');const c=e.params.Line2!==void 0&&e.params.Line2.threshold||0;U=e.ray;const d=this.matrixWorld,l=this.geometry,u=this.material;N=u.linewidth+c,l.boundingSphere===null&&l.computeBoundingSphere(),W.copy(l.boundingSphere).applyMatrix4(d);let f;if(o)f=N*.5;else{const y=Math.max(n.near,W.distanceToPoint(U.origin));f=ne(n,y,u.resolution)}if(W.radius+=f,U.intersectsSphere(W)===!1)return;l.boundingBox===null&&l.computeBoundingBox(),F.copy(l.boundingBox).applyMatrix4(d);let m;if(o)m=N*.5;else{const y=Math.max(n.near,F.distanceToPoint(U.origin));m=ne(n,y,u.resolution)}F.expandByScalar(m),U.intersectsBox(F)!==!1&&(o?be(this,i):ze(this,n,i))}onBeforeRender(e){const i=this.material.uniforms;i&&i.resolution&&(e.getViewport(G),this.material.uniforms.resolution.value.set(G.z,G.w))}}class re extends oe{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){const i=e.length-3,o=new Float32Array(2*i);for(let n=0;n<i;n+=3)o[2*n]=e[n],o[2*n+1]=e[n+1],o[2*n+2]=e[n+2],o[2*n+3]=e[n+3],o[2*n+4]=e[n+4],o[2*n+5]=e[n+5];return super.setPositions(o),this}setColors(e){const i=e.length-3,o=new Float32Array(2*i);for(let n=0;n<i;n+=3)o[2*n]=e[n],o[2*n+1]=e[n+1],o[2*n+2]=e[n+2],o[2*n+3]=e[n+3],o[2*n+4]=e[n+4],o[2*n+5]=e[n+5];return super.setColors(o),this}setFromPoints(e){const i=e.length-1,o=new Float32Array(6*i);for(let n=0;n<i;n++)o[6*n]=e[n].x,o[6*n+1]=e[n].y,o[6*n+2]=e[n].z||0,o[6*n+3]=e[n+1].x,o[6*n+4]=e[n+1].y,o[6*n+5]=e[n+1].z||0;return super.setPositions(o),this}fromLine(e){const i=e.geometry;return this.setPositions(i.attributes.position.array),this}}class Ve extends Ee{constructor(e=new re,i=new $({color:Math.random()*16777215})){super(e,i),this.isLine2=!0,this.type="Line2"}}function Ce(a){const e=[];return a.forEach(i=>{const[o,n,c]=i.trim().split(/\s+/);e.push(+o,+n,+c)}),e}function ie(a,e,i){switch(a){case"X":e.x=+i||0;break;case"Y":e.y=+i||0;break;case"Z":e.z=+i||0;break}}function _e(a){const e=[],i=["X","Y","Z"];return a.forEach(o=>{const n={x:0,y:0,z:0},c=o.trim();if(!c)return;let d=null,l="";for(let u=0;u<(c==null?void 0:c.length);u++){const f=c[u],m=i.find(y=>y===f);if(m){d&&ie(d,n,l),l="",d=m;continue}l=l+f}ie(d,n,l),e.push(n.x,n.y,n.z)}),e}async function Ue(a){var n,c;const e=(n=a==null?void 0:a.trim())==null?void 0:n.split(/\r?\n/),i=e==null?void 0:e[0],o=(c=i==null?void 0:i.trim())==null?void 0:c.split(/\s+/);if((o==null?void 0:o.length)>=3)return Ce(e);if((o==null?void 0:o.length)===1)return _e(e)}async function Te(a){const e=a.trim().split(/\r?\n/),i=[];return e.forEach(o=>{const n=o.trim().split(/\s+/);if(n.length!=3)return;const[c,d,l]=n;i.push(+c,+d,+l)}),i}async function Ae(a){const e=a.trim().split(/\r?\n/),i=[];return e.forEach(o=>{const n=o.trim().split(/\s+/);if(n.length!=3)return;const[c,d,l]=n;i.push(+c,+d,+l)}),i}async function Ne(a,e){const{isCyd:i,isUv:o,isCpt:n}=e;return o?Ue(a):i?Ae(a):n?Te(a):[]}function Me(a,e){if(!e||e.length<3)return;const{scene:i,camera:o,renderer:n,controls:c}=a();if(!i||!o||!n||!c)return;const d=[];for(let g=0;g<e.length;g+=3)d.push(new s.Vector3(e[g],e[g+1],e[g+2]));const u=new s.CatmullRomCurve3(d,!1,"catmullrom",.5).getPoints(150).flatMap(g=>[g.x,g.y,g.z]),f=new re;f.setPositions(u);const m=new $({color:55551,linewidth:3,resolution:new s.Vector2(window.innerWidth,window.innerHeight)}),y=new Ve(f,m);return y.name="轨迹路径",i.add(y),y}function Be(a,e,i,o=4,n=50){let c=1/0,d=-1/0,l=1/0,u=-1/0,f=1/0,m=-1/0;for(let E=0;E<a.length;E+=3){const b=a[E],I=a[E+1],V=a[E+2];c=Math.min(c,b),d=Math.max(d,b),l=Math.min(l,I),u=Math.max(u,I),f=Math.min(f,V),m=Math.max(m,V)}const g=Math.sqrt((d-c)**2+(u-l)**2+(m-f)**2)*.05,M=s.MathUtils.degToRad(e.fov),O=2*Math.tan(M/2)*n,B=g/O*i.domElement.height*(o/4);return Math.max(1,B)}function Ie(a){const e=new s.BufferGeometry;e.setAttribute("position",new s.Float32BufferAttribute(a,3));const i=new s.PointsMaterial({color:55551,size:1,sizeAttenuation:!1});return new s.Points(e,i)}function Pe(a,e){if(!e)return;const{scene:i,camera:o,renderer:n,controls:c}=a();if(!i||!o||!n||!c)return;const d=Ie(e);d.name="轨迹路径",i.add(d);const l=Be(e,o,n,.5,50);return d.material.size=l,d}const Le={class:"obj-viewer-container"},ke={class:"buttonGroup-top"},De={class:"buttonGroup-topLeft"},Oe={class:"buttonGroup-left"},je={class:"buttonGroup-right"},Re={class:"buttonGroup-bottom"},Fe={class:"left-panel"},We={class:"panel-header"},Ge={class:"panel-body"},He={key:1,class:"clipping-content"},qe={class:"radio-group"},$e={class:"radio-label"},Xe={class:"radio-label"},Ye={class:"radio-label"},Ze={class:"radio-label"},Je={class:"right-panel"},Ke={class:"panel-header"},Qe={class:"panel-body"},et={key:0,class:"loading-overlay"},tt=t.defineComponent({__name:"threeTrackPathView",props:{fileUrls:{},threeData:{default:()=>""},trackFileType:{}},emits:["getAnimationData","getThreeData"],setup(a,{emit:e}){const i=e,o=a,n=t.ref(null),c=t.ref(!1),d=t.ref(""),l=t.ref(!1),u=t.ref(""),f=t.ref(!1),m=t.ref(""),y=t.shallowRef(null),g=t.shallowRef(null),{currentModels:M,resetView:O,initThreeJS:B,handleResize:E,getThreeJSObjects:b,cleanup:I,axesHelperVisible:V,toggleAxesVisibility:T}=D.useThreeJS(n),{isAnimating:X,toggleAnimation:se,stopAnimation:ae}=D.useAnimation(b,M),{isClipping:le,activeClippingAxis:z,toggleClipping:ce,updateClippingPlanes:A}=D.useClipping(b,M),de=()=>{T()},L=p=>{l.value=!0,u.value=p,p==="剖面视图"&&!le.value&&ce()},j=p=>{f.value=!0,m.value=p,p==="动画仿真"&&i("getAnimationData")},Y=t.ref([]),ue=t.computed(()=>{var r;return(r=o.trackFileType)==null?void 0:r.isUv}),fe=t.computed(()=>{var r;return(r=o.trackFileType)==null?void 0:r.isCyd}),pe=t.computed(()=>{var r;return(r=o.trackFileType)==null?void 0:r.isCpt}),me=t.computed(()=>{const p=o.fileUrls||[];return p==null?void 0:p[0]});let P=null;const Z=()=>{const{scene:p}=b();P&&p&&(D.disposeObj(P,p),P=null)},he=async p=>{const r=await ye.readFileText(p);if(Se.isString(r)){Y.value=await Ne(r,o.trackFileType)||[];const k=Y.value;ue.value&&(P=Me(b,k)),(fe.value||pe.value)&&(P=Pe(b,k)),D.frameCameraToMesh(b,P)}};t.watch(()=>me.value,async p=>{p&&(Z(),await he(p))},{immediate:!0,deep:!0});const ve=()=>{B(),window.addEventListener("resize",E);const p=b();g.value=p.scene,g.value&&(g.value.name="CPMPIP")},ge=()=>{window.removeEventListener("resize",E),X.value&&ae(),Z(),I()};return t.onMounted(async()=>{try{ve()}catch(p){console.error("Three.js 初始化失败:",p),we.ElMessage.error("渲染引擎初始化失败!")}}),t.onBeforeUnmount(()=>{ge()}),(p,r)=>{const k=t.resolveComponent("el-scrollbar");return t.openBlock(),t.createElementBlock("div",Le,[t.createElementVNode("div",{ref_key:"threejsContainer",ref:n,class:"threejs-container"},null,512),t.createElementVNode("div",ke,[t.createVNode(v.ThreeSvgIcon,{name:"guanjianjiexi",size:"34"}),t.createVNode(v.ThreeSvgIcon,{name:"guanjiekongzhi",size:"34"}),t.createVNode(v.ThreeSvgIcon,{name:"gongyishengcheng",size:"34"}),t.createVNode(v.ThreeSvgIcon,{name:"buchangshezhi",size:"34"}),t.createVNode(v.ThreeSvgIcon,{name:"shuchujiagongchengxu",size:"34"})]),t.createElementVNode("div",De,[t.createVNode(v.ThreeSvgIcon,{name:"viewReset",size:"24",onClick:t.unref(O),title:"重置"},null,8,["onClick"]),t.createVNode(v.ThreeSvgIcon,{name:"fangda",size:"24",title:"放大"}),t.createVNode(v.ThreeSvgIcon,{name:"suoxiao",size:"24",title:"缩小"}),t.createVNode(v.ThreeSvgIcon,{name:"lookAround",size:"24",onClick:t.unref(se),title:t.unref(X)?"停止动画":"动画视图"},null,8,["onClick","title"]),t.createVNode(v.ThreeSvgIcon,{name:"zuobiaoxi",size:"24",active:t.unref(V),onClick:de,title:"显隐坐标轴"},null,8,["active"])]),t.createElementVNode("div",Oe,[t.renderSlot(p.$slots,"button-left",{switchRightPanel:L},void 0,!0),t.createVNode(v.ThreeSvgIcon,{name:"jiegoushu",size:"24",onClick:r[0]||(r[0]=h=>L("场景树")),active:l.value&&u.value==="场景树",title:"场景树"},null,8,["active"]),t.createVNode(v.ThreeSvgIcon,{name:"clipping",size:"24",onClick:r[1]||(r[1]=h=>L("剖面视图")),active:l.value&&u.value==="剖面视图",title:"剖面视图"},null,8,["active"]),t.createVNode(v.ThreeSvgIcon,{name:"donghuafangzhen",size:"24",onClick:r[2]||(r[2]=h=>L("场景树3"))}),t.createVNode(v.ThreeSvgIcon,{name:"donghuafangzhen",size:"24",onClick:r[3]||(r[3]=h=>L("场景4"))})]),t.createElementVNode("div",je,[t.renderSlot(p.$slots,"button-right",{switchRightPanel:j},void 0,!0),t.createVNode(v.ThreeSvgIcon,{name:"donghuafangzhen",size:"24"}),t.createVNode(v.ThreeSvgIcon,{name:"guanjiekongzhi",size:"24",onClick:r[4]||(r[4]=h=>j("关节控制")),active:f.value&&m.value==="关节控制",title:"关节控制"},null,8,["active"]),t.createVNode(v.ThreeSvgIcon,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:r[5]||(r[5]=h=>j("动画仿真")),active:f.value&&m.value==="动画仿真"},null,8,["active"]),t.createVNode(v.ThreeSvgIcon,{name:"donghuafangzhen",size:"24",title:"urdf动画",onClick:r[6]||(r[6]=h=>j("urdf动画")),active:f.value&&m.value==="urdf动画"},null,8,["active"]),t.createVNode(v.ThreeSvgIcon,{name:"donghuafangzhen",size:"24"})]),t.createElementVNode("div",Re,[t.createVNode(v.ThreeSvgIcon,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:r[7]||(r[7]=()=>{})}),t.createVNode(v.ThreeSvgIcon,{name:"bofang",size:"24",backgroundColor:"#ffffff",title:"播放",onClick:r[8]||(r[8]=()=>{})}),t.createVNode(v.ThreeSvgIcon,{name:"kuaijin",size:"24",backgroundColor:"#ffffff",title:"快进",onClick:r[9]||(r[9]=()=>{})}),t.createVNode(v.ThreeSvgIcon,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:r[10]||(r[10]=()=>{})}),t.createVNode(v.ThreeSvgIcon,{name:"zhongzhi",size:"24",backgroundColor:"#ffffff",title:"停止",onClick:r[11]||(r[11]=()=>{})})]),t.withDirectives(t.createElementVNode("div",Fe,[t.createElementVNode("div",We,[t.createElementVNode("span",null,t.toDisplayString(u.value),1),t.createElementVNode("span",{class:"close",onClick:r[12]||(r[12]=h=>l.value=!1)}," X ")]),t.createElementVNode("div",Ge,[t.createVNode(k,{height:"100%"},{default:t.withCtx(()=>[u.value==="场景树"?(t.openBlock(),t.createBlock(J.UrdfTree,{key:0,model:y.value},null,8,["model"])):t.createCommentVNode("",!0),u.value==="剖面视图"?(t.openBlock(),t.createElementBlock("div",He,[t.createElementVNode("div",qe,[t.createElementVNode("label",$e,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":r[13]||(r[13]=h=>t.isRef(z)?z.value=h:null),onChange:r[14]||(r[14]=(...h)=>t.unref(A)&&t.unref(A)(...h))},null,544),[[t.vModelRadio,t.unref(z)]]),r[22]||(r[22]=t.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),t.createElementVNode("label",Xe,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":r[15]||(r[15]=h=>t.isRef(z)?z.value=h:null),onChange:r[16]||(r[16]=(...h)=>t.unref(A)&&t.unref(A)(...h))},null,544),[[t.vModelRadio,t.unref(z)]]),r[23]||(r[23]=t.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),t.createElementVNode("label",Ye,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":r[17]||(r[17]=h=>t.isRef(z)?z.value=h:null),onChange:r[18]||(r[18]=(...h)=>t.unref(A)&&t.unref(A)(...h))},null,544),[[t.vModelRadio,t.unref(z)]]),r[24]||(r[24]=t.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),t.createElementVNode("label",Ze,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":r[19]||(r[19]=h=>t.isRef(z)?z.value=h:null),onChange:r[20]||(r[20]=(...h)=>t.unref(A)&&t.unref(A)(...h))},null,544),[[t.vModelRadio,t.unref(z)]]),r[25]||(r[25]=t.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])):t.createCommentVNode("",!0)]),_:1})])],512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",Je,[t.createElementVNode("div",Ke,[t.createElementVNode("span",null,t.toDisplayString(m.value),1),t.createElementVNode("span",{class:"close",onClick:r[21]||(r[21]=h=>f.value=!1)}," X ")]),t.createElementVNode("div",Qe,[t.createVNode(k,{height:"100%"},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(J.JointPanel,{model:y.value},null,8,["model"]),[[t.vShow,m.value==="关节控制"]])]),_:1})])],512),[[t.vShow,f.value]]),c.value?(t.openBlock(),t.createElementBlock("div",et,[r[26]||(r[26]=t.createElementVNode("div",{class:"loading-spinner"},null,-1)),t.createElementVNode("p",null,t.toDisplayString(d.value),1)])):t.createCommentVNode("",!0)])}}}),nt=xe._export_sfc(tt,[["__scopeId","data-v-c3ad7441"]]);exports.default=nt;
@@ -1,42 +0,0 @@
1
- # CAD Exchanger 3.24.0 (cadexchanger.com)
2
- # Material Count: 5
3
-
4
- newmtl Material_1
5
- Ns 0.000000
6
- Ka 0.200000 0.200000 0.200000
7
- Kd 0.666667 0.666667 0.666667
8
- Ks 0.000000 0.000000 0.000000
9
- Ke 0.000000 0.000000 0.000000
10
- d 1.000000
11
-
12
- newmtl Material_2
13
- Ns 0.000000
14
- Ka 0.200000 0.200000 0.200000
15
- Kd 0.133333 0.133333 0.133333
16
- Ks 0.000000 0.000000 0.000000
17
- Ke 0.000000 0.000000 0.000000
18
- d 1.000000
19
-
20
- newmtl Material_3
21
- Ns 0.000000
22
- Ka 0.200000 0.200000 0.200000
23
- Kd 0.733333 0.733333 0.733333
24
- Ks 0.000000 0.000000 0.000000
25
- Ke 0.000000 0.000000 0.000000
26
- d 1.000000
27
-
28
- newmtl Material_5
29
- Ns 0.000000
30
- Ka 0.200000 0.200000 0.200000
31
- Kd 0.396078 0.941176 0.450980
32
- Ks 0.000000 0.000000 0.000000
33
- Ke 0.000000 0.000000 0.000000
34
- d 1.000000
35
-
36
- newmtl Material_4
37
- Ns 0.000000
38
- Ka 0.200000 0.200000 0.200000
39
- Kd 1.000000 1.000000 0.000000
40
- Ks 0.000000 0.000000 0.000000
41
- Ke 0.000000 0.000000 0.000000
42
- d 1.000000