ParaView: matlab surf counterpart?

我与影子孤独终老i 提交于 2019-12-11 09:22:54

问题


Given 2D data (a scalar field), I want to plot the scalar value in the third dimension (landscape). How can I achieve that?

ParaView 4.1.0; example data (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>

回答1:


For some reason I'm not able to load your dataset, anyway, since you have a pointdata scalar array, you can try the warpbyscalar filter.



来源:https://stackoverflow.com/questions/22380153/paraview-matlab-surf-counterpart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!