给定二维数据(标量场),我想在第三维(景观)中绘制标量值。我怎样才能做到这一点?
视窗 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>