From aguirre.utn at gmail.com Tue May 1 04:47:34 2018 From: aguirre.utn at gmail.com (Miguel Aguirre) Date: Tue, 1 May 2018 10:47:34 +0200 Subject: [Paraview] PROBLEM WITH CUSTOM FILTER In-Reply-To: References: Message-ID: Hello Mathieu, I realized it crashes when I add a porperty with a "?" symbol. In fact I have a XML plugin version of the same Python programmable filter. This XML file contains a Python variable name with a ? simbol (degrees). When I add this property it crashes (It is available on the attached file). So the problem was not with the code itself but with the XML file. On the other hand, when it did not crashed, I could not find the custom filter simply because the brand new custom filter was on the Sources list and not on the alphabetical list of filters (sorry for that !!!) Sometimes the creation procedure was supposed to be ok (no crashes, no error messages), and i continue to work until a new error apeared (not related with this issue). When i open Paraview again, the filter was not there . With the "Reset Session" you told me, it works fine. So, It seems to be a good practice to quit the session without errors in order to avoid to lost the Custom Filter. created earlier Finally, the autoload of the Custom Filters works fine, but I realized that the list of cpd files gets empty after a crash happens during the creation of the custom filter. If the custom filter procedure succeeds, it works as intended. However if it crashes, all or some of the existing Filters just desapear. Thanks again for your support ! PS : i respond also to the Paraview mail list (somebody may have the same issues) Best regards, Miguel Angel AGUIRRE On Mon, Apr 30, 2018 at 11:30 PM, Mathieu Westphal < mathieu.westphal at kitware.com> wrote: > Great ! > > I would be interested to know how you had a crash though, as it could be > fixed anyway. > > Best regards, > > On Mon, 30 Apr 2018, 18:37 Miguel Aguirre, wrote: > >> Hello, >> >> Thank you very much. I've followed those steps and worked perfectly. It >> is not crashing anymore. >> >> Thanks again. >> >> Miguel >> >> On Mon, Apr 30, 2018 at 4:13 PM, Mathieu Westphal < >> mathieu.westphal at kitware.com> wrote: >> >>> Hello Miguel, >>> >>> Programmable source are supported and your example seems to work. >>> Here is exactly how i tested it, with ParaView 5.4.0, 5.4.1 and 5.5, on >>> linux. >>> >>> - Open ParaView >>> - Load State -> ERROR_pv_5_4_0.pvsm >>> - Select the source and the filter in the pipeline browser >>> - Tools->Create Custom Filter >>> - Write a SourceName >>> - Next, Next, Finish >>> - Edit->Reset Session >>> - *Sources*-> SourceName >>> - Apply >>> >>> no bug, all seems to be working well. >>> >>> Custom Filter are already automatically saved and loaded, they should be >>> available at the next paraview execution (considering ParaView exited >>> normally). >>> >>> Best, >>> >>> Mathieu Westphal >>> >>> On Fri, Apr 27, 2018 at 2:58 PM, Miguel Aguirre >>> wrote: >>> >>>> Hello, >>>> >>>> It is on Paraview 5.4.0 and it happens also on 5.5.0 >>>> >>>> I have attached a very simple pvsm file with a programmable source >>>> followed by a filter. When I try to create a single Custom Filter >>>> containing this 2 operations (the source+the filter), it crashes. Sometimes >>>> it does not crashes but the new custom filter is not available on the >>>> filter alphabetical list. Does the Custom Filter accepts a programmable >>>> source as input ? >>>> >>>> Thanks in advance >>>> >>>> PS : i have created several other custom filters but i have to load >>>> them every time I open a session. is it possible to make an autoload ? >>>> (something like the autoload of the plugins) >>>> >>>> Miguel >>>> >>>> On Fri, Apr 27, 2018 at 1:32 PM, Mathieu Westphal < >>>> mathieu.westphal at kitware.com> wrote: >>>> >>>>> Hi Miguel, >>>>> >>>>> I fail to reproduce with a single source in a custom filter. >>>>> Could you please precise which version of ParaView you are using and >>>>> which filter you are putting in a custom filter ? >>>>> >>>>> Thanks, >>>>> >>>>> Best regards, >>>>> >>>>> Mathieu Westphal >>>>> >>>>> On Fri, Apr 27, 2018 at 12:54 PM, Miguel Aguirre < >>>>> aguirre.utn at gmail.com> wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> I would like to know if its possible to create a custom filter >>>>>> without an input. >>>>>> >>>>>> In fact, I would like to use a data source followed by some filters >>>>>> and then to group all these actions (including the data source) in a single >>>>>> Custom Filter. However Paraview crashes when I click on the "finish" button >>>>>> during the set-up procedure. >>>>>> >>>>>> Thanks in advance ! >>>>>> >>>>>> Miguel >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> *Ing. Miguel Angel AGUIRRE* >>>> >>>> >>> >> >> >> -- >> *Ing. Miguel Angel AGUIRRE* >> >> -- *Ing. Miguel Angel AGUIRRE* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Epsilon_Axes.py Type: application/octet-stream Size: 4160 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Epsilon_Axes.xml Type: text/xml Size: 3982 bytes Desc: not available URL: From paul.carrico at free.fr Tue May 1 05:08:39 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 01 May 2018 11:08:39 +0200 Subject: [Paraview] xdmf format with hdf5: nodes and elements labels Message-ID: <7de56148d75461645ddf0d9cd6645418@free.fr> Hi All, Some time ago I had a look on the capabilities of Paraview and the xdmf format to postprocess (huge amount of) results coming from Finite Elements solvers (structural/mechanical engineering) ... I started to play with the hdf5 libraries and I'm happy with ... Unfortunately I did not anticipate the fact that node and elements numbering are implicit into the xdmf format, aren't they? (I found old post on the net on that topics, from 2013) if so, I'll have to write an intermediate code to renumber nodes and elements (except if a work around exists); in addition to the work for that task, the new mesh changes from the original one (in terms of node & element label to point on), that is not convenient. (I'm still wondering when I'll deal with sub-parts ...) Are they people still confront to it? has any solution been found? Thanks for any feedback Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue May 1 09:38:34 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 1 May 2018 09:38:34 -0400 Subject: [Paraview] PROBLEM WITH CUSTOM FILTER In-Reply-To: References: Message-ID: On Tue, May 1, 2018 at 4:47 AM, Miguel Aguirre wrote: > Hello Mathieu, > > I realized it crashes when I add a porperty with a "?" symbol. In fact I > have a XML plugin version of the same Python programmable filter. This XML > file contains a Python variable name with a ? simbol (degrees). When I add > this property it crashes (It is available on the attached file). So the > problem was not with the code itself but with the XML file. > This sounds like the same problem as https://gitlab.kitware.com/paraview/paraview/issues/12708 and https://gitlab.kitware.com/paraview/paraview/issues/13679. Basically, the XML parser can't handle the special characters properly. Cory > > On the other hand, when it did not crashed, I could not find the custom > filter simply because the brand new custom filter was on the Sources list > and not on the alphabetical list of filters (sorry for that !!!) > > Sometimes the creation procedure was supposed to be ok (no crashes, no > error messages), and i continue to work until a new error apeared (not > related with this issue). When i open Paraview again, the filter was not > there . With the "Reset Session" you told me, it works fine. So, It seems > to be a good practice to quit the session without errors in order to avoid > to lost the Custom Filter. created earlier > > > Finally, the autoload of the Custom Filters works fine, but I realized > that the list of cpd files gets empty after a crash happens during the > creation of the custom filter. If the custom filter procedure succeeds, it > works as intended. However if it crashes, all or some of the existing > Filters just desapear. > > Thanks again for your support ! > > PS : i respond also to the Paraview mail list (somebody may have the same > issues) > > Best regards, > > Miguel Angel AGUIRRE > > On Mon, Apr 30, 2018 at 11:30 PM, Mathieu Westphal < > mathieu.westphal at kitware.com> wrote: > >> Great ! >> >> I would be interested to know how you had a crash though, as it could be >> fixed anyway. >> >> Best regards, >> >> On Mon, 30 Apr 2018, 18:37 Miguel Aguirre, wrote: >> >>> Hello, >>> >>> Thank you very much. I've followed those steps and worked perfectly. It >>> is not crashing anymore. >>> >>> Thanks again. >>> >>> Miguel >>> >>> On Mon, Apr 30, 2018 at 4:13 PM, Mathieu Westphal < >>> mathieu.westphal at kitware.com> wrote: >>> >>>> Hello Miguel, >>>> >>>> Programmable source are supported and your example seems to work. >>>> Here is exactly how i tested it, with ParaView 5.4.0, 5.4.1 and 5.5, on >>>> linux. >>>> >>>> - Open ParaView >>>> - Load State -> ERROR_pv_5_4_0.pvsm >>>> - Select the source and the filter in the pipeline browser >>>> - Tools->Create Custom Filter >>>> - Write a SourceName >>>> - Next, Next, Finish >>>> - Edit->Reset Session >>>> - *Sources*-> SourceName >>>> - Apply >>>> >>>> no bug, all seems to be working well. >>>> >>>> Custom Filter are already automatically saved and loaded, they should >>>> be available at the next paraview execution (considering ParaView exited >>>> normally). >>>> >>>> Best, >>>> >>>> Mathieu Westphal >>>> >>>> On Fri, Apr 27, 2018 at 2:58 PM, Miguel Aguirre >>>> wrote: >>>> >>>>> Hello, >>>>> >>>>> It is on Paraview 5.4.0 and it happens also on 5.5.0 >>>>> >>>>> I have attached a very simple pvsm file with a programmable source >>>>> followed by a filter. When I try to create a single Custom Filter >>>>> containing this 2 operations (the source+the filter), it crashes. Sometimes >>>>> it does not crashes but the new custom filter is not available on the >>>>> filter alphabetical list. Does the Custom Filter accepts a programmable >>>>> source as input ? >>>>> >>>>> Thanks in advance >>>>> >>>>> PS : i have created several other custom filters but i have to load >>>>> them every time I open a session. is it possible to make an autoload ? >>>>> (something like the autoload of the plugins) >>>>> >>>>> Miguel >>>>> >>>>> On Fri, Apr 27, 2018 at 1:32 PM, Mathieu Westphal < >>>>> mathieu.westphal at kitware.com> wrote: >>>>> >>>>>> Hi Miguel, >>>>>> >>>>>> I fail to reproduce with a single source in a custom filter. >>>>>> Could you please precise which version of ParaView you are using and >>>>>> which filter you are putting in a custom filter ? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Mathieu Westphal >>>>>> >>>>>> On Fri, Apr 27, 2018 at 12:54 PM, Miguel Aguirre < >>>>>> aguirre.utn at gmail.com> wrote: >>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> I would like to know if its possible to create a custom filter >>>>>>> without an input. >>>>>>> >>>>>>> In fact, I would like to use a data source followed by some filters >>>>>>> and then to group all these actions (including the data source) in a single >>>>>>> Custom Filter. However Paraview crashes when I click on the "finish" button >>>>>>> during the set-up procedure. >>>>>>> >>>>>>> Thanks in advance ! >>>>>>> >>>>>>> Miguel >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Ing. Miguel Angel AGUIRRE* >>>>> >>>>> >>>> >>> >>> >>> -- >>> *Ing. Miguel Angel AGUIRRE* >>> >>> > > > -- > *Ing. Miguel Angel AGUIRRE* > > > _______________________________________________ > 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 > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rccm.kyoshimi at gmail.com Tue May 1 22:30:34 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Wed, 2 May 2018 11:30:34 +0900 Subject: [Paraview] Writer Plugin does not release the handle to the output files Message-ID: Hi, I am creating a writer plugin for Fluent in ParaView 5.5.0 built under Windows 10. This plugin aims at writing vtkUnstructuredGrid input out to a Fluent format file as a 3D mesh. The plugin is built and loaded into ParaView successfully. But when Paraview opens the attached input and saves it using this FluentWriterPlugin, a problem occurs. That is, the plugin does not try to lock the output files after writing and closing them. So I can not refer to them until I close the ParaView itself. The following is my implementation. https://github.com/Kenichiro-Yoshimi/FluentWriterPlugin What is going wrong here? Thanks in advance, yoshimi -------------- next part -------------- A non-text attachment was scrubbed... Name: wavelet.tar.gz Type: application/x-gzip Size: 22600 bytes Desc: not available URL: From Andrea.Caffagni at ferrari.com Wed May 2 01:15:50 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Wed, 2 May 2018 05:15:50 +0000 Subject: [Paraview] Clip a domain using a close surface Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE9302776E10@GSVCLU05.ges.ferlan.it> Dear users, I need to write in a .csv file some PointData from a slice. I wrote my point values inside a ?for? cycle thus I would maintain only one .csv file and append each time the new data to this. For this I have created the following commands in my script: # create a new 'Pass Arrays' passArrays1 = PassArrays(Input=calculator7) UpdatePipeline() # Properties modified on passArrays1 passArrays1.PointDataArrays = ['pressure', 'velocity'] UpdatePipeline() # Create a new 'SpreadSheet View' spreadSheetView1 = CreateView('SpreadSheetView') spreadSheetView1.ColumnToSort = '' spreadSheetView1.BlockSize = 1024L # uncomment following to set a specific view size # spreadSheetView1.ViewSize = [400, 400] # export view ExportView('C:/Users/acaffagni/Desktop/ciao.csv', ?a?,view=spreadSheetView1) Unfortunately, the program stop itself at the ?Properties modified on passArrays1?, without updating the pipeline. Maybe it exists a more smart way to create this .csv file. Thanks a lot for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrea.Caffagni at ferrari.com Wed May 2 02:05:41 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Wed, 2 May 2018 06:05:41 +0000 Subject: [Paraview] write csv file Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE9302776E2A@GSVCLU05.ges.ferlan.it> Dear users, I need to write in a .csv file some PointData from a slice. I wrote my point values inside a ?for? cycle thus I would maintain only one .csv file and append each time the new data to this. For this I have created the following commands in my script: # create a new 'Pass Arrays' passArrays1 = PassArrays(Input=calculator7) UpdatePipeline() # Properties modified on passArrays1 passArrays1.PointDataArrays = ['pressure', 'velocity'] UpdatePipeline() # Create a new 'SpreadSheet View' spreadSheetView1 = CreateView('SpreadSheetView') spreadSheetView1.ColumnToSort = '' spreadSheetView1.BlockSize = 1024L # uncomment following to set a specific view size # spreadSheetView1.ViewSize = [400, 400] # export view ExportView('C:/Users/acaffagni/Desktop/ciao.csv', ?a?,view=spreadSheetView1) Unfortunately, the program stop itself at the ?Properties modified on passArrays1?, without updating the pipeline. Maybe it exists a more smart way to create this .csv file. Thanks a lot for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From aguirre.utn at gmail.com Wed May 2 03:35:06 2018 From: aguirre.utn at gmail.com (Miguel Aguirre) Date: Wed, 2 May 2018 09:35:06 +0200 Subject: [Paraview] write csv file In-Reply-To: <17954FF4A6EDC447B60CEFADD6DCAE9302776E2A@GSVCLU05.ges.ferlan.it> References: <17954FF4A6EDC447B60CEFADD6DCAE9302776E2A@GSVCLU05.ges.ferlan.it> Message-ID: Hello Andrea, Maybe a Programmable Filter would be a better way. I use this approach to create csv files with data comming from slices: import csv #Create an empty csv file with headers: FilePath = "C:/Users/Miguel Angel AGUIRRE/Desktop/DataOutput.csv" Headers=["X","Y","Z","PRESSURE","VELOCITY"] with open(FilePath, 'wb') as csvfile: filewriter = csv.writer(csvfile, delimiter=',') filewriter.writerow(Headers) # Get array data from input: X = inputs[0].Points[:,0][0] Y = inputs[0].Points[:,1][0] Z = inputs[0].Points[:,2][0] PRESSURE = inputs[0] .GetPointData().GetArray(" PRESSURE ") VELOCITY = inputs[0] .GetPointData().GetArray(" VELOCITY ") # Add this data to the file (you can use an interation here if you want to do add info comming from several slices) FieldData=[X,Y,Z, PRESSURE, VELOCITY ] with open(FilePath, 'a') as csvfile: filewriter = csv.writer(csvfile,lineterminator='\n') filewriter.writerow(FieldData) I hope this will be useful. Best regards, Miguel On Wed, May 2, 2018 at 8:05 AM, Caffagni, Andrea < Andrea.Caffagni at ferrari.com> wrote: > Dear users, > > I need to write in a .csv file some PointData from a slice. > > I wrote my point values inside a ?for? cycle thus I would maintain only > one .csv file and append each time the new data to this. > > For this I have created the following commands in my script: > > > > > > # create a new 'Pass Arrays' > > passArrays1 = PassArrays(Input=calculator7) > > UpdatePipeline() > > > > # Properties modified on passArrays1 > > passArrays1.PointDataArrays = ['pressure', 'velocity'] > > UpdatePipeline() > > > > # Create a new 'SpreadSheet View' > > spreadSheetView1 = CreateView('SpreadSheetView') > > spreadSheetView1.ColumnToSort = '' > > spreadSheetView1.BlockSize = 1024L > > # uncomment following to set a specific view size > > # spreadSheetView1.ViewSize = [400, 400] > > > > # export view > > ExportView('C:/Users/acaffagni/Desktop/ciao.csv', > ?a?,view=spreadSheetView1) > > > > > > Unfortunately, the program stop itself at the ?Properties modified on > passArrays1?, without updating the pipeline. > > Maybe it exists a more smart way to create this .csv file. > > > > Thanks a lot for the suggestions, > > Andrea > > > > ____________________________________________________________ > _____________________________________________________ > > > > Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e > pu? contenere informazioni che sono di natura privilegiata, confidenziale o > non divulgabile secondo le leggi vigenti. Se il lettore del presente > messaggio non ? il destinatario designato, o il dipendente/agente > responsabile per la consegna del messaggio al destinatario designato, si > informa che ogni disseminazione, distribuzione o copiatura di questa > comunicazione ? vietata anche ai sensi della normativa vigente in materia > di protezione dei dati personali. Se avete ricevuto questo messaggio per > errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di > risposta e successivamente di procedere alla cancellazione di questa e-mail > e relativi allegati dal vostro sistema. > > ____________________________________________________________ > _____________________________________________________ > > > > This message is intended only for the use of the addressee and may contain > information that is privileged, confidential and exempt from disclosure > under applicable law. If the reader of this message is not the intended > recipient, or the employee or agent responsible for delivering the message > to the intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is prohibited under the > applicable data protection law. If you have received this e-mail by > mistake, please notify us immediately by return e-mail and delete this > e-mail and all attachments from your system. > > > > ____________________________________________________________ > _____________________________________________________ > > _______________________________________________ > 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: From Andrea.Caffagni at ferrari.com Wed May 2 04:00:06 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Wed, 2 May 2018 08:00:06 +0000 Subject: [Paraview] Clip a domain using a close surface In-Reply-To: <17954FF4A6EDC447B60CEFADD6DCAE9302776E10@GSVCLU05.ges.ferlan.it> References: <17954FF4A6EDC447B60CEFADD6DCAE9302776E10@GSVCLU05.ges.ferlan.it> Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE9302776EB9@GSVCLU05.ges.ferlan.it> Please delete this tread, it contains the wrong title. Sorry for the mistake, Andrea From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Caffagni, Andrea Sent: Wednesday, May 02, 2018 07:16 To: paraview at public.kitware.com Subject: [Paraview] Clip a domain using a close surface Dear users, I need to write in a .csv file some PointData from a slice. I wrote my point values inside a ?for? cycle thus I would maintain only one .csv file and append each time the new data to this. For this I have created the following commands in my script: # create a new 'Pass Arrays' passArrays1 = PassArrays(Input=calculator7) UpdatePipeline() # Properties modified on passArrays1 passArrays1.PointDataArrays = ['pressure', 'velocity'] UpdatePipeline() # Create a new 'SpreadSheet View' spreadSheetView1 = CreateView('SpreadSheetView') spreadSheetView1.ColumnToSort = '' spreadSheetView1.BlockSize = 1024L # uncomment following to set a specific view size # spreadSheetView1.ViewSize = [400, 400] # export view ExportView('C:/Users/acaffagni/Desktop/ciao.csv', ?a?,view=spreadSheetView1) Unfortunately, the program stop itself at the ?Properties modified on passArrays1?, without updating the pipeline. Maybe it exists a more smart way to create this .csv file. Thanks a lot for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Wed May 2 09:31:33 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 2 May 2018 15:31:33 +0200 Subject: [Paraview] XML PLUGIN RELATIVE PATH In-Reply-To: References: Message-ID: Hi Miguel When using the Python Programmble Filter, the current directory is the one you have run ParaView from. You can use relative directory to this one, if that helps you, but I would not recommend it. There is currently no way to have a relative path to the xml plugin directory in the default values of a xml property. I would simply recommend to put the content of "MY_PLUGIN.py" in the xml of your plugin. Best, Mathieu Westphal On Mon, Apr 30, 2018 at 10:16 AM, Miguel Aguirre wrote: > Hi all, > > I am working with Plugins for programmable filters that executes external > Python scripts. So far, so good. > > However, I want to avoid to write the entire path of the Python file on > the XML file, as you can see highlighted in bold on the XML code down > below. > > Both, the XML and the Python file are in the same folder. Moreover, the > XML file and the Python file have the same name. So, I wonder if there is a > way to set up a relative path...do you have any ideas to solve that ? > > Thanks in advance ! > > Miguel Angel AGUIRRE > > > > > > class="vtkPythonProgrammableFilter" > label=" MY_PLUGIN"> > > > name="OutputDataSetType" > command="SetOutputDataSetType" > number_of_elements="1" > default_values="0" > panel_visibility="never"> > > > name="Script" > command="SetScript" > number_of_elements="1" > default_values="*execfile('C:/Users/m.aguirre./.../.../.../ MY_PLUGIN > .py')*"> > > > > > > > > > _______________________________________________ > 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: From cory.quammen at kitware.com Wed May 2 09:38:05 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 02 May 2018 13:38:05 +0000 Subject: [Paraview] Writer Plugin does not release the handle to the output files In-Reply-To: References: Message-ID: Kenichiro, I looked at your code for just a minute, but I wonder if you need to close your file after writing it at https://github.com/Kenichiro-Yoshimi/FluentWriterPlugin/blob/master/vtkFluentWriter.cxx#L1245 HTH, Cory On Tue, May 1, 2018 at 10:30 PM kenichiro yoshimi wrote: > Hi, > > I am creating a writer plugin for Fluent in ParaView 5.5.0 built under > Windows 10. This plugin aims at writing vtkUnstructuredGrid input out > to a Fluent format file as a 3D mesh. > > The plugin is built and loaded into ParaView successfully. But when > Paraview opens the attached input and saves it using this > FluentWriterPlugin, a problem occurs. That is, the plugin does not try > to lock the output files after writing and closing them. So I can not > refer to them until I close the ParaView itself. > > The following is my implementation. > https://github.com/Kenichiro-Yoshimi/FluentWriterPlugin > > What is going wrong here? > > Thanks in advance, > yoshimi > _______________________________________________ > 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 > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.vanengelen1 at uu.nl Wed May 2 10:12:05 2018 From: j.vanengelen1 at uu.nl (Engelen, J. van (Joeri)) Date: Wed, 2 May 2018 14:12:05 +0000 Subject: [Paraview] generic NetCDFreader support for CellData Message-ID: <2C101C0C5987C841B9D69F7543CCEFB11EFF3029@WP0045.soliscom.uu.nl> Hi, I was wondering whether it is possible to read NetCDF files as CellData. I have categorial data on Cartesian coordinates that I want to visualize. To be more specific, the data represents lithologies of the subsurface. So 1 = sand, 3 = clay, 5 = rock. The problem is that my file is automatically interpreted as PointData. To render this PointData, Paraview than consequently interpolates to achieve cell values. With most variables that is not such a problem, but here it is. If I have sand (1) overlying rock (5), Paraview shows me clay (3). Also, the information available to me was ambiguous, -this source says it is probably not possible: https://public.kitware.com/pipermail/paraview/2017-September/040984.html -this states it is possible return Cell Data information: https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html I tried converting my data from NetCDF to a .vtr file in Python, but this resulted in more problems than solutions. (Just gave me very glitched rendering). So I have two questions: -Is this possible? -Are there any workarounds you can think of to get my data as CellData in Paraview? I'm using Paraview v5.4.1 on Windows 7. Kind regards, Joeri -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed May 2 11:01:21 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 02 May 2018 15:01:21 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: <2C101C0C5987C841B9D69F7543CCEFB11EFF3029@WP0045.soliscom.uu.nl> References: <2C101C0C5987C841B9D69F7543CCEFB11EFF3029@WP0045.soliscom.uu.nl> Message-ID: Joeri, You can try the "Point Data to Cell Data" filter, but that averages the point data and places the results in the cell data. You may wind up with some incorrect values using that approach. Better would be to use a "Progammable Filter" to resize the cartesian grid read by the NetCDF reader and treat the point data as cell data. That is a bit involved, but not terrible. Set the Script to dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) This assumes that the NetCDF reader is producing a vtkImageData (you can check under the Information panel) which would report the Type: of the data set as "Image (Uniform Rectilinear Grid). HTH, Cory On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) wrote: > Hi, > > > > I was wondering whether it is possible to read NetCDF files as CellData. > > > > I have categorial data on Cartesian coordinates that I want to visualize. > To be more specific, the data represents lithologies of the subsurface. So > 1 = sand, 3 = clay, 5 = rock. > > The problem is that my file is automatically interpreted as PointData. To > render this PointData, Paraview than consequently interpolates to achieve > cell values. > > With most variables that is not such a problem, but here it is. If I have > sand (1) overlying rock (5), Paraview shows me clay (3). > > > > Also, the information available to me was ambiguous, > > -this source says it is probably not possible: > > https://public.kitware.com/pipermail/paraview/2017-September/040984.html > > -this states it is possible return Cell Data information: > > > https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html > > > > I tried converting my data from NetCDF to a .vtr file in Python, but this > resulted in more problems than solutions. (Just gave me very glitched > rendering). > > > > So I have two questions: > > -Is this possible? > > -Are there any workarounds you can think of to get my data as CellData in > Paraview? > > > > I?m using Paraview v5.4.1 on Windows 7. > > > > Kind regards, > Joeri > _______________________________________________ > 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 > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.vanengelen1 at uu.nl Wed May 2 11:37:23 2018 From: j.vanengelen1 at uu.nl (Engelen, J. van (Joeri)) Date: Wed, 2 May 2018 15:37:23 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: References: <2C101C0C5987C841B9D69F7543CCEFB11EFF3029@WP0045.soliscom.uu.nl> Message-ID: <2C101C0C5987C841B9D69F7543CCEFB11EFF506B@WP0045.soliscom.uu.nl> Thank you Cory, I sense this solution might work. However, the type of my data is ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, dy = 1000, dz = 1). Regardless, the script you provided does not give me output and it also does not throw an error, so I?m left a bit in the dark here. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Wednesday, May 02, 2018 5:01 PM To: Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Joeri, You can try the "Point Data to Cell Data" filter, but that averages the point data and places the results in the cell data. You may wind up with some incorrect values using that approach. Better would be to use a "Progammable Filter" to resize the cartesian grid read by the NetCDF reader and treat the point data as cell data. That is a bit involved, but not terrible. Set the Script to dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) This assumes that the NetCDF reader is producing a vtkImageData (you can check under the Information panel) which would report the Type: of the data set as "Image (Uniform Rectilinear Grid). HTH, Cory On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) > wrote: Hi, I was wondering whether it is possible to read NetCDF files as CellData. I have categorial data on Cartesian coordinates that I want to visualize. To be more specific, the data represents lithologies of the subsurface. So 1 = sand, 3 = clay, 5 = rock. The problem is that my file is automatically interpreted as PointData. To render this PointData, Paraview than consequently interpolates to achieve cell values. With most variables that is not such a problem, but here it is. If I have sand (1) overlying rock (5), Paraview shows me clay (3). Also, the information available to me was ambiguous, -this source says it is probably not possible: https://public.kitware.com/pipermail/paraview/2017-September/040984.html -this states it is possible return Cell Data information: https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html I tried converting my data from NetCDF to a .vtr file in Python, but this resulted in more problems than solutions. (Just gave me very glitched rendering). So I have two questions: -Is this possible? -Are there any workarounds you can think of to get my data as CellData in Paraview? I?m using Paraview v5.4.1 on Windows 7. Kind regards, Joeri _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed May 2 12:07:21 2018 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 02 May 2018 16:07:21 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: <2C101C0C5987C841B9D69F7543CCEFB11EFF506B@WP0045.soliscom.uu.nl> References: <2C101C0C5987C841B9D69F7543CCEFB11EFF3029@WP0045.soliscom.uu.nl> <2C101C0C5987C841B9D69F7543CCEFB11EFF506B@WP0045.soliscom.uu.nl> Message-ID: is it possible for you to share you data with us? On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) wrote: > Thank you Cory, > > > > I sense this solution might work. However, the type of my data is > ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, > dy = 1000, dz = 1). > > Regardless, the script you provided does not give me output and it also > does not throw an error, so I?m left a bit in the dark here. > > > > *From:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Sent:* Wednesday, May 02, 2018 5:01 PM > *To:* Engelen, J. van (Joeri) > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > Joeri, > > > > You can try the "Point Data to Cell Data" filter, but that averages the > point data and places the results in the cell data. You may wind up with > some incorrect values using that approach. > > > > Better would be to use a "Progammable Filter" to resize the cartesian grid > read by the NetCDF reader and treat the point data as cell data. That is a > bit involved, but not terrible. Set the Script to > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].GetPointData() > > outputCd = output.GetCellData() > > outputCd.SetScalars(inputPd.GetScalars()) > > > > This assumes that the NetCDF reader is producing a vtkImageData (you can > check under the Information panel) which would report the Type: of the data > set as "Image (Uniform Rectilinear Grid). > > > > HTH, > > Cory > > > > On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Hi, > > > > I was wondering whether it is possible to read NetCDF files as CellData. > > > > I have categorial data on Cartesian coordinates that I want to visualize. > To be more specific, the data represents lithologies of the subsurface. So > 1 = sand, 3 = clay, 5 = rock. > > The problem is that my file is automatically interpreted as PointData. To > render this PointData, Paraview than consequently interpolates to achieve > cell values. > > With most variables that is not such a problem, but here it is. If I have > sand (1) overlying rock (5), Paraview shows me clay (3). > > > > Also, the information available to me was ambiguous, > > -this source says it is probably not possible: > > https://public.kitware.com/pipermail/paraview/2017-September/040984.html > > -this states it is possible return Cell Data information: > > > https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html > > > > I tried converting my data from NetCDF to a .vtr file in Python, but this > resulted in more problems than solutions. (Just gave me very glitched > rendering). > > > > So I have two questions: > > -Is this possible? > > -Are there any workarounds you can think of to get my data as CellData in > Paraview? > > > > I?m using Paraview v5.4.1 on Windows 7. > > > > Kind regards, > Joeri > > _______________________________________________ > 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 > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > _______________________________________________ > 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: From wascott at sandia.gov Wed May 2 12:24:43 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Wed, 2 May 2018 16:24:43 +0000 Subject: [Paraview] Expanding cylinder clip Message-ID: <1525278287656.13899@sandia.gov> I have a user that wants to see how quickly water flows out of a commercial water tank, if it has a seam split. If the tank doesn't change diameter, this is easy - how much water is outside of a cylinder clip. But, if the tank is expanding (due to damage), is there a way to have the radius of the cylinder clip increase to follow a cell on the tank? Thanks, Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis_conklin at goodyear.com Wed May 2 12:25:22 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Wed, 2 May 2018 16:25:22 +0000 Subject: [Paraview] [EXT] Re: vtkPointDataToCellData but only for selected PointData In-Reply-To: References: Message-ID: David, Thanks very much for that ? that works and works well. My filter now runs ~15 times faster than it did before I incorporated this. I?m always impressed by the helpfulness of this board. Dennis From: David E DeMarle [mailto:dave.demarle at kitware.com] Sent: Monday, April 30, 2018 3:50 PM To: Dennis Conklin Cc: Paraview (paraview at paraview.org) Subject: Re: [EXT] Re: [Paraview] vtkPointDataToCellData but only for selected PointData This does what you are looking for: import vtk # copy entire structure across self.GetOutputDataObject(0).ShallowCopy(self.GetInputDataObject(0,0)) # use pass arrays to extract a copy with one array of interest myArrays=vtk.vtkPassArrays() myArrays.SetInputDataObject(self.GetInputDataObject(0,0)) myArrays.ClearArrays() myArrays.AddPointDataArray('DISPL') myArrays.AddCellDataArray('') myArrays.AddFieldDataArray('') # use point2cell to operate on the one array we care about p2c = vtk.vtkPointDataToCellData() p2c.SetInputConnection(myArrays.GetOutputPort()) p2c.Update() # iterate over blocks and copy in the result iter=dsa.MultiCompositeDataIterator([p2c.GetOutputDataObject(0), output]) for in_block, output_block in iter: output_block.GetCellData().AddArray(in_block.VTKObject.GetCellData().GetArray('DISPL')) David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, Apr 30, 2018 at 8:52 AM, Dennis Conklin > wrote: David, I have not called filters within the Programmable Filter before and I am not getting things hooked up correctly. My attempt is attached. Clearly, I do not understand how to hook the output of 1 filter to the input of the next because I?m getting to the end and getting something with no blocks and no cells. Any hints? Dennis From: David E DeMarle [mailto:dave.demarle at kitware.com] Sent: Tuesday, April 10, 2018 10:14 AM To: Dennis Conklin > Cc: Paraview (paraview at paraview.org) > Subject: [EXT] Re: [Paraview] vtkPointDataToCellData but only for selected PointData WARNING - External email; exercise caution. The pass arrays filter comes to mind. If creating withing your python programmable filter it will be called vtk.vtkPassArrays then follow that with a vtk.vtkPointDataToCellData. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Apr 10, 2018 at 10:07 AM, Dennis Conklin > wrote: All, Well, this list solved my problem so easily (and made me feel slightly less than the sharpest pencil in the box) yesterday, so I thought I?d try again. I am doing some Python calcs inside a programmable filter and some of the results I want to average from the Points onto the Cells. But, I don?t want all my PointData moved over to CellData ? I want to transfer some of them over within my Filter. Right now I?m looping thru all the elements and finding all their nodes, then averaging them and assigning to the cells. It is dog slow and is choking off the usefulness of this filter. Is there anything like vtkPointDataToCellData that lets me specify which quantities to convert ? could I do something tricky like store original list of PointData, make up a new list, then run PointDataToCellData, then restore the list of PointData ?? I realize this may have all sorts of unexpected side effects, so I?m just asking! Thanks again, this group is great! Dennis _______________________________________________ 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: From cory.quammen at kitware.com Wed May 2 13:19:17 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 02 May 2018 17:19:17 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: <2C101C0C5987C841B9D69F7543CCEFB11EFF506B@WP0045.soliscom.uu.nl> References: <2C101C0C5987C841B9D69F7543CCEFB11EFF3029@WP0045.soliscom.uu.nl> <2C101C0C5987C841B9D69F7543CCEFB11EFF506B@WP0045.soliscom.uu.nl> Message-ID: On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) wrote: > Thank you Cory, > > > > I sense this solution might work. However, the type of my data is > ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, > dy = 1000, dz = 1). > Ah. From the documentation: "To define a vtkRectilinearGrid , you must specify the dimensions of the data and provide three arrays of values specifying the coordinates along the x-y-z axes". It should be a similar script, but you'd have to add an additional X, Y, and Z position at the end of those coordinate arrays. So your script would look more like: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) # Set coordinates xCoords = inputs[0].GetXCoordinates().NewInstance() xCoords.DeepCopy(inputs[0].GetXCoordinates()) xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x output.SetXCoordinates(xCoords) yCoords = inputs[0].GetYCoordinates().NewInstance() yCoords.DeepCopy(inputs[0].GetYCoordinates()) yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate output.SetYCoordinates(yCoords) zCoords = inputs[0].GetZCoordinates().NewInstance() zCoords.DeepCopy(inputs[0].GetZCoordinates()) zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate output.SetZCoordinates(zCoords) Some extent information also needs to be supplied, but I'm not entirely clear on how to do that correctly. A better solution would be to add an option to the reader to take care of this for you if that is reasonable for your data. Best, Cory Regardless, the script you provided does not give me output and it also > does not throw an error, so I?m left a bit in the dark here. > > > *From:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Sent:* Wednesday, May 02, 2018 5:01 PM > *To:* Engelen, J. van (Joeri) > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > Joeri, > > > > You can try the "Point Data to Cell Data" filter, but that averages the > point data and places the results in the cell data. You may wind up with > some incorrect values using that approach. > > > > Better would be to use a "Progammable Filter" to resize the cartesian grid > read by the NetCDF reader and treat the point data as cell data. That is a > bit involved, but not terrible. Set the Script to > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].GetPointData() > > outputCd = output.GetCellData() > > outputCd.SetScalars(inputPd.GetScalars()) > > > > This assumes that the NetCDF reader is producing a vtkImageData (you can > check under the Information panel) which would report the Type: of the data > set as "Image (Uniform Rectilinear Grid). > > > > HTH, > > Cory > > > > On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Hi, > > > > I was wondering whether it is possible to read NetCDF files as CellData. > > > > I have categorial data on Cartesian coordinates that I want to visualize. > To be more specific, the data represents lithologies of the subsurface. So > 1 = sand, 3 = clay, 5 = rock. > > The problem is that my file is automatically interpreted as PointData. To > render this PointData, Paraview than consequently interpolates to achieve > cell values. > > With most variables that is not such a problem, but here it is. If I have > sand (1) overlying rock (5), Paraview shows me clay (3). > > > > Also, the information available to me was ambiguous, > > -this source says it is probably not possible: > > https://public.kitware.com/pipermail/paraview/2017-September/040984.html > > -this states it is possible return Cell Data information: > > > https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html > > > > I tried converting my data from NetCDF to a .vtr file in Python, but this > resulted in more problems than solutions. (Just gave me very glitched > rendering). > > > > So I have two questions: > > -Is this possible? > > -Are there any workarounds you can think of to get my data as CellData in > Paraview? > > > > I?m using Paraview v5.4.1 on Windows 7. > > > > Kind regards, > Joeri > > _______________________________________________ > 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 > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Wed May 2 13:27:27 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Wed, 2 May 2018 17:27:27 +0000 Subject: [Paraview] generic NetCDFreader support for CellData Message-ID: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> The NetCDF Generic/CF reader has an option named ?Output Type? that you can use to force the output to a vtkImageData. Then Cory?s original programmable filter will work, and you won?t have to deal with the coordinates. -Ken From: ParaView on behalf of Cory Quammen Date: Wednesday, May 2, 2018 at 11:19 AM To: "j.vanengelen1 at uu.nl" Cc: "paraview at public.kitware.com" Subject: [EXTERNAL] Re: [Paraview] generic NetCDFreader support for CellData On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) > wrote: Thank you Cory, I sense this solution might work. However, the type of my data is ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, dy = 1000, dz = 1). Ah. From the documentation: "To define a vtkRectilinearGrid, you must specify the dimensions of the data and provide three arrays of values specifying the coordinates along the x-y-z axes". It should be a similar script, but you'd have to add an additional X, Y, and Z position at the end of those coordinate arrays. So your script would look more like: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) # Set coordinates xCoords = inputs[0].GetXCoordinates().NewInstance() xCoords.DeepCopy(inputs[0].GetXCoordinates()) xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x output.SetXCoordinates(xCoords) yCoords = inputs[0].GetYCoordinates().NewInstance() yCoords.DeepCopy(inputs[0].GetYCoordinates()) yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate output.SetYCoordinates(yCoords) zCoords = inputs[0].GetZCoordinates().NewInstance() zCoords.DeepCopy(inputs[0].GetZCoordinates()) zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate output.SetZCoordinates(zCoords) Some extent information also needs to be supplied, but I'm not entirely clear on how to do that correctly. A better solution would be to add an option to the reader to take care of this for you if that is reasonable for your data. Best, Cory Regardless, the script you provided does not give me output and it also does not throw an error, so I?m left a bit in the dark here. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Wednesday, May 02, 2018 5:01 PM To: Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Joeri, You can try the "Point Data to Cell Data" filter, but that averages the point data and places the results in the cell data. You may wind up with some incorrect values using that approach. Better would be to use a "Progammable Filter" to resize the cartesian grid read by the NetCDF reader and treat the point data as cell data. That is a bit involved, but not terrible. Set the Script to dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) This assumes that the NetCDF reader is producing a vtkImageData (you can check under the Information panel) which would report the Type: of the data set as "Image (Uniform Rectilinear Grid). HTH, Cory On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) > wrote: Hi, I was wondering whether it is possible to read NetCDF files as CellData. I have categorial data on Cartesian coordinates that I want to visualize. To be more specific, the data represents lithologies of the subsurface. So 1 = sand, 3 = clay, 5 = rock. The problem is that my file is automatically interpreted as PointData. To render this PointData, Paraview than consequently interpolates to achieve cell values. With most variables that is not such a problem, but here it is. If I have sand (1) overlying rock (5), Paraview shows me clay (3). Also, the information available to me was ambiguous, -this source says it is probably not possible: https://public.kitware.com/pipermail/paraview/2017-September/040984.html -this states it is possible return Cell Data information: https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html I tried converting my data from NetCDF to a .vtr file in Python, but this resulted in more problems than solutions. (Just gave me very glitched rendering). So I have two questions: -Is this possible? -Are there any workarounds you can think of to get my data as CellData in Paraview? I?m using Paraview v5.4.1 on Windows 7. Kind regards, Joeri _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed May 2 13:31:38 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 02 May 2018 17:31:38 +0000 Subject: [Paraview] Expanding cylinder clip In-Reply-To: <1525278287656.13899@sandia.gov> References: <1525278287656.13899@sandia.gov> Message-ID: Alan, You could try to fit a cylinder to the tank and clip the way you suggest, but that would be a little bit involved and may not be accurate of the tank is distorted significantly. You can potentially used a signed distance function from the tank surface to compute what is inside vs. outside. Distances from the surface to points inside the tank will be negative (hence the signed distance), and distances outside the tank will be positive. There will be some funniness near the crack, but it shouldn't be to bad. I could do this in a Programmable Filter using vtkImplicityPolyDataDistance to compute the signed distance from the tank to points in cells representing the water. The big advantage is you wouldn't have to do any cylinder fitting and it could accommodate large deformations to the tank. Is the tank a vtkPolyData or is it vtkUnstructuredGrid? If it is the latter, we'd have to extract the inside boundary, otherwise all the distances will be positive and the above technique won't work. I would have to think a bit on how to do that. Cheers, Cory On Wed, May 2, 2018 at 12:24 PM Scott, W Alan via ParaView < paraview at public.kitware.com> wrote: > I have a user that wants to see how quickly water flows out of a > commercial water tank, if it has a seam split. If the tank doesn't change > diameter, this is easy - how much water is outside of a cylinder clip. > But, if the tank is expanding (due to damage), is there a way to have the > radius of the cylinder clip increase to follow a cell on the tank? > > > Thanks, > > > Alan > _______________________________________________ > 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 > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrea.Caffagni at ferrari.com Wed May 2 14:36:17 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Wed, 2 May 2018 18:36:17 +0000 Subject: [Paraview] write csv file In-Reply-To: References: <17954FF4A6EDC447B60CEFADD6DCAE9302776E2A@GSVCLU05.ges.ferlan.it> Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE93027772A3@GSVCLU05.ges.ferlan.it> Miguel thanks for your suggestions, It works perfectly. Best regards, Andrea From: aguirre.flanker at gmail.com [mailto:aguirre.flanker at gmail.com] On Behalf Of Miguel Aguirre Sent: Wednesday, May 02, 2018 09:35 To: Caffagni, Andrea Cc: paraview at public.kitware.com Subject: Re: [Paraview] write csv file Hello Andrea, Maybe a Programmable Filter would be a better way. I use this approach to create csv files with data comming from slices: import csv #Create an empty csv file with headers: FilePath = "C:/Users/Miguel Angel AGUIRRE/Desktop/DataOutput.csv" Headers=["X","Y","Z","PRESSURE","VELOCITY"] with open(FilePath, 'wb') as csvfile: filewriter = csv.writer(csvfile, delimiter=',') filewriter.writerow(Headers) # Get array data from input: X = inputs[0].Points[:,0][0] Y = inputs[0].Points[:,1][0] Z = inputs[0].Points[:,2][0] PRESSURE = inputs[0] .GetPointData().GetArray(" PRESSURE ") VELOCITY = inputs[0] .GetPointData().GetArray(" VELOCITY ") # Add this data to the file (you can use an interation here if you want to do add info comming from several slices) FieldData=[X,Y,Z, PRESSURE, VELOCITY ] with open(FilePath, 'a') as csvfile: filewriter = csv.writer(csvfile,lineterminator='\n') filewriter.writerow(FieldData) I hope this will be useful. Best regards, Miguel On Wed, May 2, 2018 at 8:05 AM, Caffagni, Andrea > wrote: Dear users, I need to write in a .csv file some PointData from a slice. I wrote my point values inside a ?for? cycle thus I would maintain only one .csv file and append each time the new data to this. For this I have created the following commands in my script: # create a new 'Pass Arrays' passArrays1 = PassArrays(Input=calculator7) UpdatePipeline() # Properties modified on passArrays1 passArrays1.PointDataArrays = ['pressure', 'velocity'] UpdatePipeline() # Create a new 'SpreadSheet View' spreadSheetView1 = CreateView('SpreadSheetView') spreadSheetView1.ColumnToSort = '' spreadSheetView1.BlockSize = 1024L # uncomment following to set a specific view size # spreadSheetView1.ViewSize = [400, 400] # export view ExportView('C:/Users/acaffagni/Desktop/ciao.csv', ?a?,view=spreadSheetView1) Unfortunately, the program stop itself at the ?Properties modified on passArrays1?, without updating the pipeline. Maybe it exists a more smart way to create this .csv file. Thanks a lot for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _______________________________________________ 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 _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrea.Caffagni at ferrari.com Wed May 2 14:57:04 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Wed, 2 May 2018 18:57:04 +0000 Subject: [Paraview] find minimum on a slice using interpolated values Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE93027772DD@GSVCLU05.ges.ferlan.it> Dear users, I need to find the absolute minimum value on a slice of a certain scalar (like pressure). I would get this point using the interpolation in order to avoid the ?sensitivity? to the mesh (in this way, theoretically, if I change the mesh the minimum should always remain at the same point). For this point I would like to get the three-dimensional position and the value of the scalar in question (pressure and/or velocity), maybe I can use the numpy functions in a programmable filter? https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.amin.html But I have not idea of how use the interpolation? Thanks for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rccm.kyoshimi at gmail.com Wed May 2 18:25:43 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Thu, 3 May 2018 07:25:43 +0900 Subject: [Paraview] Writer Plugin does not release the handle to the output files In-Reply-To: References: Message-ID: Hello Cory, Thank you for your time! I really appreciate your help. Indeed, the problem was related with the act of closing files. It works well now. Best regards, yoshimi 2018-05-02 22:38 GMT+09:00 Cory Quammen : > Kenichiro, > > I looked at your code for just a minute, but I wonder if you need to close > your file after writing it at > > https://github.com/Kenichiro-Yoshimi/FluentWriterPlugin/blob/master/vtkFluentWriter.cxx#L1245 > > HTH, > Cory > > On Tue, May 1, 2018 at 10:30 PM kenichiro yoshimi > wrote: >> >> Hi, >> >> I am creating a writer plugin for Fluent in ParaView 5.5.0 built under >> Windows 10. This plugin aims at writing vtkUnstructuredGrid input out >> to a Fluent format file as a 3D mesh. >> >> The plugin is built and loaded into ParaView successfully. But when >> Paraview opens the attached input and saves it using this >> FluentWriterPlugin, a problem occurs. That is, the plugin does not try >> to lock the output files after writing and closing them. So I can not >> refer to them until I close the ParaView itself. >> >> The following is my implementation. >> https://github.com/Kenichiro-Yoshimi/FluentWriterPlugin >> >> What is going wrong here? >> >> Thanks in advance, >> yoshimi >> _______________________________________________ >> 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 > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. From mathieu.westphal at kitware.com Thu May 3 03:06:51 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Thu, 3 May 2018 09:06:51 +0200 Subject: [Paraview] find minimum on a slice using interpolated values In-Reply-To: <17954FF4A6EDC447B60CEFADD6DCAE93027772DD@GSVCLU05.ges.ferlan.it> References: <17954FF4A6EDC447B60CEFADD6DCAE93027772DD@GSVCLU05.ges.ferlan.it> Message-ID: Hi Andrea, If your are using ParaView, you can obtain this information quite easilly by showing your dataset in a Spreadsheet view and orderinng the data by "Pressure". Best, Mathieu Westphal On Wed, May 2, 2018 at 8:57 PM, Caffagni, Andrea < Andrea.Caffagni at ferrari.com> wrote: > Dear users, > > I need to find the absolute minimum value on a slice of a certain scalar > (like pressure). > > I would get this point using the interpolation in order to avoid the > ?sensitivity? to the mesh (in this way, theoretically, if I change the mesh > the minimum should always remain at the same point). > > For this point I would like to get the three-dimensional position and the > value of the scalar in question (pressure and/or velocity), maybe I can use > the numpy functions in a programmable filter? > > > > https://docs.scipy.org/doc/numpy-1.14.0/reference/ > generated/numpy.amin.html > > > > But I have not idea of how use the interpolation? > > > > Thanks for the suggestions, > > Andrea > > ____________________________________________________________ > _____________________________________________________ > > > > Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e > pu? contenere informazioni che sono di natura privilegiata, confidenziale o > non divulgabile secondo le leggi vigenti. Se il lettore del presente > messaggio non ? il destinatario designato, o il dipendente/agente > responsabile per la consegna del messaggio al destinatario designato, si > informa che ogni disseminazione, distribuzione o copiatura di questa > comunicazione ? vietata anche ai sensi della normativa vigente in materia > di protezione dei dati personali. Se avete ricevuto questo messaggio per > errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di > risposta e successivamente di procedere alla cancellazione di questa e-mail > e relativi allegati dal vostro sistema. > > ____________________________________________________________ > _____________________________________________________ > > > > This message is intended only for the use of the addressee and may contain > information that is privileged, confidential and exempt from disclosure > under applicable law. If the reader of this message is not the intended > recipient, or the employee or agent responsible for delivering the message > to the intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is prohibited under the > applicable data protection law. If you have received this e-mail by > mistake, please notify us immediately by return e-mail and delete this > e-mail and all attachments from your system. > > > > ____________________________________________________________ > _____________________________________________________ > > _______________________________________________ > 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: From Andrea.Caffagni at ferrari.com Thu May 3 04:12:53 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Thu, 3 May 2018 08:12:53 +0000 Subject: [Paraview] find minimum on a slice using interpolated values In-Reply-To: References: <17954FF4A6EDC447B60CEFADD6DCAE93027772DD@GSVCLU05.ges.ferlan.it> Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE9302777343@GSVCLU05.ges.ferlan.it> Thank you Mathieu for your suggestion, But if I understand correctly with this method I?m able to find only the value on the mesh points. Thus, if I change the mesh with finer or coarser elements the value and the location that I can find change. I would like to avoid this behavior, for this reason I would get the minimum value using the interpolated value on the slice. do you think it's possible to do it? can I manage this with a programmable filter (work from script without gui)? Best Regards, Andrea From: Mathieu Westphal [mailto:mathieu.westphal at kitware.com] Sent: Thursday, May 03, 2018 09:07 To: Caffagni, Andrea Cc: paraview at public.kitware.com Subject: Re: [Paraview] find minimum on a slice using interpolated values Hi Andrea, If your are using ParaView, you can obtain this information quite easilly by showing your dataset in a Spreadsheet view and orderinng the data by "Pressure". Best, Mathieu Westphal On Wed, May 2, 2018 at 8:57 PM, Caffagni, Andrea > wrote: Dear users, I need to find the absolute minimum value on a slice of a certain scalar (like pressure). I would get this point using the interpolation in order to avoid the ?sensitivity? to the mesh (in this way, theoretically, if I change the mesh the minimum should always remain at the same point). For this point I would like to get the three-dimensional position and the value of the scalar in question (pressure and/or velocity), maybe I can use the numpy functions in a programmable filter? https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.amin.html But I have not idea of how use the interpolation? Thanks for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _______________________________________________ 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 _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.mueller at recom-services.de Thu May 3 04:21:11 2018 From: m.mueller at recom-services.de (=?UTF-8?B?TWljaGFlbCBNw7xsbGVy?=) Date: Thu, 03 May 2018 10:21:11 +0200 Subject: [Paraview] isosurfaces & slices, lights/shadows Message-ID: <5AEAC677.5000102@recom-services.de> Dear users, I am having some problem visualizing isosurfaces/contours in combination with slices. Usually I switch off all lights to get nice coloring: / renderView1.UseLight = 0 # for slices etc. / (Output without isosurface attached: temp.jpg) When I include an isosurface using contour-filter, it looks totally 'flat', there are no contours or shadows visible. (Output with ugly isosurface attached: temp-iso-nolight.jpg) What I tried to do was switch on lighting and include additional lights with intensity 0.6 (to prevent getting too dark coloring of the slices). / renderView1.UseLight = 1 # for slices etc. light1 = AddLight(view=renderView1) # for contour on isosurfaces !!! light1.Coords = 'Ambient' # position-less == camera light1.Intensity = 0.6 # dim intensity [0:1] / (Output with nice isosurface attached: temp-iso-light-addlight06.jpg). Still the problem: while I get a nice isosurface and the vertical slice is looking okay, the horizontal slices are still darker than the ones in the default screenshot (see: temp-iso-light-addlight06.jpg vs temp.jpg). Is there a way, to turn on/off lights on single objects in my pipeline? Is it possible to include something like shading directly to the isosurface? Any other ideas!? Thanks, Michael -------------- next part -------------- A non-text attachment was scrubbed... Name: temp.jpg Type: image/jpeg Size: 93854 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: temp-iso-nolight.jpg Type: image/jpeg Size: 78448 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: temp-iso-light-addlight06.jpg Type: image/jpeg Size: 102561 bytes Desc: not available URL: From j.vanengelen1 at uu.nl Thu May 3 07:48:16 2018 From: j.vanengelen1 at uu.nl (Engelen, J. van (Joeri)) Date: Thu, 3 May 2018 11:48:16 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> References: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> Message-ID: <2C101C0C5987C841B9D69F7543CCEFB11EFF50F4@WP0045.soliscom.uu.nl> Thanks everybody for the support, I followed Ken?s suggestion, which will simplify things, however when I put Cory?s original script in the programmable filter no Data Array can be found in the output. So I sense there is a (small) bug in the script? I tried changing the last three lines to the oneliner output.GetCellData().SetScalars(inputs[0].GetPointData().GetScalars()) But that did not help. I have uploaded a small subset of my data here for you to toy around with https://coeri.stackstorage.com/s/0vUfQkVyv2MD3Ml. (Note: It helps for visualization to stretch the z-axis by a factor 3000). This perhaps helps you with helping me. From: Moreland, Kenneth [mailto:kmorel at sandia.gov] Sent: Wednesday, May 02, 2018 7:27 PM To: Quammen, Cory (External Contacts); Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData The NetCDF Generic/CF reader has an option named ?Output Type? that you can use to force the output to a vtkImageData. Then Cory?s original programmable filter will work, and you won?t have to deal with the coordinates. -Ken From: ParaView on behalf of Cory Quammen Date: Wednesday, May 2, 2018 at 11:19 AM To: "j.vanengelen1 at uu.nl" Cc: "paraview at public.kitware.com" Subject: [EXTERNAL] Re: [Paraview] generic NetCDFreader support for CellData On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) > wrote: Thank you Cory, I sense this solution might work. However, the type of my data is ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, dy = 1000, dz = 1). Ah. From the documentation: "To define a vtkRectilinearGrid, you must specify the dimensions of the data and provide three arrays of values specifying the coordinates along the x-y-z axes". It should be a similar script, but you'd have to add an additional X, Y, and Z position at the end of those coordinate arrays. So your script would look more like: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) # Set coordinates xCoords = inputs[0].GetXCoordinates().NewInstance() xCoords.DeepCopy(inputs[0].GetXCoordinates()) xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x output.SetXCoordinates(xCoords) yCoords = inputs[0].GetYCoordinates().NewInstance() yCoords.DeepCopy(inputs[0].GetYCoordinates()) yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate output.SetYCoordinates(yCoords) zCoords = inputs[0].GetZCoordinates().NewInstance() zCoords.DeepCopy(inputs[0].GetZCoordinates()) zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate output.SetZCoordinates(zCoords) Some extent information also needs to be supplied, but I'm not entirely clear on how to do that correctly. A better solution would be to add an option to the reader to take care of this for you if that is reasonable for your data. Best, Cory Regardless, the script you provided does not give me output and it also does not throw an error, so I?m left a bit in the dark here. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Wednesday, May 02, 2018 5:01 PM To: Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Joeri, You can try the "Point Data to Cell Data" filter, but that averages the point data and places the results in the cell data. You may wind up with some incorrect values using that approach. Better would be to use a "Progammable Filter" to resize the cartesian grid read by the NetCDF reader and treat the point data as cell data. That is a bit involved, but not terrible. Set the Script to dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) This assumes that the NetCDF reader is producing a vtkImageData (you can check under the Information panel) which would report the Type: of the data set as "Image (Uniform Rectilinear Grid). HTH, Cory On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) > wrote: Hi, I was wondering whether it is possible to read NetCDF files as CellData. I have categorial data on Cartesian coordinates that I want to visualize. To be more specific, the data represents lithologies of the subsurface. So 1 = sand, 3 = clay, 5 = rock. The problem is that my file is automatically interpreted as PointData. To render this PointData, Paraview than consequently interpolates to achieve cell values. With most variables that is not such a problem, but here it is. If I have sand (1) overlying rock (5), Paraview shows me clay (3). Also, the information available to me was ambiguous, -this source says it is probably not possible: https://public.kitware.com/pipermail/paraview/2017-September/040984.html -this states it is possible return Cell Data information: https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html I tried converting my data from NetCDF to a .vtr file in Python, but this resulted in more problems than solutions. (Just gave me very glitched rendering). So I have two questions: -Is this possible? -Are there any workarounds you can think of to get my data as CellData in Paraview? I?m using Paraview v5.4.1 on Windows 7. Kind regards, Joeri _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu May 3 09:10:45 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 3 May 2018 09:10:45 -0400 Subject: [Paraview] isosurfaces & slices, lights/shadows In-Reply-To: <5AEAC677.5000102@recom-services.de> References: <5AEAC677.5000102@recom-services.de> Message-ID: We can't yet restrict lights to specific objects. However you can get the effect you want by turning up the ambient intensity and turning off the diffuse intensity on the objects you want to be independent of the light (the slices). See Ambient and Diffuse sliders in the GUI or from python do something like the following: obj = FindSource("Slice1") rep = GetRepresentation() rep.Diffuse = 0 rep.Ambient = 1 David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, May 3, 2018 at 4:21 AM, Michael M?ller wrote: > Dear users, > > I am having some problem visualizing isosurfaces/contours in combination > with slices. Usually I switch off all lights to get nice coloring: > / > renderView1.UseLight = 0 # for slices etc. > / > (Output without isosurface attached: temp.jpg) > > When I include an isosurface using contour-filter, it looks totally 'flat', > there are no contours or shadows visible. > (Output with ugly isosurface attached: temp-iso-nolight.jpg) > > What I tried to do was switch on lighting and include additional lights with > intensity 0.6 (to prevent getting too dark coloring of the slices). > / > renderView1.UseLight = 1 # for slices etc. > light1 = AddLight(view=renderView1) # for contour on isosurfaces !!! > light1.Coords = 'Ambient' # position-less == camera > light1.Intensity = 0.6 # dim intensity [0:1] > / > (Output with nice isosurface attached: temp-iso-light-addlight06.jpg). > > Still the problem: while I get a nice isosurface and the vertical slice is > looking okay, the horizontal slices are still darker than the ones in the > default screenshot (see: temp-iso-light-addlight06.jpg vs temp.jpg). > > Is there a way, to turn on/off lights on single objects in my pipeline? > Is it possible to include something like shading directly to the isosurface? > Any other ideas!? > > Thanks, > > Michael > > > _______________________________________________ > 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 > From cory.quammen at kitware.com Thu May 3 10:12:50 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 03 May 2018 14:12:50 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: <2C101C0C5987C841B9D69F7543CCEFB11EFF50F4@WP0045.soliscom.uu.nl> References: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> <2C101C0C5987C841B9D69F7543CCEFB11EFF50F4@WP0045.soliscom.uu.nl> Message-ID: Indeed, my original script is not quite right. Here is a more robust version that should copy all point data arrays to cell data arrays: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].PointData outputCd = output.CellData for array in inputPd: print(type(array)) outputCd.append(array, array.GetName()) I hope that does it. It works in my ParaView 5.5 with the sample data you provided (thank you for providing that!). Best regards, Cory On Thu, May 3, 2018 at 7:48 AM Engelen, J. van (Joeri) wrote: > Thanks everybody for the support, > > > > I followed Ken?s suggestion, which will simplify things, however when I > put Cory?s original script in the programmable filter no Data Array can be > found in the output. So I sense there is a (small) bug in the script? > > I tried changing the last three lines to the oneliner output.GetCellData() > .SetScalars(inputs[0].GetPointData().GetScalars()) > > But that did not help. > > > > I have uploaded a small subset of my data here for you to toy around with > https://coeri.stackstorage.com/s/0vUfQkVyv2MD3Ml. (Note: It helps for > visualization to stretch the z-axis by a factor 3000). > > This perhaps helps you with helping me. > > > > > > *From:* Moreland, Kenneth [mailto:kmorel at sandia.gov] > *Sent:* Wednesday, May 02, 2018 7:27 PM > *To:* Quammen, Cory (External Contacts); Engelen, J. van (Joeri) > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > The NetCDF Generic/CF reader has an option named ?Output Type? that you > can use to force the output to a vtkImageData. Then Cory?s original > programmable filter will work, and you won?t have to deal with the > coordinates. > > > > -Ken > > > > *From: *ParaView on behalf of Cory > Quammen > *Date: *Wednesday, May 2, 2018 at 11:19 AM > *To: *"j.vanengelen1 at uu.nl" > *Cc: *"paraview at public.kitware.com" > *Subject: *[EXTERNAL] Re: [Paraview] generic NetCDFreader support for > CellData > > > > On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Thank you Cory, > > > > I sense this solution might work. However, the type of my data is > ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, > dy = 1000, dz = 1). > > > > Ah. From the documentation: "To define a *vtkRectilinearGrid* > , you > must specify the dimensions of the data and provide three arrays of values > specifying the coordinates along the x-y-z axes". It should be a similar > script, but you'd have to add an additional X, Y, and Z position at the end > of those coordinate arrays. So your script would look more like: > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].GetPointData() > > outputCd = output.GetCellData() > > outputCd.SetScalars(inputPd.GetScalars()) > > > > *# Set coordinates* > > xCoords = inputs[0].GetXCoordinates().NewInstance() > > xCoords.DeepCopy(inputs[0].GetXCoordinates()) > > xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x > > output.SetXCoordinates(xCoords) > > > > yCoords = inputs[0].GetYCoordinates().NewInstance() > > yCoords.DeepCopy(inputs[0].GetYCoordinates()) > > yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate > > output.SetYCoordinates(yCoords) > > > > zCoords = inputs[0].GetZCoordinates().NewInstance() > > zCoords.DeepCopy(inputs[0].GetZCoordinates()) > > zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate > > output.SetZCoordinates(zCoords) > > > > Some extent information also needs to be supplied, but I'm not entirely > clear on how to do that correctly. > > > > A better solution would be to add an option to the reader to take care of > this for you if that is reasonable for your data. > > > > Best, > > Cory > > > > Regardless, the script you provided does not give me output and it also > does not throw an error, so I?m left a bit in the dark here. > > > > *From:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Sent:* Wednesday, May 02, 2018 5:01 PM > *To:* Engelen, J. van (Joeri) > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > Joeri, > > > > You can try the "Point Data to Cell Data" filter, but that averages the > point data and places the results in the cell data. You may wind up with > some incorrect values using that approach. > > > > Better would be to use a "Progammable Filter" to resize the cartesian grid > read by the NetCDF reader and treat the point data as cell data. That is a > bit involved, but not terrible. Set the Script to > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].GetPointData() > > outputCd = output.GetCellData() > > outputCd.SetScalars(inputPd.GetScalars()) > > > > This assumes that the NetCDF reader is producing a vtkImageData (you can > check under the Information panel) which would report the Type: of the data > set as "Image (Uniform Rectilinear Grid). > > > > HTH, > > Cory > > > > On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Hi, > > > > I was wondering whether it is possible to read NetCDF files as CellData. > > > > I have categorial data on Cartesian coordinates that I want to visualize. > To be more specific, the data represents lithologies of the subsurface. So > 1 = sand, 3 = clay, 5 = rock. > > The problem is that my file is automatically interpreted as PointData. To > render this PointData, Paraview than consequently interpolates to achieve > cell values. > > With most variables that is not such a problem, but here it is. If I have > sand (1) overlying rock (5), Paraview shows me clay (3). > > > > Also, the information available to me was ambiguous, > > -this source says it is probably not possible: > > https://public.kitware.com/pipermail/paraview/2017-September/040984.html > > -this states it is possible return Cell Data information: > > > https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html > > > > I tried converting my data from NetCDF to a .vtr file in Python, but this > resulted in more problems than solutions. (Just gave me very glitched > rendering). > > > > So I have two questions: > > -Is this possible? > > -Are there any workarounds you can think of to get my data as CellData in > Paraview? > > > > I?m using Paraview v5.4.1 on Windows 7. > > > > Kind regards, > Joeri > > _______________________________________________ > 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 > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu May 3 10:17:25 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 03 May 2018 14:17:25 +0000 Subject: [Paraview] find minimum on a slice using interpolated values In-Reply-To: <17954FF4A6EDC447B60CEFADD6DCAE9302777343@GSVCLU05.ges.ferlan.it> References: <17954FF4A6EDC447B60CEFADD6DCAE93027772DD@GSVCLU05.ges.ferlan.it> <17954FF4A6EDC447B60CEFADD6DCAE9302777343@GSVCLU05.ges.ferlan.it> Message-ID: Andrea, Are your mesh cells linear (and hence linear interpolation would be used)? If so, then the minimum will always be at a mesh point. If they are higher order elements, then indeed the minimum could be somewhere inside a cell. Others on the list may be able to tell you if there is a way to find this minimum point in VTK. Best regards, Cory On Thu, May 3, 2018 at 4:13 AM Caffagni, Andrea wrote: > Thank you Mathieu for your suggestion, > > But if I understand correctly with this method I?m able to find only the > value on the mesh points. > > Thus, if I change the mesh with finer or coarser elements the value and > the location that I can find change. > > I would like to avoid this behavior, for this reason I would get the > minimum value using the interpolated value on the slice. > > do you think it's possible to do it? can I manage this with a programmable > filter (work from script without gui)? > > > > Best Regards, > > Andrea > > > > *From:* Mathieu Westphal [mailto:mathieu.westphal at kitware.com] > *Sent:* Thursday, May 03, 2018 09:07 > *To:* Caffagni, Andrea > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] find minimum on a slice using interpolated > values > > > > Hi Andrea, > > If your are using ParaView, you can obtain this information quite easilly > by showing your dataset in a Spreadsheet view and orderinng the data by > "Pressure". > > > > Best, > > > Mathieu Westphal > > > > On Wed, May 2, 2018 at 8:57 PM, Caffagni, Andrea < > Andrea.Caffagni at ferrari.com> wrote: > > Dear users, > > I need to find the absolute minimum value on a slice of a certain scalar > (like pressure). > > I would get this point using the interpolation in order to avoid the > ?sensitivity? to the mesh (in this way, theoretically, if I change the mesh > the minimum should always remain at the same point). > > For this point I would like to get the three-dimensional position and the > value of the scalar in question (pressure and/or velocity), maybe I can use > the numpy functions in a programmable filter? > > > > https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.amin.html > > > > But I have not idea of how use the interpolation? > > > > Thanks for the suggestions, > > Andrea > > > _________________________________________________________________________________________________________________ > > > > Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e > pu? contenere informazioni che sono di natura privilegiata, confidenziale o > non divulgabile secondo le leggi vigenti. Se il lettore del presente > messaggio non ? il destinatario designato, o il dipendente/agente > responsabile per la consegna del messaggio al destinatario designato, si > informa che ogni disseminazione, distribuzione o copiatura di questa > comunicazione ? vietata anche ai sensi della normativa vigente in materia > di protezione dei dati personali. Se avete ricevuto questo messaggio per > errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di > risposta e successivamente di procedere alla cancellazione di questa e-mail > e relativi allegati dal vostro sistema. > > > _________________________________________________________________________________________________________________ > > > > This message is intended only for the use of the addressee and may contain > information that is privileged, confidential and exempt from disclosure > under applicable law. If the reader of this message is not the intended > recipient, or the employee or agent responsible for delivering the message > to the intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is prohibited under the > applicable data protection law. If you have received this e-mail by > mistake, please notify us immediately by return e-mail and delete this > e-mail and all attachments from your system. > > > > > _________________________________________________________________________________________________________________ > > > _______________________________________________ > 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 > > > > > _________________________________________________________________________________________________________________ > > > > Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e > pu? contenere informazioni che sono di natura privilegiata, confidenziale o > non divulgabile secondo le leggi vigenti. Se il lettore del presente > messaggio non ? il destinatario designato, o il dipendente/agente > responsabile per la consegna del messaggio al destinatario designato, si > informa che ogni disseminazione, distribuzione o copiatura di questa > comunicazione ? vietata anche ai sensi della normativa vigente in materia > di protezione dei dati personali. Se avete ricevuto questo messaggio per > errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di > risposta e successivamente di procedere alla cancellazione di questa e-mail > e relativi allegati dal vostro sistema. > > > _________________________________________________________________________________________________________________ > > > > This message is intended only for the use of the addressee and may contain > information that is privileged, confidential and exempt from disclosure > under applicable law. If the reader of this message is not the intended > recipient, or the employee or agent responsible for delivering the message > to the intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is prohibited under the > applicable data protection law. If you have received this e-mail by > mistake, please notify us immediately by return e-mail and delete this > e-mail and all attachments from your system. > > > > > _________________________________________________________________________________________________________________ > _______________________________________________ > 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 > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrea.Caffagni at ferrari.com Thu May 3 10:51:10 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Thu, 3 May 2018 14:51:10 +0000 Subject: [Paraview] find minimum on a slice using interpolated values In-Reply-To: References: <17954FF4A6EDC447B60CEFADD6DCAE93027772DD@GSVCLU05.ges.ferlan.it> <17954FF4A6EDC447B60CEFADD6DCAE9302777343@GSVCLU05.ges.ferlan.it> Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE93027774E8@GSVCLU05.ges.ferlan.it> Unfortunately I am using polyhedral/ hexa mesh with higher order scheme, find the minimum on a mesh point is a good start. But if someone know a programmable filter that, using VTK is able to find the minimum would be a lot useful. The method would be very robust and not very sensitive to variations in the mesh that may undergo slight variations. Do you have any ideas for how to use vtk and / or numpy for this purpose? Best Regards, Andrea From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Thursday, May 03, 2018 16:17 To: Caffagni, Andrea Cc: Mathieu Westphal; paraview at public.kitware.com Subject: Re: [Paraview] find minimum on a slice using interpolated values Andrea, Are your mesh cells linear (and hence linear interpolation would be used)? If so, then the minimum will always be at a mesh point. If they are higher order elements, then indeed the minimum could be somewhere inside a cell. Others on the list may be able to tell you if there is a way to find this minimum point in VTK. Best regards, Cory On Thu, May 3, 2018 at 4:13 AM Caffagni, Andrea > wrote: Thank you Mathieu for your suggestion, But if I understand correctly with this method I?m able to find only the value on the mesh points. Thus, if I change the mesh with finer or coarser elements the value and the location that I can find change. I would like to avoid this behavior, for this reason I would get the minimum value using the interpolated value on the slice. do you think it's possible to do it? can I manage this with a programmable filter (work from script without gui)? Best Regards, Andrea From: Mathieu Westphal [mailto:mathieu.westphal at kitware.com] Sent: Thursday, May 03, 2018 09:07 To: Caffagni, Andrea Cc: paraview at public.kitware.com Subject: Re: [Paraview] find minimum on a slice using interpolated values Hi Andrea, If your are using ParaView, you can obtain this information quite easilly by showing your dataset in a Spreadsheet view and orderinng the data by "Pressure". Best, Mathieu Westphal On Wed, May 2, 2018 at 8:57 PM, Caffagni, Andrea > wrote: Dear users, I need to find the absolute minimum value on a slice of a certain scalar (like pressure). I would get this point using the interpolation in order to avoid the ?sensitivity? to the mesh (in this way, theoretically, if I change the mesh the minimum should always remain at the same point). For this point I would like to get the three-dimensional position and the value of the scalar in question (pressure and/or velocity), maybe I can use the numpy functions in a programmable filter? https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.amin.html But I have not idea of how use the interpolation? Thanks for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _______________________________________________ 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 _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.mueller at recom-services.de Thu May 3 11:00:37 2018 From: m.mueller at recom-services.de (=?UTF-8?B?TWljaGFlbCBNw7xsbGVy?=) Date: Thu, 03 May 2018 17:00:37 +0200 Subject: [Paraview] isosurfaces & slices, lights/shadows In-Reply-To: References: <5AEAC677.5000102@recom-services.de> Message-ID: <5AEB2415.4010206@recom-services.de> Thanks a lot, this works fine. I always thought the other way round, that I got to keep lights off and modify the contour/isofsurface... Michael On 03.05.2018 15:10, David E DeMarle wrote: > We can't yet restrict lights to specific objects. > > However you can get the effect you want by turning up the ambient > intensity and turning off the diffuse intensity on the objects you > want to be independent of the light (the slices). > > See Ambient and Diffuse sliders in the GUI or from python do something > like the following: > obj = FindSource("Slice1") > rep = GetRepresentation() > rep.Diffuse = 0 > rep.Ambient = 1 > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > > On Thu, May 3, 2018 at 4:21 AM, Michael M?ller > wrote: >> Dear users, >> >> I am having some problem visualizing isosurfaces/contours in combination >> with slices. Usually I switch off all lights to get nice coloring: >> / >> renderView1.UseLight = 0 # for slices etc. >> / >> (Output without isosurface attached: temp.jpg) >> >> When I include an isosurface using contour-filter, it looks totally 'flat', >> there are no contours or shadows visible. >> (Output with ugly isosurface attached: temp-iso-nolight.jpg) >> >> What I tried to do was switch on lighting and include additional lights with >> intensity 0.6 (to prevent getting too dark coloring of the slices). >> / >> renderView1.UseLight = 1 # for slices etc. >> light1 = AddLight(view=renderView1) # for contour on isosurfaces !!! >> light1.Coords = 'Ambient' # position-less == camera >> light1.Intensity = 0.6 # dim intensity [0:1] >> / >> (Output with nice isosurface attached: temp-iso-light-addlight06.jpg). >> >> Still the problem: while I get a nice isosurface and the vertical slice is >> looking okay, the horizontal slices are still darker than the ones in the >> default screenshot (see: temp-iso-light-addlight06.jpg vs temp.jpg). >> >> Is there a way, to turn on/off lights on single objects in my pipeline? >> Is it possible to include something like shading directly to the isosurface? >> Any other ideas!? >> >> Thanks, >> >> Michael >> >> >> _______________________________________________ >> 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 >> > From dennis_conklin at goodyear.com Thu May 3 11:04:39 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Thu, 3 May 2018 15:04:39 +0000 Subject: [Paraview] [EXT] RE: [EXTERNAL] Calculating cylindrical coordinates In-Reply-To: References: <7e2b545951be40fc94ce50ec7eb9087a@ES01AMSNLNT.srn.sandia.gov> Message-ID: Guys, Just wanted to wrap up loose ends on this. It turned out the arctan2 call was not the problem ? most of the time was spent averaging the nodal values onto the cells, but a separate thread has enabled me to call vtkPointDataToCellData for selected variables within my Programmable Filter. The filter is now ~ 15 times faster than before and my users have stopped grumbling (won?t last though!!) Thanks for all the support! Dennis From: Dennis Conklin Sent: Monday, April 30, 2018 2:08 PM To: 'Cory Quammen' ; kenichiro yoshimi Cc: Paraview (paraview at paraview.org) Subject: RE: [Paraview] [EXT] RE: [EXTERNAL] Calculating cylindrical coordinates Cory, No, I?m using numpy.arctan2 ? sorry, always think of it as atan2. What I?m doing now is: # Undeformed Sector Angles (degrees about Y-axis, 0=FP) numPts=block.GetNumberOfPoints() node_angles=zeros( (numPts,1) ) x_undef,y_undef,z_undef=calc_node_undeformed_coords(block) node_angles=arctan2(x_undef,z_undef)*180.0/pi return node_angles So, I?m not looping, as you suggest. I am later doing a custom point-data-to-cell-data by looping over millions of cells and finding each cells nodes and averaging them, but I?ve failed to get vtk.vtkPointDataToCellData to work inside my Programmable filter, so I don?t have a good alternative. I keep meaning to take out the cell angles and see how much that speeds it up, but haven?t done that yet. Thanks for looking at this. Dennis From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Monday, April 30, 2018 1:44 PM To: kenichiro yoshimi > Cc: Dennis Conklin >; Paraview (paraview at paraview.org) > Subject: Re: [Paraview] [EXT] RE: [EXTERNAL] Calculating cylindrical coordinates Dennis, First, do you mean numpy.arctan2? I don't see that numpy.atan2 exists,but math.atan2 exists. Second, I suspect you are looping over millions of points in Python and are calling numpy.arctan2 on single X, Y values. Looping in Python like that will be very slow. Instead, you can get all your X values into one numpy array and do the same with your Y values, then make a single call to numpy.atan2. Here's an example: >>> from paraview.simple import * >>> import numpy >>> x = [1, 2, 3, 4] >>> y = [5, 6, 7, 8] >>> numpy.arctan2(y, x) array([ 1.37340077, 1.24904577, 1.16590454, 1.10714872]) To get the X and Y arrays, you can use the numpy adapter: >>> from vtk.numpy_interface import dataset_adapter as dsa >>> wrappedData = dsa.WrapDataObject(polydata) >>> X = wrappedData.Points[:,0] >>> Y = wrappedData.Points[:,1] >>> result = numpy.arctan2(Y, X) Hope that helps, Cory On Sat, Apr 28, 2018 at 1:25 AM, kenichiro yoshimi > wrote: Hi Dennis, You can calculate cylindrical coordinates by utilizing vtkCylindricalTransform within the python programmable filter. It is something like below and faster than numpy. --- import vtk input = self.GetInput() output = self.GetOutput() transform = vtk.vtkCylindricalTransform() transformFilter = vtk.vtkTransformFilter() transformFilter.SetInputData(input) transformFilter.SetTransform(transform.GetInverse()) transformFilter.Update() output.ShallowCopy(transformFilter.GetOutput()) --- This converts (x,y,z) coordinates to (r,theta,z) coordinates by GetInverse method, where the angles are calculated by the following equation to change range to [0, 2*pi]: theta = pi + atan2(-y, -x). Regards 2018-04-28 5:25 GMT+09:00 Dennis Conklin >: Alan, Yes, I am calling it many times at the same angular location, but it?s tough to know you?re at the same angular location without calculating the angle. Also, C++ is definitely orders of magnitude quicker, but once I have to compile routines into Paravew life gets very complicated. We barely survived compiling for cluster use and I haven?t written C++ for at least 20 years. So, if possible, I would like a clever external add-on that wouldn?t require us to re-compile PV everytime we update our version. I have visions of library errors in my nightmares! Dennis From: Scott, W Alan [mailto:wascott at sandia.gov] Sent: Friday, April 27, 2018 4:00 PM To: Dennis Conklin >; Paraview (paraview at paraview.org) > Subject: [EXT] RE: [EXTERNAL] [Paraview] Calculating cylindrical coordinates CAUTION: EXTERNAL email. Please think before clicking on any links or attachments. Are there places on the cylinder you are calling atan2 with the same inputs, returning the same data, lots of times? Alternatively, could you calculate this in the simulation, and just add it to the simulation output? I am speculating that a C++ call to atan2 may be faster than numpy? Alan From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Dennis Conklin Sent: Friday, April 27, 2018 1:39 PM To: Paraview (paraview at paraview.org) > Subject: [EXTERNAL] [Paraview] Calculating cylindrical coordinates All, If I wanted to run atan2(X,Y) on millions and millions of nodes to calculate cylindrical coordinates, but found that numpy.atan2 in a Programmable Filter was taking 45 minutes to run, what should I do to make it much faster? Thanks for any hints Dennis _______________________________________________ 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 _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.vanengelen1 at uu.nl Thu May 3 11:37:47 2018 From: j.vanengelen1 at uu.nl (Engelen, J. van (Joeri)) Date: Thu, 3 May 2018 15:37:47 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: References: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> <2C101C0C5987C841B9D69F7543CCEFB11EFF50F4@WP0045.soliscom.uu.nl> Message-ID: <2C101C0C5987C841B9D69F7543CCEFB11EFF513F@WP0045.soliscom.uu.nl> Thank you Cory, That indeed worked on the toy example, but when I tried it on my full dataset (uploaded here as well) Paraview v5.4.1 had trouble rendering it (only rendered part of the outer sides, when activating coloring). I think it is not the script now giving issues, but the renderer. As I experience similar issues previously with celldata loaded from a .VTR file (I assumed that that file was corrupted). It seems to me that when you go beyond a certain amount of cells, Paraview does not render its output properly. Could you test whether it works for you on v5.5? I uploaded my full dataset here: https://coeri.stackstorage.com/s/ztga1yLO8mjD1EO To visualize data properly: Put a threshold filter and filter out 0.0 (as that is NoData) by putting minimum on 0.5, furthermore stretch the z direction by a factor 3000. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Thursday, May 03, 2018 4:13 PM To: Engelen, J. van (Joeri) Cc: Moreland, Kenneth; paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Indeed, my original script is not quite right. Here is a more robust version that should copy all point data arrays to cell data arrays: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].PointData outputCd = output.CellData for array in inputPd: print(type(array)) outputCd.append(array, array.GetName()) I hope that does it. It works in my ParaView 5.5 with the sample data you provided (thank you for providing that!). Best regards, Cory On Thu, May 3, 2018 at 7:48 AM Engelen, J. van (Joeri) > wrote: Thanks everybody for the support, I followed Ken?s suggestion, which will simplify things, however when I put Cory?s original script in the programmable filter no Data Array can be found in the output. So I sense there is a (small) bug in the script? I tried changing the last three lines to the oneliner output.GetCellData().SetScalars(inputs[0].GetPointData().GetScalars()) But that did not help. I have uploaded a small subset of my data here for you to toy around with https://coeri.stackstorage.com/s/0vUfQkVyv2MD3Ml. (Note: It helps for visualization to stretch the z-axis by a factor 3000). This perhaps helps you with helping me. From: Moreland, Kenneth [mailto:kmorel at sandia.gov] Sent: Wednesday, May 02, 2018 7:27 PM To: Quammen, Cory (External Contacts); Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData The NetCDF Generic/CF reader has an option named ?Output Type? that you can use to force the output to a vtkImageData. Then Cory?s original programmable filter will work, and you won?t have to deal with the coordinates. -Ken From: ParaView > on behalf of Cory Quammen > Date: Wednesday, May 2, 2018 at 11:19 AM To: "j.vanengelen1 at uu.nl" > Cc: "paraview at public.kitware.com" > Subject: [EXTERNAL] Re: [Paraview] generic NetCDFreader support for CellData On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) > wrote: Thank you Cory, I sense this solution might work. However, the type of my data is ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, dy = 1000, dz = 1). Ah. From the documentation: "To define a vtkRectilinearGrid, you must specify the dimensions of the data and provide three arrays of values specifying the coordinates along the x-y-z axes". It should be a similar script, but you'd have to add an additional X, Y, and Z position at the end of those coordinate arrays. So your script would look more like: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) # Set coordinates xCoords = inputs[0].GetXCoordinates().NewInstance() xCoords.DeepCopy(inputs[0].GetXCoordinates()) xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x output.SetXCoordinates(xCoords) yCoords = inputs[0].GetYCoordinates().NewInstance() yCoords.DeepCopy(inputs[0].GetYCoordinates()) yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate output.SetYCoordinates(yCoords) zCoords = inputs[0].GetZCoordinates().NewInstance() zCoords.DeepCopy(inputs[0].GetZCoordinates()) zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate output.SetZCoordinates(zCoords) Some extent information also needs to be supplied, but I'm not entirely clear on how to do that correctly. A better solution would be to add an option to the reader to take care of this for you if that is reasonable for your data. Best, Cory Regardless, the script you provided does not give me output and it also does not throw an error, so I?m left a bit in the dark here. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Wednesday, May 02, 2018 5:01 PM To: Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Joeri, You can try the "Point Data to Cell Data" filter, but that averages the point data and places the results in the cell data. You may wind up with some incorrect values using that approach. Better would be to use a "Progammable Filter" to resize the cartesian grid read by the NetCDF reader and treat the point data as cell data. That is a bit involved, but not terrible. Set the Script to dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) This assumes that the NetCDF reader is producing a vtkImageData (you can check under the Information panel) which would report the Type: of the data set as "Image (Uniform Rectilinear Grid). HTH, Cory On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) > wrote: Hi, I was wondering whether it is possible to read NetCDF files as CellData. I have categorial data on Cartesian coordinates that I want to visualize. To be more specific, the data represents lithologies of the subsurface. So 1 = sand, 3 = clay, 5 = rock. The problem is that my file is automatically interpreted as PointData. To render this PointData, Paraview than consequently interpolates to achieve cell values. With most variables that is not such a problem, but here it is. If I have sand (1) overlying rock (5), Paraview shows me clay (3). Also, the information available to me was ambiguous, -this source says it is probably not possible: https://public.kitware.com/pipermail/paraview/2017-September/040984.html -this states it is possible return Cell Data information: https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html I tried converting my data from NetCDF to a .vtr file in Python, but this resulted in more problems than solutions. (Just gave me very glitched rendering). So I have two questions: -Is this possible? -Are there any workarounds you can think of to get my data as CellData in Paraview? I?m using Paraview v5.4.1 on Windows 7. Kind regards, Joeri _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu May 3 11:49:52 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 03 May 2018 15:49:52 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: <2C101C0C5987C841B9D69F7543CCEFB11EFF513F@WP0045.soliscom.uu.nl> References: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> <2C101C0C5987C841B9D69F7543CCEFB11EFF50F4@WP0045.soliscom.uu.nl> <2C101C0C5987C841B9D69F7543CCEFB11EFF513F@WP0045.soliscom.uu.nl> Message-ID: Joeri, On Thu, May 3, 2018 at 11:37 AM Engelen, J. van (Joeri) wrote: > Thank you Cory, > > > > That indeed worked on the toy example, but when I tried it on my full > dataset (uploaded here as well) Paraview v5.4.1 had trouble rendering it > (only rendered part of the outer sides, when activating coloring). > > I think it is not the script now giving issues, but the renderer. As I > experience similar issues previously with celldata loaded from a .VTR file > (I assumed that that file was corrupted). > > It seems to me that when you go beyond a certain amount of cells, Paraview > does not render its output properly. > ParaView is regularly used to render data much larger than your full example, which is around 6 million cells, so unless you are running out of RAM on your graphics card, I don't think that is it. I suspect the problem is that the full data is by default read as a Rectilinear Grid instead of a Image (Uniform Rectilinear Grid). Did you remember to change the Output Type to "Image"? Do that, then create a Programmable Filter with the script. It works for me: [image: image.png] You might be running into a bug with the Programmable Filter that occurs when the output data type of its input changes. If you change the Output Type to "Image", make sure you add a new Programmable Filter after applying your change, otherwise you may run into this bug. HTH, Cory > > > Could you test whether it works for you on v5.5? > > > > I uploaded my full dataset here: > > https://coeri.stackstorage.com/s/ztga1yLO8mjD1EO > > > > To visualize data properly: > > Put a threshold filter and filter out 0.0 (as that is NoData) by putting > minimum on 0.5, furthermore stretch the z direction by a factor 3000. > > > > > > *From:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Sent:* Thursday, May 03, 2018 4:13 PM > *To:* Engelen, J. van (Joeri) > *Cc:* Moreland, Kenneth; paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > Indeed, my original script is not quite right. Here is a more robust > version that should copy all point data arrays to cell data arrays: > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].PointData > > outputCd = output.CellData > > *for* array *in* inputPd: > > *print*(type(array)) > > outputCd.append(array, array.GetName()) > > I hope that does it. It works in my ParaView 5.5 with the sample data you > provided (thank you for providing that!). > > > > Best regards, > > Cory > > > > On Thu, May 3, 2018 at 7:48 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Thanks everybody for the support, > > > > I followed Ken?s suggestion, which will simplify things, however when I > put Cory?s original script in the programmable filter no Data Array can be > found in the output. So I sense there is a (small) bug in the script? > > I tried changing the last three lines to the oneliner output.GetCellData() > .SetScalars(inputs[0].GetPointData().GetScalars()) > > But that did not help. > > > > I have uploaded a small subset of my data here for you to toy around with > https://coeri.stackstorage.com/s/0vUfQkVyv2MD3Ml. (Note: It helps for > visualization to stretch the z-axis by a factor 3000). > > This perhaps helps you with helping me. > > > > > > *From:* Moreland, Kenneth [mailto:kmorel at sandia.gov] > *Sent:* Wednesday, May 02, 2018 7:27 PM > *To:* Quammen, Cory (External Contacts); Engelen, J. van (Joeri) > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > The NetCDF Generic/CF reader has an option named ?Output Type? that you > can use to force the output to a vtkImageData. Then Cory?s original > programmable filter will work, and you won?t have to deal with the > coordinates. > > > > -Ken > > > > *From: *ParaView on behalf of Cory > Quammen > *Date: *Wednesday, May 2, 2018 at 11:19 AM > *To: *"j.vanengelen1 at uu.nl" > *Cc: *"paraview at public.kitware.com" > *Subject: *[EXTERNAL] Re: [Paraview] generic NetCDFreader support for > CellData > > > > On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Thank you Cory, > > > > I sense this solution might work. However, the type of my data is > ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, > dy = 1000, dz = 1). > > > > Ah. From the documentation: "To define a *vtkRectilinearGrid* > , you > must specify the dimensions of the data and provide three arrays of values > specifying the coordinates along the x-y-z axes". It should be a similar > script, but you'd have to add an additional X, Y, and Z position at the end > of those coordinate arrays. So your script would look more like: > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].GetPointData() > > outputCd = output.GetCellData() > > outputCd.SetScalars(inputPd.GetScalars()) > > > > *# Set coordinates* > > xCoords = inputs[0].GetXCoordinates().NewInstance() > > xCoords.DeepCopy(inputs[0].GetXCoordinates()) > > xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x > > output.SetXCoordinates(xCoords) > > > > yCoords = inputs[0].GetYCoordinates().NewInstance() > > yCoords.DeepCopy(inputs[0].GetYCoordinates()) > > yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate > > output.SetYCoordinates(yCoords) > > > > zCoords = inputs[0].GetZCoordinates().NewInstance() > > zCoords.DeepCopy(inputs[0].GetZCoordinates()) > > zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate > > output.SetZCoordinates(zCoords) > > > > Some extent information also needs to be supplied, but I'm not entirely > clear on how to do that correctly. > > > > A better solution would be to add an option to the reader to take care of > this for you if that is reasonable for your data. > > > > Best, > > Cory > > > > Regardless, the script you provided does not give me output and it also > does not throw an error, so I?m left a bit in the dark here. > > > > *From:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Sent:* Wednesday, May 02, 2018 5:01 PM > *To:* Engelen, J. van (Joeri) > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] generic NetCDFreader support for CellData > > > > Joeri, > > > > You can try the "Point Data to Cell Data" filter, but that averages the > point data and places the results in the cell data. You may wind up with > some incorrect values using that approach. > > > > Better would be to use a "Progammable Filter" to resize the cartesian grid > read by the NetCDF reader and treat the point data as cell data. That is a > bit involved, but not terrible. Set the Script to > > > > dims = inputs[0].GetDimensions() > > ext = inputs[0].GetExtent() > > output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) > > output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) > > inputPd = inputs[0].GetPointData() > > outputCd = output.GetCellData() > > outputCd.SetScalars(inputPd.GetScalars()) > > > > This assumes that the NetCDF reader is producing a vtkImageData (you can > check under the Information panel) which would report the Type: of the data > set as "Image (Uniform Rectilinear Grid). > > > > HTH, > > Cory > > > > On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) < > j.vanengelen1 at uu.nl> wrote: > > Hi, > > > > I was wondering whether it is possible to read NetCDF files as CellData. > > > > I have categorial data on Cartesian coordinates that I want to visualize. > To be more specific, the data represents lithologies of the subsurface. So > 1 = sand, 3 = clay, 5 = rock. > > The problem is that my file is automatically interpreted as PointData. To > render this PointData, Paraview than consequently interpolates to achieve > cell values. > > With most variables that is not such a problem, but here it is. If I have > sand (1) overlying rock (5), Paraview shows me clay (3). > > > > Also, the information available to me was ambiguous, > > -this source says it is probably not possible: > > https://public.kitware.com/pipermail/paraview/2017-September/040984.html > > -this states it is possible return Cell Data information: > > > https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html > > > > I tried converting my data from NetCDF to a .vtr file in Python, but this > resulted in more problems than solutions. (Just gave me very glitched > rendering). > > > > So I have two questions: > > -Is this possible? > > -Are there any workarounds you can think of to get my data as CellData in > Paraview? > > > > I?m using Paraview v5.4.1 on Windows 7. > > > > Kind regards, > Joeri > > _______________________________________________ > 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 > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 179935 bytes Desc: not available URL: From j.vanengelen1 at uu.nl Thu May 3 12:09:53 2018 From: j.vanengelen1 at uu.nl (Engelen, J. van (Joeri)) Date: Thu, 3 May 2018 16:09:53 +0000 Subject: [Paraview] generic NetCDFreader support for CellData In-Reply-To: References: <7A2C8B0E-4A84-479E-A0D8-3FAF7A574888@sandia.gov> <2C101C0C5987C841B9D69F7543CCEFB11EFF50F4@WP0045.soliscom.uu.nl> <2C101C0C5987C841B9D69F7543CCEFB11EFF513F@WP0045.soliscom.uu.nl> Message-ID: <2C101C0C5987C841B9D69F7543CCEFB11EFF516B@WP0045.soliscom.uu.nl> Hi Cory, I had put OutputType on Image, and afterwards added the Programmable Filter. [cid:image001.jpg at 01D3E309.A2F59290] This is what I roughly expect to see (shown is the PointData): [cid:image002.jpg at 01D3E309.A2F59290] But this is what I get as CellData: [cid:image003.jpg at 01D3E309.A2F59290] I have had similar issues like this before with CellData. I will try at my home computer whether it works there (see if it is not a bad installation I have) Note: I run Paraview on Windows 7, I have Windows 10 at home. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Thursday, May 03, 2018 5:50 PM To: Engelen, J. van (Joeri) Cc: Moreland, Kenneth; paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Joeri, On Thu, May 3, 2018 at 11:37 AM Engelen, J. van (Joeri) > wrote: Thank you Cory, That indeed worked on the toy example, but when I tried it on my full dataset (uploaded here as well) Paraview v5.4.1 had trouble rendering it (only rendered part of the outer sides, when activating coloring). I think it is not the script now giving issues, but the renderer. As I experience similar issues previously with celldata loaded from a .VTR file (I assumed that that file was corrupted). It seems to me that when you go beyond a certain amount of cells, Paraview does not render its output properly. ParaView is regularly used to render data much larger than your full example, which is around 6 million cells, so unless you are running out of RAM on your graphics card, I don't think that is it. I suspect the problem is that the full data is by default read as a Rectilinear Grid instead of a Image (Uniform Rectilinear Grid). Did you remember to change the Output Type to "Image"? Do that, then create a Programmable Filter with the script. It works for me: [image.png] You might be running into a bug with the Programmable Filter that occurs when the output data type of its input changes. If you change the Output Type to "Image", make sure you add a new Programmable Filter after applying your change, otherwise you may run into this bug. HTH, Cory Could you test whether it works for you on v5.5? I uploaded my full dataset here: https://coeri.stackstorage.com/s/ztga1yLO8mjD1EO To visualize data properly: Put a threshold filter and filter out 0.0 (as that is NoData) by putting minimum on 0.5, furthermore stretch the z direction by a factor 3000. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Thursday, May 03, 2018 4:13 PM To: Engelen, J. van (Joeri) Cc: Moreland, Kenneth; paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Indeed, my original script is not quite right. Here is a more robust version that should copy all point data arrays to cell data arrays: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].PointData outputCd = output.CellData for array in inputPd: print(type(array)) outputCd.append(array, array.GetName()) I hope that does it. It works in my ParaView 5.5 with the sample data you provided (thank you for providing that!). Best regards, Cory On Thu, May 3, 2018 at 7:48 AM Engelen, J. van (Joeri) > wrote: Thanks everybody for the support, I followed Ken?s suggestion, which will simplify things, however when I put Cory?s original script in the programmable filter no Data Array can be found in the output. So I sense there is a (small) bug in the script? I tried changing the last three lines to the oneliner output.GetCellData().SetScalars(inputs[0].GetPointData().GetScalars()) But that did not help. I have uploaded a small subset of my data here for you to toy around with https://coeri.stackstorage.com/s/0vUfQkVyv2MD3Ml. (Note: It helps for visualization to stretch the z-axis by a factor 3000). This perhaps helps you with helping me. From: Moreland, Kenneth [mailto:kmorel at sandia.gov] Sent: Wednesday, May 02, 2018 7:27 PM To: Quammen, Cory (External Contacts); Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData The NetCDF Generic/CF reader has an option named ?Output Type? that you can use to force the output to a vtkImageData. Then Cory?s original programmable filter will work, and you won?t have to deal with the coordinates. -Ken From: ParaView > on behalf of Cory Quammen > Date: Wednesday, May 2, 2018 at 11:19 AM To: "j.vanengelen1 at uu.nl" > Cc: "paraview at public.kitware.com" > Subject: [EXTERNAL] Re: [Paraview] generic NetCDFreader support for CellData On Wed, May 2, 2018 at 11:37 AM Engelen, J. van (Joeri) > wrote: Thank you Cory, I sense this solution might work. However, the type of my data is ?Rectilinear Grid?, not sure if that increases the complexity (dx = 1000, dy = 1000, dz = 1). Ah. From the documentation: "To define a vtkRectilinearGrid, you must specify the dimensions of the data and provide three arrays of values specifying the coordinates along the x-y-z axes". It should be a similar script, but you'd have to add an additional X, Y, and Z position at the end of those coordinate arrays. So your script would look more like: dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) # Set coordinates xCoords = inputs[0].GetXCoordinates().NewInstance() xCoords.DeepCopy(inputs[0].GetXCoordinates()) xCoords.InsertNextValue(1.0) # Should a reasonable x value for your dataset larger than previous max x output.SetXCoordinates(xCoords) yCoords = inputs[0].GetYCoordinates().NewInstance() yCoords.DeepCopy(inputs[0].GetYCoordinates()) yCoords.InsertNextValue(1.5) # Should be a reasonable like the x coordinate output.SetYCoordinates(yCoords) zCoords = inputs[0].GetZCoordinates().NewInstance() zCoords.DeepCopy(inputs[0].GetZCoordinates()) zCoords.InsertNextValue(1.0) # Should be a reasonable like the z coordinate output.SetZCoordinates(zCoords) Some extent information also needs to be supplied, but I'm not entirely clear on how to do that correctly. A better solution would be to add an option to the reader to take care of this for you if that is reasonable for your data. Best, Cory Regardless, the script you provided does not give me output and it also does not throw an error, so I?m left a bit in the dark here. From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: Wednesday, May 02, 2018 5:01 PM To: Engelen, J. van (Joeri) Cc: paraview at public.kitware.com Subject: Re: [Paraview] generic NetCDFreader support for CellData Joeri, You can try the "Point Data to Cell Data" filter, but that averages the point data and places the results in the cell data. You may wind up with some incorrect values using that approach. Better would be to use a "Progammable Filter" to resize the cartesian grid read by the NetCDF reader and treat the point data as cell data. That is a bit involved, but not terrible. Set the Script to dims = inputs[0].GetDimensions() ext = inputs[0].GetExtent() output.SetDimensions(dims[0]+1, dims[1]+1, dims[2]+1) output.SetExtent(ext[0], ext[1]+1, ext[2], ext[3]+1, ext[4], ext[5]+1) inputPd = inputs[0].GetPointData() outputCd = output.GetCellData() outputCd.SetScalars(inputPd.GetScalars()) This assumes that the NetCDF reader is producing a vtkImageData (you can check under the Information panel) which would report the Type: of the data set as "Image (Uniform Rectilinear Grid). HTH, Cory On Wed, May 2, 2018 at 10:17 AM Engelen, J. van (Joeri) > wrote: Hi, I was wondering whether it is possible to read NetCDF files as CellData. I have categorial data on Cartesian coordinates that I want to visualize. To be more specific, the data represents lithologies of the subsurface. So 1 = sand, 3 = clay, 5 = rock. The problem is that my file is automatically interpreted as PointData. To render this PointData, Paraview than consequently interpolates to achieve cell values. With most variables that is not such a problem, but here it is. If I have sand (1) overlying rock (5), Paraview shows me clay (3). Also, the information available to me was ambiguous, -this source says it is probably not possible: https://public.kitware.com/pipermail/paraview/2017-September/040984.html -this states it is possible return Cell Data information: https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.NetCDFReader.html I tried converting my data from NetCDF to a .vtr file in Python, but this resulted in more problems than solutions. (Just gave me very glitched rendering). So I have two questions: -Is this possible? -Are there any workarounds you can think of to get my data as CellData in Paraview? I?m using Paraview v5.4.1 on Windows 7. Kind regards, Joeri _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 51494 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 28857 bytes Desc: image002.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 17760 bytes Desc: image003.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 79555 bytes Desc: image004.png URL: From romain.beucher at unimelb.edu.au Thu May 3 18:44:30 2018 From: romain.beucher at unimelb.edu.au (Romain Beucher) Date: Thu, 3 May 2018 22:44:30 +0000 Subject: [Paraview] Pb reading a Tensor6 XDMF type from HDF5 file Message-ID: Hi All, I have a HDF5 file that contains components of a 2D symmetric tensor in an array with dimensions (N, 3) 1:XX, 2:YY, 3:XY I am trying to create an XDMF Tensor6 type to visualize the field in paraview. Tensor6 has 6 components so I am creating components with zero values (XZ, ZZ, YZ) using a JOIN function and a series of hyperslabs... ????? ??????? ????????? ??????????? 0 0 1 1 49665 1 ??????????? projStressField-133.h5:/data ????????? ????????? ??????????? 0 1 1 1 49665 1 ??????????? projStressField-133.h5:/data ????????? ????????? ??????????? 0 2 1 1 49665 1 ??????????? projStressField-133.h5:/data ????????? ??????? ????? Paraview 5.3.0 crashes with the following error: XDMF Error in /home/romain/Downloads/paraview/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfHDF.cxx line 558 (Source and Target Spaces specify different sizes) XDMF Error in /home/romain/Downloads/paraview/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfHDF.cxx line 559 (Source = 148995 items) XDMF Error in /home/romain/Downloads/paraview/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfHDF.cxx line 560 (Target = 99330 items) XDMF Error in /home/romain/Downloads/paraview/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfHDF.cxx line 905 (Can't Read Temp Dataset) paraview: malloc.c:2399: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed. Aborted (core dumped) I have attached an example. Any ideas? Romain Beucher -------------- next part -------------- A non-text attachment was scrubbed... Name: XDMF.fields.00133.xmf Type: text/xml Size: 3434 bytes Desc: XDMF.fields.00133.xmf URL: From Tyler.Nelson at ge.com Fri May 4 08:32:45 2018 From: Tyler.Nelson at ge.com (Nelson, Tyler (GE Global Research, US)) Date: Fri, 4 May 2018 12:32:45 +0000 Subject: [Paraview] ParaView 5.5 in headless mode (ParaView superbuild) Message-ID: Hi, I am attempting to get ParaView to run in headless mode for a project that I am working on. After encountering some GL errors kitware at kitware.com suggested that we start with the ParaViewSuperbuild project here: https://gitlab.kitware.com/paraview/paraview-superbuild; however, we are now getting this error during the Superbuild 5.5 mesa compilation: /tmp/cct5QMQS.s: Assembler messages: /tmp/cct5QMQS.s:46: Error: no such instruction: `vinserti128 $1,%xmm0,%ymm0,%ymm1' /tmp/cct5QMQS.s:47: Error: no such instruction: `vperm2i128 $49,%ymm0,%ymm0,%ymm0' /tmp/cct5QMQS.s:48: Error: suffix or operands invalid for `vpackusdw' Any ideas as to what may be causing this? The details for the previous attempt (before we started trying the Superbuild) are listed below. Any advice would be much appreciated: When attempting to run Paraview 5.5 in headless mode using offscreen rendering, I am getting the following error: ERROR: In /software/paraview/5.5/src/ParaView-v5.5.0/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 793 vtkOSOpenGLRenderWindow (0x4c35b40): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. To try and get around this, I built a custom version of mesa 17.0.2 for RHEL6: /configure --disable-xvmc --disable-glx --disable-dri --with-dri-drivers= --with-gallium-drivers=swrast --enable-texture-float --disable-egl --enable-gallium-osmesa --enable-gallium-llvm=yes --disable-gbm --prefix=/software/paraview/5.5/mesa I also built a new version of llvm just to be on the safe side. >From there I compiled Paraview: #!/bin/bash ccmake -G "Unix Makefiles" -DPARAVIEW_USE_MPI:BOOL=ON \ -DCMAKE_INSTALL_PREFIX=/software/paraview/5.5/RHEL_NOGLX/ \ -DMPI_CXX_COMPILER=/software/openmpi/PBS/1.10.4/gcc_49/bin/mpicc \ -DMPI_C_COMPILER=/software/openmpi/PBS/1.10.4/gcc_49/bin/mpicc \ -DCMAKE_C_COMPILER=/software/gcc/4.9.3/bin/gcc \ -DCMAKE_Fortran_COMPILER=/software/gcc/4.9.3/bin/gfortran \ -DOPENGL_INCLUDE_DIR=/usr/include \ -DOPENGL_gl_LIBRARY:STRING=/usr/lib64/libGL.so \ -DOPENGL_glu_LIBRARY:STRING=/usr/lib64/libGLU.so \ -DVTK_VPIC_USE_MPI=OFF \ -DVTK_OPENGL_HAS_OSMESA=ON \ -DPARAVIEW_BUILD_QT_GUI:BOOL=ON \ -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ -DVTK_USE_X:BOOL=ON \ -DMESA_GL_VERSION_OVERRIDE=3.2 \ -DBUILD_TESTING=OFF \ -DPARAVIEW_USE_MPI=OFF \ -DPARAVIEW_ENABLE_PYTHON=ON \ -DPYTHON_INCLUDE_DIR=/software/python/RHEL6/2.7.3/include/python2.7 \ -DPYTHON_EXECUTABLE=/software/python/RHEL6/2.7.3/bin/python \ -DOSMESA_INCLUDE_DIR=/software/paraview/5.5/mesa/lib/ \ -DOSMESA_LIBRARY=/software/paraview/5.5/mesa/lib/libOSMesa.so \ ../ParaView-v5.5.0 Sadly, I still get the same opengl errors when trying to run paraview in headless mode. At this point, im a bit stuck. My guess is I probably missed an option in my mesa build so im hoping kitware might have some insight Tyler -------------- next part -------------- An HTML attachment was scrubbed... URL: From ccoutinho at a-hak.nl Sat May 5 04:18:36 2018 From: ccoutinho at a-hak.nl (Chris Coutinho) Date: Sat, 5 May 2018 10:18:36 +0200 Subject: [Paraview] Error when starting ssh session on PV5.5 In-Reply-To: References: Message-ID: <20180505081836.zp3eb237ncj666op@tumbleweed> De informatie verzonden middels deze email is uitsluitend bestemd voor de geadresseerde. Gebruik door anderen is niet toegestaan. Openbaarmaking, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. A.Hak staat niet in voor een juiste en volledige overbrenging van de inhoud, alsmede de tijdige ontvangst daarvan. The information contained in this communication, including files, is confidential and legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance to the contents of this information, is strictly prohibited and may be unlawful. A.Hak is not liable for the proper, complete and timely transmission of the information contained in this communication. -------------- next part -------------- An embedded message was scrubbed... From: Chris Coutinho Subject: Re: [Paraview] Error when starting ssh session on PV5.5 Date: Sat, 5 May 2018 10:18:36 +0200 Size: 18130 URL: From paul.carrico at free.fr Sat May 5 05:10:19 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sat, 05 May 2018 11:10:19 +0200 Subject: [Paraview] Exodus ii vs Xmdf for Paraview for finite elements post-processing Message-ID: <8c03825224d04612d323bd65d4d9781d@free.fr> Dear All, This email is an echo of a previous one where I noticed that for XDMF format, Node Id and Element one are not explicitely provided (for performance issue I guess); writing an interface for renumbering topology (connectivity), datasets and so on is not a problem by itself (jus more work), but rather the fact that information's are lost (information's from the solver based on the original mesh for example). Thus I'm having a look to Exodus ii format and how I can use y h5 file (through netCDF I guess and not directly) ... if I'm right it allows nodes/elements Id's. Compared to Xdmf, does somebody want to share his feedback? (limitations, implementation, performance, parallelisation, and so on) Thanks for any help Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelkey at bresnan.net Sat May 5 11:32:22 2018 From: samuelkey at bresnan.net (Samuel Key) Date: Sat, 5 May 2018 09:32:22 -0600 Subject: [Paraview] Exodus ii vs Xmdf for Paraview for finite elements post-processing In-Reply-To: <8c03825224d04612d323bd65d4d9781d@free.fr> References: <8c03825224d04612d323bd65d4d9781d@free.fr> Message-ID: Paul, My own simulation software allows non-sequential, but unique assignment of user-specified ID's for Points and Cells. (It is user friendly, and requires and provides a wealth of datum checking to see if the input datum set is logically connected.) For what it is worth, the EnSight format supports user-assigned Point and Cell ID's. HOWEVER, the ParaView EnSight Reader which in all other respects appears to be bullet proof and supports arbitrary n-vertex polyhedral finite elements that my software uses, simply skips the reading and storing of the user-assigned Point and Cell ID's. (I rely heavily on ParaView for post processing and will continue to? write out the Point and Cell ID's to the EnSight-formatted simulation datum set in the hope that some day ParaView will accept and make use of the Point and Cell ID's. ) A possible solution may be the following for identifying Cells -- my software writes out Material Model user-assigned ID's "MatID" as Cell data. The software's EnSight Writer uses the EnSight Part-construct to create a "graphically displayable object" for each domain based on a common value for MatID. The user, planning ahead, can artificially give one or more Cells a unique MatID. Then ParaView's Extract Block filter allows any combination of material domains to be selected for further processing/examination. The attached image is a two-cell example. (Two independent finite elements with different Mat ID's and the same material properties but with different large-strain formulations each subjected to the same strain loop). Sam Key On 5/5/2018 3:10 AM, paul.carrico at free.fr wrote: > > Dear All, > > This email is an echo of a previous one where I noticed that for XDMF > format, Node Id and Element?one are not explicitely provided (for > performance issue I guess); writing an interface for renumbering > topology (connectivity), datasets and so on is not a problem by itself > (jus more work), but rather the fact that information's are lost > (information's from the solver based on the original mesh for example). > > Thus I'm?having a look to?Exodus ii format and how I can use y h5 file > (through netCDF I guess and not directly) ... if I'm right it allows > nodes/elements Id's. > > Compared to Xdmf, does somebody want to share his > feedback??(limitations, implementation, performance, parallelisation, > and so on) > > Thanks for any help > > Regards > > Paul > > > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: vp121-C0-2Cycle-Closed-Strain-Loop-Hypo-vs-Hyper-mat-models.png Type: image/png Size: 154407 bytes Desc: not available URL: From shuhao at shuhaowu.com Mon May 7 15:28:59 2018 From: shuhao at shuhaowu.com (Shuhao Wu) Date: Mon, 7 May 2018 15:28:59 -0400 Subject: [Paraview] Paraview Superbuild cmake options Message-ID: Hello all, Is there somewhere I can find the list of variables and their values that the official binaries are compiled from? I would like to reproduce this build as a baseline locally and I can't find this documented anywhere obvious. On that train of thought, is there a detailed instructions on how to reproduce the official binary builds somewhere as well? Thanks, Shuhao From andrealphus at gmail.com Mon May 7 20:39:58 2018 From: andrealphus at gmail.com (A) Date: Mon, 7 May 2018 17:39:58 -0700 Subject: [Paraview] x,y,z,time Message-ID: This seems rudimentary, but I didnt find a relevant answer in my googles. I csv file of x,y,z,time. I import them and then visualize them with tabletopoints. I just want to have an 3d scatter plot animation of them appearing. how do I get paraview to recognize my "time" colunm as time in the table? thanks! a -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Tue May 8 04:41:19 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 08 May 2018 10:41:19 +0200 Subject: [Paraview] Mixed topology cell number Message-ID: <9be121500176575c672bb3ed40054bf1@free.fr> Dear all Where can I find the topology cell numbers for the xdmf format, especially for the finite elements (vertex, line, triangle, quad, hex, pyra, prism and so on)? If I have the VTK numbers, they are different from the VTK one. In the xdmf website site (http://www.xdmf.org/index.php/XDMF_Model_and_Format), I can see some of these numbers, but only for linear elements, and line are missing ... should I use polyline instead? _Nota_: from my understanding, the first column is the type of element, then the nodes connectivity, right? Still digging into the docs, and internet, but nothing obvious so far => any helpp will be highly appreciated Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Tue May 8 16:18:00 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Tue, 8 May 2018 20:18:00 +0000 Subject: [Paraview] x,y,z,time Message-ID: A, ParaView won?t recognize a column in a table as time. If you instead write out your data as a series of csv files, ParaView will treat each file as a time step and animate through them. So, if you re-write your data in multiple csv files, things get much easier in ParaView. If you don?t want to re-write your data, I think you can still do what you want to do by using ParaView?s animation. The basic idea is to add a filter that pulls out the data for one time step, and then animate the parameter. This will probably be clearer with an example. For this example, let?s assume your csv file has 20 time steps with time values 0, 1, 2,?, 19. The steps you could follow to animate time are as follows: 1. Load the csv file, convert them to table to points, and visualize them just as you are so far. 2. Add the threshold filter. Set the Minimum parameter to just under the first time value (say -0.5 in the example time steps I gave) and set the Maximum parameter to just over the first time value (say 0.5 in this example). This will extract the points of the first time step. 3. Open the Animation View (View -> Animation View). 4. Add a track for the Threshold filter for Threshold Range (0) (this corresponds to the Minimum value). Double click the track to open up the Animation Keyframes dialog. Set the first value to just under the first time value (-0.5 in this example), to just under the largest value (18.5 in this example). 5. Add a track for the Threshold filter for Threshold Range (1) (this corresponds to the Maximum value). Double click the track to open up the Animation Keyframes dialog. Set the first value to just under the first time value (0.5 in this example), to just under the largest value (19.5 in this example). 6. In the Animation View, set the number of frames (No. Frames) to the number of time steps in your data (20 in this example). 7. Hit play. -Ken From: ParaView on behalf of A Date: Monday, May 7, 2018 at 8:40 PM To: ParaView Subject: [EXTERNAL] [Paraview] x,y,z,time This seems rudimentary, but I didnt find a relevant answer in my googles. I csv file of x,y,z,time. I import them and then visualize them with tabletopoints. I just want to have an 3d scatter plot animation of them appearing. how do I get paraview to recognize my "time" colunm as time in the table? thanks! a -------------- next part -------------- An HTML attachment was scrubbed... URL: From markzhumi1805 at gmail.com Thu May 10 10:37:57 2018 From: markzhumi1805 at gmail.com (Zhu Junxi) Date: Thu, 10 May 2018 14:37:57 +0000 Subject: [Paraview] Paraview display issue on Windows Message-ID: Hello everyone, I am referred to this mailing list by a developer at the 3D Slicer forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and both suffered from the same display issue, i.e., the interface of the software looks semi-transparent, please see attached picture (in case the picture does not show correctly, here is the dropbox link to it: https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer at the 3D Slicer forum said it might be a video card driver issue and that I might get more help here. My computer is a desktop, with only one video card (GTX1080) and the driver version is 397.64 from the Geforce Experience software. The operating system is Windows 10 64 bit with latest April Update installed (I haven't tested Paraview before that...) It also happens on 3D slicer nightly build (05/02) (in case it does not show correctly, here is the dropbox link to the picture: https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): BTW, when I first got Paraview v5.5 installed, it threw an OpenGL driver error upon launching. Then I updated the video card driver to the latest one and now the error is gone but the interface still seems semi-transparent..... Any help is greatly appreciated! Best, Junxi -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu May 10 11:22:14 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 10 May 2018 15:22:14 +0000 Subject: [Paraview] Paraview display issue on Windows In-Reply-To: References: Message-ID: Junxi, Does your system also have an Intel video chip that it may be using? If so, ParaView may not be using your NVIDIA driver. You can check by going to the Help -> About ParaView menu item. What do the Open GL entries say? To ensure ParaView is using your NVIDIA card, you can try going to the NVIDIA control panel. Under 3D Settings in the panel on the left, click on "Manage 3D settings". On the right side, click on the "Global Settings" tab. Make sure "High-performance NVIDIA processor" is selected. Apply the changes, then run ParaView again to see if the problem is resolved. Hope that helps, Cory On Thu, May 10, 2018 at 10:38 AM Zhu Junxi wrote: > Hello everyone, > > I am referred to this mailing list by a developer at the 3D Slicer forum. > I installed the Paraview v5.5 (and nightly build of 3D Slicer) and both > suffered from the same display issue, i.e., the interface of the software > looks semi-transparent, please see attached picture (in case the picture > does not show correctly, here is the dropbox link to it: > https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer at > the 3D Slicer forum said it might be a video card driver issue and that I > might get more help here. My computer is a desktop, with only one video > card (GTX1080) and the driver version is 397.64 from the Geforce Experience > software. The operating system is Windows 10 64 bit with latest April > Update installed (I haven't tested Paraview before that...) > > > > It also happens on 3D slicer nightly build (05/02) (in case it does not > show correctly, here is the dropbox link to the picture: > https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): > > > BTW, when I first got Paraview v5.5 installed, it threw an OpenGL driver > error upon launching. Then I updated the video card driver to the latest > one and now the error is gone but the interface still seems > semi-transparent..... > > Any help is greatly appreciated! > > Best, > Junxi > _______________________________________________ > 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 > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From markzhumi1805 at gmail.com Thu May 10 11:40:18 2018 From: markzhumi1805 at gmail.com (Zhu Junxi) Date: Thu, 10 May 2018 15:40:18 +0000 Subject: [Paraview] Paraview display issue on Windows In-Reply-To: References: Message-ID: Hello Cory, Thank you for such a quick reply. I checked the OpenGL entries and it is indeed using the NVIDIA video card. The OpenGL renderer is listed as GeForce GTX1080/PCIe/SSE2. I search online and although people say my i7-6700k processor has a built-in 530 graphics card, I do not see it in the device manager somehow...... I have also tried the NVIDIA control panel. I did not find the High performance NVIDIA processer you mentioned in the global settings, but I did change the OpenGL renderer to GTX1080. However, Paraview still cannot display correctly after applying the changes (so does the 3D Slicer). I am wondering if you need any system logs to diagnose this issue and I would be happy to provide them. Best, Junxi On Thu, May 10, 2018 at 11:22 AM Cory Quammen wrote: > Junxi, > > Does your system also have an Intel video chip that it may be using? If > so, ParaView may not be using your NVIDIA driver. You can check by going to > the Help -> About ParaView menu item. What do the Open GL entries say? > > To ensure ParaView is using your NVIDIA card, you can try going to the > NVIDIA control panel. Under 3D Settings in the panel on the left, click > on "Manage 3D settings". On the right side, click on the "Global Settings" > tab. Make sure "High-performance NVIDIA processor" is selected. Apply the > changes, then run ParaView again to see if the problem is resolved. > > Hope that helps, > Cory > > On Thu, May 10, 2018 at 10:38 AM Zhu Junxi > wrote: > >> Hello everyone, >> >> I am referred to this mailing list by a developer at the 3D Slicer forum. >> I installed the Paraview v5.5 (and nightly build of 3D Slicer) and both >> suffered from the same display issue, i.e., the interface of the software >> looks semi-transparent, please see attached picture (in case the picture >> does not show correctly, here is the dropbox link to it: >> https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer >> at the 3D Slicer forum said it might be a video card driver issue and that >> I might get more help here. My computer is a desktop, with only one video >> card (GTX1080) and the driver version is 397.64 from the Geforce Experience >> software. The operating system is Windows 10 64 bit with latest April >> Update installed (I haven't tested Paraview before that...) >> >> >> >> It also happens on 3D slicer nightly build (05/02) (in case it does not >> show correctly, here is the dropbox link to the picture: >> https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): >> >> >> BTW, when I first got Paraview v5.5 installed, it threw an OpenGL driver >> error upon launching. Then I updated the video card driver to the latest >> one and now the error is gone but the interface still seems >> semi-transparent..... >> >> Any help is greatly appreciated! >> >> Best, >> Junxi >> > _______________________________________________ >> 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 >> > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arashm81 at gmail.com Thu May 10 12:11:41 2018 From: arashm81 at gmail.com (Arash Mehraban) Date: Thu, 10 May 2018 10:11:41 -0600 Subject: [Paraview] What CELL_TYPE is the 27-noded 3D from Cubit/Trelis? Message-ID: Hi, I have written some FEM code in Matlab that handles 27-noded 3D unstructured meshed. It reads all the mesh info, including connectivity matrix, vertex coordinates , etc. from Cubit/Trelis output in ExodusII format and gives me a mesh object in Matlab. So after FEM processing and getting my solution, I would like to use Paraview as a postprocessor. So I wrote a piece of Matlab code so I can write the connectivity matrix, coordinates, and unknowns ?u? (in this case displacement in 3D [solving hyperelasticity]) to a vtk file. The only thing I am not sure what I should use for the 3D 27-noded is the CELL_TYPE when I am writing to the vtk file. Is it 12, 25, or something else? 12 seems to work as Paraview shows me that it has correct number of nodes from the mesh, but when I ask Paraview to show the nodes, it only shows the vertices as apposed to nodes on vertices edges, faces and cells. When I use 25, the mesh does not look correct. It gets distorted and collapsed. The connectivity looks totally incorrect. These numbers are based on https://www.vtk.org/doc/nightl y/html/vtkCellType_8h_source.html I would appreciate any help. Thanks Arash -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu May 10 20:36:40 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 10 May 2018 20:36:40 -0400 Subject: [Paraview] Paraview display issue on Windows In-Reply-To: References: Message-ID: On Thu, May 10, 2018 at 11:40 AM Zhu Junxi wrote: > Hello Cory, > > Thank you for such a quick reply. I checked the OpenGL entries and it is > indeed using the NVIDIA video card. The OpenGL renderer is listed as > GeForce GTX1080/PCIe/SSE2. I search online and although people say my > i7-6700k processor has a built-in 530 graphics card, I do not see it in the > device manager somehow...... > Okay, thanks for checking. We have encountered a number of issues with Intel graphics in the last year or so, but driver updates have mainly resolved most of them. That doesn't seem to be the concern here, though. > I have also tried the NVIDIA control panel. I did not find the High > performance NVIDIA processer you mentioned in the global settings, but I > did change the OpenGL renderer to GTX1080. > That should ensure you are using the GTX1080, but it looks like ParaView already was using it. > However, Paraview still cannot display correctly after applying the > changes (so does the 3D Slicer). I am wondering if you need any system logs > to diagnose this issue and I would be happy to provide them. > I can't think of any system logs that would help. But there are a couple things you could try. 1). Install an older version of ParaView and see if that works. If it does, that will help us narrow down possible reasons for the transparency you are using. ParaView 4.4 would be a good one to try: https://www.paraview.org/download/ 2). Do you have any add-ons to Windows installed that modify the window system in some way? If so, try disabling or uninstalling those. Thanks, and sorry for the trouble. Cory > Best, > Junxi > > On Thu, May 10, 2018 at 11:22 AM Cory Quammen > wrote: > >> Junxi, >> >> Does your system also have an Intel video chip that it may be using? If >> so, ParaView may not be using your NVIDIA driver. You can check by going to >> the Help -> About ParaView menu item. What do the Open GL entries say? >> >> To ensure ParaView is using your NVIDIA card, you can try going to the >> NVIDIA control panel. Under 3D Settings in the panel on the left, click >> on "Manage 3D settings". On the right side, click on the "Global Settings" >> tab. Make sure "High-performance NVIDIA processor" is selected. Apply >> the changes, then run ParaView again to see if the problem is resolved. >> >> Hope that helps, >> Cory >> >> On Thu, May 10, 2018 at 10:38 AM Zhu Junxi >> wrote: >> >>> Hello everyone, >>> >>> I am referred to this mailing list by a developer at the 3D Slicer >>> forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and >>> both suffered from the same display issue, i.e., the interface of the >>> software looks semi-transparent, please see attached picture (in case the >>> picture does not show correctly, here is the dropbox link to it: >>> https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer >>> at the 3D Slicer forum said it might be a video card driver issue and that >>> I might get more help here. My computer is a desktop, with only one video >>> card (GTX1080) and the driver version is 397.64 from the Geforce Experience >>> software. The operating system is Windows 10 64 bit with latest April >>> Update installed (I haven't tested Paraview before that...) >>> >>> >>> >>> It also happens on 3D slicer nightly build (05/02) (in case it does not >>> show correctly, here is the dropbox link to the picture: >>> https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): >>> >>> >>> BTW, when I first got Paraview v5.5 installed, it threw an OpenGL driver >>> error upon launching. Then I updated the video card driver to the latest >>> one and now the error is gone but the interface still seems >>> semi-transparent..... >>> >>> Any help is greatly appreciated! >>> >>> Best, >>> Junxi >>> >> _______________________________________________ >>> 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 >>> >> >> >> -- >> Cory Quammen >> Staff R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Fri May 11 08:28:25 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 08:28:25 -0400 Subject: [Paraview] control comparative render in python? Message-ID: Hi All: I have a paraviewweb application that accepts a bunch of options and produces a nice visualization supplied by a pvpython server -- thank you all for the help you've offered so far. Everyone is happy with this, but of course the problem with that is now they want more. I want to have two windows, side by side, rendering different views of the same data, or the same view of two different data sources, side by side, ideally always with the same camera position. This seems like exactly what the comparative render view was built for. Unfortunately, I can't find how to control that view through python. The Trace functionality seems indifferent to whatever I do on the comparative view inspector window, and I can't find any more than a mention in the Guide. What is the python that corresponds to setting the MxN size of the comparison and how do I assign a render to some given sector of my comparison? Is there more to it than that? Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Fri May 11 08:39:36 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 11 May 2018 08:39:36 -0400 Subject: [Paraview] control comparative render in python? In-Reply-To: References: Message-ID: Tom, > The Trace functionality seems indifferent to whatever I do on the comparative view inspector window, and I can't find any more than a mention in the Guide. That is indeed a bug. I've reported it as an issue here: https://gitlab.kitware.com/paraview/paraview/issues/18164 > I want to have two windows, side by side, rendering different views of the same data, or the same view of two different data sources, side by side, ideally always with the same camera position. This seems like exactly what the comparative render view was built for. My hunch is comparative view is not what you want. All you want is simply two views with linked cameras. Are you able to setup the visualizations you need in the ParaView Qt client? If so, I can provide you hints on how to convert that to the corresponding Python script. > What is the python that corresponds to setting the MxN size of the comparison the view has a "Dimensions" parameter that you change e.g. view = CreateComparativeRenderView() view.Dimensions = [ 3, 1] > and how do I assign a render to some given sector of my comparison? Is there more to it than that? you simple use `Show`. You can't assign a dataset to show in a specific view, that's not what the comparative view is intended for. You show data in all views and you vary one or more parameters on the pipelines in the view using the animation tracks in the comparative panel. Utkarsh > Thank you, > -Tom > _______________________________________________ > 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 From thomas_sgouros at brown.edu Fri May 11 09:05:21 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 09:05:21 -0400 Subject: [Paraview] control comparative render in python? In-Reply-To: References: Message-ID: Hi Utkarsh: I understand, perhaps you're right that comparative render is not what I'm after. What I want is just to see two different data sets using the same visualization side by side, with cameras linked as they are with the comparative view. I can create the visualizations I want in the Qt client or in python. But apparently I could just use some direction on the best approach to link the cameras and make the views appear side-by-side. Thank you, -Tom On Fri, May 11, 2018 at 8:39 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Tom, > > > The Trace functionality seems indifferent to whatever I do on the > comparative view inspector window, and I can't find any more than a mention > in the Guide. > > That is indeed a bug. I've reported it as an issue here: > https://gitlab.kitware.com/paraview/paraview/issues/18164 > > > I want to have two windows, side by side, rendering different views of > the same data, or the same view of two different data sources, side by > side, ideally always with the same camera position. This seems like exactly > what the comparative render view was built for. > > My hunch is comparative view is not what you want. All you want is simply > two views with linked cameras. Are you able to setup the visualizations you > need in the ParaView Qt client? If so, I can provide you hints on how to > convert that to the corresponding Python script. > > > What is the python that corresponds to setting the MxN size of the > comparison > > the view has a "Dimensions" parameter that you change e.g. > view = CreateComparativeRenderView() > view.Dimensions = [ 3, 1] > > > and how do I assign a render to some given sector of my comparison? Is > there more to it than that? > > you simple use `Show`. You can't assign a dataset to show in a specific > view, that's not what the comparative view is intended for. You show data > in all views and you vary one or more parameters on the pipelines in the > view using the animation tracks in the comparative panel. > > Utkarsh > > > Thank you, > > > -Tom > > > > > _______________________________________________ > > 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: From thomas_sgouros at brown.edu Fri May 11 11:16:38 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 11:16:38 -0400 Subject: [Paraview] control comparative render in python? In-Reply-To: References: Message-ID: Just FYI, the "Link Camera" dialog that you get by right-clicking in a window also appears not to log whatever it's doing to the Trace output. But for the next person who finds this note, there seems to be an AddCameraLink() function to the paraview 'simple' module, that appears to work like this: view1 = simple.CreateView("myfirstview") view2 = simple.CreateView("mysecondview") simple.AddCameraLink(view1, view2, "arbitraryNameOfLink") I assume that the Link Camera dialog invokes this function, though it doesn't appear in the Trace. Thank you, -Tom On Fri, May 11, 2018 at 9:05 AM, Sgouros, Thomas wrote: > Hi Utkarsh: > > I understand, perhaps you're right that comparative render is not what I'm > after. What I want is just to see two different data sets using the same > visualization side by side, with cameras linked as they are with the > comparative view. I can create the visualizations I want in the Qt client > or in python. But apparently I could just use some direction on the best > approach to link the cameras and make the views appear side-by-side. > > Thank you, > > -Tom > > > On Fri, May 11, 2018 at 8:39 AM, Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> wrote: > >> Tom, >> >> > The Trace functionality seems indifferent to whatever I do on the >> comparative view inspector window, and I can't find any more than a >> mention >> in the Guide. >> >> That is indeed a bug. I've reported it as an issue here: >> https://gitlab.kitware.com/paraview/paraview/issues/18164 >> >> > I want to have two windows, side by side, rendering different views of >> the same data, or the same view of two different data sources, side by >> side, ideally always with the same camera position. This seems like >> exactly >> what the comparative render view was built for. >> >> My hunch is comparative view is not what you want. All you want is simply >> two views with linked cameras. Are you able to setup the visualizations >> you >> need in the ParaView Qt client? If so, I can provide you hints on how to >> convert that to the corresponding Python script. >> >> > What is the python that corresponds to setting the MxN size of the >> comparison >> >> the view has a "Dimensions" parameter that you change e.g. >> view = CreateComparativeRenderView() >> view.Dimensions = [ 3, 1] >> >> > and how do I assign a render to some given sector of my comparison? Is >> there more to it than that? >> >> you simple use `Show`. You can't assign a dataset to show in a specific >> view, that's not what the comparative view is intended for. You show data >> in all views and you vary one or more parameters on the pipelines in the >> view using the animation tracks in the comparative panel. >> >> Utkarsh >> >> > Thank you, >> >> > -Tom >> >> >> >> > _______________________________________________ >> > 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: From utkarsh.ayachit at kitware.com Fri May 11 11:20:59 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 11 May 2018 11:20:59 -0400 Subject: [Paraview] control comparative render in python? In-Reply-To: References: Message-ID: Great! Glad you tracked it down. I've also reported an issue for this trace issue: https://gitlab.kitware.com/paraview/paraview/issues/18166 On Fri, May 11, 2018 at 11:16 AM Sgouros, Thomas wrote: > Just FYI, the "Link Camera" dialog that you get by right-clicking in a window also appears not to log whatever it's doing to the Trace output. But for the next person who finds this note, there seems to be an AddCameraLink() function to the paraview 'simple' module, that appears to work like this: > view1 = simple.CreateView("myfirstview") > view2 = simple.CreateView("mysecondview") > simple.AddCameraLink(view1, view2, "arbitraryNameOfLink") > I assume that the Link Camera dialog invokes this function, though it doesn't appear in the Trace. > Thank you, > -Tom > On Fri, May 11, 2018 at 9:05 AM, Sgouros, Thomas > wrote: >> Hi Utkarsh: >> I understand, perhaps you're right that comparative render is not what I'm after. What I want is just to see two different data sets using the same visualization side by side, with cameras linked as they are with the comparative view. I can create the visualizations I want in the Qt client or in python. But apparently I could just use some direction on the best approach to link the cameras and make the views appear side-by-side. >> Thank you, >> -Tom >> On Fri, May 11, 2018 at 8:39 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: >>> Tom, >>> > The Trace functionality seems indifferent to whatever I do on the >>> comparative view inspector window, and I can't find any more than a mention >>> in the Guide. >>> That is indeed a bug. I've reported it as an issue here: >>> https://gitlab.kitware.com/paraview/paraview/issues/18164 >>> > I want to have two windows, side by side, rendering different views of >>> the same data, or the same view of two different data sources, side by >>> side, ideally always with the same camera position. This seems like exactly >>> what the comparative render view was built for. >>> My hunch is comparative view is not what you want. All you want is simply >>> two views with linked cameras. Are you able to setup the visualizations you >>> need in the ParaView Qt client? If so, I can provide you hints on how to >>> convert that to the corresponding Python script. >>> > What is the python that corresponds to setting the MxN size of the >>> comparison >>> the view has a "Dimensions" parameter that you change e.g. >>> view = CreateComparativeRenderView() >>> view.Dimensions = [ 3, 1] >>> > and how do I assign a render to some given sector of my comparison? Is >>> there more to it than that? >>> you simple use `Show`. You can't assign a dataset to show in a specific >>> view, that's not what the comparative view is intended for. You show data >>> in all views and you vary one or more parameters on the pipelines in the >>> view using the animation tracks in the comparative panel. >>> Utkarsh >>> > Thank you, >>> > -Tom >>> > _______________________________________________ >>> > 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 From dennis_conklin at goodyear.com Fri May 11 13:11:14 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Fri, 11 May 2018 17:11:14 +0000 Subject: [Paraview] Using Pandas in Paraview v5.4.1 Message-ID: All, I need some pandas functions for some filters. Pandas, unfortunately is not a simple library (there is no pands.py) - it needs to be installed into your version of python as a module. How can I get this in Paraview (hopefully, without compiling from source). Can I install pandas into the python installation included with the PV download? Thanks Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.wittenburg at kitware.com Fri May 11 13:21:16 2018 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Fri, 11 May 2018 11:21:16 -0600 Subject: [Paraview] Using Pandas in Paraview v5.4.1 In-Reply-To: References: Message-ID: Hello Dennis, Depending on how you want to use pandas within ParaView, one approach that could work involves creating a virtual environment and installing pandas there. Then a couple of lines of python can make modules installed in that virtualenv available from pvpython. See this blog post for more information: https://blog.kitware.com/using-pvpython-and-virtualenv/ Hope this helps, Scott On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin < dennis_conklin at goodyear.com> wrote: > All, > > > > I need some pandas functions for some filters. Pandas, unfortunately is > not a simple library (there is no pands.py) ? it needs to be installed into > your version of python as a module. How can I get this in Paraview > (hopefully, without compiling from source). Can I install pandas into > the python installation included with the PV download? > > > > Thanks > > > > Dennis > > _______________________________________________ > 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: From markzhumi1805 at gmail.com Fri May 11 13:52:49 2018 From: markzhumi1805 at gmail.com (Zhu Junxi) Date: Fri, 11 May 2018 13:52:49 -0400 Subject: [Paraview] Paraview display issue on Windows In-Reply-To: References: Message-ID: Hello Cory, I tried a bunch of different versions and found out that those with Qt5 does not work while those with Qt4 looks fine (i.e., v5.3 and above does not work, the latest version that works is v5.2.0 with Qt4). It seems that it has something to do with the Qt5. I am wondering if other users are experiencing similar issues with Qt5? As for add-ons, do you have a list of specific add-ons that you are particularly suspicious of? My desktop has a bunch of software installed but they are either work-related (e.g., Matlab) or seemingly harmless (e.g., steam). BTW, I don't have Nahimic sound driver, which I saw other people reporting messing up with Qt. Best, Junxi On Thu, May 10, 2018 at 8:36 PM Cory Quammen wrote: > On Thu, May 10, 2018 at 11:40 AM Zhu Junxi > wrote: > >> Hello Cory, >> >> Thank you for such a quick reply. I checked the OpenGL entries and it is >> indeed using the NVIDIA video card. The OpenGL renderer is listed as >> GeForce GTX1080/PCIe/SSE2. I search online and although people say my >> i7-6700k processor has a built-in 530 graphics card, I do not see it in the >> device manager somehow...... >> > > Okay, thanks for checking. We have encountered a number of issues with > Intel graphics in the last year or so, but driver updates have mainly > resolved most of them. That doesn't seem to be the concern here, though. > > >> I have also tried the NVIDIA control panel. I did not find the High >> performance NVIDIA processer you mentioned in the global settings, but I >> did change the OpenGL renderer to GTX1080. >> > > That should ensure you are using the GTX1080, but it looks like ParaView > already was using it. > > >> However, Paraview still cannot display correctly after applying the >> changes (so does the 3D Slicer). I am wondering if you need any system logs >> to diagnose this issue and I would be happy to provide them. >> > > I can't think of any system logs that would help. But there are a couple > things you could try. > > 1). Install an older version of ParaView and see if that works. If it > does, that will help us narrow down possible reasons for the transparency > you are using. ParaView 4.4 would be a good one to try: > https://www.paraview.org/download/ > > 2). Do you have any add-ons to Windows installed that modify the window > system in some way? If so, try disabling or uninstalling those. > > Thanks, and sorry for the trouble. > > Cory > > >> Best, >> Junxi >> >> On Thu, May 10, 2018 at 11:22 AM Cory Quammen >> wrote: >> >>> Junxi, >>> >>> Does your system also have an Intel video chip that it may be using? If >>> so, ParaView may not be using your NVIDIA driver. You can check by going to >>> the Help -> About ParaView menu item. What do the Open GL entries say? >>> >>> To ensure ParaView is using your NVIDIA card, you can try going to the >>> NVIDIA control panel. Under 3D Settings in the panel on the left, click >>> on "Manage 3D settings". On the right side, click on the "Global Settings" >>> tab. Make sure "High-performance NVIDIA processor" is selected. Apply >>> the changes, then run ParaView again to see if the problem is resolved. >>> >>> Hope that helps, >>> Cory >>> >>> On Thu, May 10, 2018 at 10:38 AM Zhu Junxi >>> wrote: >>> >>>> Hello everyone, >>>> >>>> I am referred to this mailing list by a developer at the 3D Slicer >>>> forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and >>>> both suffered from the same display issue, i.e., the interface of the >>>> software looks semi-transparent, please see attached picture (in case the >>>> picture does not show correctly, here is the dropbox link to it: >>>> https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer >>>> at the 3D Slicer forum said it might be a video card driver issue and that >>>> I might get more help here. My computer is a desktop, with only one video >>>> card (GTX1080) and the driver version is 397.64 from the Geforce Experience >>>> software. The operating system is Windows 10 64 bit with latest April >>>> Update installed (I haven't tested Paraview before that...) >>>> >>>> >>>> >>>> It also happens on 3D slicer nightly build (05/02) (in case it does not >>>> show correctly, here is the dropbox link to the picture: >>>> https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): >>>> >>>> >>>> BTW, when I first got Paraview v5.5 installed, it threw an OpenGL >>>> driver error upon launching. Then I updated the video card driver to the >>>> latest one and now the error is gone but the interface still seems >>>> semi-transparent..... >>>> >>>> Any help is greatly appreciated! >>>> >>>> Best, >>>> Junxi >>>> >>> _______________________________________________ >>>> 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 >>>> >>> >>> >>> -- >>> Cory Quammen >>> Staff R&D Engineer >>> Kitware, Inc. >>> >> > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis_conklin at goodyear.com Fri May 11 14:28:36 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Fri, 11 May 2018 18:28:36 +0000 Subject: [Paraview] [EXT] Re: Using Pandas in Paraview v5.4.1 In-Reply-To: References: Message-ID: Scott, Interesting idea and I was not aware of any of that. I should be specific that I need to make an xml Server side plugin for general distribution that needs to call pandas to execute. So I don?t think I can get everyone here to load up that virtual environment and install pandas. I think I?m hearing that pandas for everyone is not available unless I compile here with an external python, right? Thanks Dennis From: Scott Wittenburg [mailto:scott.wittenburg at kitware.com] Sent: Friday, May 11, 2018 1:21 PM To: Dennis Conklin Cc: Paraview (paraview at paraview.org) Subject: [EXT] Re: [Paraview] Using Pandas in Paraview v5.4.1 CAUTION: EXTERNAL email. Please think before clicking on any links or attachments. Hello Dennis, Depending on how you want to use pandas within ParaView, one approach that could work involves creating a virtual environment and installing pandas there. Then a couple of lines of python can make modules installed in that virtualenv available from pvpython. See this blog post for more information: https://blog.kitware.com/using-pvpython-and-virtualenv/ Hope this helps, Scott On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin > wrote: All, I need some pandas functions for some filters. Pandas, unfortunately is not a simple library (there is no pands.py) ? it needs to be installed into your version of python as a module. How can I get this in Paraview (hopefully, without compiling from source). Can I install pandas into the python installation included with the PV download? Thanks Dennis _______________________________________________ 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: From thomas_sgouros at brown.edu Fri May 11 14:34:23 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 14:34:23 -0400 Subject: [Paraview] layout question, pvpython Message-ID: Hi All: I've become accustomed to throwing around render view objects in pvpython, swapping them in and out of the view with simple.Show() and simple.Hide(). Now I have to learn about layout objects. Can someone suggest the best way to think about these? Are they containers into which I can drop one or more render views and move them around, or are they more like molds into which I can pour a render view and then use the layout as handles with which to manipulate the views? Where can I find a list of the methods of a layout object? Or would it be better to call it a layout proxy? Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Fri May 11 15:04:10 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 11 May 2018 15:04:10 -0400 Subject: [Paraview] layout question, pvpython In-Reply-To: References: Message-ID: Tom, Alas, there's no layout support in pvpython. There indeed is a layout proxy (vtkSMLayoutProxy), but they rely on the Qt ParaView components to layout the windows. The proxy itself is the "model", if you will. And it works when you execute the layout related updates in the Python shell in the ParaView UI. A clumpsy way to set a window's position in Python is: > view.GetRenderWindow().SetPosition(x, y) You can use that to lay out the windows, short of doing something more elaborate with a GUI library. Utkarsh On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas wrote: > Hi All: > I've become accustomed to throwing around render view objects in pvpython, swapping them in and out of the view with simple.Show() and simple.Hide(). Now I have to learn about layout objects. Can someone suggest the best way to think about these? Are they containers into which I can drop one or more render views and move them around, or are they more like molds into which I can pour a render view and then use the layout as handles with which to manipulate the views? > Where can I find a list of the methods of a layout object? Or would it be better to call it a layout proxy? > Thank you, > -Tom > _______________________________________________ > 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 From scott.wittenburg at kitware.com Fri May 11 15:08:06 2018 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Fri, 11 May 2018 13:08:06 -0600 Subject: [Paraview] [EXT] Re: Using Pandas in Paraview v5.4.1 In-Reply-To: References: Message-ID: Hi Dennis, I'm not sure I understand precisely what you mean when you say "compile here with an external python". Do you mean compiling your plugin (which would imply not a simple xml plugin), or compiling ParaView? Even if you compile ParaView on your end with an external python, I don't see how that will result in something that will allow you to distribute your plugin as xml. You could try to distribute a custom ParaView binary (which includes your new plugin as well as pandas python modules), but for that you would normally need to use the ParaView superbuild. Even then I think you would have to tweak the superbuild to get the python to include pandas. Hopefully someone out there with more knowledge can chime in and provide some hints or suggestions. Then maybe we'll find out what you want to do it quite easy, in which case I'll be excited to learn about it :-) Cheers, Scott p.s. I'm sure you may have read through this before, but just in case (or for people who come across this later): https://www.paraview.org/Wiki/ParaView/Plugin_HowTo On Fri, May 11, 2018 at 12:28 PM, Dennis Conklin < dennis_conklin at goodyear.com> wrote: > Scott, > > > > Interesting idea and I was not aware of any of that. > > > > I should be specific that I need to make an xml Server side plugin for > general distribution that needs to call pandas to execute. So I don?t > think I can get everyone here to load up that virtual environment and > install pandas. > > > > I think I?m hearing that pandas for everyone is not available unless I > compile here with an external python, right? > > > > Thanks > > Dennis > > > > *From:* Scott Wittenburg [mailto:scott.wittenburg at kitware.com] > *Sent:* Friday, May 11, 2018 1:21 PM > *To:* Dennis Conklin > *Cc:* Paraview (paraview at paraview.org) > *Subject:* [EXT] Re: [Paraview] Using Pandas in Paraview v5.4.1 > > > > *CAUTION: *EXTERNAL email. Please think before clicking on any links or > attachments. > > > > Hello Dennis, > > > > Depending on how you want to use pandas within ParaView, one approach that > could work involves creating a virtual environment and installing pandas > there. Then a couple of lines of python can make modules installed in that > virtualenv available from pvpython. See this blog post for more > information: > > > > https://blog.kitware.com/using-pvpython-and-virtualenv/ > > > > > Hope this helps, > > Scott > > > > On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin < > dennis_conklin at goodyear.com> wrote: > > All, > > > > I need some pandas functions for some filters. Pandas, unfortunately is > not a simple library (there is no pands.py) ? it needs to be installed into > your version of python as a module. How can I get this in Paraview > (hopefully, without compiling from source). Can I install pandas into > the python installation included with the PV download? > > > > Thanks > > > > Dennis > > > _______________________________________________ > 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: From thomas_sgouros at brown.edu Fri May 11 15:37:43 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 15:37:43 -0400 Subject: [Paraview] layout question, pvpython In-Reply-To: References: Message-ID: Alas, indeed. Just as I thought I was starting to understand what's going on. Was I just misled because there is a trace output that has this in it? # get layout layout1 = GetLayoutByName("Layout #1") # split cell layout1.SplitHorizontal(0, 0.5) Without layout support, can I use pvpython to present two render views and link them with a camera link? Can you suggest what direction might succeed? You may have suggested this already, but I'm not sure the hint about view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really get how that's a way forward. What are you suggesting I use that function to do? Thanks, -Tom On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Tom, > > Alas, there's no layout support in pvpython. There indeed is a layout proxy > (vtkSMLayoutProxy), but they rely on the Qt ParaView components to layout > the windows. The proxy itself is the "model", if you will. And it works > when you execute the layout related updates in the Python shell in the > ParaView UI. > > A clumpsy way to set a window's position in Python is: > > view.GetRenderWindow().SetPosition(x, y) > > You can use that to lay out the windows, short of doing something more > elaborate with a GUI library. > > Utkarsh > > > > > On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas > wrote: > > > Hi All: > > > I've become accustomed to throwing around render view objects in > pvpython, swapping them in and out of the view with simple.Show() and > simple.Hide(). Now I have to learn about layout objects. Can someone > suggest the best way to think about these? Are they containers into which I > can drop one or more render views and move them around, or are they more > like molds into which I can pour a render view and then use the layout as > handles with which to manipulate the views? > > > Where can I find a list of the methods of a layout object? Or would it be > better to call it a layout proxy? > > > Thank you, > > > -Tom > > _______________________________________________ > > 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: From utkarsh.ayachit at kitware.com Fri May 11 16:06:35 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 11 May 2018 16:06:35 -0400 Subject: [Paraview] layout question, pvpython In-Reply-To: References: Message-ID: Attached is a script that demonstrates what I meant. Note, this is just a workaround and not a graceful solution :). Utkarsh On Fri, May 11, 2018 at 3:37 PM Sgouros, Thomas wrote: > Alas, indeed. Just as I thought I was starting to understand what's going on. Was I just misled because there is a trace output that has this in it? > # get layout > layout1 = GetLayoutByName("Layout #1") > # split cell > layout1.SplitHorizontal(0, 0.5) > Without layout support, can I use pvpython to present two render views and link them with a camera link? Can you suggest what direction might succeed? > You may have suggested this already, but I'm not sure the hint about view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really get how that's a way forward. What are you suggesting I use that function to do? > Thanks, > -Tom > On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: >> Tom, >> Alas, there's no layout support in pvpython. There indeed is a layout proxy >> (vtkSMLayoutProxy), but they rely on the Qt ParaView components to layout >> the windows. The proxy itself is the "model", if you will. And it works >> when you execute the layout related updates in the Python shell in the >> ParaView UI. >> A clumpsy way to set a window's position in Python is: >> > view.GetRenderWindow().SetPosition(x, y) >> You can use that to lay out the windows, short of doing something more >> elaborate with a GUI library. >> Utkarsh >> On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas > wrote: >> > Hi All: >> > I've become accustomed to throwing around render view objects in >> pvpython, swapping them in and out of the view with simple.Show() and >> simple.Hide(). Now I have to learn about layout objects. Can someone >> suggest the best way to think about these? Are they containers into which I >> can drop one or more render views and move them around, or are they more >> like molds into which I can pour a render view and then use the layout as >> handles with which to manipulate the views? >> > Where can I find a list of the methods of a layout object? Or would it be >> better to call it a layout proxy? >> > Thank you, >> > -Tom >> > _______________________________________________ >> > 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 -------------- A non-text attachment was scrubbed... Name: four_views.py Type: text/x-python Size: 514 bytes Desc: not available URL: From thomas_sgouros at brown.edu Fri May 11 18:39:36 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 18:39:36 -0400 Subject: [Paraview] layout question, pvpython In-Reply-To: References: Message-ID: Thank you, you're very kind. I'm all about functional workarounds these days. It leads to another question of course, but that's a ParaViewWeb question, so I'll make it another post. Thank you, -Tom On Fri, May 11, 2018 at 4:06 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Attached is a script that demonstrates what I meant. Note, this is just a > workaround and not a graceful solution :). > > Utkarsh > On Fri, May 11, 2018 at 3:37 PM Sgouros, Thomas > wrote: > > > Alas, indeed. Just as I thought I was starting to understand what's going > on. Was I just misled because there is a trace output that has this in it? > > > # get layout > > layout1 = GetLayoutByName("Layout #1") > > # split cell > > layout1.SplitHorizontal(0, 0.5) > > > > Without layout support, can I use pvpython to present two render views > and link them with a camera link? Can you suggest what direction might > succeed? > > > You may have suggested this already, but I'm not sure the hint about > view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really > get how that's a way forward. What are you suggesting I use that function > to do? > > > Thanks, > > > -Tom > > > On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> wrote: > > >> Tom, > > >> Alas, there's no layout support in pvpython. There indeed is a layout > proxy > >> (vtkSMLayoutProxy), but they rely on the Qt ParaView components to > layout > >> the windows. The proxy itself is the "model", if you will. And it works > >> when you execute the layout related updates in the Python shell in the > >> ParaView UI. > > >> A clumpsy way to set a window's position in Python is: > >> > view.GetRenderWindow().SetPosition(x, y) > > >> You can use that to lay out the windows, short of doing something more > >> elaborate with a GUI library. > > >> Utkarsh > > > > > >> On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas < > thomas_sgouros at brown.edu > > >> wrote: > > >> > Hi All: > > >> > I've become accustomed to throwing around render view objects in > >> pvpython, swapping them in and out of the view with simple.Show() and > >> simple.Hide(). Now I have to learn about layout objects. Can someone > >> suggest the best way to think about these? Are they containers into > which I > >> can drop one or more render views and move them around, or are they more > >> like molds into which I can pour a render view and then use the layout > as > >> handles with which to manipulate the views? > > >> > Where can I find a list of the methods of a layout object? Or would it > be > >> better to call it a layout proxy? > > >> > Thank you, > > >> > -Tom > >> > _______________________________________________ > >> > 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: From thomas_sgouros at brown.edu Fri May 11 18:47:23 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Fri, 11 May 2018 18:47:23 -0400 Subject: [Paraview] ParaViewWeb and multiple windows Message-ID: Hi All: I have a ParaViewWeb application going with a pvpython back end, and it looks great. I want to show views of multiple datasets in it now. I gather that the layout() methods are not supported in pvpython, so I have to use separate windows. I'm creating the render window on the client with this: const renderer = VtkRenderer.newInstance({ client: model.pvwClient }); I can certainly create two such renderer objects, but I don't see how to link the Render on my pvpython server to one or the other of the client's renderer objects. I assume I've been using some default behavior where my Show() and Update() commands get sent to the one renderer, but how do I direct them to one or the other? Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Sun May 13 20:51:05 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sun, 13 May 2018 18:51:05 -0600 Subject: [Paraview] ParaViewWeb and multiple windows In-Reply-To: References: Message-ID: You should set the viewId to the VtkRenderer based on which view from the server you want to be bound to. To retrieve the view Id on the server side, just call on the python side. view.GetGlobalDAsString() I may have small typo for the method name, but in either case the number you want is the "GlobalID". HTH, Seb On Fri, May 11, 2018 at 4:47 PM Sgouros, Thomas wrote: > Hi All: > > I have a ParaViewWeb application going with a pvpython back end, and it > looks great. I want to show views of multiple datasets in it now. I gather > that the layout() methods are not supported in pvpython, so I have to use > separate windows. > > I'm creating the render window on the client with this: > > const renderer = VtkRenderer.newInstance({ client: model.pvwClient }); > > I can certainly create two such renderer objects, but I don't see how to > link the Render on my pvpython server to one or the other of the client's > renderer objects. > > I assume I've been using some default behavior where my Show() and > Update() commands get sent to the one renderer, but how do I direct them to > one or the other? > > Thank you, > > -Tom > > _______________________________________________ > 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: From thomas_sgouros at brown.edu Mon May 14 10:07:58 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Mon, 14 May 2018 07:07:58 -0700 Subject: [Paraview] ParaViewWeb and multiple windows In-Reply-To: References: Message-ID: Great, thank you. Do you have an example of how to use it on the client side? Thanks, -Tom On Sun, May 13, 2018 at 5:51 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > You should set the viewId to the VtkRenderer based on which view from the > server you want to be bound to. > To retrieve the view Id on the server side, just call on the python side. > > view.GetGlobalDAsString() > > I may have small typo for the method name, but in either case the number > you want is the "GlobalID". > > HTH, > > Seb > > On Fri, May 11, 2018 at 4:47 PM Sgouros, Thomas > wrote: > >> Hi All: >> >> I have a ParaViewWeb application going with a pvpython back end, and it >> looks great. I want to show views of multiple datasets in it now. I gather >> that the layout() methods are not supported in pvpython, so I have to use >> separate windows. >> >> I'm creating the render window on the client with this: >> >> const renderer = VtkRenderer.newInstance({ client: model.pvwClient }); >> >> I can certainly create two such renderer objects, but I don't see how to >> link the Render on my pvpython server to one or the other of the client's >> renderer objects. >> >> I assume I've been using some default behavior where my Show() and >> Update() commands get sent to the one renderer, but how do I direct them to >> one or the other? >> >> Thank you, >> >> -Tom >> >> _______________________________________________ >> 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: From dennis_conklin at goodyear.com Mon May 14 10:24:04 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Mon, 14 May 2018 14:24:04 +0000 Subject: [Paraview] [EXT] Re: Using Pandas in Paraview v5.4.1 In-Reply-To: References: Message-ID: Scott, I assume that if I compile a ParaView executable with pandas included, then I could distribute my plugin as xml and everyone could access it. I?m a little unsure but I assume I would also have to recompile the server that we are using on an HPC cluster to include pandas. I?m beginning to see why adding pandas to ParaView has been delayed a few times. Dennis From: Scott Wittenburg [mailto:scott.wittenburg at kitware.com] Sent: Friday, May 11, 2018 3:08 PM To: Dennis Conklin Cc: Paraview (paraview at paraview.org) Subject: Re: [EXT] Re: [Paraview] Using Pandas in Paraview v5.4.1 Hi Dennis, I'm not sure I understand precisely what you mean when you say "compile here with an external python". Do you mean compiling your plugin (which would imply not a simple xml plugin), or compiling ParaView? Even if you compile ParaView on your end with an external python, I don't see how that will result in something that will allow you to distribute your plugin as xml. You could try to distribute a custom ParaView binary (which includes your new plugin as well as pandas python modules), but for that you would normally need to use the ParaView superbuild. Even then I think you would have to tweak the superbuild to get the python to include pandas. Hopefully someone out there with more knowledge can chime in and provide some hints or suggestions. Then maybe we'll find out what you want to do it quite easy, in which case I'll be excited to learn about it :-) Cheers, Scott p.s. I'm sure you may have read through this before, but just in case (or for people who come across this later): https://www.paraview.org/Wiki/ParaView/Plugin_HowTo On Fri, May 11, 2018 at 12:28 PM, Dennis Conklin > wrote: Scott, Interesting idea and I was not aware of any of that. I should be specific that I need to make an xml Server side plugin for general distribution that needs to call pandas to execute. So I don?t think I can get everyone here to load up that virtual environment and install pandas. I think I?m hearing that pandas for everyone is not available unless I compile here with an external python, right? Thanks Dennis From: Scott Wittenburg [mailto:scott.wittenburg at kitware.com] Sent: Friday, May 11, 2018 1:21 PM To: Dennis Conklin > Cc: Paraview (paraview at paraview.org) > Subject: [EXT] Re: [Paraview] Using Pandas in Paraview v5.4.1 CAUTION: EXTERNAL email. Please think before clicking on any links or attachments. Hello Dennis, Depending on how you want to use pandas within ParaView, one approach that could work involves creating a virtual environment and installing pandas there. Then a couple of lines of python can make modules installed in that virtualenv available from pvpython. See this blog post for more information: https://blog.kitware.com/using-pvpython-and-virtualenv/ Hope this helps, Scott On Fri, May 11, 2018 at 11:11 AM, Dennis Conklin > wrote: All, I need some pandas functions for some filters. Pandas, unfortunately is not a simple library (there is no pands.py) ? it needs to be installed into your version of python as a module. How can I get this in Paraview (hopefully, without compiling from source). Can I install pandas into the python installation included with the PV download? Thanks Dennis _______________________________________________ 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: From sebastien.jourdain at kitware.com Mon May 14 10:49:30 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 14 May 2018 08:49:30 -0600 Subject: [Paraview] ParaViewWeb and multiple windows In-Reply-To: References: Message-ID: // Client viewId setup https://github.com/Kitware/divvy/blob/master/Sources/scatterPlotManager.js#L135-L138 // Client / server ID exchange https://github.com/Kitware/divvy/blob/master/Sources/scatterPlotManager.js#L78-L83 https://github.com/Kitware/divvy/blob/master/Server/scatterplotProtocol.py#L552-L556 On Mon, May 14, 2018 at 8:07 AM Sgouros, Thomas wrote: > Great, thank you. Do you have an example of how to use it on the client > side? > > Thanks, > > -Tom > > On Sun, May 13, 2018 at 5:51 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> You should set the viewId to the VtkRenderer based on which view from the >> server you want to be bound to. >> To retrieve the view Id on the server side, just call on the python side. >> >> view.GetGlobalDAsString() >> >> I may have small typo for the method name, but in either case the number >> you want is the "GlobalID". >> >> HTH, >> >> Seb >> >> On Fri, May 11, 2018 at 4:47 PM Sgouros, Thomas >> wrote: >> >>> Hi All: >>> >>> I have a ParaViewWeb application going with a pvpython back end, and it >>> looks great. I want to show views of multiple datasets in it now. I gather >>> that the layout() methods are not supported in pvpython, so I have to use >>> separate windows. >>> >>> I'm creating the render window on the client with this: >>> >>> const renderer = VtkRenderer.newInstance({ client: model.pvwClient }); >>> >>> I can certainly create two such renderer objects, but I don't see how to >>> link the Render on my pvpython server to one or the other of the client's >>> renderer objects. >>> >>> I assume I've been using some default behavior where my Show() and >>> Update() commands get sent to the one renderer, but how do I direct them to >>> one or the other? >>> >>> Thank you, >>> >>> -Tom >>> >>> _______________________________________________ >>> 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: From cory.quammen at kitware.com Mon May 14 10:50:06 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 14 May 2018 10:50:06 -0400 Subject: [Paraview] Paraview display issue on Windows In-Reply-To: References: Message-ID: On Fri, May 11, 2018 at 1:52 PM Zhu Junxi wrote: > Hello Cory, > > I tried a bunch of different versions and found out that those with Qt5 > does not work while those with Qt4 looks fine (i.e., v5.3 and above does > not work, the latest version that works is v5.2.0 with Qt4). It seems that > it has something to do with the Qt5. I am wondering if other users are > experiencing similar issues with Qt5? > Thanks for checking all the versions. We have run into some issues with Qt5, but I had thought we worked through most of them. This is the first we've encountered with completely transparent render windows and translucent UI, hence I was wondering if there was something unique on your system that modified the graphics environment. > As for add-ons, do you have a list of specific add-ons that you are > particularly suspicious of? My desktop has a bunch of software installed > but they are either work-related (e.g., Matlab) or seemingly harmless > (e.g., steam). BTW, I don't have Nahimic sound driver, which I saw other > people reporting messing up with Qt. > Unfortunately, I do not. We have steam installed on some systems that run ParaView just fine, so I would be surprised if that were the cause. You could always try removing steam and seeing if ParaView versions 5.2+ work, but that may be more than you want to do. You mentioned you have Matlab installed. I believe Matlab ships with Qt and it may have put its Qt location in your system PATH environment variable. Try removing (or modifying) your system PATH environment variable so that ParaView won't find Matlab's Qt instead of the Qt version ParaView ships with. Some folks have run into this problem in the past and modifying the PATH was the solution. Thanks, Cory > > Best, > Junxi > > On Thu, May 10, 2018 at 8:36 PM Cory Quammen > wrote: > >> On Thu, May 10, 2018 at 11:40 AM Zhu Junxi >> wrote: >> >>> Hello Cory, >>> >>> Thank you for such a quick reply. I checked the OpenGL entries and it is >>> indeed using the NVIDIA video card. The OpenGL renderer is listed as >>> GeForce GTX1080/PCIe/SSE2. I search online and although people say my >>> i7-6700k processor has a built-in 530 graphics card, I do not see it in the >>> device manager somehow...... >>> >> >> Okay, thanks for checking. We have encountered a number of issues with >> Intel graphics in the last year or so, but driver updates have mainly >> resolved most of them. That doesn't seem to be the concern here, though. >> >> >>> I have also tried the NVIDIA control panel. I did not find the High >>> performance NVIDIA processer you mentioned in the global settings, but I >>> did change the OpenGL renderer to GTX1080. >>> >> >> That should ensure you are using the GTX1080, but it looks like ParaView >> already was using it. >> >> >>> However, Paraview still cannot display correctly after applying the >>> changes (so does the 3D Slicer). I am wondering if you need any system logs >>> to diagnose this issue and I would be happy to provide them. >>> >> >> I can't think of any system logs that would help. But there are a couple >> things you could try. >> >> 1). Install an older version of ParaView and see if that works. If it >> does, that will help us narrow down possible reasons for the transparency >> you are using. ParaView 4.4 would be a good one to try: >> https://www.paraview.org/download/ >> >> 2). Do you have any add-ons to Windows installed that modify the window >> system in some way? If so, try disabling or uninstalling those. >> >> Thanks, and sorry for the trouble. >> >> Cory >> >> >>> Best, >>> Junxi >>> >>> On Thu, May 10, 2018 at 11:22 AM Cory Quammen >>> wrote: >>> >>>> Junxi, >>>> >>>> Does your system also have an Intel video chip that it may be using? If >>>> so, ParaView may not be using your NVIDIA driver. You can check by going to >>>> the Help -> About ParaView menu item. What do the Open GL entries say? >>>> >>>> To ensure ParaView is using your NVIDIA card, you can try going to the >>>> NVIDIA control panel. Under 3D Settings in the panel on the left, click >>>> on "Manage 3D settings". On the right side, click on the "Global Settings" >>>> tab. Make sure "High-performance NVIDIA processor" is selected. Apply >>>> the changes, then run ParaView again to see if the problem is resolved. >>>> >>>> Hope that helps, >>>> Cory >>>> >>>> On Thu, May 10, 2018 at 10:38 AM Zhu Junxi >>>> wrote: >>>> >>>>> Hello everyone, >>>>> >>>>> I am referred to this mailing list by a developer at the 3D Slicer >>>>> forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and >>>>> both suffered from the same display issue, i.e., the interface of the >>>>> software looks semi-transparent, please see attached picture (in case the >>>>> picture does not show correctly, here is the dropbox link to it: >>>>> https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The >>>>> developer at the 3D Slicer forum said it might be a video card driver issue >>>>> and that I might get more help here. My computer is a desktop, with only >>>>> one video card (GTX1080) and the driver version is 397.64 from the Geforce >>>>> Experience software. The operating system is Windows 10 64 bit with latest >>>>> April Update installed (I haven't tested Paraview before that...) >>>>> >>>>> >>>>> >>>>> It also happens on 3D slicer nightly build (05/02) (in case it does >>>>> not show correctly, here is the dropbox link to the picture: >>>>> https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): >>>>> >>>>> >>>>> BTW, when I first got Paraview v5.5 installed, it threw an OpenGL >>>>> driver error upon launching. Then I updated the video card driver to the >>>>> latest one and now the error is gone but the interface still seems >>>>> semi-transparent..... >>>>> >>>>> Any help is greatly appreciated! >>>>> >>>>> Best, >>>>> Junxi >>>>> >>>> _______________________________________________ >>>>> 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 >>>>> >>>> >>>> >>>> -- >>>> Cory Quammen >>>> Staff R&D Engineer >>>> Kitware, Inc. >>>> >>> >> >> -- >> Cory Quammen >> Staff R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Kratz at ga.com Mon May 14 12:00:55 2018 From: Robert.Kratz at ga.com (Kratz, Robert) Date: Mon, 14 May 2018 16:00:55 +0000 Subject: [Paraview] -EXT-Re: Paraview display issue on Windows In-Reply-To: References: Message-ID: Hello, Have the same problems here, 5.2 works fine, 5.5 not. The proposed remedies don?t work on my machine. I have windows 7, NVIDIA Quadro K2200 with latest drivers. Matlab was never installed; in my path I cannot find any reference to Qt (?) Best regards, Robert From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Cory Quammen Sent: 14 May, 2018 07:50 To: ??? Cc: paraview at public.kitware.com Subject: -EXT-Re: [Paraview] Paraview display issue on Windows On Fri, May 11, 2018 at 1:52 PM Zhu Junxi > wrote: Hello Cory, I tried a bunch of different versions and found out that those with Qt5 does not work while those with Qt4 looks fine (i.e., v5.3 and above does not work, the latest version that works is v5.2.0 with Qt4). It seems that it has something to do with the Qt5. I am wondering if other users are experiencing similar issues with Qt5? Thanks for checking all the versions. We have run into some issues with Qt5, but I had thought we worked through most of them. This is the first we've encountered with completely transparent render windows and translucent UI, hence I was wondering if there was something unique on your system that modified the graphics environment. As for add-ons, do you have a list of specific add-ons that you are particularly suspicious of? My desktop has a bunch of software installed but they are either work-related (e.g., Matlab) or seemingly harmless (e.g., steam). BTW, I don't have Nahimic sound driver, which I saw other people reporting messing up with Qt. Unfortunately, I do not. We have steam installed on some systems that run ParaView just fine, so I would be surprised if that were the cause. You could always try removing steam and seeing if ParaView versions 5.2+ work, but that may be more than you want to do. You mentioned you have Matlab installed. I believe Matlab ships with Qt and it may have put its Qt location in your system PATH environment variable. Try removing (or modifying) your system PATH environment variable so that ParaView won't find Matlab's Qt instead of the Qt version ParaView ships with. Some folks have run into this problem in the past and modifying the PATH was the solution. Thanks, Cory Best, Junxi On Thu, May 10, 2018 at 8:36 PM Cory Quammen > wrote: On Thu, May 10, 2018 at 11:40 AM Zhu Junxi > wrote: Hello Cory, Thank you for such a quick reply. I checked the OpenGL entries and it is indeed using the NVIDIA video card. The OpenGL renderer is listed as GeForce GTX1080/PCIe/SSE2. I search online and although people say my i7-6700k processor has a built-in 530 graphics card, I do not see it in the device manager somehow...... Okay, thanks for checking. We have encountered a number of issues with Intel graphics in the last year or so, but driver updates have mainly resolved most of them. That doesn't seem to be the concern here, though. I have also tried the NVIDIA control panel. I did not find the High performance NVIDIA processer you mentioned in the global settings, but I did change the OpenGL renderer to GTX1080. That should ensure you are using the GTX1080, but it looks like ParaView already was using it. However, Paraview still cannot display correctly after applying the changes (so does the 3D Slicer). I am wondering if you need any system logs to diagnose this issue and I would be happy to provide them. I can't think of any system logs that would help. But there are a couple things you could try. 1). Install an older version of ParaView and see if that works. If it does, that will help us narrow down possible reasons for the transparency you are using. ParaView 4.4 would be a good one to try: https://www.paraview.org/download/ 2). Do you have any add-ons to Windows installed that modify the window system in some way? If so, try disabling or uninstalling those. Thanks, and sorry for the trouble. Cory Best, Junxi On Thu, May 10, 2018 at 11:22 AM Cory Quammen > wrote: Junxi, Does your system also have an Intel video chip that it may be using? If so, ParaView may not be using your NVIDIA driver. You can check by going to the Help -> About ParaView menu item. What do the Open GL entries say? To ensure ParaView is using your NVIDIA card, you can try going to the NVIDIA control panel. Under 3D Settings in the panel on the left, click on "Manage 3D settings". On the right side, click on the "Global Settings" tab. Make sure "High-performance NVIDIA processor" is selected. Apply the changes, then run ParaView again to see if the problem is resolved. Hope that helps, Cory On Thu, May 10, 2018 at 10:38 AM Zhu Junxi > wrote: Hello everyone, I am referred to this mailing list by a developer at the 3D Slicer forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and both suffered from the same display issue, i.e., the interface of the software looks semi-transparent, please see attached picture (in case the picture does not show correctly, here is the dropbox link to it: https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer at the 3D Slicer forum said it might be a video card driver issue and that I might get more help here. My computer is a desktop, with only one video card (GTX1080) and the driver version is 397.64 from the Geforce Experience software. The operating system is Windows 10 64 bit with latest April Update installed (I haven't tested Paraview before that...) [https://discourse-cdn-sjc2.com/standard17/uploads/slicer/optimized/2X/f/f4fb406bea53dee59ca30e2c246f4bc965b6de7d_1_690x478.jpg] It also happens on 3D slicer nightly build (05/02) (in case it does not show correctly, here is the dropbox link to the picture: https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): [https://discourse-cdn-sjc2.com/standard17/uploads/slicer/optimized/2X/b/bd18ca06271d1d3e7f857c357f886e4722b92b24_1_690x432.png] BTW, when I first got Paraview v5.5 installed, it threw an OpenGL driver error upon launching. Then I updated the video card driver to the latest one and now the error is gone but the interface still seems semi-transparent..... Any help is greatly appreciated! Best, Junxi _______________________________________________ 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 -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bak at lanl.gov Mon May 14 17:17:37 2018 From: bak at lanl.gov (Kashiwa, Bucky) Date: Mon, 14 May 2018 21:17:37 +0000 Subject: [Paraview] v5.5.0 SuperBuild will Build but won't install Message-ID: There is probably something silly on my part, but my varied attempts at a superbuild in v5.5.0 typically build alright, but the install part fails for reasons that are over my head. A typical result is patched below (for an offline build on v5.5.0-RC2); the cmake intial cache file is attached, and its output is also attached. Other details follow. (The paraview-superbuild directory has used: git fetch origin; git checkout master; git submodule update.) Is there something obvious that I have done wrong? Thanks much, B. Kashiwa +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + The environment is this: Currently Loaded Modules: 1) friendly-testing 2) gcc/6.4.0 3) openmpi/2.1.2 4) cmake/3.10.2 5) git/2.14.1 and the cmake command is: setenv MPIROOT /usr/projects/hpcsoft/toss3/snow/openmpi/2.1.2-gcc-6.4.0 ; \ cmake \ -C cmake_GNU.txt \ -D CMAKE_INSTALL_PREFIX:PATH=/usr/projects/pv_dev/SB-5.5.0-SN \ -D LLVM_PREFIX:PATH=/usr/lib64/llvm \ -D MPI_CXX_COMPILER:FILEPATH=$MPIROOT/bin/mpicxx \ -D MPI_CXX_INCLUDE_PATH:PATH=$MPIROOT/include \ -D MPI_C_COMPILER:FILEPATH=$MPIROOT/bin/mpicc \ -D MPI_C_INCLUDE_PATH:PATH=$MPIROOT/include \ -D MPI_C_LIBRARIES:FILEPATH=$MPIROOT/lib/libmpi.so \ -D paraview_SOURCE_SELECTION="source" \ -D paraview_SOURCE_DIR:PATH=/usr/projects/pv_dev/ParaView-v5.5.0-RC2 \ ../paraview-superbuild the output from which is also attached. Files at the download location (from previous online builds) are: [sn-fey2 SB-5.5.0-SN]$ ls /usr/projects/pv_dev/PV_superbuild_downloads/ boost_1_59_0.tar.bz2 genericio-master-a15ffc76cfa9f9674f933e8cb5ffc97a97fd7b27.zip llvm-5.0.1.src.tar.xz Python-2.7.11.tgz bzip2-1.0.6.tar.gz hdf5-1.8.13.tar.gz mesa-17.1.4.tar.xz Python-2.7.14.tar.xz embree-2.17.0.tar.gz ispc-v1.9.1-linux.tar.gz mesa-18.0.0-rc4.tar.xz silo-4.10.2-bsd-smalltest.tar.gz expat-2.2.5.tar.bz2 ispc-v1.9.2-linux.tar.gz netcdf-4.3.2.modified.tar.gz szip-2.1.tar.gz ffmpeg-2.3.3.tar.bz2 libpng-1.6.23.tar.gz ospray-1.3.0.tar.gz tbb2018_20171205oss_lin.tgz freetype-2.4.8.tar.gz libxml2-2.7.8.tar.gz ospray-1.4.0.tar.gz tbb44_20150728oss_lin_0.tgz freetype-2.8.1.tar.bz2 llvm-4.0.0.src.tar.xz OSPRayMaterials.tar.gz =========================================================================== ============ last of the make output: . . . [100%] Built target paraview Install the project... -- Install configuration: "Release" CTEST_FULL_OUTPUT -- Configuring done -- Generating done -- Build files have been written to: /yellow/usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/build/cpack/ paraview/TGZ/install gmake[4]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. Install the project... -- Install configuration: "Release" Copying /usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/build/install/lib/l ibvtkCommonMath-pv5.5.so.1 ==> lib Creating symlink to lib/libvtkCommonMath-pv5.5.so.1 ==> libvtkCommonMath-pv5.5.so Copying /usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/build/install/lib/l ibvtkFiltersCore-pv5.5.so.1 ==> lib Creating symlink to lib/libvtkFiltersCore-pv5.5.so.1 ==> libvtkFiltersCore-pv5.5.so Copying /usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/build/install/lib/l ibvtkFiltersGeneral-pv5.5.so.1 ==> lib Creating symlink to lib/libvtkFiltersGeneral-pv5.5.so.1 ==> libvtkFiltersGeneral-pv5.5.so Copying /usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/build/install/lib/l ibvtkFiltersSources-pv5.5.so.1 ==> lib Creating symlink to lib/libvtkFiltersSources-pv5.5.so.1 ==> libvtkFiltersSources-pv5.5.so Copying /usr/projects/pv_dev/Build-5.5.0-SN/install/lib/libgcc_s.so.1 ==> lib CMake Error at cmake_install.cmake:52 (message): Failed to install pvdataserver: /sbin/ldconfig: Path `/usr/lib64/ldapotp' given more than once /sbin/ldconfig: Path `/lib64' given more than once /sbin/ldconfig: Can't stat /libx32: No such file or directory /sbin/ldconfig: Path `/usr/lib' given more than once /sbin/ldconfig: Path `/usr/lib64' given more than once /sbin/ldconfig: Can't stat /usr/libx32: No such file or directory Traceback (most recent call last): File "/usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/src/superbuild/cma ke/scripts/fixup_bundle.unix.py", line 708, in main(sys.argv[1:]) File "/usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/src/superbuild/cma ke/scripts/fixup_bundle.unix.py", line 700, in main _install_binary(main_exe, is_excluded, bundle_dest, opts.libdir, installed, manifest, opts.source, dry_run=opts.dry_run) File "/usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/src/superbuild/cma ke/scripts/fixup_bundle.unix.py", line 603, in _install_binary installed[dep.path] = (dep, copy_library(bundle_dest, dep_libdir, dep, sources, dry_run=dry_run)) File "/usr/projects/pv_dev/Build-5.5.0-SN/superbuild/paraview/src/superbuild/cma ke/scripts/fixup_bundle.unix.py", line 429, in copy_library shutil.copy(library.path, destination) File "/var/lib/perceus/vnfs/asc-fe/rootfs/usr/lib64/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/var/lib/perceus/vnfs/asc-fe/rootfs/usr/lib64/python2.7/shutil.py", line 69, in copyfile raise Error("`%s` and `%s` are the same file" % (src, dst)) shutil.Error: `/usr/projects/pv_dev/Build-5.5.0-SN/install/lib/libgcc_s.so.1` and `/usr/projects/pv_dev/Build-5.5.0-SN/install/lib/libgcc_s.so.1` are the same file gmake[4]: *** [install] Error 1 CMake Error at superbuild/cmake_install.cmake:61 (message): Failed to install the paraview/TGZ package. Call Stack (most recent call first): cmake_install.cmake:42 (include) gmake[3]: *** [install] Error 1 CMake Error at /usr/projects/pv_dev/Build-5.5.0-SN/superbuild/sb-paraview-install.cmake:47 (message): Failed with exit code 2 make[2]: *** [superbuild/paraview/stamp/paraview-install] Error 1 make[1]: *** [superbuild/CMakeFiles/paraview.dir/all] Error 2 make: *** [all] Error 2 =======================================================================73 <>Bucky Kashiwa PhD, PE <> Post: MS B216, Los Alamos, NM 87545 <> <> Ofc: TA3-SM123-RM276 <>Email: bak at lanl.gov, kashiwa at qwest.net <> <>Voice: 505-667-8812 <> Fax: 505-665-5926 <> <> Home: 505-988-7332 <> Cell: 505-795-5581 <> =======================================================================73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/applefile Size: 535288 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cmake_GNU.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cmake-output.txt URL: From utkarsh.ayachit at kitware.com Mon May 14 18:32:12 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 14 May 2018 18:32:12 -0400 Subject: [Paraview] -EXT-Re: Paraview display issue on Windows In-Reply-To: References: Message-ID: I suspect all these issues relate to QOpenGLWidget related changes to ParaView. We are working on a update to rework that change, it would be worth trying out the nightly binaries once those changes get merged in. FYI the work is happening here: https://gitlab.kitware.com/paraview/paraview/merge_requests/2117 On Mon, May 14, 2018 at 12:10 PM Kratz, Robert wrote: > Hello, > Have the same problems here, 5.2 works fine, 5.5 not. > The proposed remedies don?t work on my machine. > I have windows 7, NVIDIA Quadro K2200 with latest drivers. > Matlab was never installed; in my path I cannot find any reference to Qt (?) > Best regards, > Robert > From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Cory Quammen > Sent: 14 May, 2018 07:50 > To: ??? > Cc: paraview at public.kitware.com > Subject: -EXT-Re: [Paraview] Paraview display issue on Windows > On Fri, May 11, 2018 at 1:52 PM Zhu Junxi wrote: > Hello Cory, > I tried a bunch of different versions and found out that those with Qt5 does not work while those with Qt4 looks fine (i.e., v5.3 and above does not work, the latest version that works is v5.2.0 with Qt4). It seems that it has something to do with the Qt5. I am wondering if other users are experiencing similar issues with Qt5? > Thanks for checking all the versions. We have run into some issues with Qt5, but I had thought we worked through most of them. This is the first we've encountered with completely transparent render windows and translucent UI, hence I was wondering if there was something unique on your system that modified the graphics environment. > As for add-ons, do you have a list of specific add-ons that you are particularly suspicious of? My desktop has a bunch of software installed but they are either work-related (e.g., Matlab) or seemingly harmless (e.g., steam). BTW, I don't have Nahimic sound driver, which I saw other people reporting messing up with Qt. > Unfortunately, I do not. We have steam installed on some systems that run ParaView just fine, so I would be surprised if that were the cause. You could always try removing steam and seeing if ParaView versions 5.2+ work, but that may be more than you want to do. > You mentioned you have Matlab installed. I believe Matlab ships with Qt and it may have put its Qt location in your system PATH environment variable. Try removing (or modifying) your system PATH environment variable so that ParaView won't find Matlab's Qt instead of the Qt version ParaView ships with. Some folks have run into this problem in the past and modifying the PATH was the solution. > Thanks, > Cory > Best, > Junxi > On Thu, May 10, 2018 at 8:36 PM Cory Quammen wrote: > On Thu, May 10, 2018 at 11:40 AM Zhu Junxi wrote: > Hello Cory, > Thank you for such a quick reply. I checked the OpenGL entries and it is indeed using the NVIDIA video card. The OpenGL renderer is listed as GeForce GTX1080/PCIe/SSE2. I search online and although people say my i7-6700k processor has a built-in 530 graphics card, I do not see it in the device manager somehow...... > Okay, thanks for checking. We have encountered a number of issues with Intel graphics in the last year or so, but driver updates have mainly resolved most of them. That doesn't seem to be the concern here, though. > I have also tried the NVIDIA control panel. I did not find the High performance NVIDIA processer you mentioned in the global settings, but I did change the OpenGL renderer to GTX1080. > That should ensure you are using the GTX1080, but it looks like ParaView already was using it. > However, Paraview still cannot display correctly after applying the changes (so does the 3D Slicer). I am wondering if you need any system logs to diagnose this issue and I would be happy to provide them. > I can't think of any system logs that would help. But there are a couple things you could try. > 1). Install an older version of ParaView and see if that works. If it does, that will help us narrow down possible reasons for the transparency you are using. ParaView 4.4 would be a good one to try: https://www.paraview.org/download/ > 2). Do you have any add-ons to Windows installed that modify the window system in some way? If so, try disabling or uninstalling those. > Thanks, and sorry for the trouble. > Cory > Best, > Junxi > On Thu, May 10, 2018 at 11:22 AM Cory Quammen wrote: > Junxi, > Does your system also have an Intel video chip that it may be using? If so, ParaView may not be using your NVIDIA driver. You can check by going to the Help -> About ParaView menu item. What do the Open GL entries say? > To ensure ParaView is using your NVIDIA card, you can try going to the NVIDIA control panel. Under 3D Settings in the panel on the left, click on "Manage 3D settings". On the right side, click on the "Global Settings" tab. Make sure "High-performance NVIDIA processor" is selected. Apply the changes, then run ParaView again to see if the problem is resolved. > Hope that helps, > Cory > On Thu, May 10, 2018 at 10:38 AM Zhu Junxi wrote: > Hello everyone, > I am referred to this mailing list by a developer at the 3D Slicer forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and both suffered from the same display issue, i.e., the interface of the software looks semi-transparent, please see attached picture (in case the picture does not show correctly, here is the dropbox link to it: https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The developer at the 3D Slicer forum said it might be a video card driver issue and that I might get more help here. My computer is a desktop, with only one video card (GTX1080) and the driver version is 397.64 from the Geforce Experience software. The operating system is Windows 10 64 bit with latest April Update installed (I haven't tested Paraview before that...) > It also happens on 3D slicer nightly build (05/02) (in case it does not show correctly, here is the dropbox link to the picture: https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): > BTW, when I first got Paraview v5.5 installed, it threw an OpenGL driver error upon launching. Then I updated the video card driver to the latest one and now the error is gone but the interface still seems semi-transparent..... > Any help is greatly appreciated! > Best, > Junxi > _______________________________________________ > 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 > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > _______________________________________________ > 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 From wascott at sandia.gov Mon May 14 21:05:08 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 01:05:08 +0000 Subject: [Paraview] pvtm file format Message-ID: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> What is a .pvtm file? How can I make one with sources? Thanks, Alan -------------------------------------------------------- W. Alan Scott ParaView Support Manager SAIC Sandia National Laboratories, MS 0807 Org 9326 - Building 880 A1-K (505) 284-0932 FAX (505) 284-5619 "When the facts change, I change my mind. What do you do, sir?" John Maynard Keynes --------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Mon May 14 21:07:35 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 14 May 2018 21:07:35 -0400 Subject: [Paraview] pvtm file format In-Reply-To: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> Message-ID: I am not sure. A quick grep through the code in ParaView/VTK doesn't yield a hit. What's the context in which you encountered this? Utkarsh On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < paraview at public.kitware.com> wrote: > What is a .pvtm file? How can I make one with sources? > > > > Thanks, > > > > Alan > > > > -------------------------------------------------------- > > W. Alan Scott > > ParaView Support Manager > > > > SAIC > > Sandia National Laboratories, MS 0807 > > Org 9326 - Building 880 A1-K > > (505) 284-0932 FAX (505) 284-5619 > > > > ?When the facts change, I change my mind. What do you do, sir?? > > John Maynard Keynes > > > > --------------------------------------------------------- > > > _______________________________________________ > 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: From wascott at sandia.gov Mon May 14 21:14:12 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 01:14:12 +0000 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> Message-ID: I?ve never heard of these files either. From my user: I am writing planes of data in parallel with XMLMultiBlockWriter and it is generating *pvtm files. However, paraview doesn?t seem to support this file format for reading? I am trying to visualize the results and I can read the individual *vtp files, but it doesn?t accept the parallel file. Then: I will try to put something together for you soon. I am writing this dataset from a slice while running catalyst. I found a work around by using the MergeBlocks filter on the slice and then dumping that as an unstructured grid via XMLPUnstructuredGridWriter. Back to me. ?. I am writing this dataset from a slice while running catalyst.? So, I figured I would start by asking if this is a Catalyst/ ParaView/ VTK file format (that I had never heard of)... I have asked user for a dataset. Thanks, Alan From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Monday, May 14, 2018 7:08 PM To: Scott, W Alan Cc: ParaView Subject: [EXTERNAL] Re: [Paraview] pvtm file format I am not sure. A quick grep through the code in ParaView/VTK doesn't yield a hit. What's the context in which you encountered this? Utkarsh On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView > wrote: What is a .pvtm file? How can I make one with sources? Thanks, Alan -------------------------------------------------------- W. Alan Scott ParaView Support Manager SAIC Sandia National Laboratories, MS 0807 Org 9326 - Building 880 A1-K (505) 284-0932 FAX (505) 284-5619 ?When the facts change, I change my mind. What do you do, sir?? John Maynard Keynes --------------------------------------------------------- _______________________________________________ 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: From markzhumi1805 at gmail.com Mon May 14 21:21:57 2018 From: markzhumi1805 at gmail.com (Zhu Junxi) Date: Mon, 14 May 2018 21:21:57 -0400 Subject: [Paraview] Paraview display issue on Windows In-Reply-To: References: Message-ID: Hello Cory, I checked the system path on my computer and I couldn't find anything related to Qt. I even tried removing Matlab-related entries but it didn't work either. Is there anything else that I could try? Best, Junxi On Mon, May 14, 2018 at 10:50 AM Cory Quammen wrote: > On Fri, May 11, 2018 at 1:52 PM Zhu Junxi wrote: > >> Hello Cory, >> >> I tried a bunch of different versions and found out that those with Qt5 >> does not work while those with Qt4 looks fine (i.e., v5.3 and above does >> not work, the latest version that works is v5.2.0 with Qt4). It seems that >> it has something to do with the Qt5. I am wondering if other users are >> experiencing similar issues with Qt5? >> > > Thanks for checking all the versions. We have run into some issues with > Qt5, but I had thought we worked through most of them. This is the first > we've encountered with completely transparent render windows and > translucent UI, hence I was wondering if there was something unique on your > system that modified the graphics environment. > > >> As for add-ons, do you have a list of specific add-ons that you are >> particularly suspicious of? My desktop has a bunch of software installed >> but they are either work-related (e.g., Matlab) or seemingly harmless >> (e.g., steam). BTW, I don't have Nahimic sound driver, which I saw other >> people reporting messing up with Qt. >> > > Unfortunately, I do not. We have steam installed on some systems that run > ParaView just fine, so I would be surprised if that were the cause. You > could always try removing steam and seeing if ParaView versions 5.2+ work, > but that may be more than you want to do. > > You mentioned you have Matlab installed. I believe Matlab ships with Qt > and it may have put its Qt location in your system PATH environment > variable. Try removing (or modifying) your system PATH environment variable > so that ParaView won't find Matlab's Qt instead of the Qt version ParaView > ships with. Some folks have run into this problem in the past and modifying > the PATH was the solution. > > Thanks, > Cory > > >> >> Best, >> Junxi >> >> On Thu, May 10, 2018 at 8:36 PM Cory Quammen >> wrote: >> >>> On Thu, May 10, 2018 at 11:40 AM Zhu Junxi >>> wrote: >>> >>>> Hello Cory, >>>> >>>> Thank you for such a quick reply. I checked the OpenGL entries and it >>>> is indeed using the NVIDIA video card. The OpenGL renderer is listed as >>>> GeForce GTX1080/PCIe/SSE2. I search online and although people say my >>>> i7-6700k processor has a built-in 530 graphics card, I do not see it in the >>>> device manager somehow...... >>>> >>> >>> Okay, thanks for checking. We have encountered a number of issues with >>> Intel graphics in the last year or so, but driver updates have mainly >>> resolved most of them. That doesn't seem to be the concern here, though. >>> >>> >>>> I have also tried the NVIDIA control panel. I did not find the High >>>> performance NVIDIA processer you mentioned in the global settings, but I >>>> did change the OpenGL renderer to GTX1080. >>>> >>> >>> That should ensure you are using the GTX1080, but it looks like ParaView >>> already was using it. >>> >>> >>>> However, Paraview still cannot display correctly after applying the >>>> changes (so does the 3D Slicer). I am wondering if you need any system logs >>>> to diagnose this issue and I would be happy to provide them. >>>> >>> >>> I can't think of any system logs that would help. But there are a couple >>> things you could try. >>> >>> 1). Install an older version of ParaView and see if that works. If it >>> does, that will help us narrow down possible reasons for the transparency >>> you are using. ParaView 4.4 would be a good one to try: >>> https://www.paraview.org/download/ >>> >>> 2). Do you have any add-ons to Windows installed that modify the window >>> system in some way? If so, try disabling or uninstalling those. >>> >>> Thanks, and sorry for the trouble. >>> >>> Cory >>> >>> >>>> Best, >>>> Junxi >>>> >>>> On Thu, May 10, 2018 at 11:22 AM Cory Quammen >>>> wrote: >>>> >>>>> Junxi, >>>>> >>>>> Does your system also have an Intel video chip that it may be using? >>>>> If so, ParaView may not be using your NVIDIA driver. You can check by going >>>>> to the Help -> About ParaView menu item. What do the Open GL entries say? >>>>> >>>>> To ensure ParaView is using your NVIDIA card, you can try going to >>>>> the NVIDIA control panel. Under 3D Settings in the panel on the left, click >>>>> on "Manage 3D settings". On the right side, click on the "Global Settings" >>>>> tab. Make sure "High-performance NVIDIA processor" is selected. Apply >>>>> the changes, then run ParaView again to see if the problem is >>>>> resolved. >>>>> >>>>> Hope that helps, >>>>> Cory >>>>> >>>>> On Thu, May 10, 2018 at 10:38 AM Zhu Junxi >>>>> wrote: >>>>> >>>>>> Hello everyone, >>>>>> >>>>>> I am referred to this mailing list by a developer at the 3D Slicer >>>>>> forum. I installed the Paraview v5.5 (and nightly build of 3D Slicer) and >>>>>> both suffered from the same display issue, i.e., the interface of the >>>>>> software looks semi-transparent, please see attached picture (in case the >>>>>> picture does not show correctly, here is the dropbox link to it: >>>>>> https://www.dropbox.com/s/1bveei3gjg01svb/bbb.png?dl=0). The >>>>>> developer at the 3D Slicer forum said it might be a video card driver issue >>>>>> and that I might get more help here. My computer is a desktop, with only >>>>>> one video card (GTX1080) and the driver version is 397.64 from the Geforce >>>>>> Experience software. The operating system is Windows 10 64 bit with latest >>>>>> April Update installed (I haven't tested Paraview before that...) >>>>>> >>>>>> >>>>>> >>>>>> It also happens on 3D slicer nightly build (05/02) (in case it does >>>>>> not show correctly, here is the dropbox link to the picture: >>>>>> https://www.dropbox.com/s/dqj5yh0hcj5ma7v/aaa.png?dl=0): >>>>>> >>>>>> >>>>>> BTW, when I first got Paraview v5.5 installed, it threw an OpenGL >>>>>> driver error upon launching. Then I updated the video card driver to the >>>>>> latest one and now the error is gone but the interface still seems >>>>>> semi-transparent..... >>>>>> >>>>>> Any help is greatly appreciated! >>>>>> >>>>>> Best, >>>>>> Junxi >>>>>> >>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cory Quammen >>>>> Staff R&D Engineer >>>>> Kitware, Inc. >>>>> >>>> >>> >>> -- >>> Cory Quammen >>> Staff R&D Engineer >>> Kitware, Inc. >>> >> > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Mon May 14 21:30:34 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Mon, 14 May 2018 21:30:34 -0400 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> Message-ID: The .pvtm is the same as the .vtm file, just a redundant file extension. Really, the .vtm format is parallel/partition aware where as the other .vt* extensions have a partitioned .pvt* format. I'm a bit surprised that PV doesn't associate the .pvtm file with multiblock datasets. If you try to read in a .pvtm file though you just need to properly associate it with the XML multiblock data reader. On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView < paraview at public.kitware.com> wrote: > I?ve never heard of these files either. From my user: > > > > > > I am writing planes of data in parallel with XMLMultiBlockWriter and it is > generating *pvtm files. However, paraview doesn?t seem to support this > file format for reading? I am trying to visualize the results and I can > read the individual *vtp files, but it doesn?t accept the parallel file. > > > > Then: > > > > I will try to put something together for you soon. I am writing this > dataset from a slice while running catalyst. I found a work around by > using the MergeBlocks filter on the slice and then dumping that as an > unstructured grid via XMLPUnstructuredGridWriter. > > > > Back to me. > > > > ?. I am writing this dataset from a slice while running catalyst.? So, I > figured I would start by asking if this is a Catalyst/ ParaView/ VTK file > format (that I had never heard of)... I have asked user for a dataset. > > > > Thanks, > > > > Alan > > > > > > *From:* Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > *Sent:* Monday, May 14, 2018 7:08 PM > *To:* Scott, W Alan > *Cc:* ParaView > *Subject:* [EXTERNAL] Re: [Paraview] pvtm file format > > > > I am not sure. A quick grep through the code in ParaView/VTK doesn't yield > a hit. What's the context in which you encountered this? > > > > Utkarsh > > > > On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > What is a .pvtm file? How can I make one with sources? > > > > Thanks, > > > > Alan > > > > -------------------------------------------------------- > > W. Alan Scott > > ParaView Support Manager > > > > SAIC > > Sandia National Laboratories, MS 0807 > > Org 9326 - Building 880 A1-K > > (505) 284-0932 FAX (505) 284-5619 > > > > ?When the facts change, I change my mind. What do you do, sir?? > > John Maynard Keynes > > > > --------------------------------------------------------- > > > > _______________________________________________ > 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 > > _______________________________________________ > 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: From wascott at sandia.gov Mon May 14 21:37:51 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 01:37:51 +0000 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> Message-ID: <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my head around same. Let?s start with a few questions. Where is the .pvtm file format documented? Google doesn?t know... Next, why have two redundant file formats? One should be deprecated. Why can Catalyst write this file format? And last, of course, why can?t ParaView read it? Alan From: Andy Bauer [mailto:andy.bauer at kitware.com] Sent: Monday, May 14, 2018 7:31 PM To: Scott, W Alan Cc: Ayachit, Utkarsh (External Contacts) ; Paraview (paraview at paraview.org) Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format The .pvtm is the same as the .vtm file, just a redundant file extension. Really, the .vtm format is parallel/partition aware where as the other .vt* extensions have a partitioned .pvt* format. I'm a bit surprised that PV doesn't associate the .pvtm file with multiblock datasets. If you try to read in a .pvtm file though you just need to properly associate it with the XML multiblock data reader. On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView > wrote: I?ve never heard of these files either. From my user: I am writing planes of data in parallel with XMLMultiBlockWriter and it is generating *pvtm files. However, paraview doesn?t seem to support this file format for reading? I am trying to visualize the results and I can read the individual *vtp files, but it doesn?t accept the parallel file. Then: I will try to put something together for you soon. I am writing this dataset from a slice while running catalyst. I found a work around by using the MergeBlocks filter on the slice and then dumping that as an unstructured grid via XMLPUnstructuredGridWriter. Back to me. ?. I am writing this dataset from a slice while running catalyst.? So, I figured I would start by asking if this is a Catalyst/ ParaView/ VTK file format (that I had never heard of)... I have asked user for a dataset. Thanks, Alan From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Monday, May 14, 2018 7:08 PM To: Scott, W Alan > Cc: ParaView > Subject: [EXTERNAL] Re: [Paraview] pvtm file format I am not sure. A quick grep through the code in ParaView/VTK doesn't yield a hit. What's the context in which you encountered this? Utkarsh On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView > wrote: What is a .pvtm file? How can I make one with sources? Thanks, Alan -------------------------------------------------------- W. Alan Scott ParaView Support Manager SAIC Sandia National Laboratories, MS 0807 Org 9326 - Building 880 A1-K (505) 284-0932 FAX (505) 284-5619 ?When the facts change, I change my mind. What do you do, sir?? John Maynard Keynes --------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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: From thomas_sgouros at brown.edu Tue May 15 00:43:55 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Mon, 14 May 2018 21:43:55 -0700 Subject: [Paraview] ParaViewWeb and multiple windows In-Reply-To: References: Message-ID: Great, thank you. -Tom On Mon, May 14, 2018 at 7:49 AM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > // Client viewId setup > https://github.com/Kitware/divvy/blob/master/Sources/ > scatterPlotManager.js#L135-L138 > > // Client / server ID exchange > https://github.com/Kitware/divvy/blob/master/Sources/ > scatterPlotManager.js#L78-L83 > https://github.com/Kitware/divvy/blob/master/Server/ > scatterplotProtocol.py#L552-L556 > > On Mon, May 14, 2018 at 8:07 AM Sgouros, Thomas > wrote: > >> Great, thank you. Do you have an example of how to use it on the client >> side? >> >> Thanks, >> >> -Tom >> >> On Sun, May 13, 2018 at 5:51 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> You should set the viewId to the VtkRenderer based on which view from >>> the server you want to be bound to. >>> To retrieve the view Id on the server side, just call on the python >>> side. >>> >>> view.GetGlobalDAsString() >>> >>> I may have small typo for the method name, but in either case the number >>> you want is the "GlobalID". >>> >>> HTH, >>> >>> Seb >>> >>> On Fri, May 11, 2018 at 4:47 PM Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> Hi All: >>>> >>>> I have a ParaViewWeb application going with a pvpython back end, and it >>>> looks great. I want to show views of multiple datasets in it now. I gather >>>> that the layout() methods are not supported in pvpython, so I have to use >>>> separate windows. >>>> >>>> I'm creating the render window on the client with this: >>>> >>>> const renderer = VtkRenderer.newInstance({ client: model.pvwClient }); >>>> >>>> I can certainly create two such renderer objects, but I don't see how >>>> to link the Render on my pvpython server to one or the other of the >>>> client's renderer objects. >>>> >>>> I assume I've been using some default behavior where my Show() and >>>> Update() commands get sent to the one renderer, but how do I direct them to >>>> one or the other? >>>> >>>> Thank you, >>>> >>>> -Tom >>>> >>>> _______________________________________________ >>>> 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: From andy.bauer at kitware.com Tue May 15 10:32:48 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 15 May 2018 10:32:48 -0400 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> Message-ID: Hi Alan, I wouldn't describe it as a redundant file format, just a redundant file extension (like ExodusII with .e, .ex2, etc.). Actually, looking through the PV and VTK source code, like Utkarsh did before, there doesn't look to be anything that refers to .pvtm so maybe I'm just remembering things wrong here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it does seem like at one time we used the .pvtm file extension but maybe that was by accident though. As for writing out files from Catalyst, or even from ParaView, a user can select the writer and specify whatever they want for the file extension. Maybe that's where the issue arose. Best, Andy On Mon, May 14, 2018 at 9:37 PM Scott, W Alan wrote: > Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my > head around same. > > > > Let?s start with a few questions. Where is the .pvtm file format > documented? Google doesn?t know... Next, why have two redundant file > formats? One should be deprecated. Why can Catalyst write this file > format? And last, of course, why can?t ParaView read it? > > > > Alan > > > > *From:* Andy Bauer [mailto:andy.bauer at kitware.com] > *Sent:* Monday, May 14, 2018 7:31 PM > *To:* Scott, W Alan > *Cc:* Ayachit, Utkarsh (External Contacts) ; > Paraview (paraview at paraview.org) > *Subject:* Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > The .pvtm is the same as the .vtm file, just a redundant file extension. > Really, the .vtm format is parallel/partition aware where as the other .vt* > extensions have a partitioned .pvt* format. > > I'm a bit surprised that PV doesn't associate the .pvtm file with > multiblock datasets. If you try to read in a .pvtm file though you just > need to properly associate it with the XML multiblock data reader. > > > > On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > I?ve never heard of these files either. From my user: > > > > > > I am writing planes of data in parallel with XMLMultiBlockWriter and it is > generating *pvtm files. However, paraview doesn?t seem to support this > file format for reading? I am trying to visualize the results and I can > read the individual *vtp files, but it doesn?t accept the parallel file. > > > > Then: > > > > I will try to put something together for you soon. I am writing this > dataset from a slice while running catalyst. I found a work around by > using the MergeBlocks filter on the slice and then dumping that as an > unstructured grid via XMLPUnstructuredGridWriter. > > > > Back to me. > > > > ?. I am writing this dataset from a slice while running catalyst.? So, I > figured I would start by asking if this is a Catalyst/ ParaView/ VTK file > format (that I had never heard of)... I have asked user for a dataset. > > > > Thanks, > > > > Alan > > > > > > *From:* Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > *Sent:* Monday, May 14, 2018 7:08 PM > *To:* Scott, W Alan > *Cc:* ParaView > *Subject:* [EXTERNAL] Re: [Paraview] pvtm file format > > > > I am not sure. A quick grep through the code in ParaView/VTK doesn't yield > a hit. What's the context in which you encountered this? > > > > Utkarsh > > > > On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > What is a .pvtm file? How can I make one with sources? > > > > Thanks, > > > > Alan > > > > -------------------------------------------------------- > > W. Alan Scott > > ParaView Support Manager > > > > SAIC > > Sandia National Laboratories, MS 0807 > > Org 9326 - Building 880 A1-K > > (505) 284-0932 FAX (505) 284-5619 > > > > ?When the facts change, I change my mind. What do you do, sir?? > > John Maynard Keynes > > > > --------------------------------------------------------- > > > > _______________________________________________ > 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 > > _______________________________________________ > 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: From wascott at sandia.gov Tue May 15 11:48:15 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 15:48:15 +0000 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> Message-ID: <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> Trying to wrap my head around what you said. Really basic question ? is .pvtm files a viable file format? Either it should be supported in ParaView readers, or it should be removed from Catalyst and VTK ? correct? I wrote up a bug here: https://gitlab.kitware.com/paraview/paraview/issues/18172 Alan From: Andy Bauer Date: Tuesday, May 15, 2018 at 8:33 AM To: W Scott Cc: Utkarsh Ayachit , "paraview at paraview.org" Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format Hi Alan, I wouldn't describe it as a redundant file format, just a redundant file extension (like ExodusII with .e, .ex2, etc.). Actually, looking through the PV and VTK source code, like Utkarsh did before, there doesn't look to be anything that refers to .pvtm so maybe I'm just remembering things wrong here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it does seem like at one time we used the .pvtm file extension but maybe that was by accident though. As for writing out files from Catalyst, or even from ParaView, a user can select the writer and specify whatever they want for the file extension. Maybe that's where the issue arose. Best, Andy On Mon, May 14, 2018 at 9:37 PM Scott, W Alan > wrote: Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my head around same. Let?s start with a few questions. Where is the .pvtm file format documented? Google doesn?t know... Next, why have two redundant file formats? One should be deprecated. Why can Catalyst write this file format? And last, of course, why can?t ParaView read it? Alan From: Andy Bauer [mailto:andy.bauer at kitware.com] Sent: Monday, May 14, 2018 7:31 PM To: Scott, W Alan > Cc: Ayachit, Utkarsh (External Contacts) >; Paraview (paraview at paraview.org) > Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format The .pvtm is the same as the .vtm file, just a redundant file extension. Really, the .vtm format is parallel/partition aware where as the other .vt* extensions have a partitioned .pvt* format. I'm a bit surprised that PV doesn't associate the .pvtm file with multiblock datasets. If you try to read in a .pvtm file though you just need to properly associate it with the XML multiblock data reader. On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView > wrote: I?ve never heard of these files either. From my user: I am writing planes of data in parallel with XMLMultiBlockWriter and it is generating *pvtm files. However, paraview doesn?t seem to support this file format for reading? I am trying to visualize the results and I can read the individual *vtp files, but it doesn?t accept the parallel file. Then: I will try to put something together for you soon. I am writing this dataset from a slice while running catalyst. I found a work around by using the MergeBlocks filter on the slice and then dumping that as an unstructured grid via XMLPUnstructuredGridWriter. Back to me. ?. I am writing this dataset from a slice while running catalyst.? So, I figured I would start by asking if this is a Catalyst/ ParaView/ VTK file format (that I had never heard of)... I have asked user for a dataset. Thanks, Alan From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Monday, May 14, 2018 7:08 PM To: Scott, W Alan > Cc: ParaView > Subject: [EXTERNAL] Re: [Paraview] pvtm file format I am not sure. A quick grep through the code in ParaView/VTK doesn't yield a hit. What's the context in which you encountered this? Utkarsh On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView > wrote: What is a .pvtm file? How can I make one with sources? Thanks, Alan -------------------------------------------------------- W. Alan Scott ParaView Support Manager SAIC Sandia National Laboratories, MS 0807 Org 9326 - Building 880 A1-K (505) 284-0932 FAX (505) 284-5619 ?When the facts change, I change my mind. What do you do, sir?? John Maynard Keynes --------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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: From wascott at sandia.gov Tue May 15 13:05:05 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 17:05:05 +0000 Subject: [Paraview] Screenshots to movies Message-ID: A common workflow for ParaView is to write out animations as a flipbook ? i.e., write out movies as a series of .jpgs or .pngs. If a person wants to post process these pictures into .avi?s or .mov?s, what tools do people use? Further, can these tools deal with the case that .avi?s need X and Ys that are mod 4 == 0, where the raw .png?s can be any X and Y? Does ParaView need the optional ability to force .png?s or .jpg?s to be written out mod 4 == 0? -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue May 15 13:11:59 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 15 May 2018 13:11:59 -0400 Subject: [Paraview] Screenshots to movies In-Reply-To: References: Message-ID: ffmeg is your friend on linux. It needs a little figuring things out, but both resizing images and then converting them to videos is possible. ref: https://askubuntu.com/questions/745732/converting-png-files-to-a-movie https://trac.ffmpeg.org/wiki/Slideshow https://trac.ffmpeg.org/wiki/Scaling On Tue, May 15, 2018 at 1:05 PM Scott, W Alan via ParaView < paraview at public.kitware.com> wrote: > A common workflow for ParaView is to write out animations as a flipbook ? > i.e., write out movies as a series of .jpgs or .pngs. If a person wants to > post process these pictures into .avi?s or .mov?s, what tools do people > use? Further, can these tools deal with the case that .avi?s need X and Ys > that are mod 4 == 0, where the raw .png?s can be any X and Y? Does > ParaView need the optional ability to force .png?s or .jpg?s to be written > out mod 4 == 0? > _______________________________________________ > 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: From asduifhssauidf at gmail.com Tue May 15 13:13:12 2018 From: asduifhssauidf at gmail.com (iusadhfoias sidufasipudf) Date: Tue, 15 May 2018 19:13:12 +0200 Subject: [Paraview] Catalyst session makes ParaView time-unaware Message-ID: Can somebody explain this problem: When I connect ParaView to a Catalyst live session (running "cd Examples/Catalyst/PythonFullExample; pvpython fedriver.py cpscript.py") and open a "somedata.pvd" file containing a time series, I cannot scroll through the time steps in the file, because ParaView time is reset to 0 and no other time steps are available, even if they were available before establishing the Catalyst connection. The problem remains even after the Catalyst session has finished and ParaView has disconnected from Catalyst: the VCR controls including the "Time: 0 | 0 ^v" display are disabled (grey). I am using ParaView 5.5.0 on Ubuntu 18.04 Linux. In cpscript.py, I have enabled live visualization: ... # Enable Live-Visualizaton with ParaView coprocessor.EnableLiveVisualization(True, 1) I could understand if ParaView's "time" concept doesn't make sense during a live visualization. Nonetheless, I'd prefer if the live visualization forwards its current time to ParaView that should use this time as its latest timestep. Or ParaView should keep its time steps and let the live visualization run independent from those time steps. But in no situation should ParaView keep its time controls disabled even after it has disconnected from Catalyst. Can you reproduce this problem? Can it be fixed? Many thanks, Jussuf -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Tue May 15 13:24:10 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 17:24:10 +0000 Subject: [Paraview] [EXTERNAL] Re: Screenshots to movies In-Reply-To: References: Message-ID: <3BBFCCA5-2764-4BA7-A661-5E2A9337CFF6@sandia.gov> So, there is no reason to add the option in ParaView to create flipbooks mod 4, correct? From: Utkarsh Ayachit Date: Tuesday, May 15, 2018 at 11:12 AM To: W Scott Cc: "paraview at paraview.org" Subject: [EXTERNAL] Re: [Paraview] Screenshots to movies ffmeg is your friend on linux. It needs a little figuring things out, but both resizing images and then converting them to videos is possible. ref: https://askubuntu.com/questions/745732/converting-png-files-to-a-movie https://trac.ffmpeg.org/wiki/Slideshow https://trac.ffmpeg.org/wiki/Scaling On Tue, May 15, 2018 at 1:05 PM Scott, W Alan via ParaView > wrote: A common workflow for ParaView is to write out animations as a flipbook ? i.e., write out movies as a series of .jpgs or .pngs. If a person wants to post process these pictures into .avi?s or .mov?s, what tools do people use? Further, can these tools deal with the case that .avi?s need X and Ys that are mod 4 == 0, where the raw .png?s can be any X and Y? Does ParaView need the optional ability to force .png?s or .jpg?s to be written out mod 4 == 0? _______________________________________________ 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: From utkarsh.ayachit at kitware.com Tue May 15 13:25:14 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 15 May 2018 13:25:14 -0400 Subject: [Paraview] [EXTERNAL] Re: Screenshots to movies In-Reply-To: <3BBFCCA5-2764-4BA7-A661-5E2A9337CFF6@sandia.gov> References: <3BBFCCA5-2764-4BA7-A661-5E2A9337CFF6@sandia.gov> Message-ID: ParaView does adjust image sizes when saving avis, for example. Not sure if its needed when saving out images. On Tue, May 15, 2018 at 1:24 PM Scott, W Alan wrote: > So, there is no reason to add the option in ParaView to create flipbooks > mod 4, correct? > > > > *From: *Utkarsh Ayachit > *Date: *Tuesday, May 15, 2018 at 11:12 AM > *To: *W Scott > *Cc: *"paraview at paraview.org" > *Subject: *[EXTERNAL] Re: [Paraview] Screenshots to movies > > > > ffmeg is your friend on linux. It needs a little figuring things out, but > both resizing images and then converting them to videos is possible. > > > > ref: > > https://askubuntu.com/questions/745732/converting-png-files-to-a-movie > > https://trac.ffmpeg.org/wiki/Slideshow > > https://trac.ffmpeg.org/wiki/Scaling > > > > > > > > On Tue, May 15, 2018 at 1:05 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > A common workflow for ParaView is to write out animations as a flipbook ? > i.e., write out movies as a series of .jpgs or .pngs. If a person wants to > post process these pictures into .avi?s or .mov?s, what tools do people > use? Further, can these tools deal with the case that .avi?s need X and Ys > that are mod 4 == 0, where the raw .png?s can be any X and Y? Does > ParaView need the optional ability to force .png?s or .jpg?s to be written > out mod 4 == 0? > > _______________________________________________ > 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: From wascott at sandia.gov Tue May 15 13:27:06 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 17:27:06 +0000 Subject: [Paraview] [EXTERNAL] Re: Screenshots to movies In-Reply-To: References: <3BBFCCA5-2764-4BA7-A661-5E2A9337CFF6@sandia.gov> Message-ID: I?ve never seen an issue, but I have only used enve? From: Utkarsh Ayachit Date: Tuesday, May 15, 2018 at 11:25 AM To: W Scott Cc: "paraview at paraview.org" Subject: Re: [EXTERNAL] Re: [Paraview] Screenshots to movies ParaView does adjust image sizes when saving avis, for example. Not sure if its needed when saving out images. On Tue, May 15, 2018 at 1:24 PM Scott, W Alan > wrote: So, there is no reason to add the option in ParaView to create flipbooks mod 4, correct? From: Utkarsh Ayachit > Date: Tuesday, May 15, 2018 at 11:12 AM To: W Scott > Cc: "paraview at paraview.org" > Subject: [EXTERNAL] Re: [Paraview] Screenshots to movies ffmeg is your friend on linux. It needs a little figuring things out, but both resizing images and then converting them to videos is possible. ref: https://askubuntu.com/questions/745732/converting-png-files-to-a-movie https://trac.ffmpeg.org/wiki/Slideshow https://trac.ffmpeg.org/wiki/Scaling On Tue, May 15, 2018 at 1:05 PM Scott, W Alan via ParaView > wrote: A common workflow for ParaView is to write out animations as a flipbook ? i.e., write out movies as a series of .jpgs or .pngs. If a person wants to post process these pictures into .avi?s or .mov?s, what tools do people use? Further, can these tools deal with the case that .avi?s need X and Ys that are mod 4 == 0, where the raw .png?s can be any X and Y? Does ParaView need the optional ability to force .png?s or .jpg?s to be written out mod 4 == 0? _______________________________________________ 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: From andy.bauer at kitware.com Tue May 15 14:59:32 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 15 May 2018 14:59:32 -0400 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> Message-ID: >From my investigation and not being able to find any pvtm in either today's ParaView or several of the 3.* versions (what Ken's old bug report referred to) I'd say that .pvtm was never officially or even unofficially a VTK file format extension used by the XML multiblock reader or writer. I'd say that .vtm is the one and only XML multiblock data extension and close the issue. On Tue, May 15, 2018 at 11:48 AM Scott, W Alan wrote: > Trying to wrap my head around what you said. Really basic question ? is > .pvtm files a viable file format? Either it should be supported in > ParaView readers, or it should be removed from Catalyst and VTK ? correct? > > > > I wrote up a bug here: > https://gitlab.kitware.com/paraview/paraview/issues/18172 > > > > Alan > > > > *From: *Andy Bauer > *Date: *Tuesday, May 15, 2018 at 8:33 AM > *To: *W Scott > *Cc: *Utkarsh Ayachit , " > paraview at paraview.org" > *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > Hi Alan, > > > > I wouldn't describe it as a redundant file format, just a redundant file > extension (like ExodusII with .e, .ex2, etc.). Actually, looking through > the PV and VTK source code, like Utkarsh did before, there doesn't look to > be anything that refers to .pvtm so maybe I'm just remembering things wrong > here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it > does seem like at one time we used the .pvtm file extension but maybe that > was by accident though. > > > > As for writing out files from Catalyst, or even from ParaView, a user can > select the writer and specify whatever they want for the file extension. > Maybe that's where the issue arose. > > > > Best, > > Andy > > > > On Mon, May 14, 2018 at 9:37 PM Scott, W Alan wrote: > > Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my > head around same. > > > > Let?s start with a few questions. Where is the .pvtm file format > documented? Google doesn?t know... Next, why have two redundant file > formats? One should be deprecated. Why can Catalyst write this file > format? And last, of course, why can?t ParaView read it? > > > > Alan > > > > *From:* Andy Bauer [mailto:andy.bauer at kitware.com] > *Sent:* Monday, May 14, 2018 7:31 PM > *To:* Scott, W Alan > *Cc:* Ayachit, Utkarsh (External Contacts) ; > Paraview (paraview at paraview.org) > *Subject:* Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > The .pvtm is the same as the .vtm file, just a redundant file extension. > Really, the .vtm format is parallel/partition aware where as the other .vt* > extensions have a partitioned .pvt* format. > > I'm a bit surprised that PV doesn't associate the .pvtm file with > multiblock datasets. If you try to read in a .pvtm file though you just > need to properly associate it with the XML multiblock data reader. > > > > On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > I?ve never heard of these files either. From my user: > > > > > > I am writing planes of data in parallel with XMLMultiBlockWriter and it is > generating *pvtm files. However, paraview doesn?t seem to support this > file format for reading? I am trying to visualize the results and I can > read the individual *vtp files, but it doesn?t accept the parallel file. > > > > Then: > > > > I will try to put something together for you soon. I am writing this > dataset from a slice while running catalyst. I found a work around by > using the MergeBlocks filter on the slice and then dumping that as an > unstructured grid via XMLPUnstructuredGridWriter. > > > > Back to me. > > > > ?. I am writing this dataset from a slice while running catalyst.? So, I > figured I would start by asking if this is a Catalyst/ ParaView/ VTK file > format (that I had never heard of)... I have asked user for a dataset. > > > > Thanks, > > > > Alan > > > > > > *From:* Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > *Sent:* Monday, May 14, 2018 7:08 PM > *To:* Scott, W Alan > *Cc:* ParaView > *Subject:* [EXTERNAL] Re: [Paraview] pvtm file format > > > > I am not sure. A quick grep through the code in ParaView/VTK doesn't yield > a hit. What's the context in which you encountered this? > > > > Utkarsh > > > > On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > What is a .pvtm file? How can I make one with sources? > > > > Thanks, > > > > Alan > > > > -------------------------------------------------------- > > W. Alan Scott > > ParaView Support Manager > > > > SAIC > > Sandia National Laboratories, MS 0807 > > Org 9326 - Building 880 A1-K > > (505) 284-0932 FAX (505) 284-5619 > > > > ?When the facts change, I change my mind. What do you do, sir?? > > John Maynard Keynes > > > > --------------------------------------------------------- > > > > _______________________________________________ > 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 > > _______________________________________________ > 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: From eric.greenwade at gmail.com Tue May 15 15:31:58 2018 From: eric.greenwade at gmail.com (eric greenwade) Date: Tue, 15 May 2018 12:31:58 -0700 Subject: [Paraview] Centers of rotation with multiple views Message-ID: I have several (5) 3d cubes which I would like to have rotate in sync, each around its own center. However, when I get one centered, some of the others seem to move off-center at the same time. In the image, the 5th cube is centered, but the first four are off to the left. If I center one of the others, all the cubes move a little, some become centered, others not. In particulate the 5th image (far right) is no longer centered. Any ideas, thoughts, experiences, etc. would be greatly welcomed. -eric -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 6waytest.00.jpg Type: image/jpeg Size: 531810 bytes Desc: not available URL: From wascott at sandia.gov Tue May 15 16:12:10 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 15 May 2018 20:12:10 +0000 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> Message-ID: Again, does this then mean we should delete pvtm file formats Catalyst writers? I have a user that created a pvtm file recently, I believe using Catalyst? From: Andy Bauer Date: Tuesday, May 15, 2018 at 1:00 PM To: W Scott Cc: Utkarsh Ayachit , "paraview at paraview.org" Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format From my investigation and not being able to find any pvtm in either today's ParaView or several of the 3.* versions (what Ken's old bug report referred to) I'd say that .pvtm was never officially or even unofficially a VTK file format extension used by the XML multiblock reader or writer. I'd say that .vtm is the one and only XML multiblock data extension and close the issue. On Tue, May 15, 2018 at 11:48 AM Scott, W Alan > wrote: Trying to wrap my head around what you said. Really basic question ? is .pvtm files a viable file format? Either it should be supported in ParaView readers, or it should be removed from Catalyst and VTK ? correct? I wrote up a bug here: https://gitlab.kitware.com/paraview/paraview/issues/18172 Alan From: Andy Bauer > Date: Tuesday, May 15, 2018 at 8:33 AM To: W Scott > Cc: Utkarsh Ayachit >, "paraview at paraview.org" > Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format Hi Alan, I wouldn't describe it as a redundant file format, just a redundant file extension (like ExodusII with .e, .ex2, etc.). Actually, looking through the PV and VTK source code, like Utkarsh did before, there doesn't look to be anything that refers to .pvtm so maybe I'm just remembering things wrong here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it does seem like at one time we used the .pvtm file extension but maybe that was by accident though. As for writing out files from Catalyst, or even from ParaView, a user can select the writer and specify whatever they want for the file extension. Maybe that's where the issue arose. Best, Andy On Mon, May 14, 2018 at 9:37 PM Scott, W Alan > wrote: Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my head around same. Let?s start with a few questions. Where is the .pvtm file format documented? Google doesn?t know... Next, why have two redundant file formats? One should be deprecated. Why can Catalyst write this file format? And last, of course, why can?t ParaView read it? Alan From: Andy Bauer [mailto:andy.bauer at kitware.com] Sent: Monday, May 14, 2018 7:31 PM To: Scott, W Alan > Cc: Ayachit, Utkarsh (External Contacts) >; Paraview (paraview at paraview.org) > Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format The .pvtm is the same as the .vtm file, just a redundant file extension. Really, the .vtm format is parallel/partition aware where as the other .vt* extensions have a partitioned .pvt* format. I'm a bit surprised that PV doesn't associate the .pvtm file with multiblock datasets. If you try to read in a .pvtm file though you just need to properly associate it with the XML multiblock data reader. On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView > wrote: I?ve never heard of these files either. From my user: I am writing planes of data in parallel with XMLMultiBlockWriter and it is generating *pvtm files. However, paraview doesn?t seem to support this file format for reading? I am trying to visualize the results and I can read the individual *vtp files, but it doesn?t accept the parallel file. Then: I will try to put something together for you soon. I am writing this dataset from a slice while running catalyst. I found a work around by using the MergeBlocks filter on the slice and then dumping that as an unstructured grid via XMLPUnstructuredGridWriter. Back to me. ?. I am writing this dataset from a slice while running catalyst.? So, I figured I would start by asking if this is a Catalyst/ ParaView/ VTK file format (that I had never heard of)... I have asked user for a dataset. Thanks, Alan From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Monday, May 14, 2018 7:08 PM To: Scott, W Alan > Cc: ParaView > Subject: [EXTERNAL] Re: [Paraview] pvtm file format I am not sure. A quick grep through the code in ParaView/VTK doesn't yield a hit. What's the context in which you encountered this? Utkarsh On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView > wrote: What is a .pvtm file? How can I make one with sources? Thanks, Alan -------------------------------------------------------- W. Alan Scott ParaView Support Manager SAIC Sandia National Laboratories, MS 0807 Org 9326 - Building 880 A1-K (505) 284-0932 FAX (505) 284-5619 ?When the facts change, I change my mind. What do you do, sir?? John Maynard Keynes --------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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: From andy.bauer at kitware.com Tue May 15 16:53:33 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 15 May 2018 16:53:33 -0400 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> Message-ID: If the user did that, then he/she explicitly set the file extension to be .pvtm instead of the default .vtm when creating the Catalyst multiblock dataset writer for the Catalyst script. There is only one XML multiblock data reader and writer. When a user adds a writer when making a Catalyst Python script by default it will have the proper file extension but they are allowed to change that file extension. The file extension that the user gives the filename doesn't affect the file format itself (i.e. what writer is used). Does that make sense? On Tue, May 15, 2018 at 4:12 PM Scott, W Alan wrote: > Again, does this then mean we should delete pvtm file formats Catalyst > writers? I have a user that created a pvtm file recently, I believe using > Catalyst? > > > > *From: *Andy Bauer > *Date: *Tuesday, May 15, 2018 at 1:00 PM > *To: *W Scott > *Cc: *Utkarsh Ayachit , " > paraview at paraview.org" > *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > > > From my investigation and not being able to find any pvtm in either > today's ParaView or several of the 3.* versions (what Ken's old bug report > referred to) I'd say that .pvtm was never officially or even unofficially a > VTK file format extension used by the XML multiblock reader or writer. I'd > say that .vtm is the one and only XML multiblock data extension and close > the issue. > > > > On Tue, May 15, 2018 at 11:48 AM Scott, W Alan wrote: > > Trying to wrap my head around what you said. Really basic question ? is > .pvtm files a viable file format? Either it should be supported in > ParaView readers, or it should be removed from Catalyst and VTK ? correct? > > > > I wrote up a bug here: > https://gitlab.kitware.com/paraview/paraview/issues/18172 > > > > Alan > > > > *From: *Andy Bauer > *Date: *Tuesday, May 15, 2018 at 8:33 AM > *To: *W Scott > *Cc: *Utkarsh Ayachit , " > paraview at paraview.org" > *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > Hi Alan, > > > > I wouldn't describe it as a redundant file format, just a redundant file > extension (like ExodusII with .e, .ex2, etc.). Actually, looking through > the PV and VTK source code, like Utkarsh did before, there doesn't look to > be anything that refers to .pvtm so maybe I'm just remembering things wrong > here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it > does seem like at one time we used the .pvtm file extension but maybe that > was by accident though. > > > > As for writing out files from Catalyst, or even from ParaView, a user can > select the writer and specify whatever they want for the file extension. > Maybe that's where the issue arose. > > > > Best, > > Andy > > > > On Mon, May 14, 2018 at 9:37 PM Scott, W Alan wrote: > > Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my > head around same. > > > > Let?s start with a few questions. Where is the .pvtm file format > documented? Google doesn?t know... Next, why have two redundant file > formats? One should be deprecated. Why can Catalyst write this file > format? And last, of course, why can?t ParaView read it? > > > > Alan > > > > *From:* Andy Bauer [mailto:andy.bauer at kitware.com] > *Sent:* Monday, May 14, 2018 7:31 PM > *To:* Scott, W Alan > *Cc:* Ayachit, Utkarsh (External Contacts) ; > Paraview (paraview at paraview.org) > *Subject:* Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > The .pvtm is the same as the .vtm file, just a redundant file extension. > Really, the .vtm format is parallel/partition aware where as the other .vt* > extensions have a partitioned .pvt* format. > > I'm a bit surprised that PV doesn't associate the .pvtm file with > multiblock datasets. If you try to read in a .pvtm file though you just > need to properly associate it with the XML multiblock data reader. > > > > On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > I?ve never heard of these files either. From my user: > > > > > > I am writing planes of data in parallel with XMLMultiBlockWriter and it is > generating *pvtm files. However, paraview doesn?t seem to support this > file format for reading? I am trying to visualize the results and I can > read the individual *vtp files, but it doesn?t accept the parallel file. > > > > Then: > > > > I will try to put something together for you soon. I am writing this > dataset from a slice while running catalyst. I found a work around by > using the MergeBlocks filter on the slice and then dumping that as an > unstructured grid via XMLPUnstructuredGridWriter. > > > > Back to me. > > > > ?. I am writing this dataset from a slice while running catalyst.? So, I > figured I would start by asking if this is a Catalyst/ ParaView/ VTK file > format (that I had never heard of)... I have asked user for a dataset. > > > > Thanks, > > > > Alan > > > > > > *From:* Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > *Sent:* Monday, May 14, 2018 7:08 PM > *To:* Scott, W Alan > *Cc:* ParaView > *Subject:* [EXTERNAL] Re: [Paraview] pvtm file format > > > > I am not sure. A quick grep through the code in ParaView/VTK doesn't yield > a hit. What's the context in which you encountered this? > > > > Utkarsh > > > > On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > What is a .pvtm file? How can I make one with sources? > > > > Thanks, > > > > Alan > > > > -------------------------------------------------------- > > W. Alan Scott > > ParaView Support Manager > > > > SAIC > > Sandia National Laboratories, MS 0807 > > Org 9326 - Building 880 A1-K > > (505) 284-0932 FAX (505) 284-5619 > > > > ?When the facts change, I change my mind. What do you do, sir?? > > John Maynard Keynes > > > > --------------------------------------------------------- > > > > _______________________________________________ > 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 > > _______________________________________________ > 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: From utkarsh.ayachit at kitware.com Tue May 15 16:55:18 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 15 May 2018 16:55:18 -0400 Subject: [Paraview] Centers of rotation with multiple views In-Reply-To: References: Message-ID: Eric, I'd suggest apply either the "Transform" filter or using the Transformation properties on the *Display* for all of the datasets to recenter so that the camera linking will work. Camera linking doesn't support syncing only rotations. Utkarsh From shawn.waldon at kitware.com Tue May 15 17:09:07 2018 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 15 May 2018 17:09:07 -0400 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> Message-ID: An example: If I make a PNG writer in the code and set the filename it is supposed to write to "foo.pgn" it will write a file named "foo.pgn" because that is what it was programmed to do. The data in the file will still be in the PNG format, the filename will just have the wrong extension. It is still a PNG file and if I rename it to foo.png, most programs will read it correctly. But while the extension is misspelled very few programs (if any) will read it. HTH, Shawn On Tue, May 15, 2018 at 4:53 PM, Andy Bauer wrote: > If the user did that, then he/she explicitly set the file extension to be > .pvtm instead of the default .vtm when creating the Catalyst multiblock > dataset writer for the Catalyst script. There is only one XML multiblock > data reader and writer. > > When a user adds a writer when making a Catalyst Python script by default > it will have the proper file extension but they are allowed to change that > file extension. The file extension that the user gives the filename doesn't > affect the file format itself (i.e. what writer is used). > > Does that make sense? > > On Tue, May 15, 2018 at 4:12 PM Scott, W Alan wrote: > >> Again, does this then mean we should delete pvtm file formats Catalyst >> writers? I have a user that created a pvtm file recently, I believe using >> Catalyst? >> >> >> >> *From: *Andy Bauer >> *Date: *Tuesday, May 15, 2018 at 1:00 PM >> *To: *W Scott >> *Cc: *Utkarsh Ayachit , " >> paraview at paraview.org" >> *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format >> >> >> >> >> >> From my investigation and not being able to find any pvtm in either >> today's ParaView or several of the 3.* versions (what Ken's old bug report >> referred to) I'd say that .pvtm was never officially or even unofficially a >> VTK file format extension used by the XML multiblock reader or writer. I'd >> say that .vtm is the one and only XML multiblock data extension and close >> the issue. >> >> >> >> On Tue, May 15, 2018 at 11:48 AM Scott, W Alan >> wrote: >> >> Trying to wrap my head around what you said. Really basic question ? is >> .pvtm files a viable file format? Either it should be supported in >> ParaView readers, or it should be removed from Catalyst and VTK ? correct? >> >> >> >> I wrote up a bug here: https://gitlab.kitware.com/ >> paraview/paraview/issues/18172 >> >> >> >> Alan >> >> >> >> *From: *Andy Bauer >> *Date: *Tuesday, May 15, 2018 at 8:33 AM >> *To: *W Scott >> *Cc: *Utkarsh Ayachit , " >> paraview at paraview.org" >> *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format >> >> >> >> Hi Alan, >> >> >> >> I wouldn't describe it as a redundant file format, just a redundant file >> extension (like ExodusII with .e, .ex2, etc.). Actually, looking through >> the PV and VTK source code, like Utkarsh did before, there doesn't look to >> be anything that refers to .pvtm so maybe I'm just remembering things wrong >> here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it >> does seem like at one time we used the .pvtm file extension but maybe that >> was by accident though. >> >> >> >> As for writing out files from Catalyst, or even from ParaView, a user can >> select the writer and specify whatever they want for the file extension. >> Maybe that's where the issue arose. >> >> >> >> Best, >> >> Andy >> >> >> >> On Mon, May 14, 2018 at 9:37 PM Scott, W Alan wrote: >> >> Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my >> head around same. >> >> >> >> Let?s start with a few questions. Where is the .pvtm file format >> documented? Google doesn?t know... Next, why have two redundant file >> formats? One should be deprecated. Why can Catalyst write this file >> format? And last, of course, why can?t ParaView read it? >> >> >> >> Alan >> >> >> >> *From:* Andy Bauer [mailto:andy.bauer at kitware.com] >> *Sent:* Monday, May 14, 2018 7:31 PM >> *To:* Scott, W Alan >> *Cc:* Ayachit, Utkarsh (External Contacts) ; >> Paraview (paraview at paraview.org) >> *Subject:* Re: [Paraview] [EXTERNAL] Re: pvtm file format >> >> >> >> The .pvtm is the same as the .vtm file, just a redundant file extension. >> Really, the .vtm format is parallel/partition aware where as the other .vt* >> extensions have a partitioned .pvt* format. >> >> I'm a bit surprised that PV doesn't associate the .pvtm file with >> multiblock datasets. If you try to read in a .pvtm file though you just >> need to properly associate it with the XML multiblock data reader. >> >> >> >> On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView < >> paraview at public.kitware.com> wrote: >> >> I?ve never heard of these files either. From my user: >> >> >> >> >> >> I am writing planes of data in parallel with XMLMultiBlockWriter and it >> is generating *pvtm files. However, paraview doesn?t seem to support this >> file format for reading? I am trying to visualize the results and I can >> read the individual *vtp files, but it doesn?t accept the parallel file. >> >> >> >> Then: >> >> >> >> I will try to put something together for you soon. I am writing this >> dataset from a slice while running catalyst. I found a work around by >> using the MergeBlocks filter on the slice and then dumping that as an >> unstructured grid via XMLPUnstructuredGridWriter. >> >> >> >> Back to me. >> >> >> >> ?. I am writing this dataset from a slice while running catalyst.? So, >> I figured I would start by asking if this is a Catalyst/ ParaView/ VTK file >> format (that I had never heard of)... I have asked user for a dataset. >> >> >> >> Thanks, >> >> >> >> Alan >> >> >> >> >> >> *From:* Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] >> *Sent:* Monday, May 14, 2018 7:08 PM >> *To:* Scott, W Alan >> *Cc:* ParaView >> *Subject:* [EXTERNAL] Re: [Paraview] pvtm file format >> >> >> >> I am not sure. A quick grep through the code in ParaView/VTK doesn't >> yield a hit. What's the context in which you encountered this? >> >> >> >> Utkarsh >> >> >> >> On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < >> paraview at public.kitware.com> wrote: >> >> What is a .pvtm file? How can I make one with sources? >> >> >> >> Thanks, >> >> >> >> Alan >> >> >> >> -------------------------------------------------------- >> >> W. Alan Scott >> >> ParaView Support Manager >> >> >> >> SAIC >> >> Sandia National Laboratories, MS 0807 >> >> Org 9326 - Building 880 A1-K >> >> (505) 284-0932 FAX (505) 284-5619 >> >> >> >> ?When the facts change, I change my mind. What do you do, sir?? >> >> John Maynard Keynes >> >> >> >> --------------------------------------------------------- >> >> >> >> _______________________________________________ >> 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 >> >> _______________________________________________ >> 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 >> >> > _______________________________________________ > 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: From invernomuto at paranoici.org Tue May 15 18:41:38 2018 From: invernomuto at paranoici.org (Francesco Poli) Date: Wed, 16 May 2018 00:41:38 +0200 Subject: [Paraview] Screenshots to movies In-Reply-To: References: Message-ID: <20180516004138.e1430803c7e4972940e79cbf@paranoici.org> On Tue, 15 May 2018 13:11:59 -0400 Utkarsh Ayachit wrote: > ffmeg is your friend on linux. It needs a little figuring things out, but > both resizing images and then converting them to videos is possible. ParaView used to also be able to save animations as MJPEG AVI (.avi) files. Unfortunately, the version currently in Debian GNU/Linux (unstable and testing) seems to have a regression and is unable to save .avi files. See my [bug report](https://bugs.debian.org/892293) on the Debian BTS... My current workaround is: ? save animations as PNG images ? convert them with $ ffmpeg -f image2 -framerate 5 -i input.%04d.png \ -vcodec mjpeg -pix_fmt yuv420p -q:v 3 output.avi Please note that ParaView used to save .avi files with pixel format yuvj422p (until it stopped doing so, because of the above mentioned regression), but I started to use pixel format yuv420p, to work around a [bug](https://bugs.debian.org/863663) in GStreamer. With this pixel format the animation may be correctly played by GStreamer on GNU/Linux and hence, when embedded in a PDF page, by pdf-presenter-console on GNU/Linux, as well as by Acrobat Reader DC on Windows... If anyone knows any better strategy, comments are welcome! -- http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From wascott at sandia.gov Tue May 15 21:51:11 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Wed, 16 May 2018 01:51:11 +0000 Subject: [Paraview] [EXTERNAL] Re: Screenshots to movies In-Reply-To: <20180516004138.e1430803c7e4972940e79cbf@paranoici.org> References: <20180516004138.e1430803c7e4972940e79cbf@paranoici.org> Message-ID: Francesco, There was a known bug/feature in the .avi writer in ParaView 5.4.1, where it wrote a version of .avi that was not compatible with the OS X Quicktime player (the OS X default) and the Windows Media player. This has been corrected in ParaView 5.5.0. (I just tested them on my MacBook.) Alan ?On 5/15/18, 4:42 PM, "Francesco Poli" wrote: On Tue, 15 May 2018 13:11:59 -0400 Utkarsh Ayachit wrote: > ffmeg is your friend on linux. It needs a little figuring things out, but > both resizing images and then converting them to videos is possible. ParaView used to also be able to save animations as MJPEG AVI (.avi) files. Unfortunately, the version currently in Debian GNU/Linux (unstable and testing) seems to have a regression and is unable to save .avi files. See my [bug report](https://bugs.debian.org/892293) on the Debian BTS... My current workaround is: ? save animations as PNG images ? convert them with $ ffmpeg -f image2 -framerate 5 -i input.%04d.png \ -vcodec mjpeg -pix_fmt yuv420p -q:v 3 output.avi Please note that ParaView used to save .avi files with pixel format yuvj422p (until it stopped doing so, because of the above mentioned regression), but I started to use pixel format yuv420p, to work around a [bug](https://bugs.debian.org/863663) in GStreamer. With this pixel format the animation may be correctly played by GStreamer on GNU/Linux and hence, when embedded in a PDF page, by pdf-presenter-console on GNU/Linux, as well as by Acrobat Reader DC on Windows... If anyone knows any better strategy, comments are welcome! -- http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE From wascott at sandia.gov Tue May 15 22:57:58 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Wed, 16 May 2018 02:57:58 +0000 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> Message-ID: <88C92A5D-726D-4D87-8833-64D25E7F7D51@sandia.gov> OK, although dense and slow, I finally got it. Thanks, good explanation to both of you. I will close the bug I wrote. Thanks guys, Alan From: Shawn Waldon Date: Tuesday, May 15, 2018 at 3:09 PM To: Andy Bauer Cc: W Scott , "paraview at paraview.org" Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format An example: If I make a PNG writer in the code and set the filename it is supposed to write to "foo.pgn" it will write a file named "foo.pgn" because that is what it was programmed to do. The data in the file will still be in the PNG format, the filename will just have the wrong extension. It is still a PNG file and if I rename it to foo.png, most programs will read it correctly. But while the extension is misspelled very few programs (if any) will read it. HTH, Shawn On Tue, May 15, 2018 at 4:53 PM, Andy Bauer > wrote: If the user did that, then he/she explicitly set the file extension to be .pvtm instead of the default .vtm when creating the Catalyst multiblock dataset writer for the Catalyst script. There is only one XML multiblock data reader and writer. When a user adds a writer when making a Catalyst Python script by default it will have the proper file extension but they are allowed to change that file extension. The file extension that the user gives the filename doesn't affect the file format itself (i.e. what writer is used). Does that make sense? On Tue, May 15, 2018 at 4:12 PM Scott, W Alan > wrote: Again, does this then mean we should delete pvtm file formats Catalyst writers? I have a user that created a pvtm file recently, I believe using Catalyst? From: Andy Bauer > Date: Tuesday, May 15, 2018 at 1:00 PM To: W Scott > Cc: Utkarsh Ayachit >, "paraview at paraview.org" > Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format From my investigation and not being able to find any pvtm in either today's ParaView or several of the 3.* versions (what Ken's old bug report referred to) I'd say that .pvtm was never officially or even unofficially a VTK file format extension used by the XML multiblock reader or writer. I'd say that .vtm is the one and only XML multiblock data extension and close the issue. On Tue, May 15, 2018 at 11:48 AM Scott, W Alan > wrote: Trying to wrap my head around what you said. Really basic question ? is .pvtm files a viable file format? Either it should be supported in ParaView readers, or it should be removed from Catalyst and VTK ? correct? I wrote up a bug here: https://gitlab.kitware.com/paraview/paraview/issues/18172 Alan From: Andy Bauer > Date: Tuesday, May 15, 2018 at 8:33 AM To: W Scott > Cc: Utkarsh Ayachit >, "paraview at paraview.org" > Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format Hi Alan, I wouldn't describe it as a redundant file format, just a redundant file extension (like ExodusII with .e, .ex2, etc.). Actually, looking through the PV and VTK source code, like Utkarsh did before, there doesn't look to be anything that refers to .pvtm so maybe I'm just remembering things wrong here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it does seem like at one time we used the .pvtm file extension but maybe that was by accident though. As for writing out files from Catalyst, or even from ParaView, a user can select the writer and specify whatever they want for the file extension. Maybe that's where the issue arose. Best, Andy On Mon, May 14, 2018 at 9:37 PM Scott, W Alan > wrote: Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my head around same. Let?s start with a few questions. Where is the .pvtm file format documented? Google doesn?t know... Next, why have two redundant file formats? One should be deprecated. Why can Catalyst write this file format? And last, of course, why can?t ParaView read it? Alan From: Andy Bauer [mailto:andy.bauer at kitware.com] Sent: Monday, May 14, 2018 7:31 PM To: Scott, W Alan > Cc: Ayachit, Utkarsh (External Contacts) >; Paraview (paraview at paraview.org) > Subject: Re: [Paraview] [EXTERNAL] Re: pvtm file format The .pvtm is the same as the .vtm file, just a redundant file extension. Really, the .vtm format is parallel/partition aware where as the other .vt* extensions have a partitioned .pvt* format. I'm a bit surprised that PV doesn't associate the .pvtm file with multiblock datasets. If you try to read in a .pvtm file though you just need to properly associate it with the XML multiblock data reader. On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView > wrote: I?ve never heard of these files either. From my user: I am writing planes of data in parallel with XMLMultiBlockWriter and it is generating *pvtm files. However, paraview doesn?t seem to support this file format for reading? I am trying to visualize the results and I can read the individual *vtp files, but it doesn?t accept the parallel file. Then: I will try to put something together for you soon. I am writing this dataset from a slice while running catalyst. I found a work around by using the MergeBlocks filter on the slice and then dumping that as an unstructured grid via XMLPUnstructuredGridWriter. Back to me. ?. I am writing this dataset from a slice while running catalyst.? So, I figured I would start by asking if this is a Catalyst/ ParaView/ VTK file format (that I had never heard of)... I have asked user for a dataset. Thanks, Alan From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Monday, May 14, 2018 7:08 PM To: Scott, W Alan > Cc: ParaView > Subject: [EXTERNAL] Re: [Paraview] pvtm file format I am not sure. A quick grep through the code in ParaView/VTK doesn't yield a hit. What's the context in which you encountered this? Utkarsh On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView > wrote: What is a .pvtm file? How can I make one with sources? Thanks, Alan -------------------------------------------------------- W. Alan Scott ParaView Support Manager SAIC Sandia National Laboratories, MS 0807 Org 9326 - Building 880 A1-K (505) 284-0932 FAX (505) 284-5619 ?When the facts change, I change my mind. What do you do, sir?? John Maynard Keynes --------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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: From andy.bauer at kitware.com Wed May 16 07:13:53 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Wed, 16 May 2018 07:13:53 -0400 Subject: [Paraview] [EXTERNAL] Re: pvtm file format In-Reply-To: <88C92A5D-726D-4D87-8833-64D25E7F7D51@sandia.gov> References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <8bc9db75cdfc4c34bc8f7ee2fc24a23a@ES01AMSNLNT.srn.sandia.gov> <5AB287FC-2AB2-483E-813B-6DCD6AA3E339@sandia.gov> <88C92A5D-726D-4D87-8833-64D25E7F7D51@sandia.gov> Message-ID: No problem. We got where we needed to be eventually -- it would have gone faster if I didn't "remember" that the .pvtm isn't a proper VTK file extension :) On Tue, May 15, 2018 at 10:58 PM Scott, W Alan wrote: > OK, although dense and slow, I finally got it. Thanks, good explanation > to both of you. I will close the bug I wrote. > > > > Thanks guys, > > > > Alan > > > > *From: *Shawn Waldon > *Date: *Tuesday, May 15, 2018 at 3:09 PM > *To: *Andy Bauer > *Cc: *W Scott , "paraview at paraview.org" < > paraview at paraview.org> > *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > An example: If I make a PNG writer in the code and set the filename it is > supposed to write to "foo.pgn" it will write a file named "foo.pgn" because > that is what it was programmed to do. The data in the file will still be > in the PNG format, the filename will just have the wrong extension. It is > still a PNG file and if I rename it to foo.png, most programs will read it > correctly. But while the extension is misspelled very few programs (if > any) will read it. > > HTH, > > Shawn > > > > On Tue, May 15, 2018 at 4:53 PM, Andy Bauer > wrote: > > If the user did that, then he/she explicitly set the file extension to be > .pvtm instead of the default .vtm when creating the Catalyst multiblock > dataset writer for the Catalyst script. There is only one XML multiblock > data reader and writer. > > When a user adds a writer when making a Catalyst Python script by default > it will have the proper file extension but they are allowed to change that > file extension. The file extension that the user gives the filename doesn't > affect the file format itself (i.e. what writer is used). > > Does that make sense? > > > > On Tue, May 15, 2018 at 4:12 PM Scott, W Alan wrote: > > Again, does this then mean we should delete pvtm file formats Catalyst > writers? I have a user that created a pvtm file recently, I believe using > Catalyst? > > > > *From: *Andy Bauer > *Date: *Tuesday, May 15, 2018 at 1:00 PM > *To: *W Scott > *Cc: *Utkarsh Ayachit , " > paraview at paraview.org" > *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > > > From my investigation and not being able to find any pvtm in either > today's ParaView or several of the 3.* versions (what Ken's old bug report > referred to) I'd say that .pvtm was never officially or even unofficially a > VTK file format extension used by the XML multiblock reader or writer. I'd > say that .vtm is the one and only XML multiblock data extension and close > the issue. > > > > On Tue, May 15, 2018 at 11:48 AM Scott, W Alan wrote: > > Trying to wrap my head around what you said. Really basic question ? is > .pvtm files a viable file format? Either it should be supported in > ParaView readers, or it should be removed from Catalyst and VTK ? correct? > > > > I wrote up a bug here: > https://gitlab.kitware.com/paraview/paraview/issues/18172 > > > > Alan > > > > *From: *Andy Bauer > *Date: *Tuesday, May 15, 2018 at 8:33 AM > *To: *W Scott > *Cc: *Utkarsh Ayachit , " > paraview at paraview.org" > *Subject: *Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > Hi Alan, > > > > I wouldn't describe it as a redundant file format, just a redundant file > extension (like ExodusII with .e, .ex2, etc.). Actually, looking through > the PV and VTK source code, like Utkarsh did before, there doesn't look to > be anything that refers to .pvtm so maybe I'm just remembering things wrong > here. Looking back though (https://www.vtk.org/Bug/view.php?id=10498) it > does seem like at one time we used the .pvtm file extension but maybe that > was by accident though. > > > > As for writing out files from Catalyst, or even from ParaView, a user can > select the writer and specify whatever they want for the file extension. > Maybe that's where the issue arose. > > > > Best, > > Andy > > > > On Mon, May 14, 2018 at 9:37 PM Scott, W Alan wrote: > > Thanks Andy. I?m hearing of numerous issues like thus, trying to wrap my > head around same. > > > > Let?s start with a few questions. Where is the .pvtm file format > documented? Google doesn?t know... Next, why have two redundant file > formats? One should be deprecated. Why can Catalyst write this file > format? And last, of course, why can?t ParaView read it? > > > > Alan > > > > *From:* Andy Bauer [mailto:andy.bauer at kitware.com] > *Sent:* Monday, May 14, 2018 7:31 PM > *To:* Scott, W Alan > *Cc:* Ayachit, Utkarsh (External Contacts) ; > Paraview (paraview at paraview.org) > *Subject:* Re: [Paraview] [EXTERNAL] Re: pvtm file format > > > > The .pvtm is the same as the .vtm file, just a redundant file extension. > Really, the .vtm format is parallel/partition aware where as the other .vt* > extensions have a partitioned .pvt* format. > > I'm a bit surprised that PV doesn't associate the .pvtm file with > multiblock datasets. If you try to read in a .pvtm file though you just > need to properly associate it with the XML multiblock data reader. > > > > On Mon, May 14, 2018 at 9:14 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > I?ve never heard of these files either. From my user: > > > > > > I am writing planes of data in parallel with XMLMultiBlockWriter and it is > generating *pvtm files. However, paraview doesn?t seem to support this > file format for reading? I am trying to visualize the results and I can > read the individual *vtp files, but it doesn?t accept the parallel file. > > > > Then: > > > > I will try to put something together for you soon. I am writing this > dataset from a slice while running catalyst. I found a work around by > using the MergeBlocks filter on the slice and then dumping that as an > unstructured grid via XMLPUnstructuredGridWriter. > > > > Back to me. > > > > ?. I am writing this dataset from a slice while running catalyst.? So, I > figured I would start by asking if this is a Catalyst/ ParaView/ VTK file > format (that I had never heard of)... I have asked user for a dataset. > > > > Thanks, > > > > Alan > > > > > > *From:* Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > *Sent:* Monday, May 14, 2018 7:08 PM > *To:* Scott, W Alan > *Cc:* ParaView > *Subject:* [EXTERNAL] Re: [Paraview] pvtm file format > > > > I am not sure. A quick grep through the code in ParaView/VTK doesn't yield > a hit. What's the context in which you encountered this? > > > > Utkarsh > > > > On Mon, May 14, 2018 at 9:05 PM Scott, W Alan via ParaView < > paraview at public.kitware.com> wrote: > > What is a .pvtm file? How can I make one with sources? > > > > Thanks, > > > > Alan > > > > -------------------------------------------------------- > > W. Alan Scott > > ParaView Support Manager > > > > SAIC > > Sandia National Laboratories, MS 0807 > > Org 9326 - Building 880 A1-K > > (505) 284-0932 FAX (505) 284-5619 > > > > ?When the facts change, I change my mind. What do you do, sir?? > > John Maynard Keynes > > > > --------------------------------------------------------- > > > > _______________________________________________ > 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 > > _______________________________________________ > 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 > > > _______________________________________________ > 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: From mike.jackson at bluequartz.net Wed May 16 07:46:05 2018 From: mike.jackson at bluequartz.net (Michael Jackson) Date: Wed, 16 May 2018 07:46:05 -0400 Subject: [Paraview] [EXTERNAL] Re: Screenshots to movies Message-ID: <2A595579-398B-41AF-A0CD-764BA4F51EE9@bluequartz.net> If you happen to be on macOS AND you happen to still have a license for Quicktime 7 Pro, that will also create a movie from the images. You can export in whatever format that Quicktime supports. -- Michael Jackson | Owner, President BlueQuartz Software [e] mike.jackson at bluequartz.net [w] www.bluequartz.net ?-----Original Message----- From: ParaView on behalf of "Scott, W Alan via ParaView" Reply-To: "Scott, W Alan" Date: Tuesday, May 15, 2018 at 9:51 PM To: Francesco Poli , "Ayachit, Utkarsh (External Contacts)" Cc: ParaView Subject: Re: [Paraview] [EXTERNAL] Re: Screenshots to movies Francesco, There was a known bug/feature in the .avi writer in ParaView 5.4.1, where it wrote a version of .avi that was not compatible with the OS X Quicktime player (the OS X default) and the Windows Media player. This has been corrected in ParaView 5.5.0. (I just tested them on my MacBook.) Alan ?On 5/15/18, 4:42 PM, "Francesco Poli" wrote: On Tue, 15 May 2018 13:11:59 -0400 Utkarsh Ayachit wrote: > ffmeg is your friend on linux. It needs a little figuring things out, but > both resizing images and then converting them to videos is possible. ParaView used to also be able to save animations as MJPEG AVI (.avi) files. Unfortunately, the version currently in Debian GNU/Linux (unstable and testing) seems to have a regression and is unable to save .avi files. See my [bug report](https://bugs.debian.org/892293) on the Debian BTS... My current workaround is: ? save animations as PNG images ? convert them with $ ffmpeg -f image2 -framerate 5 -i input.%04d.png \ -vcodec mjpeg -pix_fmt yuv420p -q:v 3 output.avi Please note that ParaView used to save .avi files with pixel format yuvj422p (until it stopped doing so, because of the above mentioned regression), but I started to use pixel format yuv420p, to work around a [bug](https://bugs.debian.org/863663) in GStreamer. With this pixel format the animation may be correctly played by GStreamer on GNU/Linux and hence, when embedded in a PDF page, by pdf-presenter-console on GNU/Linux, as well as by Acrobat Reader DC on Windows... If anyone knows any better strategy, comments are welcome! -- http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE _______________________________________________ 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 From wascott at sandia.gov Wed May 16 15:41:48 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Wed, 16 May 2018 19:41:48 +0000 Subject: [Paraview] [EXTERNAL] Re: Screenshots to movies In-Reply-To: <2A595579-398B-41AF-A0CD-764BA4F51EE9@bluequartz.net> References: <2A595579-398B-41AF-A0CD-764BA4F51EE9@bluequartz.net> Message-ID: The VLC player will also play .avi's created from 5.4.1, on all platforms. Alan > -----Original Message----- > From: Michael Jackson [mailto:mike.jackson at bluequartz.net] > Sent: Wednesday, May 16, 2018 5:46 AM > To: Scott, W Alan ; Francesco Poli > ; Ayachit, Utkarsh (External Contacts) > > Cc: ParaView > Subject: Re: [Paraview] [EXTERNAL] Re: Screenshots to movies > > If you happen to be on macOS AND you happen to still have a license for > Quicktime 7 Pro, that will also create a movie from the images. You can export > in whatever format that Quicktime supports. > > -- > Michael Jackson | Owner, President > BlueQuartz Software > [e] mike.jackson at bluequartz.net > [w] www.bluequartz.net > > > ?-----Original Message----- > From: ParaView on behalf of "Scott, > W Alan via ParaView" > Reply-To: "Scott, W Alan" > Date: Tuesday, May 15, 2018 at 9:51 PM > To: Francesco Poli , "Ayachit, Utkarsh (External > Contacts)" > Cc: ParaView > Subject: Re: [Paraview] [EXTERNAL] Re: Screenshots to movies > > Francesco, > > There was a known bug/feature in the .avi writer in ParaView 5.4.1, where it > wrote a version of .avi that was not compatible with the OS X Quicktime player > (the OS X default) and the Windows Media player. This has been corrected in > ParaView 5.5.0. (I just tested them on my MacBook.) > > Alan > > > ?On 5/15/18, 4:42 PM, "Francesco Poli" wrote: > > On Tue, 15 May 2018 13:11:59 -0400 Utkarsh Ayachit wrote: > > > ffmeg is your friend on linux. It needs a little figuring things out, but > > both resizing images and then converting them to videos is possible. > > ParaView used to also be able to save animations as MJPEG AVI > (.avi) files. > > Unfortunately, the version currently in Debian GNU/Linux (unstable and > testing) seems to have a regression and is unable to save .avi files. > See my [bug report](https://bugs.debian.org/892293) on the Debian BTS... > > My current workaround is: > > ? save animations as PNG images > > ? convert them with > > $ ffmpeg -f image2 -framerate 5 -i input.%04d.png \ > -vcodec mjpeg -pix_fmt yuv420p -q:v 3 output.avi > > > Please note that ParaView used to save .avi files with pixel format > yuvj422p (until it stopped doing so, because of the above mentioned > regression), but I started to use pixel format yuv420p, to work around > a [bug](https://bugs.debian.org/863663) in GStreamer. > With this pixel format the animation may be correctly played by > GStreamer on GNU/Linux and hence, when embedded in a PDF page, by > pdf-presenter-console on GNU/Linux, as well as by Acrobat Reader DC on > Windows... > > If anyone knows any better strategy, comments are welcome! > > > -- > http://www.inventati.org/frx/ > There's not a second to spare! To the laboratory! > ..................................................... Francesco Poli . > GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE > > > _______________________________________________ > 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 > > From andrew.stormtrooper at gmail.com Wed May 16 16:44:51 2018 From: andrew.stormtrooper at gmail.com (Andrew Nicholson) Date: Wed, 16 May 2018 21:44:51 +0100 Subject: [Paraview] headless configuration and intel ospray Message-ID: Do I still need to build paraview against osmesa or can I solely use ospray? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed May 16 16:51:58 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 16 May 2018 16:51:58 -0400 Subject: [Paraview] headless configuration and intel ospray In-Reply-To: References: Message-ID: Unfortunately no you still need a GL (osmesa or EGL for headless). File a feature request on the gitlab issue tracker if you want to attract attention to that capability. It probably isn't that hard to do and it would be a good use case. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, May 16, 2018 at 4:44 PM, Andrew Nicholson < andrew.stormtrooper at gmail.com> wrote: > Do I still need to build paraview against osmesa or can I solely use > ospray? > > _______________________________________________ > 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: From leonardopessanha74 at gmail.com Thu May 17 17:07:03 2018 From: leonardopessanha74 at gmail.com (=?UTF-8?Q?L=C3=A9o_Pessanha?=) Date: Thu, 17 May 2018 21:07:03 +0000 Subject: [Paraview] Parallel ParaView linux package usage Message-ID: Hi! Just finished downloading ParaView version 5.2 in Linux Ubuntu 16.04 LTS. Tried to run in parallel by doing: cd *paraviewFolder/bin * ./mpiexec -n 2 ./pvserver *No sucess. * ./mpiexec: error while loading shared libraries: libmpl.so.1: cannot open > shared object file: No such file or directory After doing some research I added the *paraview/lib* folder to my LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/pv52/lib/paraview-5.2:/opt/pv52/lib/ cd *paraviewFolder/bin * ./mpiexec -n 2 ./pvserver *No sucess.* [mpiexec at leognome] HYDU_create_process (./utils/launch/launch.c:69): execvp > error on file /home/leo/paraview/pv52/bin/./hydra_pmi_proxy (No such file > or directory) > [mpiexec at leognome] HYD_pmcd_pmiserv_proxy_init_cb > (./pm/pmiserv/pmiserv_cb.c:520): assert (!closed) failed > [mpiexec at leognome] HYDT_dmxu_poll_wait_for_event > (./tools/demux/demux_poll.c:77): callback returned error status > [mpiexec at leognome] HYD_pmci_wait_for_completion > (./pm/pmiserv/pmiserv_pmci.c:181): error waiting for event > [mpiexec at leognome] main (./ui/mpich/mpiexec.c:405): process manager error > waiting for completion Finally I entered the folder paraviewFolder/*lib/paraview-5.2 *to dig the problem and found there are another set of executables(paraview/pvserver/pvpython/etc) there. cd *paraviewFolder/lib/paraview-5.2* ./mpiexec -n 2 ./pvserver *Sucessful run.* *##################################################################* Then I went to ParaView download page and downloaded the latest version 5.5 In the 5.5 package I did: cd *paraviewFolder/bin * ./mpiexec -n 2 ./pvserver *Sucessful run.* My question is, what happened? Was it supposed to happen? There was structural directories changes? Leonardo Pessanha Laboratory of Computational Methods in Engineering Federal University of Rio de Janeiro - COPPE Rio de Janeiro, RJ, Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Thu May 17 18:00:37 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Thu, 17 May 2018 22:00:37 +0000 Subject: [Paraview] How to 3d print a point representation Message-ID: <20E70BA3-0A5F-427F-AE2D-E2DA5B602957@sandia.gov> From a user: There is an option in ParaView to have a "point" representation of the data as opposed to surface. This creates an interesting view which I typically use as a poor man's volume rendering. With recent advances in 3D printing I think it would be VERY interesting to attempt to pass this point-like data to a 3D printer where I can then have the points printed into a clear substrate. Is there a way to export these points as geometry which I can then pass off to a 3D printer? Any ideas? Thanks, Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.borduas at caboma.com Thu May 17 18:20:03 2018 From: jonathan.borduas at caboma.com (Jonathan Borduas) Date: Thu, 17 May 2018 22:20:03 +0000 Subject: [Paraview] How to 3d print a point representation In-Reply-To: <20E70BA3-0A5F-427F-AE2D-E2DA5B602957@sandia.gov> References: <20E70BA3-0A5F-427F-AE2D-E2DA5B602957@sandia.gov> Message-ID: Hi, You either need a full color/clear printer or a 3D printing Service Provider. I would use that technology: http://www.stratasys.com/3d-printers/j735-j750 This printer is often used to 3dprint medical models from DICOM and other medical formats. You could use the Point Volume Interpolator (Gaussian Kernel) to convert your points into voxel. Best regards, Jonathan Borduas CTO, Caboma Inc. From: ParaView On Behalf Of Scott, W Alan via ParaView Sent: Thursday, May 17, 2018 6:01 PM To: paraview at paraview.org Subject: [Paraview] How to 3d print a point representation From a user: There is an option in ParaView to have a "point" representation of the data as opposed to surface. This creates an interesting view which I typically use as a poor man's volume rendering. With recent advances in 3D printing I think it would be VERY interesting to attempt to pass this point-like data to a 3D printer where I can then have the points printed into a clear substrate. Is there a way to export these points as geometry which I can then pass off to a 3D printer? Any ideas? Thanks, Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From godenwangzhe at gmail.com Thu May 17 19:17:20 2018 From: godenwangzhe at gmail.com (=?UTF-8?B?546L5ZOy?=) Date: Thu, 17 May 2018 19:17:20 -0400 Subject: [Paraview] question about the client server error Message-ID: Hello: I want to use client server mode to visualize data but I got following error(my client end is OSX), server end command is : mpirun -np 4 ./pvserver -rc --client-host= Connecting to client (reverse connection requested)... Connection URL: csrc://172.31.143.50:11111 Client connected. libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 53 Current serial number in output stream: 54 Could you give me some clues about how to fix this problem? Thanks a lot for your help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From StefanProbst at gmx.net Fri May 18 06:31:55 2018 From: StefanProbst at gmx.net (Stefan Probst-Schendzielorz) Date: Fri, 18 May 2018 12:31:55 +0200 Subject: [Paraview] OpenVR - Builts & further developments Message-ID: An HTML attachment was scrubbed... URL: From benson.muite at ut.ee Fri May 18 06:39:02 2018 From: benson.muite at ut.ee (Benson Muite) Date: Fri, 18 May 2018 13:39:02 +0300 Subject: [Paraview] OpenVR - Builts & further developments In-Reply-To: References: Message-ID: On 05/18/2018 01:31 PM, Stefan Probst-Schendzielorz wrote: > Hi, > > I am interested into the usage of virtual reality with Paraview! The > plugin so far is very interesting, however it sometimes crashes and the > general documentation could be better! Is the development still on-going > and will be there newer builds available? > > Thanks for the replies > > Best regards Stefan > > Hi Stefan, Have been looking at this a little. Mostly for linux, where support is much less. Are you expecting to help with development? Benso From ken.martin at kitware.com Fri May 18 09:18:58 2018 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 18 May 2018 09:18:58 -0400 Subject: [Paraview] OpenVR - Builts & further developments In-Reply-To: References: Message-ID: I am still doing development on the plugin so there should be some updates now and then. But the more the merrier :-) If you find fixes, improvements, etc then let's get them merged in. Thanks! Ken On Fri, May 18, 2018 at 6:39 AM, Benson Muite wrote: > > > On 05/18/2018 01:31 PM, Stefan Probst-Schendzielorz wrote: > >> Hi, >> >> I am interested into the usage of virtual reality with Paraview! The >> plugin so far is very interesting, however it sometimes crashes and the >> general documentation could be better! Is the development still on-going >> and will be there newer builds available? >> >> Thanks for the replies >> >> Best regards Stefan >> >> >> > Hi Stefan, > > Have been looking at this a little. Mostly for linux, where support is > much less. Are you expecting to help with development? > > Benso > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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 > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 101 East Weaver Street Carrboro, North Carolina 27510 USA This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Fri May 18 09:25:36 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 18 May 2018 09:25:36 -0400 Subject: [Paraview] Parallel ParaView linux package usage In-Reply-To: References: Message-ID: Leo, With 5.2, use the mpiexec under the `lib/paraview-5.2` instead of the one under `bin`. Utkarsh On Thu, May 17, 2018 at 5:07 PM L?o Pessanha wrote: > Hi! > Just finished downloading ParaView version 5.2 in Linux Ubuntu 16.04 LTS. > Tried to run in parallel by doing: > cd paraviewFolder/bin > ./mpiexec -n 2 ./pvserver > No sucess. >> ./mpiexec: error while loading shared libraries: libmpl.so.1: cannot open shared object file: No such file or directory > After doing some research I added the paraview/lib folder to my LD_LIBRARY_PATH > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/pv52/lib/paraview-5.2:/opt/pv52/lib/ > cd paraviewFolder/bin > ./mpiexec -n 2 ./pvserver > No sucess. >> [mpiexec at leognome] HYDU_create_process (./utils/launch/launch.c:69): execvp error on file /home/leo/paraview/pv52/bin/./hydra_pmi_proxy (No such file or directory) >> [mpiexec at leognome] HYD_pmcd_pmiserv_proxy_init_cb (./pm/pmiserv/pmiserv_cb.c:520): assert (!closed) failed >> [mpiexec at leognome] HYDT_dmxu_poll_wait_for_event (./tools/demux/demux_poll.c:77): callback returned error status >> [mpiexec at leognome] HYD_pmci_wait_for_completion (./pm/pmiserv/pmiserv_pmci.c:181): error waiting for event >> [mpiexec at leognome] main (./ui/mpich/mpiexec.c:405): process manager error waiting for completion > Finally I entered the folder paraviewFolder/lib/paraview-5.2 to dig the problem and found there are another set of executables(paraview/pvserver/pvpython/etc) there. > cd paraviewFolder/lib/paraview-5.2 > ./mpiexec -n 2 ./pvserver > Sucessful run. > ################################################################## > Then I went to ParaView download page and downloaded the latest version 5.5 > In the 5.5 package I did: > cd paraviewFolder/bin > ./mpiexec -n 2 ./pvserver > Sucessful run. > My question is, what happened? Was it supposed to happen? There was structural directories changes? > Leonardo Pessanha > Laboratory of Computational Methods in Engineering > Federal University of Rio de Janeiro - COPPE > Rio de Janeiro, RJ, Brasil > _______________________________________________ > 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 From leonardopessanha74 at gmail.com Fri May 18 09:29:12 2018 From: leonardopessanha74 at gmail.com (=?UTF-8?Q?L=C3=A9o_Pessanha?=) Date: Fri, 18 May 2018 10:29:12 -0300 Subject: [Paraview] Parallel ParaView linux package usage In-Reply-To: References: Message-ID: Hi! By doing that I can only use 2 processes. Using 3 or more my workstation freezes trying to open the OpenGL contexts. But I don't know if this happens only for me. Em sex, 18 de mai de 2018 10:26, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> escreveu: > Leo, > > With 5.2, use the mpiexec under the `lib/paraview-5.2` instead of the one > under `bin`. > > Utkarsh > > On Thu, May 17, 2018 at 5:07 PM L?o Pessanha > > wrote: > > > Hi! > > > Just finished downloading ParaView version 5.2 in Linux Ubuntu 16.04 LTS. > > > Tried to run in parallel by doing: > > > cd paraviewFolder/bin > > ./mpiexec -n 2 ./pvserver > > > > No sucess. > > >> ./mpiexec: error while loading shared libraries: libmpl.so.1: cannot > open shared object file: No such file or directory > > > > After doing some research I added the paraview/lib folder to my > LD_LIBRARY_PATH > > > export > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/pv52/lib/paraview-5.2:/opt/pv52/lib/ > > cd paraviewFolder/bin > > ./mpiexec -n 2 ./pvserver > > > > No sucess. > > >> [mpiexec at leognome] HYDU_create_process (./utils/launch/launch.c:69): > execvp error on file /home/leo/paraview/pv52/bin/./hydra_pmi_proxy (No such > file or directory) > >> [mpiexec at leognome] HYD_pmcd_pmiserv_proxy_init_cb > (./pm/pmiserv/pmiserv_cb.c:520): assert (!closed) failed > >> [mpiexec at leognome] HYDT_dmxu_poll_wait_for_event > (./tools/demux/demux_poll.c:77): callback returned error status > >> [mpiexec at leognome] HYD_pmci_wait_for_completion > (./pm/pmiserv/pmiserv_pmci.c:181): error waiting for event > >> [mpiexec at leognome] main (./ui/mpich/mpiexec.c:405): process manager > error waiting for completion > > > > Finally I entered the folder paraviewFolder/lib/paraview-5.2 to dig the > problem and found there are another set of > executables(paraview/pvserver/pvpython/etc) there. > > > > cd paraviewFolder/lib/paraview-5.2 > > ./mpiexec -n 2 ./pvserver > > > Sucessful run. > > > ################################################################## > > > Then I went to ParaView download page and downloaded the latest version > 5.5 > > In the 5.5 package I did: > > > cd paraviewFolder/bin > > ./mpiexec -n 2 ./pvserver > > > > Sucessful run. > > > My question is, what happened? Was it supposed to happen? There was > structural directories changes? > > > Leonardo Pessanha > > Laboratory of Computational Methods in Engineering > > Federal University of Rio de Janeiro - COPPE > > Rio de Janeiro, RJ, Brasil > > > _______________________________________________ > > 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: From m-it at thi.de Fri May 18 09:23:46 2018 From: m-it at thi.de (m-it) Date: Fri, 18 May 2018 13:23:46 +0000 Subject: [Paraview] Error reading legacy VTK-file with Windows Version >5.2.x Message-ID: <3aab3c55a1b446e2ad8020c567ddd5b7@thi.de> Hi, i have here a strange behaviour of the Windows Version of Paraview with Version above 5.2 reading a (legacy) VTK-ASCII file. With Version 5.5.0 (and also 5.4) i get the following errors: Generic Warning: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\IO\Legacy\vtkDataReader.cxx, line 1436 Error reading ascii data. Possible mismatch of datasize with declaration. ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\IO\Legacy\vtkUnstructuredGridReader.cxx, line 348 vtkUnstructuredGridReader (0000025018454BA0): Unrecognized keyword: -3.7 Paraview then shows nothing. Version 5.2.0 Windows works as expected (and maybe any older). Paraview Version 5.4.0 Linux and macOS Versions 5.4.1 and 5.5.0 work, too. The VTK-file is generated with OpenFOAM's foamToVTK. Here are the first lines of an sample file (which creates the mentioned error message): # vtk DataFile Version 2.0 SRe17 ASCII DATASET UNSTRUCTURED_GRID POINTS 4059 float 25 0 -0.8125 25 1 -0.8125 25 1 0.15 25 0 0.15 25 2 0.15 25 2 1.1125 25 1 1.1125 26 2 -3.7 26 3 -3.7 26 3 -2.7375 26 2 -2.7375 26 4 -3.7 26 4 -2.7375 26 4 -1.775 26 3 -1.775 25 0 1.1125 25 1 2.075 25 0 2.075 25 2 2.075 25 1 3.0375 25 0 3.0375 25 2 3.0375 25 3 2.075 25 3 3.0375 25 1 4 25 0 4 25 2 4 25 3 4 25 4 3.0375 25 4 4 26 1 -3.7 26 1 -2.7375 26 2 -1.775 26 4 -0.8125 26 3 -0.8125 26 2 -4 26 3 -4 26 4 -4 26 1 -4 26 0 -3.7 26 0 -2.7375 26 1 -1.775 26 0 -1.775 26 1 -0.8125 26 0 -0.8125 26 2 -0.8125 26 2 0.15 26 1 0.15 26 3 0.15 26 4 0.15 26 3 1.1125 26 2 1.1125 26 4 1.1125 26 2 2.075 26 3 2.075 26 4 2.075 26 3 3.0375 If necessary i can provide a small full sample (with about 1MB of data). I've googled around a bit and found only a few (and quite old) messages concerning this error (but I guess with a different background, regarding very small values - I can't see that this is the case here). One lead me to try to change all occurences of the dataType of the POINT type from float to double. This works and the data can be visualized as expected with all Paraview versions on all platforms. I just wonder about the different behaviour of the different versions of Paraview on Windows (5.2 vs. 5.4/5.5) and the difference between Paraview Windows and Linux/macOS? Thanks in adavance. Michael --? Michael Rebele ? ? ? ? ? ? ? ? ? ? Technische Hochschule Ingolstadt m-it at thi.de From utkarsh.ayachit at kitware.com Fri May 18 09:35:03 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 18 May 2018 09:35:03 -0400 Subject: [Paraview] Parallel ParaView linux package usage In-Reply-To: References: Message-ID: Hmm, try passing the `--use-offscreen-rendering` to the pvserver (for 5.5 the option has changed). On Fri, May 18, 2018 at 9:30 AM L?o Pessanha wrote: > Hi! > By doing that I can only use 2 processes. Using 3 or more my workstation freezes trying to open the OpenGL contexts. > But I don't know if this happens only for me. > Em sex, 18 de mai de 2018 10:26, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> escreveu: >> Leo, >> With 5.2, use the mpiexec under the `lib/paraview-5.2` instead of the one >> under `bin`. >> Utkarsh >> On Thu, May 17, 2018 at 5:07 PM L?o Pessanha < leonardopessanha74 at gmail.com> >> wrote: >> > Hi! >> > Just finished downloading ParaView version 5.2 in Linux Ubuntu 16.04 LTS. >> > Tried to run in parallel by doing: >> > cd paraviewFolder/bin >> > ./mpiexec -n 2 ./pvserver >> > No sucess. >> >> ./mpiexec: error while loading shared libraries: libmpl.so.1: cannot >> open shared object file: No such file or directory >> > After doing some research I added the paraview/lib folder to my >> LD_LIBRARY_PATH >> > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/pv52/lib/paraview-5.2:/opt/pv52/lib/ >> > cd paraviewFolder/bin >> > ./mpiexec -n 2 ./pvserver >> > No sucess. >> >> [mpiexec at leognome] HYDU_create_process (./utils/launch/launch.c:69): >> execvp error on file /home/leo/paraview/pv52/bin/./hydra_pmi_proxy (No such >> file or directory) >> >> [mpiexec at leognome] HYD_pmcd_pmiserv_proxy_init_cb >> (./pm/pmiserv/pmiserv_cb.c:520): assert (!closed) failed >> >> [mpiexec at leognome] HYDT_dmxu_poll_wait_for_event >> (./tools/demux/demux_poll.c:77): callback returned error status >> >> [mpiexec at leognome] HYD_pmci_wait_for_completion >> (./pm/pmiserv/pmiserv_pmci.c:181): error waiting for event >> >> [mpiexec at leognome] main (./ui/mpich/mpiexec.c:405): process manager >> error waiting for completion >> > Finally I entered the folder paraviewFolder/lib/paraview-5.2 to dig the >> problem and found there are another set of >> executables(paraview/pvserver/pvpython/etc) there. >> > cd paraviewFolder/lib/paraview-5.2 >> > ./mpiexec -n 2 ./pvserver >> > Sucessful run. >> > ################################################################## >> > Then I went to ParaView download page and downloaded the latest version >> 5.5 >> > In the 5.5 package I did: >> > cd paraviewFolder/bin >> > ./mpiexec -n 2 ./pvserver >> > Sucessful run. >> > My question is, what happened? Was it supposed to happen? There was >> structural directories changes? >> > Leonardo Pessanha >> > Laboratory of Computational Methods in Engineering >> > Federal University of Rio de Janeiro - COPPE >> > Rio de Janeiro, RJ, Brasil >> > _______________________________________________ >> > 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 From leonardopessanha74 at gmail.com Fri May 18 10:23:45 2018 From: leonardopessanha74 at gmail.com (=?UTF-8?Q?L=C3=A9o_Pessanha?=) Date: Fri, 18 May 2018 14:23:45 +0000 Subject: [Paraview] Parallel ParaView linux package usage In-Reply-To: References: Message-ID: It runs with more than 2 processes using --use-offscreen-rendering. But by passing this argument I wont be using my GPU resources, right? Leonardo Pessanha Laboratory of Computational Methods in Engineering Federal University of Rio de Janeiro - COPPE Rio de Janeiro, RJ, Brasil 2018-05-18 13:35 GMT+00:00 Utkarsh Ayachit : > Hmm, try passing the `--use-offscreen-rendering` to the pvserver (for 5.5 > the option has changed). > On Fri, May 18, 2018 at 9:30 AM L?o Pessanha > > wrote: > > > Hi! > > > By doing that I can only use 2 processes. Using 3 or more my workstation > freezes trying to open the OpenGL contexts. > > > But I don't know if this happens only for me. > > > Em sex, 18 de mai de 2018 10:26, Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> escreveu: > > >> Leo, > > >> With 5.2, use the mpiexec under the `lib/paraview-5.2` instead of the > one > >> under `bin`. > > >> Utkarsh > > >> On Thu, May 17, 2018 at 5:07 PM L?o Pessanha < > leonardopessanha74 at gmail.com> > >> wrote: > > >> > Hi! > > >> > Just finished downloading ParaView version 5.2 in Linux Ubuntu 16.04 > LTS. > > >> > Tried to run in parallel by doing: > > >> > cd paraviewFolder/bin > >> > ./mpiexec -n 2 ./pvserver > > > >> > No sucess. > > >> >> ./mpiexec: error while loading shared libraries: libmpl.so.1: cannot > >> open shared object file: No such file or directory > > > >> > After doing some research I added the paraview/lib folder to my > >> LD_LIBRARY_PATH > > >> > export > > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/pv52/lib/paraview-5.2:/opt/pv52/lib/ > >> > cd paraviewFolder/bin > >> > ./mpiexec -n 2 ./pvserver > > > >> > No sucess. > > >> >> [mpiexec at leognome] HYDU_create_process (./utils/launch/launch.c:69): > >> execvp error on file /home/leo/paraview/pv52/bin/./hydra_pmi_proxy (No > such > >> file or directory) > >> >> [mpiexec at leognome] HYD_pmcd_pmiserv_proxy_init_cb > >> (./pm/pmiserv/pmiserv_cb.c:520): assert (!closed) failed > >> >> [mpiexec at leognome] HYDT_dmxu_poll_wait_for_event > >> (./tools/demux/demux_poll.c:77): callback returned error status > >> >> [mpiexec at leognome] HYD_pmci_wait_for_completion > >> (./pm/pmiserv/pmiserv_pmci.c:181): error waiting for event > >> >> [mpiexec at leognome] main (./ui/mpich/mpiexec.c:405): process manager > >> error waiting for completion > > > >> > Finally I entered the folder paraviewFolder/lib/paraview-5.2 to dig > the > >> problem and found there are another set of > >> executables(paraview/pvserver/pvpython/etc) there. > > > >> > cd paraviewFolder/lib/paraview-5.2 > >> > ./mpiexec -n 2 ./pvserver > > >> > Sucessful run. > > >> > ################################################################## > > >> > Then I went to ParaView download page and downloaded the latest > version > >> 5.5 > >> > In the 5.5 package I did: > > >> > cd paraviewFolder/bin > >> > ./mpiexec -n 2 ./pvserver > > > >> > Sucessful run. > > >> > My question is, what happened? Was it supposed to happen? There was > >> structural directories changes? > > >> > Leonardo Pessanha > >> > Laboratory of Computational Methods in Engineering > >> > Federal University of Rio de Janeiro - COPPE > >> > Rio de Janeiro, RJ, Brasil > > >> > _______________________________________________ > >> > 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: From paul.carrico at free.fr Fri May 18 10:25:16 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 18 May 2018 16:25:16 +0200 Subject: [Paraview] 2 different behaviours with using GridType="Collection" Message-ID: <68f280fdd57344b258774f21d63e74ed@free.fr> Hi Dear All To build an assembly with its subparts, I use "Collection", but when the file is imported into Paraview 5.5.0, I've met 2 behaviours: - using the xmf reader, the hierachy can be seen on the lower left corner - whereas using the xmf3 one, nothing appears (see the screenshots in attachment) Am I doing someting wrong in my code? Thanks for any suggestion Paul My code here bellow (each element type is independant) ... just a trial :-) -1. 0. 0. -1. 1. 0. -2. 1. 0. -2. 0. 0. 5 0 1 2 3 0. 0. 0. 1. 0. 0. 1. 1. 0. 0. 1. 0. 0. 0. 1. 1. 0. 1. 1. 1. 1. 0. 1. 1. 9 0 1 2 3 4 5 6 7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.borduas at caboma.com Fri May 18 10:25:46 2018 From: jonathan.borduas at caboma.com (Jonathan Borduas) Date: Fri, 18 May 2018 14:25:46 +0000 Subject: [Paraview] OSPRay textures and materials mapping Message-ID: Hi, I tried rendering an .obj file running OSPRay that was exported from PCon Planner Version 7.7 Patch 1. The original file is a .dwg I used the PathThracer mode. However, attached to the .obj there is an .mtl file containing 50+ materials and 50+ texture (.png) files. I didn't find an automated way to map all polydata of the .obj with their respective material and texture file and rendering them using OSPRay. It seems that I have to assign the material and texture to each polydata one-by-one. Is there a feature that will automatically map the respective textures and materials ? Here is the link to download the original .dwg file. https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_apartment.dwg You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 with the File/Export/Geometry menu. I couldn't share the .obj file since the size is 60mb+ Thank you Jonathan Borduas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.borduas at caboma.com Fri May 18 10:27:56 2018 From: jonathan.borduas at caboma.com (Jonathan Borduas) Date: Fri, 18 May 2018 14:27:56 +0000 Subject: [Paraview] OSPRay textures and materials mapping Message-ID: Hi, I tried rendering an .obj file running OSPRay that was exported from PCon Planner Version 7.7 Patch 1. The original file is a .dwg I used the PathThracer mode. However, attached to the .obj there is an .mtl file containing 50+ materials and 50+ texture (.png) files. I didn't find an automated way to map all polydata of the .obj with their respective material and texture file and rendering them using OSPRay. It seems that I have to assign the material and texture to each polydata one-by-one. Is there a feature that will automatically map the respective textures and materials ? Here is the link to download the original .dwg file. https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_apartment.dwg You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 with the File/Export/Geometry menu. I couldn't share the .obj file since the size is 60mb+ Thank you Jonathan Borduas -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri May 18 10:57:51 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 18 May 2018 10:57:51 -0400 Subject: [Paraview] OSPRay textures and materials mapping In-Reply-To: References: Message-ID: Hi Jonathan. Yes you can do that. 1) File->Load OSPRay Materials, switch the file type from "OSPRay Material Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will let you load all of the materials and textures. They should all show up in the Material list. 2) The OSPRay Material selection (on Display section of Properties Tab advanced) will have all of the individual materials listed in it + a few others including "Value Indexed" which is all the way at the bottom. Choose that it means "use the categorical color lookup table to decide what material to use for each block and or polygon" 3) Now change the scalar array to color by to "Material Id", a cell aligned array which has the material index to use for each cell. 4) Make up a categorical lookup table. open spreadsheet view, switch to Field Data, look at the Material Names. open the color map editor for the "Material Id", click on Interpret Values As Categories and the color will change from bluewhitered to extremely YELLOW. add annotations, value 0 should be the name of the first entry in the Material Names array. Notes: * I have the trivial script somewhere that I used for the SC17 demo that makes up the lookup table for you. I'll try and dig that up. * in general it isn't a 1:1 match between mtl and ospray, in particular multitextures are not yet implemented * along those lines, the mtl parser I whipped up $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL recognizes a "type" extension outside of mtl that lets you bring in ospray's nice materials instead of the default OBJMaterial. Glass and Metal are particularly nice. At some point I'll get around to making this all automatic. Patches are welcome in the meantime. good luck David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < jonathan.borduas at caboma.com> wrote: > Hi, > > I tried rendering an .obj file running OSPRay that was exported from PCon > Planner Version 7.7 Patch 1. The original file is a .dwg > > > > I used the PathThracer mode. However, attached to the .obj there is an > .mtl file containing 50+ materials and 50+ texture (.png) files. > > I didn?t find an automated way to map all polydata of the .obj with their > respective material and texture file and rendering them using OSPRay. > > It seems that I have to assign the material and texture to each polydata > one-by-one. > > > > Is there a feature that will automatically map the respective textures and > materials ? > > Here is the link to download the original .dwg file. > https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_ > apartment.dwg > > You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 > with the File/Export/Geometry menu. > I couldn?t share the .obj file since the size is 60mb+ > > > > Thank you > > > > Jonathan Borduas > > > > _______________________________________________ > 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: From utkarsh.ayachit at kitware.com Fri May 18 10:59:17 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 18 May 2018 10:59:17 -0400 Subject: [Paraview] Parallel ParaView linux package usage In-Reply-To: References: Message-ID: > But by passing this argument I wont be using my GPU resources, right? Nope, you'll indeed be still using your GPU. It only won't see on-screen X windows for the server processes. Utkarsh From dave.demarle at kitware.com Fri May 18 11:02:00 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 18 May 2018 11:02:00 -0400 Subject: [Paraview] OSPRay textures and materials mapping In-Reply-To: References: Message-ID: Screenshot to help. I'm partially through step 4 in it. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, May 18, 2018 at 10:57 AM, David E DeMarle wrote: > Hi Jonathan. > > Yes you can do that. > > 1) File->Load OSPRay Materials, switch the file type from "OSPRay Material > Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will let you > load all of the materials and textures. They should all show up in the > Material list. > > 2) The OSPRay Material selection (on Display section of Properties Tab > advanced) will have all of the individual materials listed in it + a few > others including "Value Indexed" which is all the way at the bottom. Choose > that it means "use the categorical color lookup table to decide what > material to use for each block and or polygon" > > 3) Now change the scalar array to color by to "Material Id", a cell > aligned array which has the material index to use for each cell. > > 4) Make up a categorical lookup table. > open spreadsheet view, switch to Field Data, look at the Material Names. > open the color map editor for the "Material Id", click on Interpret > Values As Categories and the color will change from bluewhitered to > extremely YELLOW. > add annotations, value 0 should be the name of the first entry in the > Material Names array. > > Notes: > * I have the trivial script somewhere that I used for the SC17 demo that > makes up the lookup table for you. I'll try and dig that up. > * in general it isn't a 1:1 match between mtl and ospray, in particular > multitextures are not yet implemented > * along those lines, the mtl parser I whipped up > $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL > recognizes a "type" extension outside of mtl that lets you bring in > ospray's nice materials instead of the default OBJMaterial. Glass and Metal > are particularly nice. > > At some point I'll get around to making this all automatic. Patches are > welcome in the meantime. > > good luck > > > > > > > > > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < > jonathan.borduas at caboma.com> wrote: > >> Hi, >> >> I tried rendering an .obj file running OSPRay that was exported from PCon >> Planner Version 7.7 Patch 1. The original file is a .dwg >> >> >> >> I used the PathThracer mode. However, attached to the .obj there is an >> .mtl file containing 50+ materials and 50+ texture (.png) files. >> >> I didn?t find an automated way to map all polydata of the .obj with their >> respective material and texture file and rendering them using OSPRay. >> >> It seems that I have to assign the material and texture to each polydata >> one-by-one. >> >> >> >> Is there a feature that will automatically map the respective textures >> and materials ? >> >> Here is the link to download the original .dwg file. >> https://www.easterngraphics.com/pcon/en/wp-content/uploads/ >> 2015/03/sample_apartment.dwg >> >> You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 >> with the File/Export/Geometry menu. >> I couldn?t share the .obj file since the size is 60mb+ >> >> >> >> Thank you >> >> >> >> Jonathan Borduas >> >> >> >> _______________________________________________ >> 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2018-05-18 11-00-08.png Type: image/png Size: 287027 bytes Desc: not available URL: From aniruddhamit at gmail.com Sat May 19 14:30:46 2018 From: aniruddhamit at gmail.com (Aniruddha Panda) Date: Sat, 19 May 2018 20:30:46 +0200 Subject: [Paraview] Unstructured rectilinear mesh vs legacy vtk format Message-ID: I have a cartesian grid on two different codes, one uses the legacy format to write the data in vtk format where the co-ordinates of equidistant points in x y and z directions are used and the associated velocity (or any other state variable) values are written. Whereas in the code which uses the unstructured dataset the each quadrant extents are written and the associated cell data is written. Later the idea is to have adaptive mesh refinement on this. When I visualise both the files ( lets say for flow through a square duct, pic attached ) I see a smooth representation that paraview automatically calculates for the mesh in case of vtk whereas it appears like a discontinuous data in case of vtu ( i assume vtu does lead to a discontinuous field) . May I know if there is a smoothing filter which allows me to interpolate the data onto an equidistant point cloud in all directions so as to have smooth profile in my postprocessing. Figure1. vtk flow through a square duct Figure2 vtu flow through a square duct Figure3 the velocity profile across the diagonal of the slice ( from vtk ) Figure4 the velocity profile across the diagonal of the slice ( from vtu) --------------------------------- With thanks & regards *Aniruddha* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: figure4.png Type: image/png Size: 22934 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: figure2.png Type: image/png Size: 20238 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: figure1.png Type: image/png Size: 62169 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: figure3.png Type: image/png Size: 25548 bytes Desc: not available URL: From rccm.kyoshimi at gmail.com Sun May 20 00:30:10 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Sun, 20 May 2018 13:30:10 +0900 Subject: [Paraview] Unstructured rectilinear mesh vs legacy vtk format In-Reply-To: References: Message-ID: Hi Aniruddha, I think the reason why the data looks discontinuous is that it is defined as cell data. So the easiest way is to use "Point Data to Cell Data" filter to convert from cell data to point data, which is using a very basic straight averaging. Best Regards 2018-05-20 3:30 GMT+09:00 Aniruddha Panda : > I have a cartesian grid on two different codes, one uses the legacy format > to write the data in vtk format where the co-ordinates of equidistant points > in x y and z directions are used and the associated velocity (or any other > state variable) values are written. > > > Whereas in the code which uses the unstructured dataset the each quadrant > extents are written and the associated cell data is written. Later the idea > is to have adaptive mesh refinement on this. > > When I visualise both the files ( lets say for flow through a square duct, > pic attached ) I see a smooth representation that paraview automatically > calculates for the mesh in case of vtk whereas it appears like a > discontinuous data in case of vtu ( i assume vtu does lead to a > discontinuous field) . May I know if there is a smoothing filter which > allows me to interpolate the data onto an equidistant point cloud in all > directions so as to have smooth profile in my postprocessing. > > Figure1. vtk flow through a square duct > Figure2 vtu flow through a square duct > Figure3 the velocity profile across the diagonal of the slice ( from vtk ) > Figure4 the velocity profile across the diagonal of the slice ( from vtu) > > --------------------------------- > > With thanks & regards > > Aniruddha > > > _______________________________________________ > 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 > From asduifhssauidf at gmail.com Sun May 20 06:59:33 2018 From: asduifhssauidf at gmail.com (iusadhfoias sidufasipudf) Date: Sun, 20 May 2018 12:59:33 +0200 Subject: [Paraview] Catalyst session makes ParaView time-unaware In-Reply-To: References: Message-ID: Is this only a problem on my side, that I cannot step through the times of a file series after a Catalyst live session has finished? Looking forward to either positive or negative feedback Many thanks, Jussuf On Tue, May 15, 2018 at 7:13 PM, iusadhfoias sidufasipudf < asduifhssauidf at gmail.com> wrote: > Can somebody explain this problem: > > When I connect ParaView to a Catalyst live session (running "cd > Examples/Catalyst/PythonFullExample; pvpython fedriver.py cpscript.py") > and open a "somedata.pvd" file containing a time series, I cannot scroll > through the time steps in the file, because ParaView time is reset to 0 and > no other time steps are available, even if they were available before > establishing the Catalyst connection. The problem remains even after the > Catalyst session has finished and ParaView has disconnected from Catalyst: > the VCR controls including the "Time: 0 | 0 ^v" display are disabled > (grey). > > I am using ParaView 5.5.0 on Ubuntu 18.04 Linux. > In cpscript.py, I have enabled live visualization: > ... > # Enable Live-Visualizaton with ParaView > coprocessor.EnableLiveVisualization(True, 1) > > I could understand if ParaView's "time" concept doesn't make sense during > a live visualization. Nonetheless, I'd prefer if the live visualization > forwards its current time to ParaView that should use this time as its > latest timestep. Or ParaView should keep its time steps and let the live > visualization run independent from those time steps. > But in no situation should ParaView keep its time controls disabled even > after it has disconnected from Catalyst. > > Can you reproduce this problem? Can it be fixed? > > Many thanks, > Jussuf > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rccm.kyoshimi at gmail.com Sun May 20 17:12:19 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Mon, 21 May 2018 06:12:19 +0900 Subject: [Paraview] Unstructured rectilinear mesh vs legacy vtk format In-Reply-To: References: Message-ID: Hi, I just sent an email with a typo. "Cell Data to Point Data" filter was correct. 2018?5?20?(?) 13:30 kenichiro yoshimi : > Hi Aniruddha, > > I think the reason why the data looks discontinuous is that it is > defined as cell data. So the easiest way is to use "Point Data to Cell > Data" filter to convert from cell data to point data, which is using a > very basic straight averaging. > > Best Regards > > 2018-05-20 3:30 GMT+09:00 Aniruddha Panda : > > I have a cartesian grid on two different codes, one uses the legacy > format > > to write the data in vtk format where the co-ordinates of equidistant > points > > in x y and z directions are used and the associated velocity (or any > other > > state variable) values are written. > > > > > > Whereas in the code which uses the unstructured dataset the each quadrant > > extents are written and the associated cell data is written. Later the > idea > > is to have adaptive mesh refinement on this. > > > > When I visualise both the files ( lets say for flow through a square > duct, > > pic attached ) I see a smooth representation that paraview automatically > > calculates for the mesh in case of vtk whereas it appears like a > > discontinuous data in case of vtu ( i assume vtu does lead to a > > discontinuous field) . May I know if there is a smoothing filter which > > allows me to interpolate the data onto an equidistant point cloud in all > > directions so as to have smooth profile in my postprocessing. > > > > Figure1. vtk flow through a square duct > > Figure2 vtu flow through a square duct > > Figure3 the velocity profile across the diagonal of the slice ( from vtk > ) > > Figure4 the velocity profile across the diagonal of the slice ( from vtu) > > > > --------------------------------- > > > > With thanks & regards > > > > Aniruddha > > > > > > _______________________________________________ > > 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: From godenwangzhe at gmail.com Sun May 20 19:14:14 2018 From: godenwangzhe at gmail.com (=?UTF-8?B?546L5ZOy?=) Date: Sun, 20 May 2018 19:14:14 -0400 Subject: [Paraview] questions about Catalyst using scenario Message-ID: Hello, everyone: I want to integrate Catalyst into my simulation-visualizaion code, but I have a question about the using scenarios for Catalyst. According to the instruction of the Catalyst, it could run synchronously within simulation code, but my simulation is running by multi threads way and each thread will generate data in specific domain. I hope visualization program (picture drawing) could be triggered when every domain data is generated. How could Catalyst know all the data is available in this case in real time? BTW, if I want to use batch script to draw the picture for every step, how could I load the data from Catalyst? (I load data files from disk previously) Thanks a lot for your help! Sincerely, Zhe -------------- next part -------------- An HTML attachment was scrubbed... URL: From aniruddhamit at gmail.com Mon May 21 03:06:53 2018 From: aniruddhamit at gmail.com (Aniruddha Panda) Date: Mon, 21 May 2018 09:06:53 +0200 Subject: [Paraview] Unstructured rectilinear mesh vs legacy vtk format In-Reply-To: References: Message-ID: Got it, thanks! --------------------------------- With thanks & regards *Aniruddha Panda* PhD Researcher, TU Eindhoven, The Netherlands On Sun, May 20, 2018 at 11:12 PM kenichiro yoshimi wrote: > Hi, > > I just sent an email with a typo. "Cell Data to Point Data" filter was > correct. > > 2018?5?20?(?) 13:30 kenichiro yoshimi : > >> Hi Aniruddha, >> >> I think the reason why the data looks discontinuous is that it is >> defined as cell data. So the easiest way is to use "Point Data to Cell >> Data" filter to convert from cell data to point data, which is using a >> very basic straight averaging. >> >> Best Regards >> >> 2018-05-20 3:30 GMT+09:00 Aniruddha Panda : >> > I have a cartesian grid on two different codes, one uses the legacy >> format >> > to write the data in vtk format where the co-ordinates of equidistant >> points >> > in x y and z directions are used and the associated velocity (or any >> other >> > state variable) values are written. >> > >> > >> > Whereas in the code which uses the unstructured dataset the each >> quadrant >> > extents are written and the associated cell data is written. Later the >> idea >> > is to have adaptive mesh refinement on this. >> > >> > When I visualise both the files ( lets say for flow through a square >> duct, >> > pic attached ) I see a smooth representation that paraview automatically >> > calculates for the mesh in case of vtk whereas it appears like a >> > discontinuous data in case of vtu ( i assume vtu does lead to a >> > discontinuous field) . May I know if there is a smoothing filter which >> > allows me to interpolate the data onto an equidistant point cloud in all >> > directions so as to have smooth profile in my postprocessing. >> > >> > Figure1. vtk flow through a square duct >> > Figure2 vtu flow through a square duct >> > Figure3 the velocity profile across the diagonal of the slice ( from >> vtk ) >> > Figure4 the velocity profile across the diagonal of the slice ( from >> vtu) >> > >> > --------------------------------- >> > >> > With thanks & regards >> > >> > Aniruddha >> > >> > >> > _______________________________________________ >> > 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: From valenpe7 at email.cz Mon May 21 12:03:13 2018 From: valenpe7 at email.cz (Petr Valenta) Date: Mon, 21 May 2018 18:03:13 +0200 (CEST) Subject: [Paraview] Resample To Image with Catalyst Message-ID: Hello, the code which I am using is instrumented with Catalyst. I am trying to process simulation data using ResampleToImage filter and then to store the result on a disk. In the Python pipeline I have something like: adaptor_input = coprocessor.CreateProducer(datadescription, 'input') resample = ResampleToImage(Input=adaptor_input) resample.UseInputBounds = True resample.SamplingDimensions = [256, 256, 256] writer = servermanager.writers.XMLPImageDataWriter(Input=resample) coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10) When I check the results in ParaView, the grid is correct but the data array appended on it contains only zeros. When I skip the filter and dump directly the adaptor_input, the data array contains correct values. Could you, please, help me to resolve this issue? Thank you. Kind regards, Petr -------------- next part -------------- An HTML attachment was scrubbed... URL: From fdiri at hotmail.com Mon May 21 14:12:04 2018 From: fdiri at hotmail.com (Franco Di Rino) Date: Mon, 21 May 2018 18:12:04 +0000 Subject: [Paraview] Colormap cut planes and contour filter in an unstructured grid Message-ID: I have got and unstructured grid with vector values in each point data. What should I do to get cut planes where a colormap describing the different components magnitudes is shown over it? Also I would like to get an isosurface that shows a range of a vector component. I have been trying to apply the contour filter but i could?t make it. The vtk input data has this structure (the cell is a VTK_POLY_VERTEX ): # vtk DataFile Version 3.0 vtk output ASCII DATASET UNSTRUCTURED_GRID POINTS 3760 float -9.650000000 -40.53000000 63.69000000 -5.790000000 -40.53000000 63.69000000 -1.930000000 -40.53000000 63.69000000 1.930000000 -40.53000000 63.69000000 .... CELLS 1 3761 3760 0 1 2 3 4 5 ... CELL_TYPES 1 2 POINT_DATA 3760 VECTORS pola float 4.840499880 8.852499960 -6.604599950 1.411000010 6.376500130 -4.676899910 0.2190999980 6.156899930 -5.077499870 -0.4937599900 3.430599930 -4.799300190 ... The full input data is here: https://pastebin.com/raw/iGprRQBX -------------- next part -------------- An HTML attachment was scrubbed... URL: From antech777 at gmail.com Tue May 22 02:09:59 2018 From: antech777 at gmail.com (Andrew) Date: Tue, 22 May 2018 09:09:59 +0300 Subject: [Paraview] Colormap cut planes and contour filter in an unstructured grid In-Reply-To: References: Message-ID: Hello. For planes, use the Slice filter. Check the "Crinkle slice" option if you want to see exact mesh elements. For vector components, select vector and desired component in top toolbar of ParaView window. Then set scale with Rescale to custom data range (find this button in the same toolbar). For isovolumes I use the Threshold filter (it's fast and the volume's surface is what we need if we just want an isosurface). I recommend to make the result transparent in some extent to represent the volume better. To make vector components accessible with the Threshold filter, use Edit - Settings - Auto Convert Properties (under Data Processing Options section). As an alternative, you can create the component scalar with the Calculator filter. 2018-05-21 21:12 GMT+03:00 Franco Di Rino : > I have got and unstructured grid with vector values in each point data. > What should I do to get cut planes where a colormap describing the > different components magnitudes is shown over it? Also I would like to get > an isosurface that shows a range of a vector component. > > > I have been trying to apply the contour filter but i could?t make it. > > > The vtk input data has this structure (the cell is a VTK_POLY_VERTEX ): > > > # vtk DataFile Version 3.0 > vtk output > ASCII > DATASET UNSTRUCTURED_GRID > POINTS 3760 float > -9.650000000 -40.53000000 63.69000000 > -5.790000000 -40.53000000 63.69000000 > -1.930000000 -40.53000000 63.69000000 > 1.930000000 -40.53000000 63.69000000 > .... > > CELLS 1 3761 > 3760 > 0 > 1 > 2 > 3 > 4 > 5 > ... > > CELL_TYPES 1 > 2 > POINT_DATA 3760 > VECTORS pola float > 4.840499880 8.852499960 -6.604599950 > 1.411000010 6.376500130 -4.676899910 > 0.2190999980 6.156899930 -5.077499870 > -0.4937599900 3.430599930 -4.799300190 > ... > > > The full input data is here: https://pastebin.com/raw/iGprRQBX > > _______________________________________________ > 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: From jfavre at cscs.ch Tue May 22 03:55:07 2018 From: jfavre at cscs.ch (Favre Jean) Date: Tue, 22 May 2018 07:55:07 +0000 Subject: [Paraview] Colormap cut planes and contour filter in an unstructured grid In-Reply-To: References: Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F685CB81A2B@MBX111.d.ethz.ch> Franco you cannot slice or isosurface a dataset made of poly-vertices, because there is no 3D cell. your best bet would be to use the Point Interpolation filters (standard points , or SPH points). However, these filters require at least one scalar array attached to the points. Your data only contains a vector-valued array. If you decompose the vector into its 3 components, you would be able to use the Point Interpolators. ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.borduas at caboma.com Tue May 22 10:34:15 2018 From: jonathan.borduas at caboma.com (Jonathan Borduas) Date: Tue, 22 May 2018 14:34:15 +0000 Subject: [Paraview] OSPRay textures and materials mapping In-Reply-To: References: Message-ID: Hi David, I was able to complete all the steps. As you probably know, the step four was tedious. However I couldn?t get the result I wanted since I couldn?t assign the right textures to the right areas. Is there a mechanism to assign the texture just like we assign materials ? I guess this is what you mean by ?multi-texture isn?t implemented yet?. I could probably extract all objects using a connectivity filter and then manually assign the textures, but again it is a tedious process for complex objects. Is there a roadmap as to when the multi-texture could be implemented ? It would be great to have readers that can load texture/Geometry/Materials files such as .obj (.mtl and .png), .fbx and .dwg. Best regards, Jonathan Borduas From: David E DeMarle Sent: Friday, May 18, 2018 10:58 AM To: Jonathan Borduas Cc: paraview at public.kitware.com Subject: Re: [Paraview] OSPRay textures and materials mapping Hi Jonathan. Yes you can do that. 1) File->Load OSPRay Materials, switch the file type from "OSPRay Material Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will let you load all of the materials and textures. They should all show up in the Material list. 2) The OSPRay Material selection (on Display section of Properties Tab advanced) will have all of the individual materials listed in it + a few others including "Value Indexed" which is all the way at the bottom. Choose that it means "use the categorical color lookup table to decide what material to use for each block and or polygon" 3) Now change the scalar array to color by to "Material Id", a cell aligned array which has the material index to use for each cell. 4) Make up a categorical lookup table. open spreadsheet view, switch to Field Data, look at the Material Names. open the color map editor for the "Material Id", click on Interpret Values As Categories and the color will change from bluewhitered to extremely YELLOW. add annotations, value 0 should be the name of the first entry in the Material Names array. Notes: * I have the trivial script somewhere that I used for the SC17 demo that makes up the lookup table for you. I'll try and dig that up. * in general it isn't a 1:1 match between mtl and ospray, in particular multitextures are not yet implemented * along those lines, the mtl parser I whipped up $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL recognizes a "type" extension outside of mtl that lets you bring in ospray's nice materials instead of the default OBJMaterial. Glass and Metal are particularly nice. At some point I'll get around to making this all automatic. Patches are welcome in the meantime. good luck David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas > wrote: Hi, I tried rendering an .obj file running OSPRay that was exported from PCon Planner Version 7.7 Patch 1. The original file is a .dwg I used the PathThracer mode. However, attached to the .obj there is an .mtl file containing 50+ materials and 50+ texture (.png) files. I didn?t find an automated way to map all polydata of the .obj with their respective material and texture file and rendering them using OSPRay. It seems that I have to assign the material and texture to each polydata one-by-one. Is there a feature that will automatically map the respective textures and materials ? Here is the link to download the original .dwg file. https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_apartment.dwg You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 with the File/Export/Geometry menu. I couldn?t share the .obj file since the size is 60mb+ Thank you Jonathan Borduas _______________________________________________ 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: From dave.demarle at kitware.com Tue May 22 12:34:21 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 22 May 2018 12:34:21 -0400 Subject: [Paraview] OSPRay textures and materials mapping In-Reply-To: References: Message-ID: On Tue, May 22, 2018 at 10:34 AM, Jonathan Borduas < jonathan.borduas at caboma.com> wrote: > Hi David, > > I was able to complete all the steps. As you probably know, the step four > was tedious. > > However I couldn?t get the result I wanted since I couldn?t assign the > right textures to the right areas. Is there a mechanism to assign the > texture just like we assign materials ? > I guess this is what you mean by ?multi-texture isn?t implemented yet?. I > could probably extract all objects using a connectivity filter and then > manually assign the textures, but again it is a tedious process for complex > objects. > > Better to do it in the code. We read in all of the texture coordinates when we read the .obj and all of the texture files when we read the .mtl -> we just aren't using the right set of texture coordinates in all cases yet. That is most of what I mean by multitexture. Is there a roadmap as to when the multi-texture could be implemented ? > I'm hoping for 5.6 in a couple of months time. Although this is important it may very well slip because of other priorities. It would be great to have readers that can load texture/Geometry/Materials > files such as .obj (.mtl and .png), .fbx and .dwg. > Agreed. > Best regards, > > > > Jonathan Borduas > > > > *From:* David E DeMarle > *Sent:* Friday, May 18, 2018 10:58 AM > *To:* Jonathan Borduas > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] OSPRay textures and materials mapping > > > > Hi Jonathan. > > > > Yes you can do that. > > > > 1) File->Load OSPRay Materials, switch the file type from "OSPRay Material > Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will let you > load all of the materials and textures. They should all show up in the > Material list. > > > > 2) The OSPRay Material selection (on Display section of Properties Tab > advanced) will have all of the individual materials listed in it + a few > others including "Value Indexed" which is all the way at the bottom. Choose > that it means "use the categorical color lookup table to decide what > material to use for each block and or polygon" > > > > 3) Now change the scalar array to color by to "Material Id", a cell > aligned array which has the material index to use for each cell. > > > > 4) Make up a categorical lookup table. > > open spreadsheet view, switch to Field Data, look at the Material Names. > > open the color map editor for the "Material Id", click on Interpret > Values As Categories and the color will change from bluewhitered to > extremely YELLOW. > > add annotations, value 0 should be the name of the first entry in the > Material Names array. > > > > Notes: > > * I have the trivial script somewhere that I used for the SC17 demo that > makes up the lookup table for you. I'll try and dig that up. > > * in general it isn't a 1:1 match between mtl and ospray, in particular > multitextures are not yet implemented > > * along those lines, the mtl parser I whipped up > $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL > recognizes a "type" extension outside of mtl that lets you bring in > ospray's nice materials instead of the default OBJMaterial. Glass and Metal > are particularly nice. > > > > At some point I'll get around to making this all automatic. Patches are > welcome in the meantime. > > > > good luck > > > > > > > > > > > > > > > > > > > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > > > On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < > jonathan.borduas at caboma.com> wrote: > > Hi, > > I tried rendering an .obj file running OSPRay that was exported from PCon > Planner Version 7.7 Patch 1. The original file is a .dwg > > > > I used the PathThracer mode. However, attached to the .obj there is an > .mtl file containing 50+ materials and 50+ texture (.png) files. > > I didn?t find an automated way to map all polydata of the .obj with their > respective material and texture file and rendering them using OSPRay. > > It seems that I have to assign the material and texture to each polydata > one-by-one. > > > > Is there a feature that will automatically map the respective textures and > materials ? > > Here is the link to download the original .dwg file. > https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_ > apartment.dwg > > You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 > with the File/Export/Geometry menu. > I couldn?t share the .obj file since the size is 60mb+ > > > > Thank you > > > > Jonathan Borduas > > > > > _______________________________________________ > 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: From dave.demarle at kitware.com Tue May 22 13:51:42 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 22 May 2018 13:51:42 -0400 Subject: [Paraview] OSPRay textures and materials mapping In-Reply-To: References: Message-ID: On Tue, May 22, 2018 at 12:34 PM, David E DeMarle wrote: > > On Tue, May 22, 2018 at 10:34 AM, Jonathan Borduas < > jonathan.borduas at caboma.com> wrote: > >> Hi David, >> >> I was able to complete all the steps. As you probably know, the step four >> was tedious. >> >> However I couldn?t get the result I wanted since I couldn?t assign the >> right textures to the right areas. Is there a mechanism to assign the >> texture just like we assign materials ? >> I guess this is what you mean by ?multi-texture isn?t implemented yet?. I >> could probably extract all objects using a connectivity filter and then >> manually assign the textures, but again it is a tedious process for complex >> objects. >> >> > Better to do it in the code. We read in all of the texture coordinates > when we read the .obj and all of the texture files when we read the .mtl -> > we just aren't using the right set of texture coordinates in all cases yet. > That is most of what I mean by multitexture. > > Is there a roadmap as to when the multi-texture could be implemented ? >> > > I'm hoping for 5.6 in a couple of months time. Although this is important > it may very well slip because of other priorities. > > In the meantime, this python programmable filter is a workaround. pdi = self.GetInput() pdo = self.GetOutput() pdo.ShallowCopy(pdi) arraynames = [] arrays = {} for a in range(0,pdi.GetPointData().GetNumberOfArrays()): array = pdi.GetPointData().GetArray(a) if array.GetNumberOfComponents() != 2: continue arrname = array.GetName() pdo.GetPointData().RemoveArray(arrname) arraynames.append(arrname) arrays[arrname] = array tcoords = vtk.vtkFloatArray() tcoords.SetName("TCoords") tcoords.SetNumberOfComponents(2) pdo.GetPointData().SetTCoords(tcoords) # todo numpy this to make it 100x faster for p in range(0, pdi.GetNumberOfPoints()): tcoord = [0,0] for arrname in arrays: candidate = arrays[arrname].GetTuple2(p) if candidate[0] == -1 and candidate[1] == -1: continue tcoord = candidate tcoords.InsertNextTuple2(tcoord[0],tcoord[1]) > It would be great to have readers that can load texture/Geometry/Materials >> files such as .obj (.mtl and .png), .fbx and .dwg. >> > > Agreed. > > >> Best regards, >> >> >> >> Jonathan Borduas >> >> >> >> *From:* David E DeMarle >> *Sent:* Friday, May 18, 2018 10:58 AM >> *To:* Jonathan Borduas >> *Cc:* paraview at public.kitware.com >> *Subject:* Re: [Paraview] OSPRay textures and materials mapping >> >> >> >> Hi Jonathan. >> >> >> >> Yes you can do that. >> >> >> >> 1) File->Load OSPRay Materials, switch the file type from "OSPRay >> Material Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will >> let you load all of the materials and textures. They should all show up in >> the Material list. >> >> >> >> 2) The OSPRay Material selection (on Display section of Properties Tab >> advanced) will have all of the individual materials listed in it + a few >> others including "Value Indexed" which is all the way at the bottom. Choose >> that it means "use the categorical color lookup table to decide what >> material to use for each block and or polygon" >> >> >> >> 3) Now change the scalar array to color by to "Material Id", a cell >> aligned array which has the material index to use for each cell. >> >> >> >> 4) Make up a categorical lookup table. >> >> open spreadsheet view, switch to Field Data, look at the Material >> Names. >> >> open the color map editor for the "Material Id", click on Interpret >> Values As Categories and the color will change from bluewhitered to >> extremely YELLOW. >> >> add annotations, value 0 should be the name of the first entry in the >> Material Names array. >> >> >> >> Notes: >> >> * I have the trivial script somewhere that I used for the SC17 demo that >> makes up the lookup table for you. I'll try and dig that up. >> >> * in general it isn't a 1:1 match between mtl and ospray, in particular >> multitextures are not yet implemented >> >> * along those lines, the mtl parser I whipped up >> $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL >> recognizes a "type" extension outside of mtl that lets you bring in >> ospray's nice materials instead of the default OBJMaterial. Glass and Metal >> are particularly nice. >> >> >> >> At some point I'll get around to making this all automatic. Patches are >> welcome in the meantime. >> >> >> >> good luck >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> David E DeMarle >> Kitware, Inc. >> Principal Engineer >> 21 Corporate Drive >> >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> >> >> On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < >> jonathan.borduas at caboma.com> wrote: >> >> Hi, >> >> I tried rendering an .obj file running OSPRay that was exported from PCon >> Planner Version 7.7 Patch 1. The original file is a .dwg >> >> >> >> I used the PathThracer mode. However, attached to the .obj there is an >> .mtl file containing 50+ materials and 50+ texture (.png) files. >> >> I didn?t find an automated way to map all polydata of the .obj with their >> respective material and texture file and rendering them using OSPRay. >> >> It seems that I have to assign the material and texture to each polydata >> one-by-one. >> >> >> >> Is there a feature that will automatically map the respective textures >> and materials ? >> >> Here is the link to download the original .dwg file. >> https://www.easterngraphics.com/pcon/en/wp-content/uploads/ >> 2015/03/sample_apartment.dwg >> >> You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 >> with the File/Export/Geometry menu. >> I couldn?t share the .obj file since the size is 60mb+ >> >> >> >> Thank you >> >> >> >> Jonathan Borduas >> >> >> >> >> _______________________________________________ >> 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: From dave.demarle at kitware.com Tue May 22 14:10:21 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 22 May 2018 14:10:21 -0400 Subject: [Paraview] OSPRay textures and materials mapping In-Reply-To: References: Message-ID: And here is a python schell script to make step 4 (create the lookuptable) automatic. apartment = FindSource("sample_apartment.obj") vtklevel = apartment.GetClientSideObject() lut = GetColorTransferFunction('MaterialIds') arr = vtklevel.GetOutput().GetFieldData().GetAbstractArray(0) lut.InterpretValuesAsCategories = 1 ll = [] for x in range(0, arr.GetNumberOfTuples()): ll.append(str(x)) ll.append(arr.GetValue(x)) David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, May 22, 2018 at 1:51 PM, David E DeMarle wrote: > On Tue, May 22, 2018 at 12:34 PM, David E DeMarle < > dave.demarle at kitware.com> wrote: > >> >> On Tue, May 22, 2018 at 10:34 AM, Jonathan Borduas < >> jonathan.borduas at caboma.com> wrote: >> >>> Hi David, >>> >>> I was able to complete all the steps. As you probably know, the step >>> four was tedious. >>> >>> However I couldn?t get the result I wanted since I couldn?t assign the >>> right textures to the right areas. Is there a mechanism to assign the >>> texture just like we assign materials ? >>> I guess this is what you mean by ?multi-texture isn?t implemented yet?. >>> I could probably extract all objects using a connectivity filter and then >>> manually assign the textures, but again it is a tedious process for complex >>> objects. >>> >>> >> Better to do it in the code. We read in all of the texture coordinates >> when we read the .obj and all of the texture files when we read the .mtl -> >> we just aren't using the right set of texture coordinates in all cases yet. >> That is most of what I mean by multitexture. >> >> Is there a roadmap as to when the multi-texture could be implemented ? >>> >> >> I'm hoping for 5.6 in a couple of months time. Although this is important >> it may very well slip because of other priorities. >> >> > > In the meantime, this python programmable filter is a workaround. > > pdi = self.GetInput() > > pdo = self.GetOutput() > > pdo.ShallowCopy(pdi) > > > arraynames = [] > > arrays = {} > > for a in range(0,pdi.GetPointData().GetNumberOfArrays()): > > array = pdi.GetPointData().GetArray(a) > > if array.GetNumberOfComponents() != 2: > > continue > > arrname = array.GetName() > > pdo.GetPointData().RemoveArray(arrname) > > arraynames.append(arrname) > > arrays[arrname] = array > > > tcoords = vtk.vtkFloatArray() > > tcoords.SetName("TCoords") > > tcoords.SetNumberOfComponents(2) > > pdo.GetPointData().SetTCoords(tcoords) > > # todo numpy this to make it 100x faster > > for p in range(0, pdi.GetNumberOfPoints()): > > tcoord = [0,0] > > for arrname in arrays: > > candidate = arrays[arrname].GetTuple2(p) > > if candidate[0] == -1 and candidate[1] == -1: > > continue > > tcoord = candidate > > tcoords.InsertNextTuple2(tcoord[0],tcoord[1]) > > > > > >> It would be great to have readers that can load >>> texture/Geometry/Materials files such as .obj (.mtl and .png), .fbx and >>> .dwg. >>> >> >> Agreed. >> >> >>> Best regards, >>> >>> >>> >>> Jonathan Borduas >>> >>> >>> >>> *From:* David E DeMarle >>> *Sent:* Friday, May 18, 2018 10:58 AM >>> *To:* Jonathan Borduas >>> *Cc:* paraview at public.kitware.com >>> *Subject:* Re: [Paraview] OSPRay textures and materials mapping >>> >>> >>> >>> Hi Jonathan. >>> >>> >>> >>> Yes you can do that. >>> >>> >>> >>> 1) File->Load OSPRay Materials, switch the file type from "OSPRay >>> Material Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will >>> let you load all of the materials and textures. They should all show up in >>> the Material list. >>> >>> >>> >>> 2) The OSPRay Material selection (on Display section of Properties Tab >>> advanced) will have all of the individual materials listed in it + a few >>> others including "Value Indexed" which is all the way at the bottom. Choose >>> that it means "use the categorical color lookup table to decide what >>> material to use for each block and or polygon" >>> >>> >>> >>> 3) Now change the scalar array to color by to "Material Id", a cell >>> aligned array which has the material index to use for each cell. >>> >>> >>> >>> 4) Make up a categorical lookup table. >>> >>> open spreadsheet view, switch to Field Data, look at the Material >>> Names. >>> >>> open the color map editor for the "Material Id", click on Interpret >>> Values As Categories and the color will change from bluewhitered to >>> extremely YELLOW. >>> >>> add annotations, value 0 should be the name of the first entry in the >>> Material Names array. >>> >>> >>> >>> Notes: >>> >>> * I have the trivial script somewhere that I used for the SC17 demo that >>> makes up the lookup table for you. I'll try and dig that up. >>> >>> * in general it isn't a 1:1 match between mtl and ospray, in particular >>> multitextures are not yet implemented >>> >>> * along those lines, the mtl parser I whipped up >>> $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL >>> recognizes a "type" extension outside of mtl that lets you bring in >>> ospray's nice materials instead of the default OBJMaterial. Glass and Metal >>> are particularly nice. >>> >>> >>> >>> At some point I'll get around to making this all automatic. Patches are >>> welcome in the meantime. >>> >>> >>> >>> good luck >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> David E DeMarle >>> Kitware, Inc. >>> Principal Engineer >>> 21 Corporate Drive >>> >>> Clifton Park, NY 12065-8662 >>> Phone: 518-881-4909 >>> >>> >>> >>> On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < >>> jonathan.borduas at caboma.com> wrote: >>> >>> Hi, >>> >>> I tried rendering an .obj file running OSPRay that was exported from >>> PCon Planner Version 7.7 Patch 1. The original file is a .dwg >>> >>> >>> >>> I used the PathThracer mode. However, attached to the .obj there is an >>> .mtl file containing 50+ materials and 50+ texture (.png) files. >>> >>> I didn?t find an automated way to map all polydata of the .obj with >>> their respective material and texture file and rendering them using OSPRay. >>> >>> It seems that I have to assign the material and texture to each polydata >>> one-by-one. >>> >>> >>> >>> Is there a feature that will automatically map the respective textures >>> and materials ? >>> >>> Here is the link to download the original .dwg file. >>> https://www.easterngraphics.com/pcon/en/wp-content/uploads/2 >>> 015/03/sample_apartment.dwg >>> >>> You will need to export it to .obj using PCon Planner Version 7.7 Patch >>> 1 with the File/Export/Geometry menu. >>> I couldn?t share the .obj file since the size is 60mb+ >>> >>> >>> >>> Thank you >>> >>> >>> >>> Jonathan Borduas >>> >>> >>> >>> >>> _______________________________________________ >>> 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: From andy.bauer at kitware.com Tue May 22 15:00:14 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 22 May 2018 15:00:14 -0400 Subject: [Paraview] Resample To Image with Catalyst In-Reply-To: References: Message-ID: Hi Petr, Could you try adding in the following to your Python script after the coprocessor.RegisterWriter() line: writer.DataMode = 'Ascii' Please let me know if that fixes the issue for you. This isn't the desired fix but something to at least verify that I can reproduce your issue. Thanks, Andy On Mon, May 21, 2018 at 12:16 PM Petr Valenta wrote: > Hello, > > the code which I am using is instrumented with Catalyst. > I am trying to process simulation data using ResampleToImage filter and > then to store the result on a disk. > > In the Python pipeline I have something like: > > adaptor_input = coprocessor.CreateProducer(datadescription, 'input') > resample = ResampleToImage(Input=adaptor_input) > resample.UseInputBounds = True > resample.SamplingDimensions = [256, 256, 256] > writer = servermanager.writers.XMLPImageDataWriter(Input=resample) > coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10) > > When I check the results in ParaView, the grid is correct but the data > array appended on it contains only zeros. When I skip the filter and dump > directly the adaptor_input, the data array contains correct values. Could > you, please, help me to resolve this issue? > > Thank you. > > Kind regards, > Petr > > > _______________________________________________ > 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: From guanw at rhpcs.mcmaster.ca Tue May 22 15:05:15 2018 From: guanw at rhpcs.mcmaster.ca (Weiguang Guan) Date: Tue, 22 May 2018 15:05:15 -0400 Subject: [Paraview] Delaunay3D In-Reply-To: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> Message-ID: <5B0469EB.3000800@rhpcs.mcmaster.ca> Dear Paraview users, Based on the documentation, Delaunay3D will construct a 3D Delaunay triangulation from a list of input points if alpha=0. But I did an experiment that gave a different result. Here are the steps: (1) Sources->Point source, and set Number of points to N (I experiment with different N=5 and N=20) (2) Using sphere glyph to display these points (3) Apply filter "Delaunay 3D" to the points with alpha=0 and display the resultant unstructured grid as wireframe. When N=20, I can see some of the points are ignored in the process of Delauney triangulation. When N=5, The resultant unstructured grid has 3 cells while I think it should have only 2 tetrahedra. Can someone explain it? Thanks a lot. Weiguang -------------- next part -------------- An HTML attachment was scrubbed... URL: From will.schroeder at kitware.com Tue May 22 15:42:39 2018 From: will.schroeder at kitware.com (Will Schroeder) Date: Tue, 22 May 2018 15:42:39 -0400 Subject: [Paraview] Delaunay3D In-Reply-To: <5B0469EB.3000800@rhpcs.mcmaster.ca> References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <5B0469EB.3000800@rhpcs.mcmaster.ca> Message-ID: What version of ParaView? Mine works just fine..... 5.5.0-323-g37ce137a21 64-bit [image: image.png][image: image.png] On Tue, May 22, 2018 at 3:05 PM Weiguang Guan wrote: > Dear Paraview users, > > Based on the documentation, Delaunay3D will construct a 3D Delaunay > triangulation from a list of input points if alpha=0. But I did an > experiment that gave a different result. Here are the steps: > (1) Sources->Point source, and set Number of points to N (I experiment > with different N=5 and N=20) > (2) Using sphere glyph to display these points > (3) Apply filter "Delaunay 3D" to the points with alpha=0 and display the > resultant unstructured grid as wireframe. > > When N=20, I can see some of the points are ignored in the process of > Delauney triangulation. > When N=5, The resultant unstructured grid has 3 cells while I think it > should have only 2 tetrahedra. > > Can someone explain it? Thanks a lot. > > Weiguang > > _______________________________________________ > 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 > -- William J. Schroeder, PhD Kitware, Inc. - Building the World's Technical Computing Software 28 Corporate Drive Clifton Park, NY 12065 will.schroeder at kitware.com http://www.kitware.com (518) 881-4902 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 55568 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 103539 bytes Desc: not available URL: From guanw at rhpcs.mcmaster.ca Tue May 22 15:57:49 2018 From: guanw at rhpcs.mcmaster.ca (Weiguang Guan) Date: Tue, 22 May 2018 15:57:49 -0400 Subject: [Paraview] Delaunay3D In-Reply-To: References: <86a1650475b74b07936ae76d067f7162@ES01AMSNLNT.srn.sandia.gov> <5B0469EB.3000800@rhpcs.mcmaster.ca> Message-ID: <5B04763D.8090900@rhpcs.mcmaster.ca> Hi Will, Thank you very much for your time. I've tried v5.5 and v5.2. This "issue" doesn't seem to have anything to do with the versions. First of all, I would like to change my words for the N=5 case, where there might be 2, 3, or even 4 terahedra depending on the relative locations of the 5 points. However, the question for the N=20 case is still pending one. You can see the dangling points if you change the representation from "surface" to "wireframe". I basically have similar result as yours. Because the point source generates point cloud with random positions of points, you will see different results each time you change the parameters of Point Source (either number of point or the radius). Another question: is there another filter that constructs a grid from a set of points? Weiguang On 5/22/2018 3:42 PM, Will Schroeder wrote: > What version of ParaView? Mine works just > fine..... 5.5.0-323-g37ce137a21 64-bit > > image.pngimage.png > > > > On Tue, May 22, 2018 at 3:05 PM Weiguang Guan > wrote: > > Dear Paraview users, > > Based on the documentation, Delaunay3D will construct a 3D > Delaunay triangulation from a list of input points if alpha=0. But > I did an experiment that gave a different result. Here are the steps: > (1) Sources->Point source, and set Number of points to N (I > experiment with different N=5 and N=20) > (2) Using sphere glyph to display these points > (3) Apply filter "Delaunay 3D" to the points with alpha=0 and > display the resultant unstructured grid as wireframe. > > When N=20, I can see some of the points are ignored in the process > of Delauney triangulation. > When N=5, The resultant unstructured grid has 3 cells while I > think it should have only 2 tetrahedra. > > Can someone explain it? Thanks a lot. > > Weiguang > > _______________________________________________ > 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 > > > > -- > William J. Schroeder, PhD > Kitware, Inc. - Building the World's Technical Computing Software > 28 Corporate Drive > Clifton Park, NY 12065 > will.schroeder at kitware.com > http://www.kitware.com > (518) 881-4902 -- -- Weiguang Guan Research Scientist RHPCS, McMaster University Phone: 905-525-9140 x22540 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 55568 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 103539 bytes Desc: not available URL: From kmorel at sandia.gov Tue May 22 16:15:50 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Tue, 22 May 2018 20:15:50 +0000 Subject: [Paraview] Delaunay3D Message-ID: Weiguang, I just want to clarify something quickly with your question. When you say ?some of the points are ignored in the process of Delauney triangulation? and ?dangling points,? do you mean that you can see some spheres that are inside the rest of the spheres? I note in your description that you said you are looking at the wireframe of the Delaunay triangulation. The wireframe representation actually only shows the wireframe of the surface. You will not see the edges on the interior of the mesh, so any points that are on the interior will not look connected even if they are. Instead of showing the wireframe, run the Extract Edges filter (which will show a wireframe of all edges). Does that connect the points like you expect? -Ken From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Weiguang Guan Sent: Tuesday, May 22, 2018 1:58 PM To: Will Schroeder Cc: paraview at public.kitware.com Subject: [EXTERNAL] Re: [Paraview] Delaunay3D Hi Will, Thank you very much for your time. I've tried v5.5 and v5.2. This "issue" doesn't seem to have anything to do with the versions. First of all, I would like to change my words for the N=5 case, where there might be 2, 3, or even 4 terahedra depending on the relative locations of the 5 points. However, the question for the N=20 case is still pending one. You can see the dangling points if you change the representation from "surface" to "wireframe". I basically have similar result as yours. Because the point source generates point cloud with random positions of points, you will see different results each time you change the parameters of Point Source (either number of point or the radius). Another question: is there another filter that constructs a grid from a set of points? Weiguang On 5/22/2018 3:42 PM, Will Schroeder wrote: What version of ParaView? Mine works just fine..... 5.5.0-323-g37ce137a21 64-bit [image.png][image.png] On Tue, May 22, 2018 at 3:05 PM Weiguang Guan > wrote: Dear Paraview users, Based on the documentation, Delaunay3D will construct a 3D Delaunay triangulation from a list of input points if alpha=0. But I did an experiment that gave a different result. Here are the steps: (1) Sources->Point source, and set Number of points to N (I experiment with different N=5 and N=20) (2) Using sphere glyph to display these points (3) Apply filter "Delaunay 3D" to the points with alpha=0 and display the resultant unstructured grid as wireframe. When N=20, I can see some of the points are ignored in the process of Delauney triangulation. When N=5, The resultant unstructured grid has 3 cells while I think it should have only 2 tetrahedra. Can someone explain it? Thanks a lot. Weiguang _______________________________________________ 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 -- William J. Schroeder, PhD Kitware, Inc. - Building the World's Technical Computing Software 28 Corporate Drive Clifton Park, NY 12065 will.schroeder at kitware.com http://www.kitware.com (518) 881-4902 -- -- Weiguang Guan Research Scientist RHPCS, McMaster University Phone: 905-525-9140 x22540 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 56044 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 75217 bytes Desc: image004.png URL: From fdiri at hotmail.com Tue May 22 16:47:29 2018 From: fdiri at hotmail.com (Franco Di Rino) Date: Tue, 22 May 2018 20:47:29 +0000 Subject: [Paraview] Colormap cut planes and contour filter in an unstructured grid In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F685CB81A2B@MBX111.d.ethz.ch> References: , <0EB9B6375711A04B820E6B6F5CCA9F685CB81A2B@MBX111.d.ethz.ch> Message-ID: Jean Thanks for your reply. Your answer is clear. Now, another question....If i could make 3d cells would I can introduce vectors values in them? Because I undestood that I could only set escalars. How could I do the colormap slices and iso surfaces in case I would have a a 3D cell? ________________________________ De: Favre Jean Enviado: martes, 22 de mayo de 2018 04:55 a.m. Para: Franco Di Rino; paraview at public.kitware.com Asunto: RE: Colormap cut planes and contour filter in an unstructured grid Franco you cannot slice or isosurface a dataset made of poly-vertices, because there is no 3D cell. your best bet would be to use the Point Interpolation filters (standard points , or SPH points). However, these filters require at least one scalar array attached to the points. Your data only contains a vector-valued array. If you decompose the vector into its 3 components, you would be able to use the Point Interpolators. ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Wed May 23 02:19:29 2018 From: jfavre at cscs.ch (Favre Jean) Date: Wed, 23 May 2018 06:19:29 +0000 Subject: [Paraview] Colormap cut planes and contour filter in an unstructured grid In-Reply-To: References: , <0EB9B6375711A04B820E6B6F5CCA9F685CB81A2B@MBX111.d.ethz.ch>, Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F685CB86F4F@MBX211.d.ethz.ch> Franco You can probably generate a grid of cells using the Delaunay3D filter. (See another thread on the topic in the last 24 hours). You will get a grid of tetrahedra. Your field data (scalars or vectors) will remain attached to the vertices. You can use the 'Point Data to Cell Data' filter if you want to average data at the cells' centers. once you have a 3D grid, you can slice and isosurface it and ParaView will give you the option to color the data using either the magnitude of your vector field (the default), or any of its independent component. ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From valenpe7 at email.cz Wed May 23 04:58:36 2018 From: valenpe7 at email.cz (Petr Valenta) Date: Wed, 23 May 2018 10:58:36 +0200 (CEST) Subject: [Paraview] Resample To Image with Catalyst References: Message-ID: Hi Andy, thank you for your reply. I don't know why, but it does work with setting DataMode='Ascii'. It works also with DataMode='Binary', the only option which does not work seems to be now DataMode='Appended'. Thanks and regards, Petr ---------- P?vodn? e-mail ---------- Od: Andy Bauer andy.bauer at kitware.com Komu: valenpe7 at email.cz Datum: 22. 5. 2018 21:02:18 P?edm?t: Re: [Paraview] Resample To Image with Catalyst Hi Petr, Could you try adding in the following to your Python script after the coprocessor.RegisterWriter() line: writer.DataMode = 'Ascii' Please let me know if that fixes the issue for you. This isn't the desired fix but something to at least verify that I can reproduce your issue. Thanks, Andy On Mon, May 21, 2018 at 12:16 PM Petr Valenta valenpe7 at email.cz wrote: Hello, the code which I am using is instrumented with Catalyst. I am trying to process simulation data using ResampleToImage filter and then to store the result on a disk. In the Python pipeline I have something like: adaptor_input = coprocessor.CreateProducer(datadescription, 'input') resample = ResampleToImage(Input=adaptor_input) resample.UseInputBounds = True resample.SamplingDimensions = [256, 256, 256] writer = servermanager.writers.XMLPImageDataWriter(Input=resample) coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10) When I check the results in ParaView, the grid is correct but the data array appended on it contains only zeros. When I skip the filter and dump directly the adaptor_input, the data array contains correct values. Could you, please, help me to resolve this issue? Thank you. Kind regards, Petr _______________________________________________ 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: From postgurke at web.de Wed May 23 04:48:07 2018 From: postgurke at web.de (postgurke at web.de) Date: Wed, 23 May 2018 10:48:07 +0200 Subject: [Paraview] Texture images paths not handled correctly with Search Files under Specified Directory Message-ID: An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Wed May 23 08:03:23 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Wed, 23 May 2018 08:03:23 -0400 Subject: [Paraview] Resample To Image with Catalyst In-Reply-To: References: Message-ID: Thanks for testing. We're working on a fix for this now. On Wed, May 23, 2018 at 4:58 AM Petr Valenta wrote: > Hi Andy, > > thank you for your reply. I don't know why, but it does work with setting > DataMode='Ascii'. > It works also with DataMode='Binary', the only option which does not work > seems to be now DataMode='Appended'. > > Thanks and regards, > Petr > > ---------- P?vodn? e-mail ---------- > > Od: Andy Bauer andy.bauer at kitware.com > > Komu: valenpe7 at email.cz > > Datum: 22. 5. 2018 21:02:18 > > P?edm?t: Re: [Paraview] Resample To Image with Catalyst > > Hi Petr, > > > Could you try adding in the following to your Python script after the > coprocessor.RegisterWriter() line: > writer.DataMode = 'Ascii' > > > Please let me know if that fixes the issue for you. This isn't the desired > fix but something to at least verify that I can reproduce your issue. > > > > Thanks, > Andy > > > > > > > > On Mon, May 21, 2018 at 12:16 PM Petr Valenta valenpe7 at email.cz wrote: > > Hello, > > the code which I am using is instrumented with Catalyst. > I am trying to process simulation data using ResampleToImage filter and > then to store the result on a disk. > > > In the Python pipeline I have something like: > > > adaptor_input = coprocessor.CreateProducer(datadescription, 'input') > resample = ResampleToImage(Input=adaptor_input) > > resample.UseInputBounds = True > > resample.SamplingDimensions = [256, 256, 256] > writer = servermanager.writers.XMLPImageDataWriter(Input=resample) > coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10) > > > > When I check the results in ParaView, the grid is correct but the data > array appended on it contains only zeros. When I skip the filter and dump > directly the adaptor_input, the data array contains correct values. Could > you, please, help me to resolve this issue? > > > Thank you. > > > Kind regards, > Petr > > > > > > _______________________________________________ > > 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: From guanw at rhpcs.mcmaster.ca Wed May 23 09:00:14 2018 From: guanw at rhpcs.mcmaster.ca (Weiguang Guan) Date: Wed, 23 May 2018 09:00:14 -0400 Subject: [Paraview] Delaunay3D In-Reply-To: References: Message-ID: <5B0565DE.8090609@rhpcs.mcmaster.ca> Hi Kenneth, Sorry for my unclear description of the problem in previous emails. You actually explained what happened in the second paragraph of your email. Now I do "Extract Edges" and see all the edges. But yesterday I saw some internal points have no edges connecting to them (I referred them as dangling points) when displaying the Delaunay triangulation grid in wireframe, and didn't realize it shows only the wireframe of the surface. Thank you for pointing this out. It all makes sense now. Best, Weiguang On 5/22/2018 4:15 PM, Moreland, Kenneth wrote: > > Weiguang, > > I just want to clarify something quickly with your question. When you > say ?some of the points are ignored in the process of Delauney > triangulation? and ?dangling points,? do you mean that you can see > some spheres that are inside the rest of the spheres? > > I note in your description that you said you are looking at the > wireframe of the Delaunay triangulation. The wireframe representation > actually only shows the wireframe of the /surface/. You will not see > the edges on the interior of the mesh, so any points that are on the > interior will not look connected even if they are. > > Instead of showing the wireframe, run the Extract Edges filter (which > will show a wireframe of /all/ edges). Does that connect the points > like you expect? > > -Ken > > *From:*ParaView [mailto:paraview-bounces at public.kitware.com] *On > Behalf Of *Weiguang Guan > *Sent:* Tuesday, May 22, 2018 1:58 PM > *To:* Will Schroeder > *Cc:* paraview at public.kitware.com > *Subject:* [EXTERNAL] Re: [Paraview] Delaunay3D > > Hi Will, > > Thank you very much for your time. I've tried v5.5 and v5.2. This > "issue" doesn't seem to have anything to do with the versions. > > First of all, I would like to change my words for the N=5 case, where > there might be 2, 3, or even 4 terahedra depending on the relative > locations of the 5 points. > > However, the question for the N=20 case is still pending one. You can > see the dangling points if you change the representation from > "surface" to "wireframe". I basically have similar result as yours. > Because the point source generates point cloud with random positions > of points, you will see different results each time you change the > parameters of Point Source (either number of point or the radius). > > Another question: is there another filter that constructs a grid from > a set of points? > > Weiguang > > > On 5/22/2018 3:42 PM, Will Schroeder wrote: > > What version of ParaView? Mine works just > fine..... 5.5.0-323-g37ce137a21 64-bit > > image.pngimage.png > > On Tue, May 22, 2018 at 3:05 PM Weiguang Guan > > wrote: > > Dear Paraview users, > > Based on the documentation, Delaunay3D will construct a 3D > Delaunay triangulation from a list of input points if alpha=0. > But I did an experiment that gave a different result. Here are > the steps: > (1) Sources->Point source, and set Number of points to N (I > experiment with different N=5 and N=20) > (2) Using sphere glyph to display these points > (3) Apply filter "Delaunay 3D" to the points with alpha=0 and > display the resultant unstructured grid as wireframe. > > When N=20, I can see some of the points are ignored in the > process of Delauney triangulation. > When N=5, The resultant unstructured grid has 3 cells while I > think it should have only 2 tetrahedra. > > Can someone explain it? Thanks a lot. > > Weiguang > > _______________________________________________ > 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 > > > -- > > William J. Schroeder, PhD > Kitware, Inc. - Building the World's Technical Computing Software > 28 Corporate Drive > Clifton Park, NY 12065 > will.schroeder at kitware.com > http://www.kitware.com > (518) 881-4902 > > > > > -- > -- > Weiguang Guan > Research Scientist > RHPCS, McMaster University > Phone: 905-525-9140 x22540 -- -- Weiguang Guan Research Scientist RHPCS, McMaster University Phone: 905-525-9140 x22540 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 56044 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 75217 bytes Desc: not available URL: From utkarsh.ayachit at kitware.com Wed May 23 09:23:29 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 23 May 2018 09:23:29 -0400 Subject: [Paraview] Texture images paths not handled correctly with Search Files under Specified Directory In-Reply-To: References: Message-ID: Venke, You script to load the textures is indeed fine. The issue with with the state loading implementation. There indeed is a bug where it doesn't handle texture sources. I've reported an issue here: https://gitlab.kitware.com/paraview/paraview/issues/18188 Utkarsh On Wed, May 23, 2018 at 5:00 AM wrote: > Hello > I have a problem with texture images in my state file when using the option "Search Files under Specified Directory" in the Load State dialog. It seems that ParaView changes all paths in the state file to the specified directory except for those of the images. Probably this has to do with the way I import the images to the texture planes: to be able to keep the texture images saved in a state file, I do the following: > rv1=GetActiveViewOrCreate('RenderView') > profile=XMLPolyDataReader(FileName=['C:\\myproject\\Profile.vtp']) > pathToTextureImage='C:\\myproject\\Image.jpg' > Display=Show(profile, view=rv1) > Display=GetDisplayProperties(profile) > Display.SetRepresentationType('Surface') > texProxy = servermanager.CreateProxy('textures','ImageTexture') > texProxy.GetProperty('FileName').SetElement(0, pathToTextureImage) > texProxy.UpdateVTKObjects() > servermanager.Register(texProxy, registrationName='Profile_with_image') > profile.UpdateVTKObjects() > Maybe this is not the way to go anymore with PV 5.5? The "Search Files under Specified Directory" is very handy for sharing PV states, so if anyone could tell me what I should do in order to have the texture images handled correctly, I would be very grateful. > Cheers, > Venke > _______________________________________________ > 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 From fdiri at hotmail.com Wed May 23 11:08:36 2018 From: fdiri at hotmail.com (Franco Di Rino) Date: Wed, 23 May 2018 15:08:36 +0000 Subject: [Paraview] Colormap cut planes and contour filter in an unstructured grid In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F685CB86F4F@MBX211.d.ethz.ch> References: , <0EB9B6375711A04B820E6B6F5CCA9F685CB81A2B@MBX111.d.ethz.ch>, , <0EB9B6375711A04B820E6B6F5CCA9F685CB86F4F@MBX211.d.ethz.ch> Message-ID: Jean Thank you very much, all your anwers have been very clear. Regards ________________________________ De: Favre Jean Enviado: mi?rcoles, 23 de mayo de 2018 03:19 a.m. Para: Franco Di Rino; paraview at public.kitware.com Asunto: RE: Colormap cut planes and contour filter in an unstructured grid Franco You can probably generate a grid of cells using the Delaunay3D filter. (See another thread on the topic in the last 24 hours). You will get a grid of tetrahedra. Your field data (scalars or vectors) will remain attached to the vertices. You can use the 'Point Data to Cell Data' filter if you want to average data at the cells' centers. once you have a 3D grid, you can slice and isosurface it and ParaView will give you the option to color the data using either the magnitude of your vector field (the default), or any of its independent component. ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Thu May 24 11:30:55 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 24 May 2018 11:30:55 -0400 Subject: [Paraview] Texture images paths not handled correctly with Search Files under Specified Directory In-Reply-To: References: Message-ID: Venke, A fix is here: https://gitlab.kitware.com/paraview/paraview/merge_requests/2475 It should make it into 5.6 planned for August/Sept. Utkarsh On Wed, May 23, 2018 at 9:23 AM Utkarsh Ayachit wrote: > Venke, > You script to load the textures is indeed fine. The issue with with the > state loading implementation. There indeed is a bug where it doesn't handle > texture sources. > I've reported an issue here: > https://gitlab.kitware.com/paraview/paraview/issues/18188 > Utkarsh > On Wed, May 23, 2018 at 5:00 AM wrote: > > Hello > > I have a problem with texture images in my state file when using the > option "Search Files under Specified Directory" in the Load State dialog. > It seems that ParaView changes all paths in the state file to the specified > directory except for those of the images. Probably this has to do with the > way I import the images to the texture planes: to be able to keep the > texture images saved in a state file, I do the following: > > rv1=GetActiveViewOrCreate('RenderView') > > profile=XMLPolyDataReader(FileName=['C:\\myproject\\Profile.vtp']) > > pathToTextureImage='C:\\myproject\\Image.jpg' > > Display=Show(profile, view=rv1) > > Display=GetDisplayProperties(profile) > > Display.SetRepresentationType('Surface') > > texProxy = servermanager.CreateProxy('textures','ImageTexture') > > texProxy.GetProperty('FileName').SetElement(0, pathToTextureImage) > > texProxy.UpdateVTKObjects() > > servermanager.Register(texProxy, registrationName='Profile_with_image') > > profile.UpdateVTKObjects() > > Maybe this is not the way to go anymore with PV 5.5? The "Search Files > under Specified Directory" is very handy for sharing PV states, so if > anyone could tell me what I should do in order to have the texture images > handled correctly, I would be very grateful. > > Cheers, > > Venke > > _______________________________________________ > > 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 From en.mhdbabiker at gmail.com Thu May 24 19:53:10 2018 From: en.mhdbabiker at gmail.com (Mohammed Babiker) Date: Fri, 25 May 2018 01:53:10 +0200 Subject: [Paraview] Extract cells by region filter Message-ID: <5b075069.1c69fb81.74946.a980@mx.google.com> Hello Paraview , I would like to crate a box with known dimensions around a geometry inlet with ExtractcellsbyRegion filter (in property selecting intersect with Box), How can I know exactly the dimensions of the box ?? suggestions are really welcomed . Regards, Mohammed Hassan Chemical Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From postgurke at web.de Fri May 25 04:54:16 2018 From: postgurke at web.de (postgurke at web.de) Date: Fri, 25 May 2018 10:54:16 +0200 Subject: [Paraview] Question about ArrowGlyphFilter In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From florian.foinant at lifeds.fr Fri May 25 09:25:12 2018 From: florian.foinant at lifeds.fr (Florian FOINANT) Date: Fri, 25 May 2018 13:25:12 +0000 Subject: [Paraview] Time in calculix datas Message-ID: Hi, I run Calculix *MODAL DYNAMIC calculation and obtain a FRD file I convert to VTK with the mmh_ccx2vtk utility. When I load this VTK in Paraview I obtain a dataset with hundreds [###]-DISP fields, does exist a way to convert these fields in time steps ? Thanks ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Moritz.Huck at isea.rwth-aachen.de Fri May 25 09:16:38 2018 From: Moritz.Huck at isea.rwth-aachen.de (Moritz.Huck at isea.rwth-aachen.de) Date: Fri, 25 May 2018 13:16:38 +0000 Subject: [Paraview] Filtering Data Set by Second Data Set Message-ID: Hello, I have two data set on the same mesh. I want to show data set A only for cells where the value of data set B is >= x. Is this possible in paraview? Best Regards, Moritz -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Fri May 25 09:59:58 2018 From: jfavre at cscs.ch (Favre Jean) Date: Fri, 25 May 2018 13:59:58 +0000 Subject: [Paraview] Filtering Data Set by Second Data Set In-Reply-To: References: Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F685CB93AE1@MBX211.d.ethz.ch> The Find Data filter (under the Edit menu) will do exactly this suppose you have a dataset with two fields called "A" and "B" Use Find Data Create a Selection Find Cells from "" Select "A" is >= x # (replace "x" by the numeric value click on "Run Selection Query" click on Extract Selection and a new object is created in the pipeline. ----------------------------------------------------------------------------------------------------------- Should you want to do this programmatically (using python), it is a far less obvious to figure out the right syntax, because the calls are not being traced. :-( Here is the code I would use: selection=SelectCells() selection.QueryString="scalar2 >= x" # (replace "x" by the numeric value selection.FieldType = 'CELL' selection.UpdatePipelineInformation() # create a new 'Extract Selection' # assuming your input object is called "grid" mySelection = ExtractSelection(Input=grid, Selection=selection) mySelection.UpdatePipeline() Show(mySelection) HTH ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From Moritz.Huck at isea.rwth-aachen.de Fri May 25 10:42:31 2018 From: Moritz.Huck at isea.rwth-aachen.de (Moritz.Huck at isea.rwth-aachen.de) Date: Fri, 25 May 2018 14:42:31 +0000 Subject: [Paraview] Filtering Data Set by Second Data Set Message-ID: Hi, I tried this. But the created object only contains the A data not the B data. I have created the data set by "Group Datasets" since A and B come from different files. (I am using Paraview 5.4.1 if there are differences) Best Regards, Moritz Von: Favre Jean [mailto:jfavre at cscs.ch] Gesendet: Freitag, 25. Mai 2018 16:00 An: Huck, Moritz; paraview at public.kitware.com Betreff: RE: Filtering Data Set by Second Data Set The Find Data filter (under the Edit menu) will do exactly this suppose you have a dataset with two fields called "A" and "B" Use Find Data Create a Selection Find Cells from "" Select "A" is >= x # (replace "x" by the numeric value click on "Run Selection Query" click on Extract Selection and a new object is created in the pipeline. ----------------------------------------------------------------------------------------------------------- Should you want to do this programmatically (using python), it is a far less obvious to figure out the right syntax, because the calls are not being traced. :-( Here is the code I would use: selection=SelectCells() selection.QueryString="scalar2 >= x" # (replace "x" by the numeric value selection.FieldType = 'CELL' selection.UpdatePipelineInformation() # create a new 'Extract Selection' # assuming your input object is called "grid" mySelection = ExtractSelection(Input=grid, Selection=selection) mySelection.UpdatePipeline() Show(mySelection) HTH ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Fri May 25 10:55:29 2018 From: jfavre at cscs.ch (Favre Jean) Date: Fri, 25 May 2018 14:55:29 +0000 Subject: [Paraview] Filtering Data Set by Second Data Set In-Reply-To: References: Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F685CB93BF7@MBX211.d.ethz.ch> Well..."Group Dataset" is another beast. In your original message you said the data was on the same mesh. It is not. if you follow the ? under "Group Datasets" the Help menu will tell you "Groups multiple datasets to create a multiblock dataset" So you do not have a single mesh, but you now have a multi-block made of two meshes. What you want instead is 'Append Attributes'. Select both objects in your pipeline browsers, and append them. You will get a single dataset with the two scalars "A" and "B". "The Append Attributes filter takes multiple input data sets with the same geometry and merges their point and cell attributes to produce a single output containing all the point and cell attributes of the inputs." Repeat Selection as in the previous email. Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From Moritz.Huck at isea.rwth-aachen.de Sat May 26 05:28:26 2018 From: Moritz.Huck at isea.rwth-aachen.de (Moritz.Huck at isea.rwth-aachen.de) Date: Sat, 26 May 2018 09:28:26 +0000 Subject: [Paraview] Filtering Data Set by Second Data Set Message-ID: Hi Jean, Thank you that worked. Please excuse the confusion, I am new to using paraview and not totally aware how data is managed. Same mesh referred to the same mesh in the FEM software and therefore matching geometries. Thank ouy, Moritz Von: Favre Jean [mailto:jfavre at cscs.ch] Gesendet: Freitag, 25. Mai 2018 16:55 An: Huck, Moritz; paraview at public.kitware.com Betreff: RE: Filtering Data Set by Second Data Set Well..."Group Dataset" is another beast. In your original message you said the data was on the same mesh. It is not. if you follow the ? under "Group Datasets" the Help menu will tell you "Groups multiple datasets to create a multiblock dataset" So you do not have a single mesh, but you now have a multi-block made of two meshes. What you want instead is 'Append Attributes'. Select both objects in your pipeline browsers, and append them. You will get a single dataset with the two scalars "A" and "B". "The Append Attributes filter takes multiple input data sets with the same geometry and merges their point and cell attributes to produce a single output containing all the point and cell attributes of the inputs." Repeat Selection as in the previous email. Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Sun May 27 22:34:20 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Sun, 27 May 2018 19:34:20 -0700 Subject: [Paraview] paraviewweb multiple renderview problem Message-ID: Hi All: For a ParaViewWeb application using pvpython as a server, I have two vtkRenderer objects side-by-side. I have used setViewId() to set the view IDs of those two objects to correspond to two different RenderView objects over on the server, with viewIDs retrieved using the GetGlobalIDAsString() method. I expected to see the different render views in the two different vtkRenderers, but unfortunately what I see is always the same visualization in the two different windows, sometimes one RenderView, sometimes the other. This is probably too vague a description to diagnose the problem (though advice is certainly welcome) so I also have these specific questions: 1. Is the concept of the "active" view of any use in this context, or will that just get in the way? I've tried experimenting with making one or the other render view active on the server and it clearly changes the behavior, but I still wind up with the same view in both vtkRenderer objects. 2. Are the view IDs supposed to be strings or integers on the client? The divvy code seems to imply integers, but there is a "Failed to determine the LookupTable being used." error on the server that seems to be associated with my choosing to use integers on the client. 3. How is the MouseHandler code supposed to relate to these two views? It seems to matter which vtkRenderer window it's clicked in, but which one moves doesn't seem related to the viewID of the window. Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From asduifhssauidf at gmail.com Mon May 28 06:41:13 2018 From: asduifhssauidf at gmail.com (iusadhfoias sidufasipudf) Date: Mon, 28 May 2018 12:41:13 +0200 Subject: [Paraview] Why are certain Paraview users ignored on this list? Message-ID: Dear experienced Paraview users, I wonder how you decide which posts to answer and which to ignore. My impression is that your decision doesn't depend whether questions are well expained or whether you can help people a lot with minimal effort from your side. Instead it seems like you look at the user's name, and if it originates from a different culture, you tend to prefer other help requests. Why else do you completely ignore questions for example from ?? (Zhe), from myself and a few others? What can we do to get a little attention? Many thanks, Jussuf -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Mon May 28 07:14:46 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Mon, 28 May 2018 13:14:46 +0200 Subject: [Paraview] Why are certain Paraview users ignored on this list? In-Reply-To: References: Message-ID: Hi Jussuf I would suggest reading this : http://www.catb.org/esr/faqs/smart-questions.html To answer specifically your questions, this is a community managed mailing list. If nobody knows the answer for the questions you're asking, or if it takes too long to investigate the issue, it is likely that nobody will answer. You can also have professional support for ParaView at kitware.com Best regards, Mathieu Westphal On Mon, May 28, 2018 at 12:41 PM, iusadhfoias sidufasipudf < asduifhssauidf at gmail.com> wrote: > Dear experienced Paraview users, > I wonder how you decide which posts to answer and which to ignore. > > My impression is that your decision doesn't depend whether questions are > well expained or whether you can help people a lot with minimal effort from > your side. Instead it seems like you look at the user's name, and if it > originates from a different culture, you tend to prefer other help requests. > > Why else do you completely ignore questions for example from ?? (Zhe), > from myself and a few others? > > What can we do to get a little attention? > > Many thanks, > Jussuf > > _______________________________________________ > 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: From asduifhssauidf at gmail.com Mon May 28 09:20:33 2018 From: asduifhssauidf at gmail.com (iusadhfoias sidufasipudf) Date: Mon, 28 May 2018 15:20:33 +0200 Subject: [Paraview] Why are certain Paraview users ignored on this list? In-Reply-To: References: Message-ID: Dear Mathieu, dear list, I meant to send another post to the list, asking what was wrong with this post of mine: https://public.kitware.com/pipermail/paraview/2018-May/042654.html Accidentally, I only sent it to Mathieu, and he replied that Kitware doesn't have enough Catalyst experts. Well, one person familiar with starting a Catalyst session would be enough to check whether this is a serious bug or a problem on my side. It doesn't take an expert. I got the impression that Kitware is actively promoting Catalyst as _the_ next big thing. If such a bug cannot be dealt with by Kitware, I'll rather develop my own Catalyst replacement than waiting for solutions. At least, it explains another ignored Catalyst question by Zhe, if Kitware cannot answer Catalyst related questions. However, I can't stop wondering whether it's really the content or how well posed a question is and not the names of the users that ask, which decides whether they receive an answer or not. I may return to this thread later with more examples. Many thanks, Jussuf On Mon, May 28, 2018 at 1:14 PM, Mathieu Westphal < mathieu.westphal at kitware.com> wrote: > Hi Jussuf > > I would suggest reading this : http://www.catb.org/esr/faqs/ > smart-questions.html > > To answer specifically your questions, this is a community managed mailing > list. > If nobody knows the answer for the questions you're asking, or if it takes > too long to investigate the issue, it is likely that nobody will answer. > > You can also have professional support for ParaView at kitware.com > > Best regards, > > Mathieu Westphal > > On Mon, May 28, 2018 at 12:41 PM, iusadhfoias sidufasipudf < > asduifhssauidf at gmail.com> wrote: > >> Dear experienced Paraview users, >> I wonder how you decide which posts to answer and which to ignore. >> >> My impression is that your decision doesn't depend whether questions are >> well expained or whether you can help people a lot with minimal effort from >> your side. Instead it seems like you look at the user's name, and if it >> originates from a different culture, you tend to prefer other help requests. >> >> Why else do you completely ignore questions for example from ?? (Zhe), >> from myself and a few others? >> >> What can we do to get a little attention? >> >> Many thanks, >> Jussuf >> >> _______________________________________________ >> 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: From utkarsh.ayachit at kitware.com Mon May 28 11:11:27 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 28 May 2018 11:11:27 -0400 Subject: [Paraview] Catalyst session makes ParaView time-unaware In-Reply-To: References: Message-ID: On Sun, May 20, 2018 at 6:59 AM iusadhfoias sidufasipudf < asduifhssauidf at gmail.com> wrote: > Is this only a problem on my side, that I cannot step through the times of > a file series after a Catalyst live session has finished? > Looking forward to either positive or negative feedback > ?This is indeed a bug. I've reported an issue here: https://gitlab.kitware.com/paraview/paraview/issues/18200 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Mon May 28 11:23:46 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 28 May 2018 11:23:46 -0400 Subject: [Paraview] Why are certain Paraview users ignored on this list? In-Reply-To: References: Message-ID: > However, I can't stop wondering whether it's really the content or how well posed a question is and not the names of the users that ask, which decides whether they receive an answer or not. I may return to this thread later with more examples. The short answer is no. There is no organized effort to ignore certain users or respond to only certain questions. As Mathieu said, this is a community service. Responders are not merely Kitware employees but also members of the larger ParaView community. Despite everyone's best efforts, we cannot respond to all queries due to lack of time. As a result, emails that are a little complex to read, not clear what the issue could be etc. tend to go unreplied. Sometimes, it's just timing. For example, if emails show up on holidays, then by the time people get back to work a new slew of emails take up the inbox and older emails may get missed. Also, good way to get members to go the extra mile to help with your questions is participating in the mailing list yourself. Try responding to other users' questions, for example. Despite all this, I am sure emails will still sometimes go unanswered. We are all human with limited abilities and somethings will slip despite our best efforts. Utkarsh From Mark.Olesen at esi-group.com Mon May 28 11:24:55 2018 From: Mark.Olesen at esi-group.com (Mark Olesen) Date: Mon, 28 May 2018 17:24:55 +0200 Subject: [Paraview] catalyst with parallel rendering Message-ID: <8da72913-7da8-7cc1-0d61-1d41fd158177@esi-group.com> For the mailing list, since this must probably be a FAQ (even if I seem to find the answer in the usual places). I would like to have paraview rendering in parallel for a simulation with catalyst. For simplicity, I'm fiddling about on a local workstation, but would like to generalize later. it should work without live visualization enabled, or requiring a GUI to connect. I'd presume using something like the following mpirun -np 12 pvserver --server-port=123456 --force-offscreen-rendering would be setup a parallel rendering session as usual. However, after scouring docs there doesn't seem to be an obvious way to connect this within catalyst (without a GUI). The only access point that I seem to find is to define an MPI communicator for initializing catalyst after some how (some hand-waving here) querying a pvserver connection for its host topology and defining an appropriate communicator. Cheers, /mark From natorenvliet at gmail.com Mon May 28 11:57:58 2018 From: natorenvliet at gmail.com (natorenvliet at gmail.com) Date: Mon, 28 May 2018 11:57:58 -0400 Subject: [Paraview] Why are certain Paraview users ignored on this list? In-Reply-To: References: Message-ID: <1F8C8C36-72D0-4561-BD15-D32D5BBD5115@gmail.com> Excellent answer to an important question! Thanks Utkarsh!! Sent from my iPhone On May 28, 2018, at 11:23 AM, Utkarsh Ayachit wrote: >> However, I can't stop wondering whether it's really the content or how > well posed a question is and not the names of the users that ask, which > decides whether they receive an answer or not. I may return to this thread > later with more examples. > > The short answer is no. There is no organized effort to ignore certain > users or respond to only certain questions. > > As Mathieu said, this is a community service. Responders are not merely > Kitware employees but also members of the larger ParaView community. > Despite everyone's best efforts, we cannot respond to all queries due to > lack of time. As a result, emails that are a little complex to read, not > clear what the issue could be etc. tend to go unreplied. Sometimes, it's > just timing. For example, if emails show up on holidays, then by the time > people get back to work a new slew of emails take up the inbox and older > emails may get missed. > > Also, good way to get members to go the extra mile to help with your > questions is participating in the mailing list yourself. Try responding to > other users' questions, for example. > > Despite all this, I am sure emails will still sometimes go unanswered. We > are all human with limited abilities and somethings will slip despite our > best efforts. > > Utkarsh > _______________________________________________ > 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 From asduifhssauidf at gmail.com Mon May 28 12:04:27 2018 From: asduifhssauidf at gmail.com (iusadhfoias sidufasipudf) Date: Mon, 28 May 2018 18:04:27 +0200 Subject: [Paraview] Why are certain Paraview users ignored on this list? In-Reply-To: References: Message-ID: Dear Utkash, thanks a lot for filing an issue for my problem with disabled VCR controls. I have another open question since February: https://public.kitware.com/pipermail/paraview/2018-February/042028.html I'd be absolutely happy if you could give a similarly quick reply as you did for the Catalyst problem. I asked the same question on the developers list, because I thought it's rather development oriented than a user problem, but there I am told to be patient since 4 months. I always simplify my questions to short, minimal examples, that can be verified or rejected within seconds or minutes. I would be really happy to contribute to other people's questions on this list. I don't know if you understand how frustrating it can be, if my only two questions to this list remain unanswered for weeks and months. It takes days or weeks to find workarounds for all those ParaView bugs. I would have the time to answer many, many questions (somewhere below my level of experience, of course) on this list, if I could expect SOME answer within a week or so like "We are not interested in this problem" or "Won't fix" or "Yes, this is a bug, solution may be available in 6 months". But receiving no answer at all costs all my available time to program some workaraound, although Kitware might fix the same problem in parallel. Many thanks, Jussuf -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon May 28 12:28:08 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 28 May 2018 10:28:08 -0600 Subject: [Paraview] paraviewweb multiple renderview problem In-Reply-To: References: Message-ID: Hi Tom, There might be a bug (sometime it happen ;-). If you can provide a tiny example app with a cone and cube in two views, I might be able to quickly look at it and even fix the source of the issue. 1) The active view won't help you in your current setup as it is a convenient way to ignore the view id. But since you need a clear distinction, you will have to stick to a given view id to prevent mixup. 2) They are supposed to be unique and we know by nature they are a counter and -1 represent the "active" one. Normally the type should not matter. But the server usually send it as a string. 3) Normally the mouse handler hold that viewId as well. But if not provided (-1), it will affect the active view. HTH, Seb On Sun, May 27, 2018 at 8:34 PM Sgouros, Thomas wrote: > Hi All: > > For a ParaViewWeb application using pvpython as a server, I have two > vtkRenderer objects side-by-side. I have used setViewId() to set the view > IDs of those two objects to correspond to two different RenderView objects > over on the server, with viewIDs retrieved using the GetGlobalIDAsString() > method. > > I expected to see the different render views in the two different > vtkRenderers, but unfortunately what I see is always the same visualization > in the two different windows, sometimes one RenderView, sometimes the other. > > This is probably too vague a description to diagnose the problem (though > advice is certainly welcome) so I also have these specific questions: > > 1. Is the concept of the "active" view of any use in this context, or > will that just get in the way? I've tried experimenting with making one or > the other render view active on the server and it clearly changes the > behavior, but I still wind up with the same view in both vtkRenderer > objects. > > 2. Are the view IDs supposed to be strings or integers on the client? The > divvy code seems to imply integers, but there is a "Failed to determine the > LookupTable being used." error on the server that seems to be associated > with my choosing to use integers on the client. > > 3. How is the MouseHandler code supposed to relate to these two views? It > seems to matter which vtkRenderer window it's clicked in, but which one > moves doesn't seem related to the viewID of the window. > > Thank you, > > -Tom > > > _______________________________________________ > 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: From utkarsh.ayachit at kitware.com Tue May 29 09:08:30 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 29 May 2018 09:08:30 -0400 Subject: [Paraview] CMake error from VTKConfig.cmake In-Reply-To: References: Message-ID: Christoph, While I didn't encounter the lzma link issue myself, since you're using system zlib etc., shouldn't the LZMA also be set to use system? Try setting `-DVTK_USE_SYSTEM_LZMA:BOOL=ON`. Maybe same should be done for `VTK_USE_SYSTEM_LZ4`. Utkarsh On Tue, Apr 24, 2018 at 11:11 AM Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Oh right! I forgot about that. Let me try to see if I can reproduce > that one too. > Utkarsh > On Tue, Apr 24, 2018 at 12:41 AM, Christoph Gr?ninger > wrote: > > Hi Utkarsh, > > thanks for the patches! They seem to work, the CMake configuration > > problems are gone, including the ugly CMake warnings. > > > > Now I run again into the linker bug I mentioned last week. > > > > Bye > > Christoph > > > > -- > > Unfortunately, plots are notoriously hard to get right. Partly, the > > default settings of programs like gnuplot or Excel are to blame for > > this since these programs make it very convenient to create bad plots. > > -- Till Tantau, "The TikZ and PGF Packages" From Gregg.Streuber at aero.bombardier.com Tue May 29 08:52:33 2018 From: Gregg.Streuber at aero.bombardier.com (Gregg Streuber) Date: Tue, 29 May 2018 12:52:33 +0000 Subject: [Paraview] Catalyst Install Message-ID: <2B61FBB88A39B549BA8029E6EDC5B4A1249491@MTLWAEXCH005.ca.aero.bombardier.net> Hi All, I'm looking into doing some on-line post-processing of simulation data, but I'm having trouble getting Catalyst setup on our system. Following the instructions here I downloaded the Paraview source and ran ccmake with BUILD_CATALYST_ADAPTERS set to "on". It compiles, but returns a message that it did not use BUILD_CATALYST_ADAPTERS, which suggests it's not actually including them in the make file. I then downloaded a Catalyst source edition that has the functionality we're looking for and attempted ccmake, but this reports the errors "CMake Error: file [path]/package.json.in does not exist" And "No such module "vtkChartsCore" needed by "vtkPVServerManagerApplication". Particularly the first error has me flummoxed, and I was wondering if anybody with more success could point me in the right direction towards resolving it. Thanks, Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Olesen at esi-group.com Tue May 29 10:06:57 2018 From: Mark.Olesen at esi-group.com (Mark Olesen) Date: Tue, 29 May 2018 16:06:57 +0200 Subject: [Paraview] Catalyst Install In-Reply-To: <2B61FBB88A39B549BA8029E6EDC5B4A1249491@MTLWAEXCH005.ca.aero.bombardier.net> References: <2B61FBB88A39B549BA8029E6EDC5B4A1249491@MTLWAEXCH005.ca.aero.bombardier.net> Message-ID: <2ddf82ed-7525-b015-3878-cf73c531f388@esi-group.com> If you just wish to get going quickly, you can simply compile and install a regular ParaView with PARAVIEW_INSTALL_DEVELOPMENT_FILES=ON and use these libraries/headers for your Catalyst-enabled simulation. On 05/29/18 14:52, Gregg Streuber wrote: > Hi All, > > I?m looking into doing some on-line post-processing of simulation data, > but I?m having trouble getting Catalyst setup on our system. > > Following the instructions here > > I downloaded the Paraview source and ran ccmake with > BUILD_CATALYST_ADAPTERS set to ?on?.? It compiles, but returns a message > that it did not use BUILD_CATALYST_ADAPTERS, which suggests it?s not > actually including them in the make file.? I then downloaded a Catalyst > source edition that has the functionality we?re looking for and > attempted ccmake, but this reports the errors > > ?CMake Error: file [path]/package.json.in does not exist? > > And > > ?No such module ?vtkChartsCore? needed by ?vtkPVServerManagerApplication?. > > Particularly the first error has me flummoxed, and I was wondering if > anybody with more success could point me in the right direction towards > resolving it. > > Thanks, > Gregg > > > > _______________________________________________ > 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 > From thomas_sgouros at brown.edu Wed May 30 10:21:58 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Wed, 30 May 2018 10:21:58 -0400 Subject: [Paraview] seeking pvpython debugging hints Message-ID: Hello all: Does anyone have helpful hints to offer about how to debug errors like these? Some array of mine is out of range, but I don't know what array it's talking about, and don't really see how to find out. To my knowledge the change in my code that triggered this has nothing to do with any array. My guess is the "Failed to determine the LookupTable" is the result of the error after it, since it is sort of a common denominator among errors I see. Does that sound right? Is there a way to enable more debug information or more verbose error messages? Thank you, -Tom Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, line 633 vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the LookupTable being used. Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, line 277 vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array range. -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Wed May 30 10:23:54 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 30 May 2018 10:23:54 -0400 Subject: [Paraview] seeking pvpython debugging hints In-Reply-To: References: Message-ID: Tom, This generally means that the array you've chosen to color with in the script is not available in the dataset and hence its failing to determine the array range. Hope that helps narrow down the issue. Utkarsh On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas wrote: > Hello all: > Does anyone have helpful hints to offer about how to debug errors like these? Some array of mine is out of range, but I don't know what array it's talking about, and don't really see how to find out. To my knowledge the change in my code that triggered this has nothing to do with any array. > My guess is the "Failed to determine the LookupTable" is the result of the error after it, since it is sort of a common denominator among errors I see. Does that sound right? > Is there a way to enable more debug information or more verbose error messages? > Thank you, > -Tom > Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, line 633 > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the LookupTable being used. > Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, line 277 > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array range. > _______________________________________________ > 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 From thomas_sgouros at brown.edu Wed May 30 11:51:48 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Wed, 30 May 2018 11:51:48 -0400 Subject: [Paraview] seeking pvpython debugging hints In-Reply-To: References: Message-ID: Hi Utkarsh: It did help, though I wonder why it couldn't tell me what array was the problem. The error messages from deep in the bowels of pvpython are pretty mysterious. But enough carping -- thank you! -Tom On Wed, May 30, 2018 at 10:23 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Tom, > > This generally means that the array you've chosen to color with in the > script is not available in the dataset and hence its failing to determine > the array range. > > Hope that helps narrow down the issue. > > Utkarsh > On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas > > wrote: > > > Hello all: > > > Does anyone have helpful hints to offer about how to debug errors like > these? Some array of mine is out of range, but I don't know what array it's > talking about, and don't really see how to find out. To my knowledge the > change in my code that triggered this has nothing to do with any array. > > > My guess is the "Failed to determine the LookupTable" is the result of > the error after it, since it is sort of a common denominator among errors I > see. Does that sound right? > > > Is there a way to enable more debug information or more verbose error > messages? > > > Thank you, > > > -Tom > > > > Warning: In > /Users/kitware/dashboards/buildbot-slave/8275bd07/build/ > superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/ > vtkSMPVRepresentationProxy.cxx, > line 633 > > > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the > LookupTable being used. > > > > Warning: In > /Users/kitware/dashboards/buildbot-slave/8275bd07/build/ > superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/ > vtkSMPVRepresentationProxy.cxx, > line 277 > > > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array > range. > > > > _______________________________________________ > > 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: From utkarsh.ayachit at kitware.com Wed May 30 11:55:11 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 30 May 2018 11:55:11 -0400 Subject: [Paraview] seeking pvpython debugging hints In-Reply-To: References: Message-ID: That, I think, should be an easy fix. Please free free to report a quick issue on the issue tracker. Such things are easier to fix when there are issues listed as otherwise it's easy to forget. Thanks Utkarsh On Wed, May 30, 2018 at 11:51 AM Sgouros, Thomas wrote: > Hi Utkarsh: > It did help, though I wonder why it couldn't tell me what array was the problem. The error messages from deep in the bowels of pvpython are pretty mysterious. > But enough carping -- thank you! > -Tom > On Wed, May 30, 2018 at 10:23 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: >> Tom, >> This generally means that the array you've chosen to color with in the >> script is not available in the dataset and hence its failing to determine >> the array range. >> Hope that helps narrow down the issue. >> Utkarsh >> On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas < thomas_sgouros at brown.edu> >> wrote: >> > Hello all: >> > Does anyone have helpful hints to offer about how to debug errors like >> these? Some array of mine is out of range, but I don't know what array it's >> talking about, and don't really see how to find out. To my knowledge the >> change in my code that triggered this has nothing to do with any array. >> > My guess is the "Failed to determine the LookupTable" is the result of >> the error after it, since it is sort of a common denominator among errors I >> see. Does that sound right? >> > Is there a way to enable more debug information or more verbose error >> messages? >> > Thank you, >> > -Tom >> > Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, >> line 633 >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the >> LookupTable being used. >> > Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, >> line 277 >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array >> range. >> > _______________________________________________ >> > 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 From Andrea.Caffagni at ferrari.com Wed May 30 12:06:35 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Wed, 30 May 2018 16:06:35 +0000 Subject: [Paraview] Clip a domain using a close surface In-Reply-To: <17954FF4A6EDC447B60CEFADD6DCAE930277613D@GSVCLU05.ges.ferlan.it> References: <17954FF4A6EDC447B60CEFADD6DCAE93027759F7@GSVCLU05.ges.ferlan.it> <17954FF4A6EDC447B60CEFADD6DCAE9302776002@GSVCLU05.ges.ferlan.it> <17954FF4A6EDC447B60CEFADD6DCAE930277605E@GSVCLU05.ges.ferlan.it> <17954FF4A6EDC447B60CEFADD6DCAE930277613D@GSVCLU05.ges.ferlan.it> Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE930278724A@GSVCLU05.ges.ferlan.it> Dear Mathieu, I have to use this programmable filter also with Poly Mesh; unfortunately it doesn?t work with this kind of mesh. Usually, when I clip Poly mesh, it works fine the ?Crinkle clip?. How I should modify the programmable filter in order to use this for the Poly mesh? Best Regards, Andrea From: Caffagni, Andrea Sent: Thursday, April 26, 2018 07:00 To: Mathieu Westphal Cc: paraview at public.kitware.com Subject: RE: [Paraview] Clip a domain using a close surface Thank you Mathieu, It works perfectly. Best Regards, Andrea From: Mathieu Westphal [mailto:mathieu.westphal at kitware.com] Sent: Wednesday, April 25, 2018 16:50 To: Caffagni, Andrea Cc: paraview at public.kitware.com Subject: Re: [Paraview] Clip a domain using a close surface Hi Andrea, Here is an updated script to clip instead of cutting. You will recover the volume of your main dataset which is inside the provided surface. (if your are interested by what is outside, just change the InsideOut value) import vtk.vtkPVVTKExtensionsDefault as ext inpMain = self.GetInputDataObject( 0, 0 ) inpClip = self.GetInputDataObject( 0, 1 ) out = self.GetOutput() clipper = ext.vtkPVMetaClipDataSet() clipper.SetInputDataObject(inpMain) clipper.SetInsideOut(True) clipFunction = vtk.vtkImplicitPolyDataDistance() clipFunction.SetInput(inpClip) clipper.SetClipFunction(clipFunction) clipper.Update() outData = clipper.GetOutputDataObject(0) out.DeepCopy(outData) I've included the state file and a dataset to test with. make sure to set the path to the dataset when loading the state file. You may also want to take a look into the resample with dataset solution. Best regards, Mathieu Westphal On Wed, Apr 25, 2018 at 11:14 AM, Caffagni, Andrea > wrote: Thank you Mathieu for your answer, When I tries your filter I obtain ?an intersection? between the sphere and my domain. While the result that I would get is a clipped domain, I have included a Statefile for demonstration on what I would get. Maybe I'm using your filter in a wrong way? Best Regards, Andrea From: Mathieu Westphal [mailto:mathieu.westphal at kitware.com] Sent: Wednesday, April 25, 2018 10:13 To: Caffagni, Andrea Cc: paraview at public.kitware.com Subject: Re: [Paraview] Clip a domain using a close surface Hi Andrea, This is achievable using a Programmable Filter, with the following script : inpMain = self.GetInputDataObject( 0, 0 ) inpCut = self.GetInputDataObject( 0, 1 ) out = self.GetOutput() cutter = vtk.vtkCutter() cutter.SetInputDataObject( inpMain ) cutFunction = vtk.vtkImplicitPolyDataDistance() cutFunction.SetInput( inpCut ) cutter.SetCutFunction( cutFunction ) cutter.Update() outData = cutter.GetOutputDataObject( 0 ) out.DeepCopy(outData) (thanks @Yves Roger for providing it here : https://public.kitware.com/pipermail/paraview/2015-April/033903.html) In case you do not know how to use the programmable filter in this case, I have included a StateFile that demonstrate it. Notice that we are using an "output data type : vtkPolyData". Best regards, Mathieu Westphal On Wed, Apr 25, 2018 at 7:49 AM, Caffagni, Andrea > wrote: Nobody has had to face this problem in the past? Is it an impassable obstacle to paraview at the moment? Best Regards, Andrea From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Caffagni, Andrea Sent: Sunday, April 22, 2018 12:32 To: paraview at public.kitware.com Subject: [Paraview] Clip a domain using a close surface Dear users, I need to clip a domain with a close surface. More in details I have a cfd domain with pressure and velocity field, I import a table of point and I create a closed surface using delunay3d filters. At this stage, I would clip the computational domain using the close surface dividing the cfd domain or in the internal part of the close surface or in the external part. I have tried using clip with scalars, but I am not able to understand how use it properly. Thanks for the suggestions, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _______________________________________________ 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 _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Wed May 30 15:21:52 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Wed, 30 May 2018 15:21:52 -0400 Subject: [Paraview] seeking pvpython debugging hints In-Reply-To: References: Message-ID: Ok, 18211. That ok? Thanks, -Tom On Wed, May 30, 2018 at 11:55 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > That, I think, should be an easy fix. Please free free to report a quick > issue on the issue tracker. Such things are easier to fix when there are > issues listed as otherwise it's easy to forget. > > Thanks > Utkarsh > On Wed, May 30, 2018 at 11:51 AM Sgouros, Thomas > > wrote: > > > Hi Utkarsh: > > > It did help, though I wonder why it couldn't tell me what array was the > problem. The error messages from deep in the bowels of pvpython are pretty > mysterious. > > > But enough carping -- thank you! > > > -Tom > > > On Wed, May 30, 2018 at 10:23 AM, Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> wrote: > > >> Tom, > > >> This generally means that the array you've chosen to color with in the > >> script is not available in the dataset and hence its failing to > determine > >> the array range. > > >> Hope that helps narrow down the issue. > > >> Utkarsh > >> On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas < > thomas_sgouros at brown.edu> > >> wrote: > > >> > Hello all: > > >> > Does anyone have helpful hints to offer about how to debug errors like > >> these? Some array of mine is out of range, but I don't know what array > it's > >> talking about, and don't really see how to find out. To my knowledge the > >> change in my code that triggered this has nothing to do with any array. > > >> > My guess is the "Failed to determine the LookupTable" is the result of > >> the error after it, since it is sort of a common denominator among > errors I > >> see. Does that sound right? > > >> > Is there a way to enable more debug information or more verbose error > >> messages? > > >> > Thank you, > > >> > -Tom > > > >> > Warning: In > > /Users/kitware/dashboards/buildbot-slave/8275bd07/build/ > superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/ > vtkSMPVRepresentationProxy.cxx, > >> line 633 > > >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the > >> LookupTable being used. > > > >> > Warning: In > > /Users/kitware/dashboards/buildbot-slave/8275bd07/build/ > superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/ > vtkSMPVRepresentationProxy.cxx, > >> line 277 > > >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array > >> range. > > > >> > _______________________________________________ > >> > 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: From cory.quammen at kitware.com Wed May 30 15:24:59 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 30 May 2018 15:24:59 -0400 Subject: [Paraview] ParaView Discourse is now live Message-ID: Hello ParaView community, Following up on our previous discussion about transitioning the ParaView mailing lists to Discourse, we now have a Discourse instance ready to use to discuss all things ParaView. You can find it at https://discourse.paraview.org/ You can sign up for the web site using your Google or GitHub accounts if you prefer, otherwise you can register with a user name and password. Please try it out and leave any feedback you might have under the "Site Feedback" category (https://discourse.paraview.org/c/site-feedback) on the site. While we expect the bulk of ParaView-related discussion to transition to Discourse fairly rapidly in the near term, the current paraview at paraview.org and paraview-developers at paraview.org mailing lists will remain active until at least the end of 2018. See you on discourse.paraview.org! Cory -- Cory Quammen Staff R&D Engineer Kitware, Inc. From utkarsh.ayachit at kitware.com Wed May 30 15:25:41 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 30 May 2018 15:25:41 -0400 Subject: [Paraview] seeking pvpython debugging hints In-Reply-To: References: Message-ID: Yes, that's fine. Thanks. On Wed, May 30, 2018 at 3:21 PM Sgouros, Thomas wrote: > Ok, 18211. That ok? > Thanks, > -Tom > On Wed, May 30, 2018 at 11:55 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: >> That, I think, should be an easy fix. Please free free to report a quick >> issue on the issue tracker. Such things are easier to fix when there are >> issues listed as otherwise it's easy to forget. >> Thanks >> Utkarsh >> On Wed, May 30, 2018 at 11:51 AM Sgouros, Thomas < thomas_sgouros at brown.edu> >> wrote: >> > Hi Utkarsh: >> > It did help, though I wonder why it couldn't tell me what array was the >> problem. The error messages from deep in the bowels of pvpython are pretty >> mysterious. >> > But enough carping -- thank you! >> > -Tom >> > On Wed, May 30, 2018 at 10:23 AM, Utkarsh Ayachit < >> utkarsh.ayachit at kitware.com> wrote: >> >> Tom, >> >> This generally means that the array you've chosen to color with in the >> >> script is not available in the dataset and hence its failing to determine >> >> the array range. >> >> Hope that helps narrow down the issue. >> >> Utkarsh >> >> On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas < >> thomas_sgouros at brown.edu> >> >> wrote: >> >> > Hello all: >> >> > Does anyone have helpful hints to offer about how to debug errors like >> >> these? Some array of mine is out of range, but I don't know what array >> it's >> >> talking about, and don't really see how to find out. To my knowledge the >> >> change in my code that triggered this has nothing to do with any array. >> >> > My guess is the "Failed to determine the LookupTable" is the result of >> >> the error after it, since it is sort of a common denominator among >> errors I >> >> see. Does that sound right? >> >> > Is there a way to enable more debug information or more verbose error >> >> messages? >> >> > Thank you, >> >> > -Tom >> >> > Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, >> >> line 633 >> >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the >> >> LookupTable being used. >> >> > Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx, >> >> line 277 >> >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array >> >> range. >> >> > _______________________________________________ >> >> > 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 From foss at grueninger.de Wed May 30 20:03:36 2018 From: foss at grueninger.de (=?UTF-8?Q?Christoph_Gr=c3=bcninger?=) Date: Thu, 31 May 2018 02:03:36 +0200 Subject: [Paraview] CMake error from VTKConfig.cmake In-Reply-To: References: Message-ID: Dear Utkarsh, thanks for the hint, adding `-DVTK_USE_SYSTEM_LZMA:BOOL=ON`, it helped. Now I get another linker error: [ 259s] /home/abuild/rpmbuild/BUILD/ParaView-v5.5.0/VTK/ThirdParty/libharu/vtklibharu/src/hpdf_page_operator.c:2280: undefined reference to `sincos' I found some hints that ParaViews provides a patched version of hpdf, but I could get it compiled. Any idea? Thanks a lot! Christoph Am 29.05.2018 um 15:08 schrieb Utkarsh Ayachit: > Christoph, > > While I didn't encounter the lzma link issue myself, since you're using > system zlib etc., shouldn't the LZMA also be set to use system? Try setting > `-DVTK_USE_SYSTEM_LZMA:BOOL=ON`. Maybe same should be done for > `VTK_USE_SYSTEM_LZ4`. > > Utkarsh > On Tue, Apr 24, 2018 at 11:11 AM Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> wrote: > >> Oh right! I forgot about that. Let me try to see if I can reproduce >> that one too. > >> Utkarsh > >> On Tue, Apr 24, 2018 at 12:41 AM, Christoph Gr?ninger >> wrote: >>> Hi Utkarsh, >>> thanks for the patches! They seem to work, the CMake configuration >>> problems are gone, including the ugly CMake warnings. >>> >>> Now I run again into the linker bug I mentioned last week. >>> >>> Bye >>> Christoph >>> >>> -- >>> Unfortunately, plots are notoriously hard to get right. Partly, the >>> default settings of programs like gnuplot or Excel are to blame for >>> this since these programs make it very convenient to create bad plots. >>> -- Till Tantau, "The TikZ and PGF Packages" > -- Unfortunately, plots are notoriously hard to get right. Partly, the default settings of programs like gnuplot or Excel are to blame for this since these programs make it very convenient to create bad plots. -- Till Tantau, "The TikZ and PGF Packages" From wascott at sandia.gov Wed May 30 20:53:35 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Thu, 31 May 2018 00:53:35 +0000 Subject: [Paraview] [EXTERNAL] Re: OSPRay textures and materials mapping In-Reply-To: References: Message-ID: <64bff777ac714fce8ced5f6fee2f4d61@ES01AMSNLNT.srn.sandia.gov> Dave, Would this be a good set of scripts to put in our brand new, squeeky clean Tips and Tricks section of Discourse? https://discourse.paraview.org/ Alan From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of David E DeMarle Sent: Tuesday, May 22, 2018 12:10 PM To: Jonathan Borduas Cc: paraview at public.kitware.com Subject: [EXTERNAL] Re: [Paraview] OSPRay textures and materials mapping And here is a python schell script to make step 4 (create the lookuptable) automatic. apartment = FindSource("sample_apartment.obj") vtklevel = apartment.GetClientSideObject() lut = GetColorTransferFunction('MaterialIds') arr = vtklevel.GetOutput().GetFieldData().GetAbstractArray(0) lut.InterpretValuesAsCategories = 1 ll = [] for x in range(0, arr.GetNumberOfTuples()): ll.append(str(x)) ll.append(arr.GetValue(x)) David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, May 22, 2018 at 1:51 PM, David E DeMarle > wrote: On Tue, May 22, 2018 at 12:34 PM, David E DeMarle > wrote: On Tue, May 22, 2018 at 10:34 AM, Jonathan Borduas > wrote: Hi David, I was able to complete all the steps. As you probably know, the step four was tedious. However I couldn?t get the result I wanted since I couldn?t assign the right textures to the right areas. Is there a mechanism to assign the texture just like we assign materials ? I guess this is what you mean by ?multi-texture isn?t implemented yet?. I could probably extract all objects using a connectivity filter and then manually assign the textures, but again it is a tedious process for complex objects. Better to do it in the code. We read in all of the texture coordinates when we read the .obj and all of the texture files when we read the .mtl -> we just aren't using the right set of texture coordinates in all cases yet. That is most of what I mean by multitexture. Is there a roadmap as to when the multi-texture could be implemented ? I'm hoping for 5.6 in a couple of months time. Although this is important it may very well slip because of other priorities. In the meantime, this python programmable filter is a workaround. pdi = self.GetInput() pdo = self.GetOutput() pdo.ShallowCopy(pdi) arraynames = [] arrays = {} for a in range(0,pdi.GetPointData().GetNumberOfArrays()): array = pdi.GetPointData().GetArray(a) if array.GetNumberOfComponents() != 2: continue arrname = array.GetName() pdo.GetPointData().RemoveArray(arrname) arraynames.append(arrname) arrays[arrname] = array tcoords = vtk.vtkFloatArray() tcoords.SetName("TCoords") tcoords.SetNumberOfComponents(2) pdo.GetPointData().SetTCoords(tcoords) # todo numpy this to make it 100x faster for p in range(0, pdi.GetNumberOfPoints()): tcoord = [0,0] for arrname in arrays: candidate = arrays[arrname].GetTuple2(p) if candidate[0] == -1 and candidate[1] == -1: continue tcoord = candidate tcoords.InsertNextTuple2(tcoord[0],tcoord[1]) It would be great to have readers that can load texture/Geometry/Materials files such as .obj (.mtl and .png), .fbx and .dwg. Agreed. Best regards, Jonathan Borduas From: David E DeMarle > Sent: Friday, May 18, 2018 10:58 AM To: Jonathan Borduas > Cc: paraview at public.kitware.com Subject: Re: [Paraview] OSPRay textures and materials mapping Hi Jonathan. Yes you can do that. 1) File->Load OSPRay Materials, switch the file type from "OSPRay Material Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will let you load all of the materials and textures. They should all show up in the Material list. 2) The OSPRay Material selection (on Display section of Properties Tab advanced) will have all of the individual materials listed in it + a few others including "Value Indexed" which is all the way at the bottom. Choose that it means "use the categorical color lookup table to decide what material to use for each block and or polygon" 3) Now change the scalar array to color by to "Material Id", a cell aligned array which has the material index to use for each cell. 4) Make up a categorical lookup table. open spreadsheet view, switch to Field Data, look at the Material Names. open the color map editor for the "Material Id", click on Interpret Values As Categories and the color will change from bluewhitered to extremely YELLOW. add annotations, value 0 should be the name of the first entry in the Material Names array. Notes: * I have the trivial script somewhere that I used for the SC17 demo that makes up the lookup table for you. I'll try and dig that up. * in general it isn't a 1:1 match between mtl and ospray, in particular multitextures are not yet implemented * along those lines, the mtl parser I whipped up $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL recognizes a "type" extension outside of mtl that lets you bring in ospray's nice materials instead of the default OBJMaterial. Glass and Metal are particularly nice. At some point I'll get around to making this all automatic. Patches are welcome in the meantime. good luck David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas > wrote: Hi, I tried rendering an .obj file running OSPRay that was exported from PCon Planner Version 7.7 Patch 1. The original file is a .dwg I used the PathThracer mode. However, attached to the .obj there is an .mtl file containing 50+ materials and 50+ texture (.png) files. I didn?t find an automated way to map all polydata of the .obj with their respective material and texture file and rendering them using OSPRay. It seems that I have to assign the material and texture to each polydata one-by-one. Is there a feature that will automatically map the respective textures and materials ? Here is the link to download the original .dwg file. https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_apartment.dwg You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 with the File/Export/Geometry menu. I couldn?t share the .obj file since the size is 60mb+ Thank you Jonathan Borduas _______________________________________________ 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: From phsieh2005 at yahoo.com Thu May 31 01:40:31 2018 From: phsieh2005 at yahoo.com (Pei-Ying Hsieh) Date: Wed, 30 May 2018 19:40:31 -1000 Subject: [Paraview] (no subject) Message-ID: <1527745241.OGKEfVWQu7SDsOGKHfDxby@mf-smf-ucb031c3> http://size.attorneyfrederick.com Pei-ying Hsieh -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu May 31 06:24:28 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Thu, 31 May 2018 12:24:28 +0200 Subject: [Paraview] BaseOffset use Message-ID: Dear All I'm trying to implement "BaseOffset" in my models in order to strat numbering from 1 rather than 0, but Paraview crashes whatever is the reader I use (xmf or xmf3): Am I doing something wrong? Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu May 31 08:17:22 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 31 May 2018 08:17:22 -0400 Subject: [Paraview] [EXTERNAL] Re: OSPRay textures and materials mapping In-Reply-To: <64bff777ac714fce8ced5f6fee2f4d61@ES01AMSNLNT.srn.sandia.gov> References: <64bff777ac714fce8ced5f6fee2f4d61@ES01AMSNLNT.srn.sandia.gov> Message-ID: I'll remove the need for them at some point, but for 5.5 they are helpful. So yes discourse is a good place for safe keeping. On Wed, May 30, 2018, 8:53 PM Scott, W Alan wrote: > Dave, > > Would this be a good set of scripts to put in our brand new, squeeky clean > Tips and Tricks section of Discourse? > > > > https://discourse.paraview.org/ > > > > Alan > > > > > > > > *From:* ParaView [mailto:paraview-bounces at public.kitware.com] *On Behalf > Of *David E DeMarle > *Sent:* Tuesday, May 22, 2018 12:10 PM > *To:* Jonathan Borduas > *Cc:* paraview at public.kitware.com > *Subject:* [EXTERNAL] Re: [Paraview] OSPRay textures and materials mapping > > > > And here is a python schell script to make step 4 (create the lookuptable) > automatic. > > > > apartment = FindSource("sample_apartment.obj") > > vtklevel = apartment.GetClientSideObject() > > lut = GetColorTransferFunction('MaterialIds') > > arr = vtklevel.GetOutput().GetFieldData().GetAbstractArray(0) > > lut.InterpretValuesAsCategories = 1 > > ll = [] > > for x in range(0, arr.GetNumberOfTuples()): > > ll.append(str(x)) > > ll.append(arr.GetValue(x)) > > > > > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > > > On Tue, May 22, 2018 at 1:51 PM, David E DeMarle > wrote: > > On Tue, May 22, 2018 at 12:34 PM, David E DeMarle < > dave.demarle at kitware.com> wrote: > > > > On Tue, May 22, 2018 at 10:34 AM, Jonathan Borduas < > jonathan.borduas at caboma.com> wrote: > > Hi David, > > I was able to complete all the steps. As you probably know, the step four > was tedious. > > However I couldn?t get the result I wanted since I couldn?t assign the > right textures to the right areas. Is there a mechanism to assign the > texture just like we assign materials ? > I guess this is what you mean by ?multi-texture isn?t implemented yet?. I > could probably extract all objects using a connectivity filter and then > manually assign the textures, but again it is a tedious process for complex > objects. > > > > Better to do it in the code. We read in all of the texture coordinates > when we read the .obj and all of the texture files when we read the .mtl -> > we just aren't using the right set of texture coordinates in all cases yet. > That is most of what I mean by multitexture. > > > > Is there a roadmap as to when the multi-texture could be implemented ? > > > > I'm hoping for 5.6 in a couple of months time. Although this is important > it may very well slip because of other priorities. > > > > > > > In the meantime, this python programmable filter is a workaround. > > > > pdi = self.GetInput() > > pdo = self.GetOutput() > > pdo.ShallowCopy(pdi) > > > > arraynames = [] > > arrays = {} > > *for* a *in* range(0,pdi.GetPointData().GetNumberOfArrays()): > > array = pdi.GetPointData().GetArray(a) > > *if* array.GetNumberOfComponents() != 2: > > *continue* > > arrname = array.GetName() > > pdo.GetPointData().RemoveArray(arrname) > > arraynames.append(arrname) > > arrays[arrname] = array > > > > tcoords = vtk.vtkFloatArray() > > tcoords.SetName("TCoords") > > tcoords.SetNumberOfComponents(2) > > pdo.GetPointData().SetTCoords(tcoords) > > # todo numpy this to make it 100x faster > > *for* p *in* range(0, pdi.GetNumberOfPoints()): > > tcoord = [0,0] > > *for* arrname *in* arrays: > > candidate = arrays[arrname].GetTuple2(p) > > *if* candidate[0] == -1 *and* candidate[1] == -1: > > *continue* > > tcoord = candidate > > tcoords.InsertNextTuple2(tcoord[0],tcoord[1]) > > > > > > > > It would be great to have readers that can load texture/Geometry/Materials > files such as .obj (.mtl and .png), .fbx and .dwg. > > > > Agreed. > > > > Best regards, > > > > Jonathan Borduas > > > > *From:* David E DeMarle > *Sent:* Friday, May 18, 2018 10:58 AM > *To:* Jonathan Borduas > *Cc:* paraview at public.kitware.com > *Subject:* Re: [Paraview] OSPRay textures and materials mapping > > > > Hi Jonathan. > > > > Yes you can do that. > > > > 1) File->Load OSPRay Materials, switch the file type from "OSPRay Material > Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will let you > load all of the materials and textures. They should all show up in the > Material list. > > > > 2) The OSPRay Material selection (on Display section of Properties Tab > advanced) will have all of the individual materials listed in it + a few > others including "Value Indexed" which is all the way at the bottom. Choose > that it means "use the categorical color lookup table to decide what > material to use for each block and or polygon" > > > > 3) Now change the scalar array to color by to "Material Id", a cell > aligned array which has the material index to use for each cell. > > > > 4) Make up a categorical lookup table. > > open spreadsheet view, switch to Field Data, look at the Material Names. > > open the color map editor for the "Material Id", click on Interpret > Values As Categories and the color will change from bluewhitered to > extremely YELLOW. > > add annotations, value 0 should be the name of the first entry in the > Material Names array. > > > > Notes: > > * I have the trivial script somewhere that I used for the SC17 demo that > makes up the lookup table for you. I'll try and dig that up. > > * in general it isn't a 1:1 match between mtl and ospray, in particular > multitextures are not yet implemented > > * along those lines, the mtl parser I whipped up > $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL recognizes > a "type" extension outside of mtl that lets you bring in ospray's nice > materials instead of the default OBJMaterial. Glass and Metal are > particularly nice. > > > > At some point I'll get around to making this all automatic. Patches are > welcome in the meantime. > > > > good luck > > > > > > > > > > > > > > > > > > > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > > > On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < > jonathan.borduas at caboma.com> wrote: > > Hi, > > I tried rendering an .obj file running OSPRay that was exported from PCon > Planner Version 7.7 Patch 1. The original file is a .dwg > > > > I used the PathThracer mode. However, attached to the .obj there is an > .mtl file containing 50+ materials and 50+ texture (.png) files. > > I didn?t find an automated way to map all polydata of the .obj with their > respective material and texture file and rendering them using OSPRay. > > It seems that I have to assign the material and texture to each polydata > one-by-one. > > > > Is there a feature that will automatically map the respective textures and > materials ? > > Here is the link to download the original .dwg file. > https://www.easterngraphics.com/pcon/en/wp-content/uploads/2015/03/sample_apartment.dwg > > You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 > with the File/Export/Geometry menu. > I couldn?t share the .obj file since the size is 60mb+ > > > > Thank you > > > > Jonathan Borduas > > > > > _______________________________________________ > 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: From Andrea.Caffagni at ferrari.com Thu May 31 08:18:43 2018 From: Andrea.Caffagni at ferrari.com (Caffagni, Andrea) Date: Thu, 31 May 2018 12:18:43 +0000 Subject: [Paraview] Find the intersection point between a connectivity and a stream tracer Message-ID: <17954FF4A6EDC447B60CEFADD6DCAE9302787546@GSVCLU05.ges.ferlan.it> Dear Users, I need to find the intersection point between a connectivity surface (portion of a slice) and a stream tracer that runs through this. I have tried the IntersectFragments it doesn?t work with stream tracer. Someone of you have some suggestions? Best regards, Andrea _________________________________________________________________________________________________________________ Questo messaggio ? da intendersi esclusivamente ad uso del destinatario e pu? contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non ? il destinatario designato, o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione ? vietata anche ai sensi della normativa vigente in materia di protezione dei dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema. _________________________________________________________________________________________________________________ This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. _________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu May 31 15:06:08 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 31 May 2018 15:06:08 -0400 Subject: [Paraview] [EXTERNAL] Re: OSPRay textures and materials mapping In-Reply-To: References: <64bff777ac714fce8ced5f6fee2f4d61@ES01AMSNLNT.srn.sandia.gov> Message-ID: posted. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, May 31, 2018 at 8:17 AM, David E DeMarle wrote: > I'll remove the need for them at some point, but for 5.5 they are helpful. > So yes discourse is a good place for safe keeping. > > On Wed, May 30, 2018, 8:53 PM Scott, W Alan wrote: > >> Dave, >> >> Would this be a good set of scripts to put in our brand new, squeeky >> clean Tips and Tricks section of Discourse? >> >> >> >> https://discourse.paraview.org/ >> >> >> >> Alan >> >> >> >> >> >> >> >> *From:* ParaView [mailto:paraview-bounces at public.kitware.com] *On Behalf >> Of *David E DeMarle >> *Sent:* Tuesday, May 22, 2018 12:10 PM >> *To:* Jonathan Borduas >> *Cc:* paraview at public.kitware.com >> *Subject:* [EXTERNAL] Re: [Paraview] OSPRay textures and materials >> mapping >> >> >> >> And here is a python schell script to make step 4 (create the >> lookuptable) automatic. >> >> >> >> apartment = FindSource("sample_apartment.obj") >> >> vtklevel = apartment.GetClientSideObject() >> >> lut = GetColorTransferFunction('MaterialIds') >> >> arr = vtklevel.GetOutput().GetFieldData().GetAbstractArray(0) >> >> lut.InterpretValuesAsCategories = 1 >> >> ll = [] >> >> for x in range(0, arr.GetNumberOfTuples()): >> >> ll.append(str(x)) >> >> ll.append(arr.GetValue(x)) >> >> >> >> >> >> >> David E DeMarle >> Kitware, Inc. >> Principal Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> >> >> On Tue, May 22, 2018 at 1:51 PM, David E DeMarle < >> dave.demarle at kitware.com> wrote: >> >> On Tue, May 22, 2018 at 12:34 PM, David E DeMarle < >> dave.demarle at kitware.com> wrote: >> >> >> >> On Tue, May 22, 2018 at 10:34 AM, Jonathan Borduas < >> jonathan.borduas at caboma.com> wrote: >> >> Hi David, >> >> I was able to complete all the steps. As you probably know, the step four >> was tedious. >> >> However I couldn?t get the result I wanted since I couldn?t assign the >> right textures to the right areas. Is there a mechanism to assign the >> texture just like we assign materials ? >> I guess this is what you mean by ?multi-texture isn?t implemented yet?. I >> could probably extract all objects using a connectivity filter and then >> manually assign the textures, but again it is a tedious process for complex >> objects. >> >> >> >> Better to do it in the code. We read in all of the texture coordinates >> when we read the .obj and all of the texture files when we read the .mtl -> >> we just aren't using the right set of texture coordinates in all cases yet. >> That is most of what I mean by multitexture. >> >> >> >> Is there a roadmap as to when the multi-texture could be implemented ? >> >> >> >> I'm hoping for 5.6 in a couple of months time. Although this is important >> it may very well slip because of other priorities. >> >> >> >> >> >> >> In the meantime, this python programmable filter is a workaround. >> >> >> >> pdi = self.GetInput() >> >> pdo = self.GetOutput() >> >> pdo.ShallowCopy(pdi) >> >> >> >> arraynames = [] >> >> arrays = {} >> >> *for* a *in* range(0,pdi.GetPointData().GetNumberOfArrays()): >> >> array = pdi.GetPointData().GetArray(a) >> >> *if* array.GetNumberOfComponents() != 2: >> >> *continue* >> >> arrname = array.GetName() >> >> pdo.GetPointData().RemoveArray(arrname) >> >> arraynames.append(arrname) >> >> arrays[arrname] = array >> >> >> >> tcoords = vtk.vtkFloatArray() >> >> tcoords.SetName("TCoords") >> >> tcoords.SetNumberOfComponents(2) >> >> pdo.GetPointData().SetTCoords(tcoords) >> >> # todo numpy this to make it 100x faster >> >> *for* p *in* range(0, pdi.GetNumberOfPoints()): >> >> tcoord = [0,0] >> >> *for* arrname *in* arrays: >> >> candidate = arrays[arrname].GetTuple2(p) >> >> *if* candidate[0] == -1 *and* candidate[1] == -1: >> >> *continue* >> >> tcoord = candidate >> >> tcoords.InsertNextTuple2(tcoord[0],tcoord[1]) >> >> >> >> >> >> >> >> It would be great to have readers that can load >> texture/Geometry/Materials files such as .obj (.mtl and .png), .fbx and >> .dwg. >> >> >> >> Agreed. >> >> >> >> Best regards, >> >> >> >> Jonathan Borduas >> >> >> >> *From:* David E DeMarle >> *Sent:* Friday, May 18, 2018 10:58 AM >> *To:* Jonathan Borduas >> *Cc:* paraview at public.kitware.com >> *Subject:* Re: [Paraview] OSPRay textures and materials mapping >> >> >> >> Hi Jonathan. >> >> >> >> Yes you can do that. >> >> >> >> 1) File->Load OSPRay Materials, switch the file type from "OSPRay >> Material Files (*.json)" to "Wavefront Material FIles (*.mtl)". That will >> let you load all of the materials and textures. They should all show up in >> the Material list. >> >> >> >> 2) The OSPRay Material selection (on Display section of Properties Tab >> advanced) will have all of the individual materials listed in it + a few >> others including "Value Indexed" which is all the way at the bottom. Choose >> that it means "use the categorical color lookup table to decide what >> material to use for each block and or polygon" >> >> >> >> 3) Now change the scalar array to color by to "Material Id", a cell >> aligned array which has the material index to use for each cell. >> >> >> >> 4) Make up a categorical lookup table. >> >> open spreadsheet view, switch to Field Data, look at the Material >> Names. >> >> open the color map editor for the "Material Id", click on Interpret >> Values As Categories and the color will change from bluewhitered to >> extremely YELLOW. >> >> add annotations, value 0 should be the name of the first entry in the >> Material Names array. >> >> >> >> Notes: >> >> * I have the trivial script somewhere that I used for the SC17 demo that >> makes up the lookup table for you. I'll try and dig that up. >> >> * in general it isn't a 1:1 match between mtl and ospray, in particular >> multitextures are not yet implemented >> >> * along those lines, the mtl parser I whipped up >> $PVSRC/VTK/Rendering/OSPRay/vtkMaterialLibrary::InternalParseMTL >> recognizes a "type" extension outside of mtl that lets you bring in >> ospray's nice materials instead of the default OBJMaterial. Glass and Metal >> are particularly nice. >> >> >> >> At some point I'll get around to making this all automatic. Patches are >> welcome in the meantime. >> >> >> >> good luck >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> David E DeMarle >> Kitware, Inc. >> Principal Engineer >> 21 Corporate Drive >> >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> >> >> On Fri, May 18, 2018 at 10:25 AM, Jonathan Borduas < >> jonathan.borduas at caboma.com> wrote: >> >> Hi, >> >> I tried rendering an .obj file running OSPRay that was exported from PCon >> Planner Version 7.7 Patch 1. The original file is a .dwg >> >> >> >> I used the PathThracer mode. However, attached to the .obj there is an >> .mtl file containing 50+ materials and 50+ texture (.png) files. >> >> I didn?t find an automated way to map all polydata of the .obj with their >> respective material and texture file and rendering them using OSPRay. >> >> It seems that I have to assign the material and texture to each polydata >> one-by-one. >> >> >> >> Is there a feature that will automatically map the respective textures >> and materials ? >> >> Here is the link to download the original .dwg file. >> https://www.easterngraphics.com/pcon/en/wp-content/ >> uploads/2015/03/sample_apartment.dwg >> >> You will need to export it to .obj using PCon Planner Version 7.7 Patch 1 >> with the File/Export/Geometry menu. >> I couldn?t share the .obj file since the size is 60mb+ >> >> >> >> Thank you >> >> >> >> Jonathan Borduas >> >> >> >> >> _______________________________________________ >> 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: From wascott at sandia.gov Thu May 31 18:14:35 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Thu, 31 May 2018 22:14:35 +0000 Subject: [Paraview] test Message-ID: <5dd690b69c8749f7be8d9a81ccb84ef2@ES01AMSNLNT.srn.sandia.gov> test :-) Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From banesulli at gmail.com Thu May 31 20:40:11 2018 From: banesulli at gmail.com (Bane Sullivan) Date: Thu, 31 May 2018 20:40:11 -0400 Subject: [Paraview] PythonProgrammableFilters Multiple Input Ports Message-ID: Hi there, I see an old thread here: https://paraview.markmail.org/thread/z7cy73444s7fjadk about setting multiple input ports for python programmable filters but I cannot get this to work. I want to declare multiple input ports in a ServerManagerConfiguration XML plugin but I have been unable to successfully add more than one input port to the vtkPythonProgrammableFilter. I see that in `paraview/ParaViewCore/ClientServerCore/Core/vtkPythonProgrammableFilter.h` the following is declared: /** * Set the number of input ports * This function is explicitly exposed to enable a vtkClientServerInterpreter to call it */ void SetNumberOfInputPorts(int numberOfInputPorts) VTK_OVERRIDE { this->Superclass::SetNumberOfInputPorts(numberOfInputPorts); } This leads me to believe that the functionality is there, but how exactly would I set the number of input ports from an XML plugin for a Programmable Filter? I have tried the following with no luck: