2014-03-13 62 views
1

給定二維數據(一個標量場),我想繪製第三維(橫向)的標量值。我怎樣才能做到這一點?ParaView:matlab surf對應?

ParaView 4.1.0;例如數據(example.vtu):

<?xml version="1.0"?> 
<VTKFile type="Unstructured Grid" version="0.1" > 
<UnstructuredGrid> 
<Piece NumberOfPoints="9" NumberOfCells="8"> 
<Points> 
<DataArray type="Float64" NumberOfComponents="3" format="ascii">0 0 0 0.5 0 0 1 0 0 0 0.5 0 0.5 0.5 0 1 0.5 0 0 1 0 0.5 1 0 1 1 0 </DataArray> 
</Points> 
<Cells> 
<DataArray type="UInt32" Name="connectivity" format="ascii">0 1 4 0 3 4 1 2 5 1 4 5 3 4 7 3 6 7 4 5 8 4 7 8 </DataArray> 
<DataArray type="UInt32" Name="offsets" format="ascii">3 6 9 12 15 18 21 24 </DataArray> 
<DataArray type="UInt8" Name="types" format="ascii">5 5 5 5 5 5 5 5 </DataArray> 
</Cells> 
<PointData Scalars="f_3"> 
<DataArray type="Float64" Name="f_3" format="ascii">1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00 1.0476190476190479e+00 1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00 </DataArray> 
</PointData> 
</Piece> 
</UnstructuredGrid> 
</VTKFile> 

回答

0

出於某種原因,我無法加載數據集,無論如何,因爲你有一個pointdata標量數組,你可以嘗試warpbyscalar過濾器。