[Paraview] Read a custom point stored in ply file

Albert Mosella-Montoro albert.mosella at upc.edu
Wed Apr 25 09:11:28 EDT 2018


Hi Mathieu,

Yes is another file. Attached you can find it. The file I send to you
previously only contains rgb information.

Regards,

Albert

2018-04-25 14:29 GMT+02:00 Mathieu Westphal <mathieu.westphal at kitware.com>:

> Hi Albert
>
> The .ply file you sent (attached to this mail) does not seem to contain
> the data your are looking for, as one can see easilly by inspecting the
> first lines of the file.
> Are you working with a different file ?
>
> Best regards,
>
> Mathieu Westphal
>
> On Wed, Apr 25, 2018 at 10: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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180425/952e4614/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ply
Type: application/octet-stream
Size: 1099 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180425/952e4614/attachment.obj>


More information about the ParaView mailing list