ss-component-new 1.2.276 → 1.2.278
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/{OBJLoader-C0jZQFPa.cjs → OBJLoader-8gDmNV2i.cjs} +1 -1
- package/dist/{OBJLoader-64213hWB.js → OBJLoader-Ck9W3Ir7.js} +15 -15
- package/dist/{OrbitControls-BBZBmIbn.js → OrbitControls-BIGKrhyi.js} +1 -1
- package/dist/{OrbitControls-qylnhbze.cjs → OrbitControls-BWF5w18E.cjs} +1 -1
- package/dist/{PCDLoader-D3avKTU7.js → PCDLoader-CkJ5aJWh.js} +70 -70
- package/dist/{PCDLoader-Bm7UOglg.cjs → PCDLoader-D-K96lwY.cjs} +1 -1
- package/dist/{animationData-CaDzheJc.js → animationData-BlzkiZT-.js} +1 -1
- package/dist/animationData-Dzb7SwCQ.cjs +1 -0
- package/dist/{iconfont-DtHZpKxg.js → iconfont-BmIvNcSQ.js} +18 -18
- package/dist/{iconfont-BADQc-tq.cjs → iconfont-NOOcjYp4.cjs} +1 -1
- package/dist/{index-Ds_NrFJn.js → index-20Dckesy.js} +1 -1
- package/dist/index-BHUNbxWM.cjs +1 -0
- package/dist/{index-BvF_Eiw4.js → index-BTHx-tHK.js} +2 -2
- package/dist/{index-DZiK017P.js → index-Bgw0FBZB.js} +3 -3
- package/dist/{index-Bp2ywlIX.cjs → index-BiUFIyHm.cjs} +12 -12
- package/dist/{index-KlIs_vtO.js → index-BlZQXSNy.js} +3576 -3507
- package/dist/{index-CToI_3R0.js → index-BtwkxysC.js} +1 -1
- package/dist/{index-BGQ8tZy9.js → index-Bvjt8yg5.js} +1 -1
- package/dist/{index-CnDyADxV.cjs → index-Bwwr0bEF.cjs} +1 -1
- package/dist/{index-B5bXHS1q.cjs → index-C5FroPC_.cjs} +1 -1
- package/dist/{index-BW-0pCi3.cjs → index-C70QdasU.cjs} +1 -1
- package/dist/{index-CXs0ZsFx.js → index-CHFYpgNd.js} +3 -3
- package/dist/index-CHJQPaPf.cjs +1 -0
- package/dist/{index-BSuyeTIF.cjs → index-CHxAfRRV.cjs} +1 -1
- package/dist/{index-DyVbR2E1.js → index-CJ-zljKi.js} +7 -7
- package/dist/index-CS1P7jZY.js +12217 -0
- package/dist/{index-BguBP6jD.cjs → index-CcFCeids.cjs} +1 -1
- package/dist/{index-Dwdoxmcq.js → index-CeRJXgGc.js} +1 -1
- package/dist/{index-Cl39jXmH.cjs → index-Ch8nagnn.cjs} +1 -1
- package/dist/index-ChRY-dSe.cjs +1 -0
- package/dist/{index-nuqLm_YA.js → index-CpZjg7P4.js} +23 -24
- package/dist/{index-DfvOys4X.cjs → index-D0jGNd-H.cjs} +1 -1
- package/dist/{index-DBlUiXnM.js → index-D5w9TAnl.js} +2 -2
- package/dist/{index-D6gPxUru.cjs → index-D7VqueKi.cjs} +1 -1
- package/dist/{index-C2UeSG0O.cjs → index-D9i7wZaC.cjs} +1 -1
- package/dist/{index-bvKP8j5i.js → index-DAoTkm3P.js} +1 -1
- package/dist/{index-DFWmMuBR.js → index-DJM9-UEH.js} +1 -1
- package/dist/{index-DJuCQHW4.js → index-DQ-gIuYX.js} +272 -272
- package/dist/{index-DB-Y5yfM.cjs → index-DbAyxNqO.cjs} +1 -1
- package/dist/{index-BL56OOVA.js → index-DdakDd-G.js} +8 -9
- package/dist/{index-Dh18rgrb.cjs → index-DmM7lsJq.cjs} +1 -1
- package/dist/{index-BcskLcv0.js → index-Do5QNCPX.js} +1 -1
- package/dist/{index-BYpBA_KK.js → index-DrGZAtmq.js} +1 -1
- package/dist/{index-CLz04045.cjs → index-DzzNQZFH.cjs} +1 -1
- package/dist/{index-C27lnw8n.cjs → index-K3V6PB7z.cjs} +1 -1
- package/dist/{index-DAEpPdX3.js → index-QUDjtiq8.js} +2 -2
- package/dist/{index-CzIl5iPr.js → index-d_gTUDkt.js} +3 -3
- package/dist/{index-DhcSe5pO.cjs → index-hORaVIHc.cjs} +1 -1
- package/dist/{index-DTvmQ9sw.cjs → index-k5XvVM7s.cjs} +1 -1
- package/dist/{index-BUT1ub8P.cjs → index-kyT3BMkS.cjs} +1 -1
- package/dist/{index-BElSs6po.cjs → index-sYR21g6y.cjs} +1 -1
- package/dist/{index-BeZemMv1.js → index-xVAVG814.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-qTFnFcSL.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CttckcIa.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CnmKC6YP.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-ULFaAlar.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DhoqRtFv.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bgts3--T.cjs} +285 -285
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B5W8KBo7.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-h7N9rXk9.js} +7385 -7343
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BtE_L3Z8.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BScVgjbq.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DGMK0Ifn.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-GIC8Ye0e.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CtpftMHR.cjs → index.vue_vue_type_style_index_1_lang-CDnxj8hz.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-vRD3eIQu.js → index.vue_vue_type_style_index_1_lang-Dm6k_Fep.js} +4 -4
- package/dist/{main-BqGa__UE.cjs → main-CJ9gO6bA.cjs} +1 -1
- package/dist/{main-ss9nNFMr.js → main-HPuTfifP.js} +2 -2
- package/dist/{pointTrack-DQ1hLY5d.cjs → pointTrack-BkpbGc8n.cjs} +1 -1
- package/dist/{pointTrack-AMLI1vf8.js → pointTrack-CMyadDzE.js} +2 -2
- package/dist/{robotUtil-G36FSoFY.js → robotUtil-B2D7gGWk.js} +6 -6
- package/dist/{robotUtil-ChCSjU5C.cjs → robotUtil-oAoZqCam.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BMvblQdw.cjs → threeModel-CZv6CFfd.cjs} +1 -1
- package/dist/{threeModel-DwwFHmc4.js → threeModel-Dgm_UybN.js} +71 -71
- package/dist/{threePreview-CnJEE5N_.js → threePreview-Bf6eiws9.js} +33 -33
- package/dist/{threePreview-BC-QKuwq.cjs → threePreview-CsQVnCLb.cjs} +1 -1
- package/dist/{threeSceneView-CbJSvEfX.js → threeSceneView-8DBEoyAl.js} +89 -90
- package/dist/threeSceneView-CycUfNuA.cjs +5 -0
- package/dist/{threeSceneViewForCPMPIP-CXbZ3zSA.cjs → threeSceneViewForCPMPIP-Bb3q4rjN.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BgZM8Vr2.js → threeSceneViewForCPMPIP-Bz_QPOuV.js} +8 -8
- package/dist/{threeTrackPathView-CroLNB4n.js → threeTrackPathView-B3xpjTuy.js} +23 -23
- package/dist/{threeTrackPathView-CJSREHVs.cjs → threeTrackPathView-aQguB9Zo.cjs} +1 -1
- package/dist/{threeViewerHost-CyrI9FeR.js → threeViewerHost-2YWUBIKK.js} +2 -2
- package/dist/{threeViewerHost-CUgW4AvZ.cjs → threeViewerHost-DoCCsbXi.cjs} +2 -2
- package/dist/{urdfTree-D2-tY5M8.js → urdfTree-CG-0miYi.js} +1 -1
- package/dist/{urdfTree-Cw4rPe_3.cjs → urdfTree-CJHLz2pz.cjs} +1 -1
- package/dist/{workpieceTreePanel-RglxeGsj.js → workpieceTreePanel-Bcy2i1U2.js} +37 -37
- package/dist/{workpieceTreePanel-D_9hpdVS.cjs → workpieceTreePanel-CcokQ2y5.cjs} +1 -1
- package/package.json +1 -1
- package/dist/animationData-B-PqylKC.cjs +0 -1
- package/dist/dataUtil-BMZEDuJ3.js +0 -52
- package/dist/dataUtil-CthYESkP.cjs +0 -1
- package/dist/index-BM6iTDfN.cjs +0 -1
- package/dist/index-CNKx5V0b.js +0 -12215
- package/dist/index-D57m16IA.cjs +0 -1
- package/dist/index-Ddf_ua3r.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeSceneView-CbWNHgUP.cjs +0 -5
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const c=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bgts3--T.cjs");class V extends c.Loader{constructor(s){super(s)}load(s,u,_,e){const i=this,p=new c.FileLoader(this.manager);p.setPath(this.path),p.setResponseType("arraybuffer"),p.setRequestHeader(this.requestHeader),p.setWithCredentials(this.withCredentials),p.load(s,function(h){try{u(i.parse(h))}catch(r){e?e(r):console.error(r),i.manager.itemError(s)}},_,e)}parse(s){function u(o){const n=new DataView(o),m=32/8*3+32/8*3*3+16/8,I=n.getUint32(80,!0);if(80+32/8+I*m===n.byteLength)return!0;const t=[115,111,108,105,100];for(let b=0;b<5;b++)if(_(t,n,b))return!1;return!0}function _(o,n,m){for(let I=0,a=o.length;I<a;I++)if(o[I]!==n.getUint8(m+I))return!1;return!0}function e(o){const n=new DataView(o),m=n.getUint32(80,!0);let I,a,t,b=!1,g,f,d,l,x;for(let z=0;z<70;z++)n.getUint32(z,!1)==1129270351&&n.getUint8(z+4)==82&&n.getUint8(z+5)==61&&(b=!0,g=new Float32Array(m*3*3),f=n.getUint8(z+6)/255,d=n.getUint8(z+7)/255,l=n.getUint8(z+8)/255,x=n.getUint8(z+9)/255);const F=84,w=12*4+2,C=new c.BufferGeometry,y=new Float32Array(m*3*3),S=new Float32Array(m*3*3),L=new c.Color;for(let z=0;z<m;z++){const k=F+z*w,v=n.getFloat32(k,!0),D=n.getFloat32(k+4,!0),B=n.getFloat32(k+8,!0);if(b){const A=n.getUint16(k+48,!0);(A&32768)===0?(I=(A&31)/31,a=(A>>5&31)/31,t=(A>>10&31)/31):(I=f,a=d,t=l)}for(let A=1;A<=3;A++){const T=k+A*12,O=z*3*3+(A-1)*3;y[O]=n.getFloat32(T,!0),y[O+1]=n.getFloat32(T+4,!0),y[O+2]=n.getFloat32(T+8,!0),S[O]=v,S[O+1]=D,S[O+2]=B,b&&(L.setRGB(I,a,t,c.SRGBColorSpace),g[O]=L.r,g[O+1]=L.g,g[O+2]=L.b)}}return C.setAttribute("position",new c.BufferAttribute(y,3)),C.setAttribute("normal",new c.BufferAttribute(S,3)),b&&(C.setAttribute("color",new c.BufferAttribute(g,3)),C.hasColors=!0,C.alpha=x),C}function i(o){const n=new c.BufferGeometry,m=/solid([\s\S]*?)endsolid/g,I=/facet([\s\S]*?)endfacet/g,a=/solid\s(.+)/;let t=0;const b=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,g=new RegExp("vertex"+b+b+b,"g"),f=new RegExp("normal"+b+b+b,"g"),d=[],l=[],x=[],F=new c.Vector3;let w,C=0,y=0,S=0;for(;(w=m.exec(o))!==null;){y=S;const L=w[0],z=(w=a.exec(L))!==null?w[1]:"";for(x.push(z);(w=I.exec(L))!==null;){let D=0,B=0;const A=w[0];for(;(w=f.exec(A))!==null;)F.x=parseFloat(w[1]),F.y=parseFloat(w[2]),F.z=parseFloat(w[3]),B++;for(;(w=g.exec(A))!==null;)d.push(parseFloat(w[1]),parseFloat(w[2]),parseFloat(w[3])),l.push(F.x,F.y,F.z),D++,S++;B!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+t),D!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+t),t++}const k=y,v=S-y;n.userData.groupNames=x,n.addGroup(k,v,C),C++}return n.setAttribute("position",new c.Float32BufferAttribute(d,3)),n.setAttribute("normal",new c.Float32BufferAttribute(l,3)),n}function p(o){return typeof o!="string"?new TextDecoder().decode(o):o}function h(o){if(typeof o=="string"){const n=new Uint8Array(o.length);for(let m=0;m<o.length;m++)n[m]=o.charCodeAt(m)&255;return n.buffer||n}else return o}const r=h(s);return u(r)?e(r):i(p(s))}}class R extends c.Loader{constructor(s){super(s)}load(s,u,_,e){const i=this,p=this.path===""?c.LoaderUtils.extractUrlBase(s):this.path,h=new c.FileLoader(this.manager);h.setPath(this.path),h.setRequestHeader(this.requestHeader),h.setWithCredentials(this.withCredentials),h.load(s,function(r){try{u(i.parse(r,p))}catch(o){e?e(o):console.error(o),i.manager.itemError(s)}},_,e)}setMaterialOptions(s){return this.materialOptions=s,this}parse(s,u){const _=s.split(`
|
|
2
2
|
`);let e={};const i=/\s+/,p={};for(let r=0;r<_.length;r++){let o=_[r];if(o=o.trim(),o.length===0||o.charAt(0)==="#")continue;const n=o.indexOf(" ");let m=n>=0?o.substring(0,n):o;m=m.toLowerCase();let I=n>=0?o.substring(n+1):"";if(I=I.trim(),m==="newmtl")e={name:I},p[I]=e;else if(m==="ka"||m==="kd"||m==="ks"||m==="ke"){const a=I.split(i,3);e[m]=[parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2])]}else e[m]=I}const h=new E(this.resourcePath||u,this.materialOptions);return h.setCrossOrigin(this.crossOrigin),h.setManager(this.manager),h.setMaterials(p),h}}class E{constructor(s="",u={}){this.baseUrl=s,this.options=u,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=this.options.side!==void 0?this.options.side:c.FrontSide,this.wrap=this.options.wrap!==void 0?this.options.wrap:c.RepeatWrapping}setCrossOrigin(s){return this.crossOrigin=s,this}setManager(s){this.manager=s}setMaterials(s){this.materialsInfo=this.convert(s),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(s){if(!this.options)return s;const u={};for(const _ in s){const e=s[_],i={};u[_]=i;for(const p in e){let h=!0,r=e[p];const o=p.toLowerCase();switch(o){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(r=[r[0]/255,r[1]/255,r[2]/255]),this.options&&this.options.ignoreZeroRGBs&&r[0]===0&&r[1]===0&&r[2]===0&&(h=!1);break}h&&(i[o]=r)}}return u}preload(){for(const s in this.materialsInfo)this.create(s)}getIndex(s){return this.nameLookup[s]}getAsArray(){let s=0;for(const u in this.materialsInfo)this.materialsArray[s]=this.create(u),this.nameLookup[u]=s,s++;return this.materialsArray}create(s){return this.materials[s]===void 0&&this.createMaterial_(s),this.materials[s]}createMaterial_(s){const u=this,_=this.materialsInfo[s],e={name:s,side:this.side};function i(h,r){return typeof r!="string"||r===""?"":/^https?:\/\//i.test(r)?r:h+r}function p(h,r){if(e[h])return;const o=u.getTextureParams(r,e),n=u.loadTexture(i(u.baseUrl,o.url));n.repeat.copy(o.scale),n.offset.copy(o.offset),n.wrapS=u.wrap,n.wrapT=u.wrap,(h==="map"||h==="emissiveMap")&&(n.colorSpace=c.SRGBColorSpace),e[h]=n}for(const h in _){const r=_[h];let o;if(r!=="")switch(h.toLowerCase()){case"kd":e.color=c.ColorManagement.colorSpaceToWorking(new c.Color().fromArray(r),c.SRGBColorSpace);break;case"ks":e.specular=c.ColorManagement.colorSpaceToWorking(new c.Color().fromArray(r),c.SRGBColorSpace);break;case"ke":e.emissive=c.ColorManagement.colorSpaceToWorking(new c.Color().fromArray(r),c.SRGBColorSpace);break;case"map_kd":p("map",r);break;case"map_ks":p("specularMap",r);break;case"map_ke":p("emissiveMap",r);break;case"norm":p("normalMap",r);break;case"map_bump":case"bump":p("bumpMap",r);break;case"disp":p("displacementMap",r);break;case"map_d":p("alphaMap",r),e.transparent=!0;break;case"ns":e.shininess=parseFloat(r);break;case"d":o=parseFloat(r),o<1&&(e.opacity=o,e.transparent=!0);break;case"tr":o=parseFloat(r),this.options&&this.options.invertTrProperty&&(o=1-o),o>0&&(e.opacity=1-o,e.transparent=!0);break}}return this.materials[s]=new c.MeshPhongMaterial(e),this.materials[s]}getTextureParams(s,u){const _={scale:new c.Vector2(1,1),offset:new c.Vector2(0,0)},e=s.split(/\s+/);let i;return i=e.indexOf("-bm"),i>=0&&(u.bumpScale=parseFloat(e[i+1]),e.splice(i,2)),i=e.indexOf("-mm"),i>=0&&(u.displacementBias=parseFloat(e[i+1]),u.displacementScale=parseFloat(e[i+2]),e.splice(i,3)),i=e.indexOf("-s"),i>=0&&(_.scale.set(parseFloat(e[i+1]),parseFloat(e[i+2])),e.splice(i,4)),i=e.indexOf("-o"),i>=0&&(_.offset.set(parseFloat(e[i+1]),parseFloat(e[i+2])),e.splice(i,4)),_.url=e.join(" ").trim(),_}loadTexture(s,u,_,e,i){const p=this.manager!==void 0?this.manager:c.DefaultLoadingManager;let h=p.getHandler(s);h===null&&(h=new c.TextureLoader(p)),h.setCrossOrigin&&h.setCrossOrigin(this.crossOrigin);const r=h.load(s,_,e,i);return u!==void 0&&(r.mapping=u),r}}class M extends c.Loader{constructor(s){super(s),this.littleEndian=!0}load(s,u,_,e){const i=this,p=new c.FileLoader(i.manager);p.setPath(i.path),p.setResponseType("arraybuffer"),p.setRequestHeader(i.requestHeader),p.setWithCredentials(i.withCredentials),p.load(s,function(h){try{u(i.parse(h))}catch(r){e?e(r):console.error(r),i.manager.itemError(s)}},_,e)}_getDataView(s,u,_,e){switch(_){case"F":return e===8?s.getFloat64(u,this.littleEndian):s.getFloat32(u,this.littleEndian);case"I":return e===1?s.getInt8(u):e===2?s.getInt16(u,this.littleEndian):s.getInt32(u,this.littleEndian);case"U":return e===1?s.getUint8(u):e===2?s.getUint16(u,this.littleEndian):s.getUint32(u,this.littleEndian)}}parse(s){function u(a,t){const b=a.length,g=new Uint8Array(t);let f=0,d=0,l,x,F;do if(l=a[f++],l<32){if(l++,d+l>t)throw new Error("Output buffer is not large enough");if(f+l>b)throw new Error("Invalid compressed data");do g[d++]=a[f++];while(--l)}else{if(x=l>>5,F=d-((l&31)<<8)-1,f>=b)throw new Error("Invalid compressed data");if(x===7&&(x+=a[f++],f>=b))throw new Error("Invalid compressed data");if(F-=a[f++],d+x+2>t)throw new Error("Output buffer is not large enough");if(F<0)throw new Error("Invalid compressed data");if(F>=d)throw new Error("Invalid compressed data");do g[d++]=g[F++];while(--x+2)}while(f<b);return g}function _(a){const t={},b=new Uint8Array(a);let g="",f="",d=0,l=!1;const x=b.length;for(;d<x&&l===!1;){const y=String.fromCharCode(b[d++]);y===`
|
|
3
3
|
`||y==="\r"?(f.trim().toLowerCase().startsWith("data")&&(l=!0),f=""):f+=y,g+=y}const F=g.search(/[\r\n]DATA\s(\S*)\s/i),w=/[\r\n]DATA\s(\S*)\s/i.exec(g.slice(F-1));if(t.data=w[1],t.headerLen=w[0].length+F,t.str=g.slice(0,t.headerLen),t.str=t.str.replace(/#.*/gi,""),t.version=/^VERSION (.*)/im.exec(t.str),t.fields=/^FIELDS (.*)/im.exec(t.str),t.size=/^SIZE (.*)/im.exec(t.str),t.type=/^TYPE (.*)/im.exec(t.str),t.count=/^COUNT (.*)/im.exec(t.str),t.width=/^WIDTH (.*)/im.exec(t.str),t.height=/^HEIGHT (.*)/im.exec(t.str),t.viewpoint=/^VIEWPOINT (.*)/im.exec(t.str),t.points=/^POINTS (.*)/im.exec(t.str),t.version!==null&&(t.version=parseFloat(t.version[1])),t.fields=t.fields!==null?t.fields[1].split(" "):[],t.type!==null&&(t.type=t.type[1].split(" ")),t.width!==null&&(t.width=parseInt(t.width[1])),t.height!==null&&(t.height=parseInt(t.height[1])),t.viewpoint!==null&&(t.viewpoint=t.viewpoint[1]),t.points!==null&&(t.points=parseInt(t.points[1],10)),t.points===null&&(t.points=t.width*t.height),t.size!==null&&(t.size=t.size[1].split(" ").map(function(y){return parseInt(y,10)})),t.count!==null)t.count=t.count[1].split(" ").map(function(y){return parseInt(y,10)});else{t.count=[];for(let y=0,S=t.fields.length;y<S;y++)t.count.push(1)}t.offset={};let C=0;for(let y=0,S=t.fields.length;y<S;y++)t.data==="ascii"?t.offset[t.fields[y]]=y:(t.offset[t.fields[y]]=C,C+=t.size[y]*t.count[y]);return t.rowSize=C,t}const e=_(s),i=[],p=[],h=[],r=[],o=[],n=new c.Color;if(e.data==="ascii"){const a=e.offset,g=new TextDecoder().decode(s).slice(e.headerLen).split(`
|
|
4
4
|
`);for(let f=0,d=g.length;f<d;f++){if(g[f]==="")continue;const l=g[f].split(" ");if(a.x!==void 0&&(i.push(parseFloat(l[a.x])),i.push(parseFloat(l[a.y])),i.push(parseFloat(l[a.z]))),a.rgb!==void 0){const x=e.fields.findIndex(z=>z==="rgb"),F=e.type[x],w=parseFloat(l[a.rgb]);let C=w;if(F==="F"){const z=new Float32Array(1);z[0]=w,C=new Int32Array(z.buffer)[0]}const y=(C>>16&255)/255,S=(C>>8&255)/255,L=(C>>0&255)/255;n.setRGB(y,S,L,c.SRGBColorSpace),h.push(n.r,n.g,n.b)}a.normal_x!==void 0&&(p.push(parseFloat(l[a.normal_x])),p.push(parseFloat(l[a.normal_y])),p.push(parseFloat(l[a.normal_z]))),a.intensity!==void 0&&r.push(parseFloat(l[a.intensity])),a.label!==void 0&&o.push(parseInt(l[a.label]))}}if(e.data==="binary_compressed"){const a=new Uint32Array(s.slice(e.headerLen,e.headerLen+8)),t=a[0],b=a[1],g=u(new Uint8Array(s,e.headerLen+8,t),b),f=new DataView(g.buffer),d=e.offset;for(let l=0;l<e.points;l++){if(d.x!==void 0){const x=e.fields.indexOf("x"),F=e.fields.indexOf("y"),w=e.fields.indexOf("z");i.push(this._getDataView(f,e.points*d.x+e.size[x]*l,e.type[x],e.size[x])),i.push(this._getDataView(f,e.points*d.y+e.size[F]*l,e.type[F],e.size[F])),i.push(this._getDataView(f,e.points*d.z+e.size[w]*l,e.type[w],e.size[w]))}if(d.rgb!==void 0){const x=e.fields.indexOf("rgb"),F=f.getUint8(e.points*d.rgb+e.size[x]*l+2)/255,w=f.getUint8(e.points*d.rgb+e.size[x]*l+1)/255,C=f.getUint8(e.points*d.rgb+e.size[x]*l+0)/255;n.setRGB(F,w,C,c.SRGBColorSpace),h.push(n.r,n.g,n.b)}if(d.normal_x!==void 0){const x=e.fields.indexOf("normal_x"),F=e.fields.indexOf("normal_y"),w=e.fields.indexOf("normal_z");p.push(this._getDataView(f,e.points*d.normal_x+e.size[x]*l,e.type[x],e.size[x])),p.push(this._getDataView(f,e.points*d.normal_y+e.size[F]*l,e.type[F],e.size[F])),p.push(this._getDataView(f,e.points*d.normal_z+e.size[w]*l,e.type[w],e.size[w]))}if(d.intensity!==void 0){const x=e.fields.indexOf("intensity");r.push(this._getDataView(f,e.points*d.intensity+e.size[x]*l,e.type[x],e.size[x]))}if(d.label!==void 0){const x=e.fields.indexOf("label");o.push(f.getInt32(e.points*d.label+e.size[x]*l,this.littleEndian))}}}if(e.data==="binary"){const a=new DataView(s,e.headerLen),t=e.offset;for(let b=0,g=0;b<e.points;b++,g+=e.rowSize){if(t.x!==void 0){const f=e.fields.indexOf("x"),d=e.fields.indexOf("y"),l=e.fields.indexOf("z");i.push(this._getDataView(a,g+t.x,e.type[f],e.size[f])),i.push(this._getDataView(a,g+t.y,e.type[d],e.size[d])),i.push(this._getDataView(a,g+t.z,e.type[l],e.size[l]))}if(t.rgb!==void 0){const f=a.getUint8(g+t.rgb+2)/255,d=a.getUint8(g+t.rgb+1)/255,l=a.getUint8(g+t.rgb+0)/255;n.setRGB(f,d,l,c.SRGBColorSpace),h.push(n.r,n.g,n.b)}if(t.normal_x!==void 0){const f=e.fields.indexOf("normal_x"),d=e.fields.indexOf("normal_y"),l=e.fields.indexOf("normal_z");p.push(this._getDataView(a,g+t.normal_x,e.type[f],e.size[f])),p.push(this._getDataView(a,g+t.normal_y,e.type[d],e.size[d])),p.push(this._getDataView(a,g+t.normal_z,e.type[l],e.size[l]))}if(t.intensity!==void 0){const f=e.fields.indexOf("intensity");r.push(this._getDataView(a,g+t.intensity,e.type[f],e.size[f]))}t.label!==void 0&&o.push(a.getInt32(g+t.label,this.littleEndian))}}const m=new c.BufferGeometry;i.length>0&&m.setAttribute("position",new c.Float32BufferAttribute(i,3)),p.length>0&&m.setAttribute("normal",new c.Float32BufferAttribute(p,3)),h.length>0&&m.setAttribute("color",new c.Float32BufferAttribute(h,3)),r.length>0&&m.setAttribute("intensity",new c.Float32BufferAttribute(r,1)),o.length>0&&m.setAttribute("label",new c.Int32BufferAttribute(o,1)),m.computeBoundingSphere();const I=new c.PointsMaterial({size:.005});return h.length>0&&(I.vertexColors=!0),new c.Points(m,I)}}exports.MTLLoader=R;exports.PCDLoader=M;exports.STLLoader=V;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as E } from "./index.vue_vue_type_style_index_1_lang-BKgS2iFu.js";
|
|
2
|
-
import { g as m, a as F, e as L } from "./
|
|
2
|
+
import { g as m, a as F, e as L } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-h7N9rXk9.js";
|
|
3
3
|
import { c as x } from "./index-CA0SFykF.js";
|
|
4
4
|
const z = async () => {
|
|
5
5
|
let r = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const C=require("./index.vue_vue_type_style_index_1_lang-coQLbheN.cjs"),a=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bgts3--T.cjs"),E=require("./index-CEwxrYB-.cjs"),O=async()=>{let l={};const F=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(F),T=a.getTargetGroup("输入(加工件)",y),o=a.getFormData(T),s=o.管长||0,u=o.外径||0;console.log("管长",s,"外径",u,o);const G=s,L=u/2,P=["弯管仿真加工分析","加工位姿生成"],R=await a.getMenuData(P),x=a.getTargetGroup("输入",R),m=a.getFormData(x),g=m.夹持长度||0;console.log("夹持长度",g,m);const w=Number(g),c={},A=["弯管仿真加工分析","仿真动画生成"],i=await a.getMenuData(A);i==null||i.forEach(t=>{var D,h,b,f,d,_;if((t==null?void 0:t.comp)==="Table"){let M=[],p=(b=(h=(D=t==null?void 0:t.compData)==null?void 0:D.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:h.contents)==null?void 0:b.map(e=>e==null?void 0:e.label),r=(_=(d=(f=t==null?void 0:t.compData)==null?void 0:f.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:d.contents)==null?void 0:_.map(e=>(e=e==null?void 0:e.filter(n=>!(n!=null&&n.id)),e));r==null||r.forEach(e=>{M.push(C.getValueToObjectValue(e,p==null?void 0:p.filter(n=>n!=="操作")))}),c[t.name]=M,c[t.name+"Content"]=t}});const k=E.cloneDeep(c)||[];return l={initialPipeLength:G,pipeRadius:L,clampLength:w,animationData:k},l},V=async()=>{let l={};const F=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(F),T=a.getTargetGroup("输入(加工件)",y),o=a.getFormData(T),s=o.管长||0,u=o.外径||0;console.log("管长",s,"外径",u,o);const G=s,L=u/2,P=["双弯管仿真加工分析","加工工艺生成"],R=await a.getMenuData(P),x=a.getTargetGroup("输入",R),m=a.getFormData(x),g=m.夹持位置||0;console.log("夹持长度",g,m);const w=Number(g),c={},A=["双弯管仿真加工分析","仿真动画生成"],i=await a.getMenuData(A);i==null||i.forEach(t=>{var D,h,b,f,d,_;if((t==null?void 0:t.comp)==="Table"){let M=[],p=(b=(h=(D=t==null?void 0:t.compData)==null?void 0:D.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:h.contents)==null?void 0:b.map(e=>e==null?void 0:e.label),r=(_=(d=(f=t==null?void 0:t.compData)==null?void 0:f.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:d.contents)==null?void 0:_.map(e=>(e=e==null?void 0:e.filter(n=>!(n!=null&&n.id)),e));r==null||r.forEach(e=>{M.push(C.getValueToObjectValue(e,p==null?void 0:p.filter(n=>n!=="操作")))}),c[t.name]=M,c[t.name+"Content"]=t}});const k=E.cloneDeep(c)||[];return l={initialPipeLength:G,pipeRadius:L,clampLength:w,animationData:k},l};exports.fetchDoubleRobotAnimationData=V;exports.fetchSingleRobotAnimationData=O;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as i2, ref as _ } from "vue";
|
|
2
|
-
import { V as d,
|
|
3
|
-
import { O as g2 } from "./OrbitControls-
|
|
2
|
+
import { V as d, a6 as e2, E as G, r as E, a8 as c2, B as S, G as o2, p as N, q as h2, S as n2, C as s2, P as p2, W as r2, n as d2, A as v2, o as z2, M as Y, ba as f2, X as A2, s as M2, D as Z, H as m2, t as K, aJ as u2, N as $, au as t2, u as F2, v as y2, w as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-h7N9rXk9.js";
|
|
3
|
+
import { O as g2 } from "./OrbitControls-BIGKrhyi.js";
|
|
4
4
|
function G2(c, a = "YZX") {
|
|
5
5
|
const t = new d(), o = new e2(), n = new d(), r = new G();
|
|
6
6
|
c.getWorldPosition(t), c.getWorldQuaternion(o), c.getWorldScale(n), r.setFromQuaternion(o, a);
|
|
@@ -84,7 +84,7 @@ function Q2(c) {
|
|
|
84
84
|
const g = i2([]), M = _(new d()), e = _(new d()), s = _(!1), p = _(!1), u = () => {
|
|
85
85
|
if (!c.value) return;
|
|
86
86
|
const l = c.value;
|
|
87
|
-
a = V(), t = D(l), o = B(l), n = H(t, o), F = x(), r = L(l, n), f = O(), M.value.copy(t.position), e.value.copy(n.target), j(100, new d(0, 0, 0)),
|
|
87
|
+
a = V(), t = D(l), o = B(l), n = H(t, o), F = x(), r = L(l, n), f = O(), M.value.copy(t.position), e.value.copy(n.target), j(100, new d(0, 0, 0)), U();
|
|
88
88
|
}, V = () => {
|
|
89
89
|
const l = new n2();
|
|
90
90
|
return l.background = new s2(15790320), l;
|
|
@@ -99,8 +99,8 @@ function Q2(c) {
|
|
|
99
99
|
return z.enableDamping = !0, z.dampingFactor = 0.05, z.mouseButtons = {
|
|
100
100
|
LEFT: null,
|
|
101
101
|
// 禁用左键旋转
|
|
102
|
-
MIDDLE:
|
|
103
|
-
RIGHT:
|
|
102
|
+
MIDDLE: Y.PAN,
|
|
103
|
+
RIGHT: Y.ROTATE
|
|
104
104
|
}, z.panSpeed = 0.7, z;
|
|
105
105
|
}, x = () => {
|
|
106
106
|
const l = new f2(1e3);
|
|
@@ -152,7 +152,7 @@ function Q2(c) {
|
|
|
152
152
|
m = new o2(l, z, 13421772, 14540253), m.rotateX(Math.PI / 2), m.position.copy(i), m.visible = s.value, a.add(m);
|
|
153
153
|
const w = new N(l, l), b = new h2({ opacity: 0.3, color: 0 });
|
|
154
154
|
v = new E(w, b), v.position.copy(i), v.position.z -= 0.01, v.receiveShadow = !0, a.add(v);
|
|
155
|
-
},
|
|
155
|
+
}, R = () => {
|
|
156
156
|
if (g.value.length === 0) {
|
|
157
157
|
j(100, new d(0, 0, 0));
|
|
158
158
|
return;
|
|
@@ -166,8 +166,8 @@ function Q2(c) {
|
|
|
166
166
|
}
|
|
167
167
|
const i = l.getSize(new d()), z = l.getCenter(new d()), w = Math.max(i.x, i.y), b = Math.max(w * 2, 50), I = new d(z.x, z.y, l.min.z);
|
|
168
168
|
j(b, I);
|
|
169
|
-
},
|
|
170
|
-
h = requestAnimationFrame(
|
|
169
|
+
}, U = () => {
|
|
170
|
+
h = requestAnimationFrame(U);
|
|
171
171
|
const l = performance.now(), i = l - C;
|
|
172
172
|
i < A || (C = l - i % A, n == null || n.update(), o && a && t && o.render(a, t), r == null || r.render());
|
|
173
173
|
}, l2 = (l) => {
|
|
@@ -178,7 +178,7 @@ function Q2(c) {
|
|
|
178
178
|
}, Q = () => {
|
|
179
179
|
a && (g.value.forEach((l) => {
|
|
180
180
|
a == null || a.remove(l), l2(l);
|
|
181
|
-
}), g.value = [],
|
|
181
|
+
}), g.value = [], R());
|
|
182
182
|
}, X = () => {
|
|
183
183
|
if (!t || !n || !a || g.value.length === 0) return;
|
|
184
184
|
const l = new S();
|
|
@@ -190,10 +190,10 @@ function Q2(c) {
|
|
|
190
190
|
console.warn("模型没有有效边界框,相机适配失败"), n.target.set(0, 0, 0), t.position.set(8, -8, 6), n.update();
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
const z = l.getBoundingSphere(new u2()), w = z.center, b = z.radius, I = 1.5, P = t.fov * (Math.PI / 180),
|
|
193
|
+
const z = l.getBoundingSphere(new u2()), w = z.center, b = z.radius, I = 1.5, P = t.fov * (Math.PI / 180), k = Math.abs(b / Math.sin(P / 2)) * I, W = new d();
|
|
194
194
|
t.getWorldDirection(W), W.lengthSq() === 0 && W.set(0.5, -0.7, 0.4).normalize();
|
|
195
|
-
const a2 = w.clone().sub(W.multiplyScalar(
|
|
196
|
-
t.position.copy(a2), t.near = Math.max(0.1,
|
|
195
|
+
const a2 = w.clone().sub(W.multiplyScalar(k));
|
|
196
|
+
t.position.copy(a2), t.near = Math.max(0.1, k - b * 20), t.far = k + b * 20, t.updateProjectionMatrix(), n.target.copy(w), n.update(), M.value.copy(t.position), e.value.copy(w);
|
|
197
197
|
};
|
|
198
198
|
return {
|
|
199
199
|
// 状态
|
|
@@ -224,14 +224,14 @@ function Q2(c) {
|
|
|
224
224
|
i.traverse((z) => {
|
|
225
225
|
z instanceof E && (z.castShadow = !1, z.receiveShadow = !1);
|
|
226
226
|
}), a == null || a.add(i);
|
|
227
|
-
}), g.value = l,
|
|
227
|
+
}), g.value = l, R(), X());
|
|
228
228
|
},
|
|
229
229
|
addModelAndFit: (l) => {
|
|
230
230
|
if (!a) return;
|
|
231
231
|
const i = Array.isArray(l) ? l : [l];
|
|
232
232
|
i.forEach((z) => {
|
|
233
233
|
a == null || a.add(z);
|
|
234
|
-
}), g.value = [...g.value, ...i],
|
|
234
|
+
}), g.value = [...g.value, ...i], R(), X();
|
|
235
235
|
},
|
|
236
236
|
setGridVisibility: (l) => {
|
|
237
237
|
s.value = l, m && (m.visible = l);
|
|
@@ -241,7 +241,7 @@ function Q2(c) {
|
|
|
241
241
|
},
|
|
242
242
|
fitCameraToAllModels: X,
|
|
243
243
|
clearAllModels: Q,
|
|
244
|
-
updateGridForModels:
|
|
244
|
+
updateGridForModels: R,
|
|
245
245
|
resetView: () => {
|
|
246
246
|
if (console.log("resetView", {
|
|
247
247
|
initialCameraPosition: M.value,
|
|
@@ -340,11 +340,11 @@ function Z2(c, a) {
|
|
|
340
340
|
let n = [], r = [], f = new S(), h = new d();
|
|
341
341
|
const m = () => {
|
|
342
342
|
n = [
|
|
343
|
-
new
|
|
343
|
+
new J(new d(1, 0, 0), 0),
|
|
344
344
|
// X轴平面
|
|
345
|
-
new
|
|
345
|
+
new J(new d(0, 1, 0), 0),
|
|
346
346
|
// Y轴平面
|
|
347
|
-
new
|
|
347
|
+
new J(new d(0, 0, 1), 0)
|
|
348
348
|
// Z轴平面
|
|
349
349
|
];
|
|
350
350
|
}, v = () => {
|