|  | @@ -101,8 +101,8 @@ let isexpdialog = ref(false)
 | 
	
		
			
				|  |  |  const strResultFormatlist = ref([])
 | 
	
		
			
				|  |  |  const formInline = ref({
 | 
	
		
			
				|  |  |    user: "11",
 | 
	
		
			
				|  |  | -  region: "u-velocity",
 | 
	
		
			
				|  |  | -  name: "x方向速度(m/s)",
 | 
	
		
			
				|  |  | +  region: "static_pressure",
 | 
	
		
			
				|  |  | +  name: "压力(Pa)",
 | 
	
		
			
				|  |  |    date: ""
 | 
	
		
			
				|  |  |  })
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -197,10 +197,10 @@ onMounted(() => {
 | 
	
		
			
				|  |  |    // vtkObj.renderWindow.getRenderer().resetCamera();
 | 
	
		
			
				|  |  |    // vtkObj.renderWindow.getRenderWindow().render();
 | 
	
		
			
				|  |  |    // 设置环境光和光照
 | 
	
		
			
				|  |  | -  const light = vtkLight.newInstance()
 | 
	
		
			
				|  |  | -  light.setColor(1.0, 1.0, 1.0) // 白色环境光
 | 
	
		
			
				|  |  | -  light.setIntensity(3.0) // 强度为1.0
 | 
	
		
			
				|  |  | -  vtkObj.renderWindow.getRenderer().addLight(light)
 | 
	
		
			
				|  |  | +  // const light = vtkLight.newInstance()
 | 
	
		
			
				|  |  | +  // light.setColor(1.0, 1.0, 1.0) // 白色环境光
 | 
	
		
			
				|  |  | +  // light.setIntensity(3.0) // 强度为1.0
 | 
	
		
			
				|  |  | +  // vtkObj.renderWindow.getRenderer().addLight(light)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    emitter.on("pipeName", handleTitleName)
 | 
	
		
			
				|  |  |  })
 | 
	
	
		
			
				|  | @@ -262,10 +262,69 @@ function vtkShow() {
 | 
	
		
			
				|  |  |      size: fcon.polydata.getNumberOfPoints()
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  const cellArray = fcon.polydata.getPolys();
 | 
	
		
			
				|  |  | +  let size =cellArray.getNumberOfCells();
 | 
	
		
			
				|  |  | +  let celldata = cellArray.getData();
 | 
	
		
			
				|  |  | +  let celln = celldata[0];
 | 
	
		
			
				|  |  | +  console.log(size,celldata.length);
 | 
	
		
			
				|  |  | +  if(celln==8){//六面体
 | 
	
		
			
				|  |  | +   let array=new Uint32Array(size*30);
 | 
	
		
			
				|  |  | +    let i=0;
 | 
	
		
			
				|  |  | +    let j=0;
 | 
	
		
			
				|  |  | +    for(;i<celldata.length;){
 | 
	
		
			
				|  |  | +      let n  = celldata[i++];
 | 
	
		
			
				|  |  | +      let n1 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n2 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n3 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n4 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n5 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n6 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n7 = celldata[i++];
 | 
	
		
			
				|  |  | +      let n8 = celldata[i++];
 | 
	
		
			
				|  |  | +      array[j++]=4;
 | 
	
		
			
				|  |  | +      array[j++]=n1;
 | 
	
		
			
				|  |  | +      array[j++]=n2;
 | 
	
		
			
				|  |  | +      array[j++]=n3;
 | 
	
		
			
				|  |  | +      array[j++]=n4;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      array[j++]=4;
 | 
	
		
			
				|  |  | +      array[j++]=n1;
 | 
	
		
			
				|  |  | +      array[j++]=n2;
 | 
	
		
			
				|  |  | +      array[j++]=n6;
 | 
	
		
			
				|  |  | +      array[j++]=n5;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      array[j++]=4;
 | 
	
		
			
				|  |  | +      array[j++]=n1;
 | 
	
		
			
				|  |  | +      array[j++]=n4;
 | 
	
		
			
				|  |  | +      array[j++]=n8;
 | 
	
		
			
				|  |  | +      array[j++]=n5;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      array[j++]=4;
 | 
	
		
			
				|  |  | +      array[j++]=n2;
 | 
	
		
			
				|  |  | +      array[j++]=n3;
 | 
	
		
			
				|  |  | +      array[j++]=n7;
 | 
	
		
			
				|  |  | +      array[j++]=n6;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      array[j++]=4;
 | 
	
		
			
				|  |  | +      array[j++]=n3;
 | 
	
		
			
				|  |  | +      array[j++]=n4;
 | 
	
		
			
				|  |  | +      array[j++]=n8;
 | 
	
		
			
				|  |  | +      array[j++]=n7;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      array[j++]=4;
 | 
	
		
			
				|  |  | +      array[j++]=n5;
 | 
	
		
			
				|  |  | +      array[j++]=n6;
 | 
	
		
			
				|  |  | +      array[j++]=n7;
 | 
	
		
			
				|  |  | +      array[j++]=n8;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +   fcon.polydata.getPolys().setData(array);
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    dataArray.setData(scalarArray)
 | 
	
		
			
				|  |  |    fcon.polydata.getPointData().setScalars(dataArray)
 | 
	
		
			
				|  |  | +  
 | 
	
		
			
				|  |  |    mapper.setInputData(fcon.polydata)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    getMinMax(scalarArray)
 | 
	
		
			
				|  |  |    mapper.setScalarRange(parseFloat(min.toFixed(3)), parseFloat(max.toFixed(3)))
 | 
	
		
			
				|  |  |    scalarBarActor.setAxisLabel(formInline.value.name)
 |