[Paraview] Read a custom point stored in ply file

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Apr 25 09:09:48 EDT 2018


Albert,

Looking at the PLY reader in VTK, it looks like it doesn't support
custom point fields. I've reported an issue here:
https://gitlab.kitware.com/paraview/paraview/issues/18136

If your data is just a collection of points with fields, a simple CSV
maybe be easier than PLY.  After opening a CSV, you can use the "Table
To Points" to interpret the rows as points with fields associated with
them.

Also, what does a PLC format look like? It may be possible to use a
Python programmable filter to directly reader in the PLC without any
conversion if the format is simple.

Utkarsh

On Wed, Apr 25, 2018 at 4:39 AM, Albert Mosella-Montoro
<albert.mosella at upc.edu> wrote:
> Hi All,
>
> The intention of this e-mail is to continue the discussion that I have with
> Mathieu Westphal in stackoverflow.
>
> The starting point of the problem was I wanted to process a .plc file in
> paraview. Matthew told me that at this moment this was not possible and I
> needed to convert my plc, file to ply. When I done the conversion, paraview
> was not able to understand my file due to PLC that it generated a ply file
> without cells.
>
> To solve that Andrew proposes to me to use the following python programmable
> filter:
>
> pdi = self.GetPolyDataInput()
> pdo =  self.GetPolyDataOutput()
> pdo.ShallowCopy(pdi)
> numPts = pdo.GetNumberOfPoints()
> ids=vtk.vtkIdList()
> ids.SetNumberOfIds(numPts)
> for i in range(0, numPts):
>   ids.SetId(i, i)
> pdo.Allocate(1)
> pdo.InsertNextCell(2, ids)
>
> That solves my issue and I was able to saw my  rgb point cloud. Now the
> problem that I have is the following.
>
> I have stored in a ply file the following information: X Y Z VX VY VZ and I
> would like to use vx, vy and vz to display some arrows.
>
> The thing is when paraview reads this new ply file with a custom point the
> vx, vy and vz is not recognized.
>
> Thanks,
>
> Albert
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list