VTK_Vertex的VTK文件格式错误

时间:2016-03-23 01:32:46

标签: vtk paraview

我正在尝试在Paraview中可视化粒子数据。使用VTK文件格式PDF可视化非结构化网格数据(使用3或4面单元格)时没有问题:

http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf

但是,我无法将点数据加载到paraview中。一个简单的粒子文件(不起作用)如下:

<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
    <Piece NumberOfPoints=“2” NumberOfCells=“2”>
        <CellData Scalars="scalars">
            <DataArray type="Float64" Name=“Particle Strengths" NumberOfComponents="1" Format="ascii">
-0.174227       
-0.0716306  
            </DataArray>
        </CellData>
        <Points>
            <DataArray type="Float64" Name="Position" NumberOfComponents="3" Format="ascii">
0.867532    0.186254    -0.00153193 
1   0.157078    0   
            </DataArray>
        </Points>
        <Cells>
            <DataArray type="Int32" Name="connectivity" Format="ascii">
0   
1   
            </DataArray>
            <DataArray type="Int32" Name="offsets" Format="ascii">
1
2
            </DataArray>
            <DataArray type=“UInt8” Name="types" Format="ascii">
1   
1       
            </DataArray>
        </Cells>
    </Piece>
</UnstructuredGrid>

作为参考,我在尝试加载到paraview时遇到此错误,这使得听起来像2不是可接受的点数。有什么想法吗?

ERROR: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild- 
     Release-Python27/paraview/src/paraview/VTK/IO/XMLParser/vtkXMLParser.cxx, line 483
vtkXMLDataParser (0x7f848c224cf0): Error parsing XML in stream at line 3,
column 24, byte index 118: not well-formed (invalid token)


ERROR: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-
Release-Python27/paraview/src/paraview/VTK/IO/XML/vtkXMLReader.cxx, line 448
vtkXMLUnstructuredGridReader (0x7f848c2a0d40): Error parsing input file.   
ReadXMLInformation aborting.


ERROR: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-
Release-Python27/paraview/src/paraview/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkPVCompositeDataPipeline (0x7f848c292a50): Algorithm     

vtkXMLUnstructuredGridReader(0x7f848c2a0d40)返回请求失败:
vtkInformation(0x7f848c224c80)     调试:关闭     修改时间:304502     参考人数:1     注册事件:(无)     请求:REQUEST_INFORMATION     ALGORITHM_AFTER_FORWARD:1     FORWARD_DIRECTION:0

0 个答案:

没有答案