(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17ce99ee"],{"0ad0e":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("plt2d",{ref:"pltLoad",attrs:{urls:t.urls}}),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad.addCircle(0,0,.1)}}},[t._v("圆形")]),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad.addBox(-.125,-.5,0,.5)}}},[t._v("长方形")]),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad.addBox(.125,-.05,.175,.05)}}},[t._v("长方形2")]),t._v(" "),o("plt3d",{ref:"pltLoad3d",attrs:{urls:t.urls2}}),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad3d.addSphere(1,2,3,1)}}},[t._v("球")]),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad3d.addBox3D(1,1,1,3,2,2)}}},[t._v("长方体")]),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad3d.addEllipsoid()}}},[t._v("addEllipsoid")]),t._v(" "),o("el-button",{on:{click:function(e){return t.$refs.pltLoad3d.addCylinder(1,0,1,-1,1)}}},[t._v("圆柱体")])],1)},a=[],r=o("bcbd"),i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{directives:[{name:"show",rawName:"v-show",value:t.container_show,expression:"container_show"}],ref:"container_3dplt"}),t._v(" "),o("el-button",{on:{click:function(e){return t.load()}}},[t._v("Load")]),t._v(" "),o("el-progress",{attrs:{percentage:t.percentage}}),t._v(" "),o("el-button",{on:{click:function(e){return t.moveReStart()}}},[t._v("Restart")]),t._v(" "),o("el-progress",{attrs:{percentage:t.movetage}}),t._v(" "),o("el-button",{on:{click:function(e){return t.moveStop()}}},[t._v("Stop")]),t._v(" "),o("el-button",{on:{click:function(e){return t.moveStart()}}},[t._v("Start")])],1)},s=[],l=(o("a481"),o("5df3"),o("f400"),o("28a5"),o("ac6a"),o("5a89")),c=o("4721"),h=(o("7dac"),{data:function(){return{container_show:!0,scene:null,renderer:null,camera:null,controls:null,maxX:0,maxY:0,maxZ:0,minX:0,minY:0,minZ:0,camerahight:5,mufactor:.2,meshs:[],resultfiles:[],percentage:0,movetage:0,nowIndex:0,moveflag:!1,clock:null,baseColors:[],camerahight_ele:10}},props:{urls:Array},mounted:function(){this.initScene()},methods:{clear:function(){var t=this;this.meshs.forEach((function(e){t.scene.remove(e)})),this.meshs=[]},init:function(){this.clock=new l["j"],this.scene=new l["P"],this.renderer=new l["W"]({antialias:!0,alpha:!0}),this.camera=new l["H"](20,1,.2,1e4),this.controls=new c["a"](this.camera,this.renderer.domElement)},initScene:function(){null==this.scene&&this.init(),this.renderer.setSize(500,500),this.$refs.container_3dplt.appendChild(this.renderer.domElement),this.initShow()},load:function(){var t=this,e=0;t.resultfiles=[],t.urls.forEach((function(o){t.loadone(o,(function(){e++,t.percentage=Math.round(e/t.urls.length*100),console.log(t.resultfiles)}))}))},loadone:function(t,e){var o=this,n=new l["s"];n.load(t,(function(t){o.plt(t),e()}),(function(t){}),(function(t){console.error("An error happened")}))},plt:function(t){var e,o=t.split("\n"),n=this,a={variablemap:new Map},r=[],i=/(\-?\d+\.?[\d\-\+e]*)\s/g;o.forEach((function(t){if(0==t.indexOf("variables"))r=t.split("=")[1].replace(/ /g,"").replace(/\"/g,"").split(",");else{var o=-1;while(null!==(e=i.exec(t))){o++;var n=r[o];"undefined"==typeof a.variablemap.get(n)&&a.variablemap.set(n,[]);var s=a.variablemap.get(n);s.push(parseFloat(e))}}})),n.resultfiles.push(a)},initShow:function(){var t=this,e=new l["d"](10);this.scene.add(e);var o=function e(){t.renderer.render(t.scene,t.camera),requestAnimationFrame(e)};o(),t.show();setInterval((function(){t.moveflag&&t.nowIndex0)t=t.replace(" "," ");return t}},"983b":function(t,e,o){},b48b:function(t,e,o){"use strict";var n=o("983b"),a=o.n(n);a.a},bcbd:function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"vtk3D"},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.container_show,expression:"container_show"}],ref:"container_2dplt",staticClass:"canvas"}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.colorStripShow,expression:"colorStripShow"}],staticClass:"colorStrip"},[o("div",{staticClass:"CP",domProps:{innerHTML:t._s(t.scalarRadio)}}),t._v(" "),o("div",{ref:"colorBlock",staticClass:"colorBlock"},t._l(t.coloras,(function(e,n){return o("li",{key:n,style:{height:t.height,background:e}},[o("span",[t._v(t._s(t.nucolor[n]))])])})),0)])])},a=[],r=(o("5df3"),o("f400"),o("c5f6"),o("6b54"),o("a481"),o("28a5"),o("7f7f"),o("ac6a"),o("5a89")),i=o("4721"),s=(o("7dac"),o("4f7c")),l=o("a775"),c=o("9ca7"),h=o("cdfc"),u=o("72e8");function p(t,e,o,n){t=t||10,e=e||10,o=new u["a"](void 0!==o?o:4473924),n=new u["a"](void 0!==n?n:8947848);for(var a=e/2,r=t/e,i=t/2,p=[],d=[],f=0,v=0,m=-i;f<=e;f++,m+=r){p.push(0,-i,m,0,i,m),p.push(0,m,-i,0,m,i);var _=f===a?o:n;_.toArray(d,v),v+=3,_.toArray(d,v),v+=3,_.toArray(d,v),v+=3,_.toArray(d,v),v+=3}var g=new h["a"];g.setAttribute("position",new c["b"](p,3)),g.setAttribute("color",new c["b"](d,3));var w=new l["a"]({vertexColors:!0,toneMapped:!1});s["a"].call(this,g,w),this.type="GridHelper"}p.prototype=Object.assign(Object.create(s["a"].prototype),{constructor:p,copy:function(t){return s["a"].prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return(new this.constructor).copy(this)}});var d={data:function(){return{container_show:!0,scene:null,renderer:null,camera:null,controls:null,maxX:0,maxY:0,maxZ:0,minX:0,minY:0,minZ:0,camerahight:5,mufactor:.2,meshs:[],resultfiles:[],percentage:0,movetage:0,nowIndex:0,moveflag:!1,clock:null,camerahight_ele:10,colorStripShow:!0,baseColors:[],scalarRadio:"",coloras:[],height:"30px",nucolor:[],contourLevel:5,reveColor:[]}},props:{urls:Array},created:function(){this.$bus.$on("cData",this.colorData)},mounted:function(){this.initScene()},methods:{clear:function(){var t=this;this.meshs.forEach((function(e){t.scene.remove(e)})),this.meshs=[]},colorData:function(t){console.log(t),this.colorStripShow=t.show,this.contourLevel=t.cLevel,this.scalarRadio=t.name,t.max===t.min?this.coloras=["rgb(0,0,255)","#D7DCE7"]:this.initBaseColors(),this.getmax(t.min,t.max),this.offHeight()},offHeight:function(){this.height=320/(this.coloras.length-1)+"px"},getmax:function(t,e){this.nucolor=[];for(var o=(e-t)/this.contourLevel,n=1;n<=this.contourLevel;n++){var a=(t+n*o).toExponential(2);this.nucolor.unshift(a)}this.nucolor.push(t.toExponential(2)),this.reveColor=JSON.parse(JSON.stringify(this.nucolor)).reverse()},getColor:function(t){for(var e=1;e<=this.contourLevel;e++)if(t>=this.reveColor[e-1]&&t=.5?o+e-o*e:o*(1+e),r=2*o-a,i=(n[0]=t+1/3,n[1]=t,n[2]=t-1/3,0);i1&&(s-=1),!0){case s<1/6:s=r+6*(a-r)*s;break;case 1/6<=s&&s<.5:s=a;break;case.5<=s&&s<2/3:s=r+(a-r)*(4-6*s);break;default:s=r;break}n[i]=Math.round(255*s)}return this.colorHex("rgb("+n[0]+","+n[1]+","+n[2]+")")},colorHex:function(t){var e=/^(rgb|RGB)/;if(e.test(t)){for(var o="0x",n=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),a=0;a=0?a[i]:null;if(0==t.indexOf("variables"))r=t.split("=")[1].replace(/ /g,"").replace(/\"/g,"").split(",");else if(0==t.indexOf("ZONE"))a.push({variablemap:new Map}),i++;else{null==o&&(o={variablemap:new Map},a.push(o),i++);var n=-1;while(null!==(e=s.exec(t))){n++;var l=r[n];"undefined"==typeof o.variablemap.get(l)&&o.variablemap.set(l,[]);var c=o.variablemap.get(l);c.push(parseFloat(e))}}})),n.resultfiles.push(a),n.addpnt()},initShow:function(){var t=this,e=function e(){t.renderer.render(t.scene,t.camera),requestAnimationFrame(e)};e(),t.show();setInterval((function(){t.moveflag&&t.nowIndex