[Paraview] VTK files with only points

D Haley mycae at yahoo.com
Tue Sep 14 14:44:39 EDT 2010


Hello,

That worked, thank you very much!


--- On Tue, 9/14/10, Sven Buijssen <sven.buijssen at tu-dortmund.de> wrote:

> From: Sven Buijssen <sven.buijssen at tu-dortmund.de>
> Subject: Re: [Paraview] VTK files with only points
> To: "D Haley" <mycae at yahoo.com>
> Date: Tuesday, September 14, 2010, 9:14 AM
> Hello,
> 
> If a dataset contains points (geometry) but no vertices
> (topology), Paraview
> will not display anything. Apart from that there is the
> restriction for
> unstructured grids Sebastien pointed out already.
> 
> D Haley wrote, On 13.09.2010 22:28:
> > Hello,
> > 
> > I am trying to use paraview to visualise molecular
> dynamics results, as a function of time. I am following the
> example of
> > 
> > http://www.geophysik.uni-muenchen.de/intranet/it-service/applications/paraview/animations-with-paraview/
> > 
> > and writing a pvd file from my results which
> references one VTU per timestep. However, the VTU file that
> the PVD refers to won't open, and spits out the following
> error when trying to open one directly:
> > 
> > 
> > ERROR: In
> /home/user/source/ParaView3/VTK/Filtering/vtkExecutive.cxx,
> line 757
> > vtkStreamingDemandDrivenPipeline (0x253d920):
> Algorithm vtkXMLUnstructuredGridReader(0x253cbe0) returned
> failure for request: vtkInformation (0x253dc20)
> >   Debug: Off
> >   Modified Time: 984588
> >   Reference Count: 1
> >   Registered Events: (none)
> >   Request: REQUEST_INFORMATION
> >   FORWARD_DIRECTION: 0
> >   ALGORITHM_AFTER_FORWARD: 1
> > 
> > My VTU file looks like this:
> > 
> > 
> > <VTKFile type="UnstructuredGrid" version="0.1"
> byte_order="BigEndian">
> > <UnstructuredGrid>
> > <Piece NumberOfPoints="4">
> > <Points>
> >         <DataArray
> type="Float32" NumberofComponents="3" NumberofCells="0"
> Format="ascii">
> 
> You should move 'NumberofCells="4"' two lines up into
> <Piece..." - and use a
> capital O in both NumberOfComponents and NumberOfCells.
> 
> >             
>    0.000105948 0.000105948 0.999478
> >             
>    0.000105948 0.999478 0.000105948
> >             
>    0.999478 0.000105948 0.000105948
> >             
>    0.000310148 0.000310148 0.000310148
> >     
>    </DataArray>
> > </Points>
> 
> Insert here the following piece:
> 
> <Cells>
> <DataArray type="Int32" Name="connectivity"
> format="ascii" RangeMin="0"
> RangeMax="3">
> 0 1 2 3
> </DataArray>
> <DataArray type="Int32" Name="offsets" format="ascii"
> RangeMin="1" RangeMax="4">
> 1 2 3 4
> </DataArray>
> <DataArray type="UInt8" Name="types" format="ascii"
> RangeMin="1" RangeMax="1">
> 1 1 1 1
> </DataArray>
> </Cells>
> 
> and it will load fine into ParaView.
> 
> Sven
> 
> 
> > </Piece>
> > </UnstructuredGrid>
> > </VTKFile>
> > 
> > 
> > Does anyone know what is wrong?
> > 
> > Thanks.
> > 
> > 
> >       
> > _______________________________________________
> > Powered by www.kitware.com
> > 
> > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> > 
> > Please keep messages on-topic and check the ParaView
> Wiki at: http://paraview.org/Wiki/ParaView
> > 
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> 
> 


      


More information about the ParaView mailing list