[Paraview] Disconnect and save animation

2018-02-07 Thread Utkarsh Ayachit
Folks,

I am trying to get a feel is anyone uses this functionality at all. If
not, we'd like to remove it as it simplifies a few interactions,
besides reducing code complexity.

The functionality I am referring to allows one to disconnect from a
remote server and then save animation on the server before the server
exits but after the client has disconnected.

Thanks
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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] ParaView 5.4.1 | Segmentation Fault

2018-01-31 Thread Utkarsh Ayachit
> In addition, execution of './paraview --mesa' works, meaning there's an
> issue with the graphics drivers?

That'd be my guess.
___
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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] ParaView 5.4.1 | Segmentation Fault

2018-01-31 Thread Utkarsh Ayachit
Thomas,

Check your graphics drivers. You can use tools like `glxinfo` to tell
you which OpenGL version is supported. ParaView now requires 3.2 or
newer. If you cannot upgrade your graphics drivers, you can use
software OpenGL implementation packaged by ParaView binaries as
follows:

.../paraview --mesa

Hope that helps,
Utkarsh

On Wed, Jan 31, 2018 at 7:45 AM, Fastl, Thomas  wrote:
> Dear Community,
>
>
> I've recently upgraded to ParaView 5.4.1 since ParaView 5.0.0 stopped
> working on my workstation. Therefore, I've downloaded and unpacked
> ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz, however, receive the
> following error message upon execution:
>
>
> Warning: In
> /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-linux-shared-release_superbuild/build/superbuild/paraview/src/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx,
> line 838
> vtkGenericOpenGLRenderWindow (0x3846580): VTK is designed to work with
> OpenGL version 3.2 but it appears it has been given a context that does not
> support 3.2. VTK will run in a compatibility mode designed to work with
> earlier versions of OpenGL but some features may not work.
>
> Segmentation fault
>
>
> I'm running Ubuntu 14.04 on my workstation and should probably mention that
> I receive this error message right after execution of 'paraview', i.e., the
> Graphical User Interface never appears. Does anybody have a similar problem
> or know on how to resolve this issue? Thanks!
>
>
> Best, Thomas
>
>
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] display problems paraview

2018-01-31 Thread Utkarsh Ayachit
This may be same as the issue described here:
https://gitlab.kitware.com/paraview/paraview/issues/17499
Try switching to NVidia GPU, if you can, if Intel graphics is indeed
the issue in your case.

Utkarsh

On Wed, Jan 31, 2018 at 6:09 AM, Ott  Richard  wrote:
> Hi,
>
> I am having problems using paraview because the whole window doesnt display
> properly. Meaning that the upper bar with File View etc is not displayed,
> but when I move the courser where the symbols should be the drop down menu
> shows up. Also the whole window seems slightly unfocused. Some buttons are
> where they are supposed to be and some arent really where they appear to be.
> It's very weird. I tried different paraview version etc and always have the
> same problem.
> I've attached a screenshot to this mail.
>
> It works totally fine on my other computer...
>
> Best,
> Richard
>
>
> Richard Ott
> ETH Zürich
> PhD student
>
> Sonneggstrasse 5
>
> 8092 Zürich
>
> +41 44 633 89 06
> richard@erdw.ethz.ch
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Can I tie Z Axis Grid labels to the unscaled range of the Scalar Value used in the Warp By Scalar filter?

2018-01-30 Thread Utkarsh Ayachit
Sounds like a bug. If you can put together a small example to
reproduce the issue and report it here [1], we can track it down.

Utkarsh

[1] https://gitlab.kitware.com/paraview/paraview/issues

On Tue, Jan 30, 2018 at 2:13 PM, Wyatt Spear <wsp...@cs.uoregon.edu> wrote:
> In theory the Data Transform should be ideal. I didn't see it before because
> I was looking at the 'Data Axes Grid' which doesn't have that option instead
> of the 'Axes Grid' which does.
>
> It seemed to work on less extreme scales but when I had to scale my warp by
> .1 and set the same value to the Z Axis Data Scale the axes exploded out
> of view-ability. I'm not sure what's going on there; I had assumed that this
> would only change the labels and not the size of the axes.
>
> Thanks,
> Wyatt
>
> On Tue, Jan 30, 2018 at 6:29 AM, Utkarsh Ayachit
> <utkarsh.ayac...@kitware.com> wrote:
>>
>> Another option is to use the "Data Transform" properties on the Axes
>> Grid. In the "Edit" Axes Grid dialog, if you press the gear icon to
>> show advanced properties, you'll see the "Data Transform" properties.
>> For example, if I scale my dataset by (1, 1, 10), I can set the "Data
>> Scale" to (1, 1, 10) and I'll get labels matching the original
>> unscaled range.
>>
>> Hope that helps.
>>
>> Utkarsh
>>
>> On Mon, Jan 29, 2018 at 9:43 PM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>> > On Mon, Jan 29, 2018 at 6:35 PM, Wyatt Spear <wsp...@cs.uoregon.edu>
>> > wrote:
>> >> I am trying to add a 3d-component to my heat maps and it looks like the
>> >> Warp
>> >> By Scalar filter is the most straightforward way to map a scalar value
>> >> to
>> >> the Z axis. My trouble is, the labels on the Z axis grid are not
>> >> displaying
>> >> the actual range of values provided by the scalar when I change the
>> >> warp
>> >> scale factor. A scale factor of 1 gives the expected axis labels, of
>> >> course,
>> >> but puts my Z axis out of visual range. Is there a reasonable way to
>> >> tie the
>> >> Z axis labels to the range provided by the raw scalar data, so changing
>> >> the
>> >> scale factor of the warp doesn't effect Z Axis labels and their values
>> >> remain representative of my data?
>> >
>> > The axes are tied to the physical extent of the data, as you have
>> > observed, not the scalar range of the array mapped to Z. You can edit
>> > the Data Axes Grid "Z Axis Label Properties" and enable "Z Axis Use
>> > Custom Labels" to manually set the label values to those of your data
>> > array. It is not automatically tied to the scalar array range, though,
>> > but the Z labels will be independent of changes to the warp scale
>> > factor.
>> >
>> > HTH,
>> > Cory
>> >
>> >>
>> >> Thanks,
>> >> Wyatt Spear
>> >>
>> >> ___
>> >> 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://paraview.org/mailman/listinfo/paraview
>> >>
>> >
>> >
>> >
>> > --
>> > Cory Quammen
>> > Staff R 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Display Problem

2018-01-30 Thread Utkarsh Ayachit
X. Y.,

Your cells seem odd. Try changing the representation type to
"Wireframe", you'll see a grid. Then use spreadsheet view, in "Cell
Data" mode, clicking on each cells to see if the cell seems correct.
You have cells that form lines and hence the default "surface"
representation is failing to render it correctly.

Utkarsh

On Tue, Jan 30, 2018 at 1:16 PM, Xiangyu Li  wrote:
> Hello, guys,
>
> I have a problem of showing files, _broken_joint_* , n my Paraview. Please
> see them in the attachment in this email. Currently, both the version of 4.2
> and 5.* cannot work successfully on these files. My Graphic card is AMD and
> OS is Ubuntu 16.04.
>
> Could you help me figure out this problem.
>
> Thank you.
>
> X.Y.
>
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Can I tie Z Axis Grid labels to the unscaled range of the Scalar Value used in the Warp By Scalar filter?

2018-01-30 Thread Utkarsh Ayachit
Another option is to use the "Data Transform" properties on the Axes
Grid. In the "Edit" Axes Grid dialog, if you press the gear icon to
show advanced properties, you'll see the "Data Transform" properties.
For example, if I scale my dataset by (1, 1, 10), I can set the "Data
Scale" to (1, 1, 10) and I'll get labels matching the original
unscaled range.

Hope that helps.

Utkarsh

On Mon, Jan 29, 2018 at 9:43 PM, Cory Quammen  wrote:
> On Mon, Jan 29, 2018 at 6:35 PM, Wyatt Spear  wrote:
>> I am trying to add a 3d-component to my heat maps and it looks like the Warp
>> By Scalar filter is the most straightforward way to map a scalar value to
>> the Z axis. My trouble is, the labels on the Z axis grid are not displaying
>> the actual range of values provided by the scalar when I change the warp
>> scale factor. A scale factor of 1 gives the expected axis labels, of course,
>> but puts my Z axis out of visual range. Is there a reasonable way to tie the
>> Z axis labels to the range provided by the raw scalar data, so changing the
>> scale factor of the warp doesn't effect Z Axis labels and their values
>> remain representative of my data?
>
> The axes are tied to the physical extent of the data, as you have
> observed, not the scalar range of the array mapped to Z. You can edit
> the Data Axes Grid "Z Axis Label Properties" and enable "Z Axis Use
> Custom Labels" to manually set the label values to those of your data
> array. It is not automatically tied to the scalar array range, though,
> but the Z labels will be independent of changes to the warp scale
> factor.
>
> HTH,
> Cory
>
>>
>> Thanks,
>> Wyatt Spear
>>
>> ___
>> 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://paraview.org/mailman/listinfo/paraview
>>
>
>
>
> --
> Cory Quammen
> Staff R 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] OpenGL Vendor

2018-01-26 Thread Utkarsh Ayachit
To add to what Ken said, the "Client Information" tab shows you info
about OpenGL for the "paraview" executable, while the "Connection
Information" gives you info for the "pvserver", if any.

On Fri, Jan 26, 2018 at 10:54 AM, Ken Martin  wrote:
> OpenGL is loaded at runtime so what matters is the mostly the system it is
> running on as opposed to the system it was compiled on (except OSMesa see
> below).
>
> To make it a bit more complicated, if you use GLXforwarding or a similar
> OpenGL forwarding mechanism then what matters is some combination of the
> forwarding library on the system PV is running on and the OpenGL hardware of
> the system you are *displaying* on. This bites people when PV runs fine
> locally on a system but when they forward their display/remote desktop to
> another system it fails.
>
> Finally when building with OSMesa, as long as the runtime system picks up
> the OSMesa libs you built, then it really is the version of OSMesa you
> compiled against that matters.
>
> On linux I think a ldd on the PV executable can show which library is being
> picked up. (should have ogl or opengl, nvidia, mesa etc in the path) but a
> linux person might know better.
>
>
>
>
>
>
> On Thu, Jan 25, 2018 at 7:14 PM, Scott, W Alan  wrote:
>>
>> With a remote server running on a cluster, what does the Help/ About/
>> Connection Information/ OpenGL Version string mean?  Where is this found?
>> Isn’t this the version of OpenGL compiled into the pvserver?  What is the
>> name of this library, and any idea how I can find what is being used?
>>
>>
>>
>> I have a situation where my builds show OpenGL version 3.3 (and can open a
>> specific dataset), and a user’s shows 2.1 (and he cannot open a specific
>> dataset).
>>
>>
>>
>> Thanks all,
>>
>>
>>
>> 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
>>
>>
>>
>> The most exciting phrase to hear in science
>>
>> is not "Eureka!" but "That's funny..."  -- Isaac Asimov
>>
>> -
>>
>>
>>
>>
>> ___
>> 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://paraview.org/mailman/listinfo/paraview
>>
>
>
>
> --
> Ken Martin PhD
> Distinguished Engineer
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
>
> 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.
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Multiple identical "sources" proxies in a saved XML state file (GlyphType)

2018-01-26 Thread Utkarsh Ayachit
Artem,

You raise good points. In reality, only saving the state of the
currently selected proxy from proxy-list domain should be sufficient.
There are challenges to doing that given the current implementation,
however. Let me try to figure out a viable solution and get back to
you.

Utkarsh

On Fri, Jan 26, 2018 at 6:51 AM, Artem Bodrin  wrote:
> Hello, dear developers.
>
> I have issued this question on a bug tracker, but will duplicate it here, if
> you do not mind
> https://gitlab.kitware.com/paraview/paraview/issues/17957
>
>
> I'm not sure if this is a bug, but I have noticed, that saved xml state file
> contains many identical proxies, that belongs to group "sources". These
> proxies are actual source proxies, and participating in property  of every
> saved "GeometryRepresentation" proxy.
>
> So every "GeometryRepresentation" have it's own bunch of GlyphType source
> proxy instances (listed in proxy_list Domain), and all of them are saved to
> a state file.
>
> I can understand, that saving all of them can be explained by "unified
> approach" to saving proxy to state file, but I have trouble with resulting
> state file - we tracking it's change with VCS (git, if it matters), and so
> many unnecessary (cause they are identical, except GlobalId) proxies saved
> gives us additional pain.
>
> As an additional side effect we have increased state loading time. This
> issue might be related to appearance of saved GlyphType proxies in a state
> file:
> https://gitlab.kitware.com/paraview/paraview/issues/17768
>
> Please, correct me if I'm wrong, but one can not change the Domain type at
> runtime, so this proxy_list will be constant until changed in a
> views_and_representations.xml. If so, than maybe there is a way to save
> GlyphType proxies to state file only once (or not at all) and reference
> their GlobalIds from any other GeometryRepresentation?
>
> Thanks in advance,
> Artem Bodrin.
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Error when trying to turn on Volume Rendering for large tetrahedral data in ParaView 5.4.1

2018-01-24 Thread Utkarsh Ayachit
Joe,

Sorry, doesn't ring a bell. One thing to try is to turn of "Use Data
Partitions" (see [1]) if your data is already partitioned between
ranks such that we can build a sorting order.

Utkarsh


[1] https://blog.kitware.com/improved-parallel-rendering-in-paraview/

On Wed, Jan 24, 2018 at 3:16 PM, Hennessey, Joseph G CTR USARMY RDECOM
ARL (US)  wrote:
> Hello,
>
> I am experiencing an error with volume rendering very large
> tetrahedral data with ParaView version  5.4.1.
>
> The data is loaded properly and the surface representation works,
> but when I change the representation to Volume, I get the standard
> dialog below to which I respond "Yes"
>
> 'This will change the representation type to "Volume".
> That may take a while, depending on your dataset. Are you sure?'
>
> I am tested this on two of the HPC supercomputer systems
> while connected to a remote server with multiple compute nodes,
> communicating over MPI. I have verified, I am not running out of memory
>  on the compute nodes or on the client but on large data,
> (over 40 million or so tetrahedrons) the compute nodes will crash
> without any error messages and the remote connection will drop,
> running out of memory would cause a similar failure, but as far as
> I can tell, that is not the case here.
>
> I wanted to see if anyone else had hit this problem, before I try building
> debug versions of the software and using a debugger on them,
> to trace the failure down more thoroughly.
>
> The data has 4 vectors and a scalar defined at each tetrahedron,
> and it renders fine with smaller subsets (less than 20 million
> or so tetrahedron). I would like to be able to scale up to a billion
> tetrahedrons eventually, so a 40 million limit is a problem.
>
> I suspect that there might be an issue in
> vtkOpenGLProjectedTetrahedraMapper.cxx
> where some buffer is maybe 32 bit instead of 64 bit,
> but I have not confirmed this.
>
> Has anyone already solved this problem yet?
>
> Thanks,
>
> Joe
>
> ~~~
> Joseph G. Hennessey Ph.D., SAIC
> Team SAIC
> Army Research Lab
> DOD Supercomputing Resource Center
> Email:  joseph.g.hennessey2@mail.mil
>
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Extracting data on the surface of a block?

2018-01-24 Thread Utkarsh Ayachit
Louis,

Can you also attach a state file for the vis you're generating
currently, so I get a starting point? I am not sure which block is the
oil drop.

Thanks,
Utkarsh

On Tue, Jan 23, 2018 at 8:12 PM, Steytler, Louis Louw
<steyt...@illinois.edu> wrote:
> Hi Utkarsh,
>
> My data file is rather large, but here is a link to the data:
>
> https://uofi.box.com/s/u4hpipt8kbo0u3oxhz92xeya75kzf6kd
>
> Please let me know if this is too large and I can try to send a smaller 
> version.
>
> I have been using "save data". It seems I have data sets under the "Composite 
> Data Set Index" list in the PlotOnIntersection pipeline.
>
> How is "Chart View" selected again? I didn't find it in the "View" drop down 
> menu at the top, but I was able to open a new layout and select 
> "SpreadSheetView".
>
> Thanks again,
>
> Louis Steytler
> Department of Mechanical Science and Engineering
> University of Illinois at Urbana-Champaign
> 1206 West Green Street
> Urbana, Il 61801
> steyt...@illinois.edu
> 
> From: Utkarsh Ayachit [utkarsh.ayac...@kitware.com]
> Sent: 23 January 2018 09:32 AM
> To: Steytler, Louis Louw
> Cc: paraview@paraview.org
> Subject: Re: [Paraview] Extracting data on the surface of a block?
>
> By "Export View", I meant "Export Scene" under the "File" menu.
>
> On Tue, Jan 23, 2018 at 10:31 AM, Utkarsh Ayachit
> <utkarsh.ayac...@kitware.com> wrote:
>> Louis,
>>
>>> This seemed to produce reasonable looking results, but I was not able to
>>> specify the number of points along the arc where data was extracted.
>>
>> PlotOnIntersectionCurves essentially slices the dataset using a
>> implicit plane. The points you get are indeed the insection points
>> between your polydata and the plane and hence there's no control over
>> how many points there can be, besides what's determined by your mesh.
>>
>> If you can share the sample data (feel free to do it off the list,if
>> you'd like), I can see what other options may work.
>>
>>>Also,  upon saving, three files were produced file0.csv, file1.csv, 
>>>file2.csv, and
>>> file3.csv. Not sure why I am not getting just one file?
>>
>> Are you using "save data"? I'd suggest selecting the "Chart View" and
>> then using "Export View" option to export the curves. That will give
>> you a since CSV for the fields you've selected.
>>
>> 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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Extracting data on the surface of a block?

2018-01-24 Thread Utkarsh Ayachit
> How is "Chart View" selected again? I didn't find it in the "View" drop down 
> menu at the top, but I was able to open a new layout and select 
> "SpreadSheetView".

By selecting the "Chart View", I meant simply click on the view that's
showing the plots after you applied the "PlotOnIntersectionCurves"
filter. That will activate the view. Now, when you choose File |
Export View, you'll export the contents of the selected view.

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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Segmentation fault when loading representation plugin on Linux paraview

2018-01-23 Thread Utkarsh Ayachit
Even with fb13726dbfdcb5479c393720abaf8234edd42609, it fails to build. I'll
wait for you to update your code to build with latest ParaView before
testing it. A quick look at the "AddToView" method and I don't see anything
wrong with it, so it will need some debugging.

On Tue, Jan 23, 2018 at 4:02 PM, Yangguang Liao <ygl...@ucdavis.edu> wrote:

> ​I'd like to share, the code works well on Paraview version
> fb13726dbfdcb5479c393720abaf8234edd42609 (version on Dec 1 2017), The
> latest has changed some source code, and I'm working on fix it.
> Thanks.
> ​
>  Paraview3DLICPlugin.zip
> <https://drive.google.com/a/ucdavis.edu/file/d/1toVCur-Iie9khbPjMFJXueUwB15UJsxn/view?usp=drive_web>
> ​
>
>
> On Tue, Jan 23, 2018 at 10:56 AM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> Maybe if you share the code for vtkLIC3DRepresentation I may be able
>> to offer suggestions. You could also try getting a access to some
>> other linux machine on which you should be able to reproduce the
>> issue.
>>
>> On Tue, Jan 23, 2018 at 1:53 PM, Yangguang Liao <ygl...@ucdavis.edu>
>> wrote:
>> > I run this paraview on TACC Maverick, which I have no access to debug
>> build.
>> > But I run the same plugin on my Windows Paraview build and there is no
>> such
>> > error. How could I fix it?
>> > Thanks
>> >
>> > On Tue, Jan 23, 2018 at 10:49 AM, Utkarsh Ayachit
>> > <utkarsh.ayac...@kitware.com> wrote:
>> >>
>> >> My guess would be that you're accessing a nullptr in
>> >> `vtkLIC3DRepresentation::AddToView`. I'd recommend doing a debug build
>> >> of ParaView, and then attaching a debugger to confirm and fix.
>> >>
>> >> Utkarsh
>> >>
>> >> On Mon, Jan 22, 2018 at 8:18 PM, Yangguang Liao <ygl...@ucdavis.edu>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > I get some segment fault when I try to run my plugin in Linux
>> paraview
>> >> > while
>> >> > there is no error in Windows paraview.
>> >> > I can only run static version of paraview, but I track the
>> segmentation
>> >> > fault.
>> >> >
>> >> > Program received signal SIGSEGV, Segmentation fault.
>> >> > 0x2aaabd07d336 in vtkViewport::HasViewProp(vtkProp*) ()
>> >> >from
>> >> >
>> >> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5
>> .4/libvtkRenderingCore-pv5.4.so.1
>> >> > Missing separate debuginfos, use: debuginfo-install
>> >> > paraview-intel15-mvapich2_2_1-5.4.1-1.x86_64
>> >> > (gdb) where
>> >> > #0  0x2aaabd07d336 in vtkViewport::HasViewProp(vtkProp*) ()
>> >> >from
>> >> >
>> >> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5
>> .4/libvtkRenderingCore-pv5.4.so.1
>> >> > #1  0x2aaabd07d2fa in vtkViewport::AddViewProp(vtkProp*) ()
>> >> >from
>> >> >
>> >> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5
>> .4/libvtkRenderingCore-pv5.4.so.1
>> >> > #2  0x2aaae66d6041 in vtkLIC3DRepresentation::AddToView(vtkView*)
>> ()
>> >> >from
>> >> >
>> >> > /work/03501/ygliao/maverick/Paraview3DLICPlugin_0/build/libL
>> IC3DRepresentation.so
>> >> > #3  0x2fea6a64 in
>> >> > vtkView::AddRepresentation(vtkDataRepresentation*)
>> >> > ()
>> >> >from
>> >> >
>> >> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5
>> .4/libvtkViewsCore-pv5.4.so.1
>> >> > #4  0x2f4731ab in
>> >> > vtkCompositeRepresentation::AddToView(vtkView*) ()
>> >> >from
>> >> >
>> >> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5
>> .4/libvtkPVClientServerCoreRendering-pv5.4.so.1
>> >> > #5  0x2f493760 in
>> >> > vtkPVCompositeRepresentation::AddToView(vtkView*)
>> >> > ()
>> >> >from
>> >> >
>> >> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5
>> .4/libvtkPVClientServerCoreRendering-pv5.4.so.1
>> >> > #6  0x2fea6a64 in
>> >> > vtkView::AddRepresentation(vtkDataRepresentation*)
>> >> > ()
>> >> >from
>> >> >
>> >> > /

Re: [Paraview] Segmentation fault when loading representation plugin on Linux paraview

2018-01-23 Thread Utkarsh Ayachit
Maybe if you share the code for vtkLIC3DRepresentation I may be able
to offer suggestions. You could also try getting a access to some
other linux machine on which you should be able to reproduce the
issue.

On Tue, Jan 23, 2018 at 1:53 PM, Yangguang Liao <ygl...@ucdavis.edu> wrote:
> I run this paraview on TACC Maverick, which I have no access to debug build.
> But I run the same plugin on my Windows Paraview build and there is no such
> error. How could I fix it?
> Thanks
>
> On Tue, Jan 23, 2018 at 10:49 AM, Utkarsh Ayachit
> <utkarsh.ayac...@kitware.com> wrote:
>>
>> My guess would be that you're accessing a nullptr in
>> `vtkLIC3DRepresentation::AddToView`. I'd recommend doing a debug build
>> of ParaView, and then attaching a debugger to confirm and fix.
>>
>> Utkarsh
>>
>> On Mon, Jan 22, 2018 at 8:18 PM, Yangguang Liao <ygl...@ucdavis.edu>
>> wrote:
>> > Hi,
>> >
>> > I get some segment fault when I try to run my plugin in Linux paraview
>> > while
>> > there is no error in Windows paraview.
>> > I can only run static version of paraview, but I track the segmentation
>> > fault.
>> >
>> > Program received signal SIGSEGV, Segmentation fault.
>> > 0x2aaabd07d336 in vtkViewport::HasViewProp(vtkProp*) ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1
>> > Missing separate debuginfos, use: debuginfo-install
>> > paraview-intel15-mvapich2_2_1-5.4.1-1.x86_64
>> > (gdb) where
>> > #0  0x2aaabd07d336 in vtkViewport::HasViewProp(vtkProp*) ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1
>> > #1  0x2aaabd07d2fa in vtkViewport::AddViewProp(vtkProp*) ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1
>> > #2  0x2aaae66d6041 in vtkLIC3DRepresentation::AddToView(vtkView*) ()
>> >from
>> >
>> > /work/03501/ygliao/maverick/Paraview3DLICPlugin_0/build/libLIC3DRepresentation.so
>> > #3  0x2fea6a64 in
>> > vtkView::AddRepresentation(vtkDataRepresentation*)
>> > ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkViewsCore-pv5.4.so.1
>> > #4  0x2f4731ab in
>> > vtkCompositeRepresentation::AddToView(vtkView*) ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkPVClientServerCoreRendering-pv5.4.so.1
>> > #5  0x2f493760 in
>> > vtkPVCompositeRepresentation::AddToView(vtkView*)
>> > ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkPVClientServerCoreRendering-pv5.4.so.1
>> > #6  0x2fea6a64 in
>> > vtkView::AddRepresentation(vtkDataRepresentation*)
>> > ()
>> >from
>> >
>> > /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkViewsCore-pv5.4.so.1
>> > #7  0x2db99b36 in vtkViewCommand(vtkClientServerInterpreter*,
>> > vtkObjectBase*, char const*, vtkClientServerStream const&,
>> > vtkClientServerStream&, void*)
>> >
>> > I don't why this only happens in Linux. Anyone could help me figure out?
>> >
>> > --
>> > Yangguang Liao
>> > PhD. student of Computer Science Department
>> > University of California, Davis
>> >
>> > ___
>> > 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://paraview.org/mailman/listinfo/paraview
>> >
>
>
>
>
> --
> Yangguang Liao
> PhD. student of Computer Science Department
> University of California, Davis
___
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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Segmentation fault when loading representation plugin on Linux paraview

2018-01-23 Thread Utkarsh Ayachit
My guess would be that you're accessing a nullptr in
`vtkLIC3DRepresentation::AddToView`. I'd recommend doing a debug build
of ParaView, and then attaching a debugger to confirm and fix.

Utkarsh

On Mon, Jan 22, 2018 at 8:18 PM, Yangguang Liao  wrote:
> Hi,
>
> I get some segment fault when I try to run my plugin in Linux paraview while
> there is no error in Windows paraview.
> I can only run static version of paraview, but I track the segmentation
> fault.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x2aaabd07d336 in vtkViewport::HasViewProp(vtkProp*) ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1
> Missing separate debuginfos, use: debuginfo-install
> paraview-intel15-mvapich2_2_1-5.4.1-1.x86_64
> (gdb) where
> #0  0x2aaabd07d336 in vtkViewport::HasViewProp(vtkProp*) ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1
> #1  0x2aaabd07d2fa in vtkViewport::AddViewProp(vtkProp*) ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1
> #2  0x2aaae66d6041 in vtkLIC3DRepresentation::AddToView(vtkView*) ()
>from
> /work/03501/ygliao/maverick/Paraview3DLICPlugin_0/build/libLIC3DRepresentation.so
> #3  0x2fea6a64 in vtkView::AddRepresentation(vtkDataRepresentation*)
> ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkViewsCore-pv5.4.so.1
> #4  0x2f4731ab in vtkCompositeRepresentation::AddToView(vtkView*) ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkPVClientServerCoreRendering-pv5.4.so.1
> #5  0x2f493760 in vtkPVCompositeRepresentation::AddToView(vtkView*)
> ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkPVClientServerCoreRendering-pv5.4.so.1
> #6  0x2fea6a64 in vtkView::AddRepresentation(vtkDataRepresentation*)
> ()
>from
> /opt/apps/intel15/mvapich2_2_1/paraview/5.4.1/lib/paraview-5.4/libvtkViewsCore-pv5.4.so.1
> #7  0x2db99b36 in vtkViewCommand(vtkClientServerInterpreter*,
> vtkObjectBase*, char const*, vtkClientServerStream const&,
> vtkClientServerStream&, void*)
>
> I don't why this only happens in Linux. Anyone could help me figure out?
>
> --
> Yangguang Liao
> PhD. student of Computer Science Department
> University of California, Davis
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Extracting data on the surface of a block?

2018-01-23 Thread Utkarsh Ayachit
By "Export View", I meant "Export Scene" under the "File" menu.

On Tue, Jan 23, 2018 at 10:31 AM, Utkarsh Ayachit
<utkarsh.ayac...@kitware.com> wrote:
> Louis,
>
>> This seemed to produce reasonable looking results, but I was not able to
>> specify the number of points along the arc where data was extracted.
>
> PlotOnIntersectionCurves essentially slices the dataset using a
> implicit plane. The points you get are indeed the insection points
> between your polydata and the plane and hence there's no control over
> how many points there can be, besides what's determined by your mesh.
>
> If you can share the sample data (feel free to do it off the list,if
> you'd like), I can see what other options may work.
>
>>Also,  upon saving, three files were produced file0.csv, file1.csv, 
>>file2.csv, and
>> file3.csv. Not sure why I am not getting just one file?
>
> Are you using "save data"? I'd suggest selecting the "Chart View" and
> then using "Export View" option to export the curves. That will give
> you a since CSV for the fields you've selected.
>
> 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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Extracting data on the surface of a block?

2018-01-23 Thread Utkarsh Ayachit
Louis,

> This seemed to produce reasonable looking results, but I was not able to
> specify the number of points along the arc where data was extracted.

PlotOnIntersectionCurves essentially slices the dataset using a
implicit plane. The points you get are indeed the insection points
between your polydata and the plane and hence there's no control over
how many points there can be, besides what's determined by your mesh.

If you can share the sample data (feel free to do it off the list,if
you'd like), I can see what other options may work.

>Also,  upon saving, three files were produced file0.csv, file1.csv, file2.csv, 
>and
> file3.csv. Not sure why I am not getting just one file?

Are you using "save data"? I'd suggest selecting the "Chart View" and
then using "Export View" option to export the curves. That will give
you a since CSV for the fields you've selected.

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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV4.1.0 multiple rulers

2018-01-14 Thread Utkarsh Ayachit
Not in 4.1.0. I believe this was fixed in 5.2. 5.2 onwards, you can
create and show multiple rulers.

Utkarsh

On Sun, Jan 14, 2018 at 7:54 AM, Stephen Wornom  wrote:
> I have a slice plane with 2 cylinders separated.
>
> I use rule to measure the length of the re-circulation zone after each
> cylinder.
> Independently, the ruler shows the distance. When I save the jpg I would
> like to see both distances on the figure. At the moment I can only see one
> not both.
> Is there away to see both?
> Hope my question is clear,
> Stephen
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] ParaView - Variables and different Time Steps

2018-01-11 Thread Utkarsh Ayachit
Carolin,

Check this post out:
https://blog.kitware.com/improved-vtk-numpy-integration-part-5/

The input to your filter as a vtkMultiBlockDataSet with each block
being a timestep, you can access individual arrays as described in the
post or you can use the following approach:

from paraview.vtk.numpy_interface import dataset_adapter as dsa
dataset_time0 = dsa.WrapDataObject(inputs[0].GetBlock(0))
dataset_time1 = dsa.WrapDataObject(inputs[0].GetBlock(1))

etc.

Utkarsh

On Thu, Jan 11, 2018 at 5:34 AM, Carolin Helbig <carolin.hel...@ufz.de> wrote:
> Dear Utkarsh,
>
> thank you very much for your help. It looks like it would work for my case,
> but I have some more question. How can I access the different time steps in
> the programmable filter? I thought they are the inputs (inputs[0],
> inputs[1], ...), but that doesn't work.
>
> Thanks again!
>
> Carolin.
>
>
>
> Am 10.01.2018 um 16:06 schrieb Utkarsh Ayachit:
>>
>> The easiest way to do such a thing is as follows:
>>
>> 1. Apply Extract TimeSteps filter to your reader/source to choose the
>> timesteps of interest.
>> 2. Apply Group TimeSteps filter to it to group the timesteps extracted
>> in (1) into a mutliblock dataset with 1 block for each selected
>> timestep in order.
>> 3. Now add your programmable filter to (2) and you can access all
>> timesteps of interest as blocks in your input.
>>
>> You can skip (1) if you want to use all timesteps, and not just a subset.
>>
>> Utkarsh
>>
>> On Wed, Jan 10, 2018 at 4:56 AM, Carolin Helbig <carolin.hel...@ufz.de>
>> wrote:
>>>
>>> Dear ParaView team,
>>>
>>> I read a post at the ParaView website concerning variables and different
>>> time steps (see
>>> https://public.kitware.com/pipermail/paraview/2014-May/031054.html). I
>>> have
>>> a similar problem and I want to access values from different time steps
>>> using the programmable filter with multiple inputs. I unfortunately have
>>> no
>>> idea how to access other time steps using the programmable filter. Could
>>> you
>>> give me some advice or a hint where I can find detailed information about
>>> that issue? I would be very happy if you could help me.
>>>
>>> Best regards,
>>> Carolin.
>>>
>>> --
>>> Dr. Carolin Helbig
>>>   Department Umweltinformatik
>>> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
>>> Permoserstraße 15 I 04318 Leipzig
>>> Tel.: +49 341 235 - 1032
>>> Email: carolin.hel...@ufz.de
>>> WWW: http://www.ufz.de
>>>   https://www.ufz.de/index.php?en=31616
>>>
>>>
>>> Sitz der Gesellschaft
>>> Registergericht: Amtsgericht Leipzig
>>> Handelsregister Nr.: B 4703
>>> Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
>>> Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
>>> Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann
>>>
>>> ___
>>> 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://paraview.org/mailman/listinfo/paraview
>
>
> --
> Dr. Carolin Helbig
>  Department Umweltinformatik
> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
> Permoserstraße 15 I 04318 Leipzig
> Tel.: +49 341 235 - 1032
> Email: carolin.hel...@ufz.de
> WWW: http://www.ufz.de
>  https://www.ufz.de/index.php?en=31616
>
>
> Sitz der Gesellschaft
> Registergericht: Amtsgericht Leipzig
> Handelsregister Nr.: B 4703
> Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
> Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
> Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann
>
___
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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] CS Wrapper for plugins ignores preprocessor variable

2018-01-11 Thread Utkarsh Ayachit
Two approaches:

1. put the two is separate headers and pick the approach header based
on if _DETAILED was defined at cmake configure time.
2. change header as follows:

#ifndef __VTK_WRAP__
#ifdef __DETAILED
#define vtkAlgorithm vtkMultiBlockDataSetAlgorithm
#else
#define vtkAlgorithm vtkRectilinearGridAlgorithm
#endif
#endif

class ... MyPlugin: public vtkAlgorithm
{
   static MyPlugin* New();
   vtkTypeMacro(MyPlugin, vtkRectilinearGridAlgorithm);
#ifndef __VTK_WRAP__
#undef vtkAlgorithm
#endif

};

Here, the wrapper will not provide any API on the the real superclass
but most likely, you only care about API in vtkAlgorithm to be
wrapped. See vtkFloatArray as an example on how this is done.

Utkarsh

On Thu, Jan 11, 2018 at 7:51 AM, Alexander Straub
 wrote:
> Hello ParaView community,
>
>
>
> while programming a ParaView filter I encountered a problem with the CS
> wrapping. In the following I will describe the problem. The ParaView version
> I am currently using is 5.3.0.
>
>
>
> In my project I created a filter that has one of two possible outputs,
> depending on a preprocessor variable. The idea behind this is, that there is
> a define “_DETAILED” that can be set via cmake. If it is not defined, a
> vtkRectilinearGrid is created. It it is defined, the plugin outputs a
> multiblock data set with an additional polydata object.
>
>
>
> The problem now is that the generation of the MyPluginClientServer.cxx
> doesn’t account for the preprocessor variable and just takes the last
> defined algorithm. In my case, this means that in the
> MyPluginClientServer.cxx file the line is always written as
>
> const char* commandName = "vtkRectilinearGridAlgorithm";
>
> This leads to a runtime error when applying the filter because it
> erroneously tries to downcast the plugin to the wrong algorithm data type.
>
>
>
> Here the error message:
>
> ERROR: In
> T:\paraview\source\ParaView-v5.3.0\ParaViewCore\ServerImplementation\Core\vtkPVSessionCore.cxx,
> line 371
>
> vtkPVSessionCore (01D0D3633550): Cannot cast MyPlugin object to
> vtkRectilinearGridAlgorithm.  This probably means the class specifies the
> incorrect superclass in vtkTypeMacro.
>
> while processing
>
> Message 0 = Invoke
>
>   Argument 0 = vtk_object_pointer {MyPlugin (01D080685680)}
>
>   Argument 1 = string_value {SetInputConnection}
>
>   Argument 2 = vtk_object_pointer {vtkAlgorithmOutput (01D0E3D49AB0)}
>
>
>
> The following is how I create the plugin class:
>
> […]
>
> #ifdef _DETAILED
>
> // Create multi block data set for additional output as polydata
>
> #include "vtkMultiBlockDataSetAlgorithm.h"
>
>
>
> class VTK_EXPORT MyPlugin : public vtkMultiBlockDataSetAlgorithm
>
> {
>
> public:
>
>static MyPlugin* New();
>
>vtkTypeMacro(MyPlugin, vtkMultiBlockDataSetAlgorithm);
>
> #else
>
> // Create rectilinear grid
>
> #include "vtkRectilinearGridAlgorithm.h"
>
>
>
> class VTK_EXPORT MyPlugin : public vtkRectilinearGridAlgorithm
>
> {
>
> public:
>
>static MyPlugin* New();
>
>vtkTypeMacro(MyPlugin, vtkRectilinearGridAlgorithm);
>
> #endif
>
> […]
>
>
>
> The work-around so far is to manually edit the MyPluginClientServer.cxx file
> to use the correct algorithm base class. This however is very unpractical as
> the code is supposed to be distributed to others. As I don’t have enough
> knowledge of the inner workings of ParaView, especially the wrapping that is
> done, I don’t know where or how to fix this. I would be glad if someone was
> able to help me with this issue.
>
>
>
> Kind regards,
>
> Alex
>
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] ParaView - Variables and different Time Steps

2018-01-10 Thread Utkarsh Ayachit
The easiest way to do such a thing is as follows:

1. Apply Extract TimeSteps filter to your reader/source to choose the
timesteps of interest.
2. Apply Group TimeSteps filter to it to group the timesteps extracted
in (1) into a mutliblock dataset with 1 block for each selected
timestep in order.
3. Now add your programmable filter to (2) and you can access all
timesteps of interest as blocks in your input.

You can skip (1) if you want to use all timesteps, and not just a subset.

Utkarsh

On Wed, Jan 10, 2018 at 4:56 AM, Carolin Helbig  wrote:
> Dear ParaView team,
>
> I read a post at the ParaView website concerning variables and different
> time steps (see
> https://public.kitware.com/pipermail/paraview/2014-May/031054.html). I have
> a similar problem and I want to access values from different time steps
> using the programmable filter with multiple inputs. I unfortunately have no
> idea how to access other time steps using the programmable filter. Could you
> give me some advice or a hint where I can find detailed information about
> that issue? I would be very happy if you could help me.
>
> Best regards,
> Carolin.
>
> --
> Dr. Carolin Helbig
>  Department Umweltinformatik
> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
> Permoserstraße 15 I 04318 Leipzig
> Tel.: +49 341 235 - 1032
> Email: carolin.hel...@ufz.de
> WWW: http://www.ufz.de
>  https://www.ufz.de/index.php?en=31616
>
>
> Sitz der Gesellschaft
> Registergericht: Amtsgericht Leipzig
> Handelsregister Nr.: B 4703
> Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
> Wissenschaftlicher Geschäftsführer: Prof. Dr. Dr. h.c. Georg Teutsch
> Administrative Geschäftsführerin: Prof. Dr. Heike Graßmann
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] About CmakeLists.txt for paraview plugin

2018-01-07 Thread Utkarsh Ayachit
Doesn't your plugin need other classes from VTK/ParaView? If so, you
can't mix and match. I am afraid you'll have to build ParaView from
source and then compile the plugin against it.

On Sun, Jan 7, 2018 at 12:20 AM, Yangguang Liao  wrote:
> Hi,
>
> I used some vtkOpenGL class in my plugin. When I developed in my own
> machine, I have paraview source which has vtkOpenGL.cmake that I can use to
> include header file I need. but when I try to compile my plugin on Maverick,
> it only has release paraview, which doesn't have such .cmake file. but
> Maverick does have VTK installed. How should I modify my cmakelists.txt to
> include vtkOpengl lib.
> Thanks.
>
> --
> Yangguang Liao
> PhD. student of Computer Science Department
> University of California, Davis
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV client-server: browsing remote files

2018-01-06 Thread Utkarsh Ayachit
Robert,

Sorry I missed the email earlier. What you have as an alternative is
indeed a reasonable approach. Once can also use ParaView's
infrastructure used by the file dialog, but it's a little clunky
currently, since it needs to be pythonified for easier user.

Here's how you'd do this with 5.4.1.

from paraview import servermanager as sm

helper = sm.misc.FileInformationHelper()
helper.DirectoryListing = 1
helper.WorkingDirecotry = "'/path/to/data/on/remote"

pvinfo = servermanager.vtkPVFileInformation()
helper.GatherInformation(pvinfo)
for a_pvinfo in pvinfo.GetConents():
   if a_pvinfo.GetType() == a_pvinfo.FILE_GROUP:
 for b_pvinfo in a_pvinfo.GetContents():
assert b_pvinfo.GetType() == b_pvinfo.SINGLE_FILE
print (b_pvinfo.GetName(),  b_pvinfo.GetFullPath())
   elif a_pvinfo.GetType() ==  a_pvinfo.SINGLE_FILE
  print (a_pvinfo.GetName(),  a_pvinfo.GetFullPath())

This will print all files in the directory.

See vtkPVFileInformation docs
(https://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/classvtkPVFileInformation.html)
for more API details.

Hope that helps.

Utkarsh

On Fri, Jan 5, 2018 at 2:05 PM, Robert Sawko  wrote:
> Hi,
>
> I will bump my own post from a month back (see below) and just will answer the
> question in case anyone else was looking for something similar. I haven't 
> found
> a way to remotely navigate the file system through ParaView Python API 
> objects,
> but of course there are other Python packages which can achieve that. I used
> paramiko. Below is my minimal example.
>
>
> from paraview.simple import LegacyVTKReader, RenameSource, Connect
> from paramiko import SSHClient, AutoAddPolicy
>
> '''
> This script extracts the output of a remote ls command with to feed into
> a LegacyVTKReader. The main use is it to make a collection of VTK files
> into a time sequence inside PV.
> '''
>
> # Inputs:
> host = 'remote.host.com'
> port = 22
> username = 'me'
> key_filename = '/path/to/private/key'
>
> pvhost = 'localhost'# I typically run pvserver through an ssh tunnel 
> so
> pvport = 7  # these are the parameters for local port forward
>
> data_dir = '/path/to/data/on/remote'
>
> # SSH part
> # to get a list of files to open
> client = SSHClient()
> client.set_missing_host_key_policy(AutoAddPolicy())
>
> client.connect(
> host, port=port,
> username=username,
> key_filename=key_filename)
>
> stdin, stdout, stderr = client.exec_command(
> 'ls -1 {0}'.format(data_dir))
> lslines = stdout.readlines()
> client.close()
>
> # ParaView part
> Connect('localhost', 7)
> reader = LegacyVTKReader(FileNames=[
>  'data/{0}'.format(l.strip()) for l in lslines])
> RenameSource('source', reader)
>
> Hope this helps someone!
> Robert
>
> On 12/01/17 at 07:18pm, Robert Sawko wrote:
>> Dear ParaViewers,
>>
>>
>> I am trying to use Python shell in Client-Server mode, but I am running into
>> some difficulties. How can I actually browse the remote directories. I tried
>> to use the `os` module, but that obviously ends up being all local. Here's a
>> minimal example of what I am trying to achieve.
>>
>>
>> from paraview.simple import Connect, LegacyVTKReader
>> from os import listdir
>>
>> Connect('my_server', port)
>> location = '/my/remote/location/'
>>
>> file_names = listdir(location).sort()
>> reader = LegacyVTKReader(FileNames=file_names)
>>
>>
>> Please let me know if it's at all possible to query the directory on the 
>> remote
>> side through an established connection.
>>
>> Many thanks,
>> Robert
>> --
>> Seems like the famous poem of turbulence comes from Jonathan Swift
>> http://en.wikipedia.org/wiki/The_Siphonaptera
>
> --
> Playing possum, opposable digit, climbing, swimming, omnivores...
> Is there nothing they can't do?
> http://en.wikipedia.org/wiki/Opossum
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Python shell, os.environ

2017-12-20 Thread Utkarsh Ayachit
Randy,

No, `os` hasn't been hijacked by PV.  Here's what I get on Linux.

./bin/pvpython
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ["FOO"]
'12'


I suspect it's something to do with App bundles on macOS and what
environment variables they see based on how you launch them. I can't
remember that of the top of my head, but that's where I'd start
looking.

Utkarsh


On Wed, Dec 20, 2017 at 5:50 PM, Heiland, Randy  wrote:
> Ah, I see ‘os’ has been hijacked by PV. But something like this seems to 
> accomplish what I want, maybe…
>
> Create a new module for PV:
>
> /Applications/ParaView-5.4.1.app/Contents/Python$ more envs.py
> import os
> os.environ['PHYSICELL_DATA']=‘/fill_in_path’
>
> and then in the PV Python shell, the os.environ will indeed contain this new 
> env var.
>
>
>> On Dec 20, 2017, at 4:30 PM, Heiland, Randy  wrote:
>>
>> I noticed the Python shell has a very limited os.environ, e.g.:
> os.environ
>> {'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': 
>> '/private/tmp/com.apple.launchd.y86uYmHWFV/Listeners', 'XPC_FLAGS': '0x0', 
>> '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'Apple_PubSub_Socket_Render': 
>> '/private/tmp/com.apple.launchd.CM4C6EMoE6/Render', 'LOGNAME': 'heiland', 
>> 'USER': 'heiland', 'XPC_SERVICE_NAME': 'org.paraview.ParaView.6', 
>> 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/Users/heiland', 
>> 'DISPLAY': 
>> '/private/tmp/com.apple.launchd.4ORv1l0yeN/org.macosforge.xquartz:0', 
>> 'TMPDIR': '/var/folders/l6/s467rzgs75n91gdbkn7vr0f4gn/T/'}
>
>>
>> I’m guessing this is a security measure? Anyway, is there any way one can 
>> use an env var to pass in desirable info to PV’s Python, e.g., a dir path to 
>> data to be read by a Programmable Source? Or perhaps there’s some other 
>> entirely different way to do this?
>>
>> thanks, Randy
>> ___
>> 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://paraview.org/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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV4.10 extracting a surface

2017-12-20 Thread Utkarsh Ayachit
I believe you're getting  the warning because the threshold ended up
not producing any output. If you can attach the state/data file, I may
be able to can give more info.

Utkarsh

On Wed, Dec 20, 2017 at 10:15 AM, Stephen Wornom
 wrote:
> The geometry is a cylinder.
> Using the calculator I do
> rad =sqrt( x**2+y**2)
> I would like to extract the cylinder surface which is rad = 0.1
> I click on threshold then information to see rad 0.1 I click on extract and enter the values min = 0.1 and max 0.1 for rad
> I get this message
> warning: In
> /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx,
> line 279
>
> vtkSMPVRepresentationProxy (0x359fd080): Could not determine array range.
>
>
> Any ideas to the solution of my problem?
> Thanks in advance,
> Stephen
>
> ___
> 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://paraview.org/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://paraview.org/mailman/listinfo/paraview


Re: [Paraview] v5.4.0 and v5.4.1 client-server disconnect while splitting views

2017-12-13 Thread Utkarsh Ayachit
Bucky,

What happens if you don't split, instead close the current view and
create a new render view in its stead? Do you get the same segfault?

Utkarsh



On Wed, Dec 13, 2017 at 9:49 AM, Kashiwa, Bucky  wrote:
> We are getting a very weird kind of client-server disconnect that seems to
> be associated with crash that is triggered while splitting the view into
> two or more parts.  (This happens on either client-server OS pairs of
> mac-linux or linux-linux, in case that may matter.)  A backtrace from the
> server window is given below.  Any suggestions are greatly appreciated.  b.
>
>
>
> ---
> ---
> ---
> Client connected.
>
>
> pvserver:14230 terminated with signal 11 at PC=2ab0fe68cf91
> SP=7ffe6d91fc90.  Backtrace:
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingOpe
> nGL2-pv5.4.so.1(_ZN16vtkShaderProgram11SetUniformiEPKci+0x21)[0x2ab0fe68cf9
> 1]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVVTKExtensi
> onsRendering-pv5.4.so.1(_ZN20vtkIceTCompositePass27PushIceTDepthBufferToScr
> eenEPK14vtkRenderState+0x288)[0x2ab0f5068038]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVClientServ
> erCoreRendering-pv5.4.so.1(+0x164b28)[0x2ab0f2236b28]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingOpe
> nGL2-pv5.4.so.1(_ZN27vtkDepthImageProcessingPass14RenderDelegateEPK14vtkRen
> derStateP26vtkOpenGLFramebufferObjectP16vtkTextureObjectS6_+0x209)[0x2a
> b0fe5be569]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingOpe
> nGL2-pv5.4.so.1(_ZN13vtkEDLShading6RenderEPK14vtkRenderState+0x2e3)[0x2ab0f
> e5d06c3]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingOpe
> nGL2-pv5.4.so.1(_ZN17vtkOpenGLRenderer12DeviceRenderEv+0x5f)[0x2ab0fe63f3af
> ]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingCor
> e-pv5.4.so.1(_ZN11vtkRenderer6RenderEv+0x823)[0x2ab0fea654d3]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingCor
> e-pv5.4.so.1(_ZN21vtkRendererCollection6RenderEv+0xc5)[0x2ab0fea61fe5]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingCor
> e-pv5.4.so.1(_ZN15vtkRenderWindow14DoStereoRenderEv+0xce)[0x2ab0fea6f2ce]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkRenderingCor
> e-pv5.4.so.1(_ZN15vtkRenderWindow6RenderEv+0xf05)[0x2ab0fea715b5]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVClientServ
> erCoreRendering-pv5.4.so.1(_ZN15vtkPVRenderView6RenderEbb+0x4e8)[0x2ab0f21f
> 9198]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVClientServ
> erCoreRendering-pv5.4.so.1(_ZN15vtkPVRenderView11StillRenderEv+0x3c)[0x2ab0
> f21f1b7c]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVServerMana
> gerApplication-pv5.4.so.1(_Z22vtkPVRenderViewCommandP26vtkClientServerInter
> preterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_Pv+0x19f8)[0x2ab0e7b3
> 06a8]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkClientServer
> -pv5.4.so.1(_ZN26vtkClientServerInterpreter19CallCommandFunctionEPKcP13vtkO
> bjectBaseS1_RK21vtkClientServerStreamRS4_+0x1a4)[0x2ab0e9a30234]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libEyeDomeLighting
> View.so(_Z29vtkPVRenderViewWithEDLCommandP26vtkClientServerInterpreterP13vt
> kObjectBasePKcRK21vtkClientServerStreamRS5_Pv+0x35b)[0x2ab11f01d43b]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkClientServer
> -pv5.4.so.1(_ZN26vtkClientServerInterpreter19CallCommandFunctionEPKcP13vtkO
> bjectBaseS1_RK21vtkClientServerStreamRS4_+0x1a4)[0x2ab0e9a30234]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkClientServer
> -pv5.4.so.1(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkCl
> ientServerStreami+0x14a)[0x2ab0e9a3059a]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkClientServer
> -pv5.4.so.1(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClien
> tServerStreami+0x53e)[0x2ab0e9a3110e]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkClientServer
> -pv5.4.so.1(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientSer
> verStream+0x1d)[0x2ab0e9a3137d]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVServerImpl
> ementationCore-pv5.4.so.1(_ZN16vtkPVSessionCore21ExecuteStreamInternalERK21
> vtkClientServerStreamb+0xf5)[0x2ab0e85c0d75]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVServerImpl
> ementationCore-pv5.4.so.1(_ZN16vtkPVSessionCore13ExecuteStreamEjRK21vtkClie
> ntServerStreamb+0x3b)[0x2ab0e85c0bab]
> /yellow/usr/projects/pv_dev/PV-5.4.0-FX/lib/paraview-5.4/libvtkPVServerImpl
> ementationCore-pv5.4.so.1(_ZN16vtkPVSessionBase13ExecuteStreamEjRK21vtkClie
> ntServerStreamb+0x35)[0x2ab0e85bf895]
> 

Re: [Paraview] animation: files, pgmable source

2017-12-09 Thread Utkarsh Ayachit
Randy,

Here's how I'd proceed.

1. Create a programmable source to read a file series as a temporal
dataset. (you have this already).
2. Let the users use ParaView to save animation or screenshots once
they are satisfied.
3. You can put the "Extract TimeSteps" filter after your reader
(before any of the other pipeline) and make it filter timesteps. It
allows filtering over a range of timesteps with an arbitrary interval.
So your users can change this to choose which subset they are
interested in. I'd also point to the "Time INspector" so user can see
what timesteps ParaView is taking into consideration.

Utkarsh



On Fri, Dec 8, 2017 at 3:29 PM, Heiland, Randy <heil...@iu.edu> wrote:
> Have a user read in a state file to experiment with a pipeline/filters on a 
> single data file, e.g. they may have 1000 files and they want to initially  
> look at the last one. When they’re content with the vis on a single file, 
> they’d like to view an animation in PV on all (or mod N) files. When they’re 
> happy with that, they’d like to save .png’s - preferably batch/offscreen, but 
> whatever.
>
> Randy
>
>
>> On Dec 8, 2017, at 3:07 PM, Utkarsh Ayachit <utkarsh.ayac...@kitware.com> 
>> wrote:
>>
>> Randy,
>>
>> Mind explaining to me what;s your ultimate goal? The way I see it,
>> there are two options:
>>
>> 1. Provide your users with a state file that they load in ParaView UI
>> and then use the UI to save animation or images. Use the UI to move
>> back and forth through the timesteps, etc.
>> 2. Provide your users with a Python script that they run using
>> pvpython to save out screenshots or animations based on command line
>> arguments.
>>
>> Which one are you aiming for? Or is it something else?
>>
>> Utkarsh
>>
>>
>>
>> On Fri, Dec 8, 2017 at 11:22 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>> No, no, I’m sure it’s *me* who’s confused.  I’m not sure I understand what 
>>> you’re saying. Are you suggesting keeping the (full) range of timesteps in 
>>> my script and then, somehow, only render the one of interest? If so, that 
>>> would be great, except the way things are currently working for me, after 
>>> loading the .pvsm initially, it renders the first requested tilmestep, but 
>>> I cannot just enter a desired timestep value into the “Time” widget field. 
>>> I can only single step through them via the up/down arrow widget.
>>>
>>> Not sure if it’s related, but after loading the state file, in the Output 
>>> Messages, I get the following error/warning, even though it does render the 
>>> first one properly:
>>>
>>> Traceback (most recent call last):
>>>  File "", line 20, in 
>>>  File "", line 34, in RequestInformation
>>> TypeError: arguments do not match any overloaded methods
>>> --- time=  100.0
>>> fname= 
>>> /Users/heiland/git/PhysiCell/run2_cancer_immune/output0100_cells_physicell
>>> num_cells_possible = 38080
>>> num_cells = 38080
>>>
>>> I’ve attached my Programmable Source Script and Script(RequestInfo), fwiw. 
>>> Line 34 of RequestInfo is the very last line in that script.
>>> output.GetInformation().Set(output.DATA_TIME_STEP(), req_time)
>>>
>>>
>>> thanks!
>>> Randy
>
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] animation: files, pgmable source

2017-12-08 Thread Utkarsh Ayachit
Randy,

Mind explaining to me what;s your ultimate goal? The way I see it,
there are two options:

1. Provide your users with a state file that they load in ParaView UI
and then use the UI to save animation or images. Use the UI to move
back and forth through the timesteps, etc.
2. Provide your users with a Python script that they run using
pvpython to save out screenshots or animations based on command line
arguments.

Which one are you aiming for? Or is it something else?

Utkarsh



On Fri, Dec 8, 2017 at 11:22 AM, Heiland, Randy  wrote:
> No, no, I’m sure it’s *me* who’s confused.  I’m not sure I understand what 
> you’re saying. Are you suggesting keeping the (full) range of timesteps in my 
> script and then, somehow, only render the one of interest? If so, that would 
> be great, except the way things are currently working for me, after loading 
> the .pvsm initially, it renders the first requested tilmestep, but I cannot 
> just enter a desired timestep value into the “Time” widget field. I can only 
> single step through them via the up/down arrow widget.
>
> Not sure if it’s related, but after loading the state file, in the Output 
> Messages, I get the following error/warning, even though it does render the 
> first one properly:
>
> Traceback (most recent call last):
>   File "", line 20, in 
>   File "", line 34, in RequestInformation
> TypeError: arguments do not match any overloaded methods
> --- time=  100.0
> fname= 
> /Users/heiland/git/PhysiCell/run2_cancer_immune/output0100_cells_physicell
> num_cells_possible = 38080
> num_cells = 38080
>
> I’ve attached my Programmable Source Script and Script(RequestInfo), fwiw. 
> Line 34 of RequestInfo is the very last line in that script.
> output.GetInformation().Set(output.DATA_TIME_STEP(), req_time)
>
>
> thanks!
> Randy
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] animation: files, pgmable source

2017-12-08 Thread Utkarsh Ayachit
Oops. I meant to say -- "I am a little confused here" :).

On Fri, Dec 8, 2017 at 10:10 AM, Utkarsh Ayachit
<utkarsh.ayac...@kitware.com> wrote:
> Hmm, little confused here? Why not keep the timesteps in the reader
> unchanged and explcitly do the timestep of interest and save
> screenshot?
>
> On Thu, Dec 7, 2017 at 10:51 AM, Heiland, Randy <heil...@iu.edu> wrote:
>> Utkarsh,
>>
>> Thanks very much for that!  Yes, after some fiddling, I got it to work, 
>> i.e., I can save .png files for an animation! So now that I’m using the 
>> Programmable Source(RequestInfo) script to accomplish the animation, how do 
>> I, during a PV session, *easily* switch back to render a single file?
>>
>> For example, I can do:
>> frames = range(0,801,100)   #  render every 100th frame, including 800
>> setOutputTimesteps (self, frames)
>>
>> or, I can explicitly list specific frames:
>> frames = [100,101]
>>
>> so, I thought this would do a single file, but it doesn’t (my previous 
>> frames are still there):
>> frames = [600,]
>>
>> -Randy
>>
>>
>>
>>> On Dec 6, 2017, at 10:44 PM, Utkarsh Ayachit <utkarsh.ayac...@kitware.com> 
>>> wrote:
>>>
>>> Randy,
>>>
>>> You attempting to mix the Python scripting for data processing and
>>> Python scripting for batch scripting. The two environments are
>>> separate. Here's how I'd tackle it.
>>>
>>> 1. Make your "Programmable Source" become a temporal source i.e.
>>> report to ParaView that it can produce timesteps matching the files
>>> your file series. See [i]. If you get this right, you shuold be able
>>> to render through all the files by hitting "Play" in the VCR control
>>> in the UI.
>>> 2. Now you can write a batch script that either loads the predefined
>>> pvsm state file or builds up the pipeline in Python itself and the
>>> either uses `SaveScreenshot` or `SaveAnimation` to save out the
>>> animation.
>>>
>>> You can then mix in camera animations too. You can always use the
>>> Python tracing in UI to figure out how to save images and/or animation
>>> in the batch scripting environment.
>>>
>>> Hope that helps.
>>> Utkarsh
>>>
>>> [i] 
>>> https://blog.kitware.com/defining-time-varying-sources-with-paraviews-programmable-source/
>>>
>>> On Wed, Dec 6, 2017 at 11:15 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>>> I’m probably missing a basic concept and hoping someone can enlighten me. I
>>>> have a pipeline with a Programmable Source that reads in a (non-VTK
>>>> formatted) file, I process it and then I have filters in my pipeline that
>>>> act on that data. I want to be able to feed multiple files to the pipeline,
>>>> save images and/or create animations. I naively created a Python function 
>>>> in
>>>> the Pgmable Source, then save the PV State to a Python script, thinking I
>>>> could call the function from the end of that script. Doesn’t seem to be
>>>> possible. And I confess I’ve not given this deep thought - it’s easier to
>>>> ask the experts :-)  Bottom line, we want to make this as dead simple for
>>>> our own users.
>>>>
>>>> Fwiw, I’ve zipped up 2 files - a .pvsm and a sample data file here:
>>>> http://pages.iu.edu/~heiland/physicell/pv_pcell.zip . You’d need to edit 
>>>> the
>>>> “dir” path in the Pgmable Source.
>>>>
>>>> Initially, I just want to save images/animation (over multiple files) with 
>>>> a
>>>> fixed camera view; later, it’d be nice to have simultaneous camera 
>>>> movement.
>>>>
>>>> thanks, Randy
>>>>
>>>> ___
>>>> 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:
>>>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] animation: files, pgmable source

2017-12-08 Thread Utkarsh Ayachit
Hmm, little confused here? Why not keep the timesteps in the reader
unchanged and explcitly do the timestep of interest and save
screenshot?

On Thu, Dec 7, 2017 at 10:51 AM, Heiland, Randy <heil...@iu.edu> wrote:
> Utkarsh,
>
> Thanks very much for that!  Yes, after some fiddling, I got it to work, i.e., 
> I can save .png files for an animation! So now that I’m using the 
> Programmable Source(RequestInfo) script to accomplish the animation, how do 
> I, during a PV session, *easily* switch back to render a single file?
>
> For example, I can do:
> frames = range(0,801,100)   #  render every 100th frame, including 800
> setOutputTimesteps (self, frames)
>
> or, I can explicitly list specific frames:
> frames = [100,101]
>
> so, I thought this would do a single file, but it doesn’t (my previous frames 
> are still there):
> frames = [600,]
>
> -Randy
>
>
>
>> On Dec 6, 2017, at 10:44 PM, Utkarsh Ayachit <utkarsh.ayac...@kitware.com> 
>> wrote:
>>
>> Randy,
>>
>> You attempting to mix the Python scripting for data processing and
>> Python scripting for batch scripting. The two environments are
>> separate. Here's how I'd tackle it.
>>
>> 1. Make your "Programmable Source" become a temporal source i.e.
>> report to ParaView that it can produce timesteps matching the files
>> your file series. See [i]. If you get this right, you shuold be able
>> to render through all the files by hitting "Play" in the VCR control
>> in the UI.
>> 2. Now you can write a batch script that either loads the predefined
>> pvsm state file or builds up the pipeline in Python itself and the
>> either uses `SaveScreenshot` or `SaveAnimation` to save out the
>> animation.
>>
>> You can then mix in camera animations too. You can always use the
>> Python tracing in UI to figure out how to save images and/or animation
>> in the batch scripting environment.
>>
>> Hope that helps.
>> Utkarsh
>>
>> [i] 
>> https://blog.kitware.com/defining-time-varying-sources-with-paraviews-programmable-source/
>>
>> On Wed, Dec 6, 2017 at 11:15 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>> I’m probably missing a basic concept and hoping someone can enlighten me. I
>>> have a pipeline with a Programmable Source that reads in a (non-VTK
>>> formatted) file, I process it and then I have filters in my pipeline that
>>> act on that data. I want to be able to feed multiple files to the pipeline,
>>> save images and/or create animations. I naively created a Python function in
>>> the Pgmable Source, then save the PV State to a Python script, thinking I
>>> could call the function from the end of that script. Doesn’t seem to be
>>> possible. And I confess I’ve not given this deep thought - it’s easier to
>>> ask the experts :-)  Bottom line, we want to make this as dead simple for
>>> our own users.
>>>
>>> Fwiw, I’ve zipped up 2 files - a .pvsm and a sample data file here:
>>> http://pages.iu.edu/~heiland/physicell/pv_pcell.zip . You’d need to edit the
>>> “dir” path in the Pgmable Source.
>>>
>>> Initially, I just want to save images/animation (over multiple files) with a
>>> fixed camera view; later, it’d be nice to have simultaneous camera movement.
>>>
>>> thanks, Randy
>>>
>>> ___
>>> 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:
>>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Filter suddenly stopped working "did not create output for port 0"

2017-12-08 Thread Utkarsh Ayachit
> I had previously configured paraview with ccmake and set build type to
> Release and enabled Python.
> Any idea how that may impact this?

Not entirely sure how, unless some incorrect libraries are getting
loaded. Are you on Windows? Is your PATH sane?

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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] animation: files, pgmable source

2017-12-06 Thread Utkarsh Ayachit
Randy,

You attempting to mix the Python scripting for data processing and
Python scripting for batch scripting. The two environments are
separate. Here's how I'd tackle it.

1. Make your "Programmable Source" become a temporal source i.e.
report to ParaView that it can produce timesteps matching the files
your file series. See [i]. If you get this right, you shuold be able
to render through all the files by hitting "Play" in the VCR control
in the UI.
2. Now you can write a batch script that either loads the predefined
pvsm state file or builds up the pipeline in Python itself and the
either uses `SaveScreenshot` or `SaveAnimation` to save out the
animation.

You can then mix in camera animations too. You can always use the
Python tracing in UI to figure out how to save images and/or animation
in the batch scripting environment.

Hope that helps.
Utkarsh

[i] 
https://blog.kitware.com/defining-time-varying-sources-with-paraviews-programmable-source/

On Wed, Dec 6, 2017 at 11:15 AM, Heiland, Randy  wrote:
> I’m probably missing a basic concept and hoping someone can enlighten me. I
> have a pipeline with a Programmable Source that reads in a (non-VTK
> formatted) file, I process it and then I have filters in my pipeline that
> act on that data. I want to be able to feed multiple files to the pipeline,
> save images and/or create animations. I naively created a Python function in
> the Pgmable Source, then save the PV State to a Python script, thinking I
> could call the function from the end of that script. Doesn’t seem to be
> possible. And I confess I’ve not given this deep thought - it’s easier to
> ask the experts :-)  Bottom line, we want to make this as dead simple for
> our own users.
>
> Fwiw, I’ve zipped up 2 files - a .pvsm and a sample data file here:
> http://pages.iu.edu/~heiland/physicell/pv_pcell.zip . You’d need to edit the
> “dir” path in the Pgmable Source.
>
> Initially, I just want to save images/animation (over multiple files) with a
> fixed camera view; later, it’d be nice to have simultaneous camera movement.
>
> thanks, Randy
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ERROR: Cannot read points array from Points in piece 0. The data array in the element may be too short.

2017-12-04 Thread Utkarsh Ayachit
There should be 10137 (3379*3)  values in the "Points" array, looks
like there are only 10117.

Utkarsh

On Mon, Dec 4, 2017 at 2:25 PM, Salazar De Troya, Miguel
 wrote:
> I am trying to open these two files, which are both similar. They are the
> result of the same simulation, but with different parameters. For some
> reason, I can open the first, but not the second one. I am attaching them
> here (could not attach them to the email)
>
>
>
> https://quickfileshare.org/3dm/concentration_nsteps_522_p3_44.vtu
>
>
>
> https://quickfileshare.org/3dl/concentration_nsteps_564_p3_000444.vtu
>
>
>
> When I open the second file, I get this error:
>
>
>
> ERROR: In
> /Users/kitware/buildbot-slave/8275bd07/source-paraview/VTK/IO/XML/vtkXMLUnstructuredDataReader.cxx,
> line 523
>
> vtkXMLUnstructuredGridReader (0x7fe66a5b65b0): Cannot read points array from
> Points in piece 0. The data array in the element may be too short.
>
>
>
> Upon inspection, both files are very similar, not sure what can be wrong
> with the second.
>
>
>
> Thanks
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Assemble Variables into Tensor

2017-11-30 Thread Utkarsh Ayachit
You're most welcome :).

Utkarsh

On Thu, Nov 30, 2017 at 10:20 AM, Nicholas Richmond
<nicholas.richm...@maine.edu> wrote:
> Hi Utkarsh,
>
> Using the script you wrote with the Programmable Filter does the job nicely!
> Thanks so much for going above and beyond to help me assemble the arrays
> into a tensor. Programmable Filter never occurred to me and I am now looking
> forward to exploring Chapter 13 of the Paraview Guide to see what else I can
> do with it.
>
> Many thanks,
> Nick Richmond
>
> On Wed, Nov 29, 2017 at 9:56 PM, Utkarsh Ayachit
> <utkarsh.ayac...@kitware.com> wrote:
>>
>> Nick,
>>
>> You can use the Programmable Filter instead with something like the
>> following script as the Script:
>>
>>
>> from paraview.vtk.numpy_interface import dataset_adapter as dsa
>>
>> import numpy
>>
>> def make_tensor(xx,yy,zz, xy, yz, xz):
>>
>>   t = numpy.vstack([xx,yy,zz,xy, yz, xz]).transpose().view(dsa.VTKArray)
>>
>>   t.DataSet = xx.DataSet
>>
>>   t.Association = xx.Association
>>
>>   return t
>>
>>
>> xx = inputs[0].PointData["sigma_xx"]
>>
>> yy = inputs[0].PointData["sigma_yy"]
>>
>> zz = inputs[0].PointData["sigma_zz"]
>>
>> xy = inputs[0].PointData["sigma_xy"]
>>
>> yz = inputs[0].PointData["sigma_yz"]
>>
>> xz = inputs[0].PointData["sigma_xz"]
>>
>> output.PointData.append(make_tensor(xx,yy,zz,xy,yz,xz), "tensor")
>>
>>
>> Utkarsh
>>
>> On Wed, Nov 29, 2017 at 5:01 PM, Nicholas Richmond
>> <nicholas.richm...@maine.edu> wrote:
>>>
>>> Greetings,
>>>
>>> I have a vtk Polygonal Mesh with six separate arrays (sigma_xx, sigma_yy,
>>> sigma_zz, sigma_xy, sigma_yz, sigma_xz). I'd like to assemble these into a
>>> tensor so that I may apply the Tensor Glyph filter.
>>>
>>> After reading that the paraview.simple.TensorGlyph expects a symmetric
>>> tensor with the order XX, YY, ZZ, XY, YZ, XZ, I tried to assemble the six
>>> separate arrays into a single array with the Python Calculator, but have
>>> been unsuccessful.
>>>
>>> I've tried a variety of approaches, including:
>>>
>>> Expression: np.array([sigma_xx, sigma_yy, sigma_zz, sigma_xy, sigma_yz,
>>> sigma_xz])
>>> Array Association: Point Data
>>>
>>> I can make a vector of the normal stresses using the "make_vector"
>>> function from paraview.vtk.numpy_interface.algorithms, but there is no
>>> "make_tensor" function to assemble both normal and shear stresses into a
>>> single symmetric tensor.
>>>
>>> Any guidance would be most appreciated.
>>> Many thanks,
>>> Nick Richmond
>>>
>>> ___
>>> 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:
>>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Assemble Variables into Tensor

2017-11-29 Thread Utkarsh Ayachit
Nick,

You can use the *Programmable Filter* instead with something like the
following script as the *Script*:


from paraview.vtk.numpy_interface import dataset_adapter as dsa

import numpy

def make_tensor(xx,yy,zz, xy, yz, xz):

  t = numpy.vstack([xx,yy,zz,xy, yz, xz]).transpose().view(dsa.VTKArray)

  t.DataSet = xx.DataSet

  t.Association = xx.Association

  return t


xx = inputs[0].PointData["sigma_xx"]

yy = inputs[0].PointData["sigma_yy"]

zz = inputs[0].PointData["sigma_zz"]

xy = inputs[0].PointData["sigma_xy"]

yz = inputs[0].PointData["sigma_yz"]

xz = inputs[0].PointData["sigma_xz"]

output.PointData.append(make_tensor(xx,yy,zz,xy,yz,xz), "tensor")


Utkarsh

On Wed, Nov 29, 2017 at 5:01 PM, Nicholas Richmond <
nicholas.richm...@maine.edu> wrote:

> Greetings,
>
> I have a vtk Polygonal Mesh with six separate arrays (sigma_xx, sigma_yy,
> sigma_zz, sigma_xy, sigma_yz, sigma_xz). I'd like to assemble these into a
> tensor so that I may apply the Tensor Glyph filter.
>
> After reading that the paraview.simple.TensorGlyph
> 
>  expects a symmetric tensor with the order XX, YY, ZZ, XY, YZ, XZ, I
> tried to assemble the six separate arrays into a single array with the
> Python Calculator, but have been unsuccessful.
>
> I've tried a variety of approaches, including:
>
> *Expression:* np.array([sigma_xx, sigma_yy, sigma_zz, sigma_xy, sigma_yz,
> sigma_xz])
> *Array Association:* Point Data
>
> I can make a vector of the normal stresses using the "make_vector"
> function from paraview.vtk.numpy_interface.algorithms, but there is no
> "make_tensor" function to assemble both normal and shear stresses into a
> single symmetric tensor.
>
> Any guidance would be most appreciated.
> Many thanks,
> Nick Richmond
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] FEM

2017-11-29 Thread Utkarsh Ayachit
Paul,

Welcome to the community!

If your data is not in one of the large number of formats ParaView
already supports, using Python to read an map to VTK data model sounds
like a reasonable strategy. The "Programmable Source" would be the way
to go. The ParaView Guide has examples that should help you get
started.

Utkarsh

On Tue, Nov 28, 2017 at 4:25 PM,   wrote:
> Dear All
>
> I'm new in Paraview community.
>
> For a while, I'm thinking in developping my own template in order to
> post-process results in Paraview, from my finite element solvers (mechanical
> and thermal ones).
>
> From an ascii file containing all the data (mesh informations and
> nodal/element results), I'm thinking in writing (python) routines in VTK
> format I guess.
>
> One can find a lot of information's on internet, but are ther some specific
> docs/tools/class and so on on it?
>
> Thanks for any feedback
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python Scripting - Acess vtkOpenGL cameras from .pvx files information

2017-11-27 Thread Utkarsh Ayachit
Afraid not. One potential work around would be you build the
transformation matrix and set that on the camera. You can build the
matrix yourself by changing the order of rotations.

Utkarsh

On Fri, Nov 24, 2017 at 1:43 PM, Léo Pessanha
<leonardopessanh...@gmail.com> wrote:
> Thank you again for your help, Utkarsh!
>
> Your solution worked but it flicks a lot because of the gimbal lock, but I
> believe I could not get rid of that. Right?
>
> Thanks in advance!
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-10-25 11:12 GMT-03:00 Utkarsh Ayachit <utkarsh.ayac...@kitware.com>:
>>
>> Leo,
>>
>> To handle 90-degree pitch or elevation, do the following:
>>
>> camera.Pitch(90)
>> camera.OrthogonalizeViewUp()
>> Render()
>>
>> Utkarsh
>>
>>
>> On Tue, Oct 24, 2017 at 2:50 PM, Léo Pessanha
>> <leonardopessanh...@gmail.com> wrote:
>>>
>>> Thanks Utkarsh!
>>>
>>> This change would take a build right? Can't do it right now =/
>>>
>>> My goal is to know what should I do after a
>>>
>>>> cameraInstance.Pitch(90)
>>>
>>>
>>> and before a
>>>
>>>> Render()
>>>
>>>
>>> In order not to get the warning
>>>
>>>> Resetting view-up since view plane normal is parallel
>>>
>>>
>>> I've tried
>>>
>>>> cameraInstance.ComputeViewPlaneNormal()
>>>
>>>
>>> but with no sucess...
>>>
>>> Do you know why and can explain me the reason of this warning ?
>>> More important, how to get rid of it? hahaha
>>> My goal trying to print the camera attributes was to debug this info!
>>>
>>> Thanks in advance!
>>>
>>>
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-10-23 13:01 GMT-02:00 Utkarsh Ayachit <utkarsh.ayac...@kitware.com>:
>>>>
>>>> Leo,
>>>>
>>>> You can't access it in Python since the Python script is not run on the
>>>> server side. If your goal is to debug what thet camera is set to, you can
>>>> put cout's to print the camera in
>>>> `vtkCaveSynchronizedRenderers::HandleStartRender`. That's where the local
>>>> camera on each rank is "prepped" for rendering a frame.
>>>>
>>>> Utkarsh
>>>>
>>>> On Mon, Oct 23, 2017 at 9:20 AM, Léo Pessanha
>>>> <leonardopessanh...@gmail.com> wrote:
>>>>>
>>>>> Hi!
>>>>>
>>>>> I would like to know if there's a way to acess the
>>>>> information/attributes of the cameras there are created trough a .pvx file
>>>>>
>>>>> To acess the attributes in the camera of the active Layout/RenderView
>>>>> I do:
>>>>>
>>>>> 1 - Open Python Shell
>>>>> 2 - camera = GetActiveCamera()
>>>>> 3 - print(camera)
>>>>>
>>>>> And the output is:
>>>>>
>>>>> vtkOpenGLCamera (0x4a45e80)
>>>>>
>>>>> Debug: Off
>>>>>
>>>>> Modified Time: 405029
>>>>>
>>>>> Reference Count: 5
>>>>>
>>>>> Registered Events:
>>>>>
>>>>> Registered Observers:
>>>>>
>>>>> (none)
>>>>>
>>>>> ClippingRange: (1.63277, 5.56498)
>>>>>
>>>>> DirectionOfProjection: (0.526409, 0.492965, -0.692733)
>>>>>
>>>>> Distance: 3.37001
>>>>>
>>>>> EyeAngle: 2
>>>>>
>>>>> FocalDisk: 1
>>>>>
>>>>> FocalPoint: (0, 0, 0)
>>>>>
>>>>> ViewShear: (0, 0, 1)
>>>>>
>>>>> ParallelProjection: Off
>>>>>
>>>>> ParallelScale: 0.872667
>>>>>
>>>>> Position: (-1.77401, -1.6613, 2.33452)
>>>>>
>>>>> Stereo: Off
>>>>>
>>>>> Left Eye: 1
>>>>>
>>>>> Thickness: 3.93221
>>>>>
>>>>> ViewAngle: 30
>>>>>
&

Re: [Paraview] Misleading facts about Catalyst

2017-11-27 Thread Utkarsh Ayachit
Kolja,

> Last week I asked how the server side can notify the client of recent
> changes. Utkarsh wrote this wouldn't be supported by Paraview. After I
> clarified that exactly this is happening during a Catalyst Live simulation,
> the discussion was mute. I am still hoping for an answer how to notify the
> client of any changes that might happen on the server side for example as a
> result of some network activity.

I've responded to the thread. Please note that Thursday-Sunday was a
holiday in the US, hence mailing list responses were expected to be
slow.

> Another example, some days before, I was wondering why Catalyst datasets of
> considerable size take so long from the Insitu side to the Live
> Visualization side, given that the Catalyst User Guide gives the impression
> that everything is designed for high throughput. Someone insisted that
> everything is transported through MPI until I mentioned that Paraview is not
> designed for a dynamically added MPI communicator. Only then it was
> explained that Catalyst data exchange is going through TCP...

While I am not sure which conversation you're referring to or whom you
were having that conversation, it's believable that there was
confusion between which data transfers you were referring to. All
communication between filters in a Catalyst in situ session is via
MPI. Only when you start doing "live" is when you encounter TCP. With
Live, currently the data transfer between the insitu ranks and the
"pvserver" ranks used for visualization is via TCP. Live support, in
my mind, is still in the early life cycle and needs more development
for production use.

> The Catalyst development seems increasingly problematic. Have the Catalyst
> developers left Kitware, or what is going on? We are trying to work on
> improved solutions, but with the recent quality of comments we can't see
> this happening.

Catalyst is indeed being actively developed and maintained. While we
try our best, responding to every mailing list inquiry can be quite
difficult. We do offer consulting services [1] if you want to work
Catalyst development team directly.

Hope that helps.

Utkarsh

[1] https://www.kitware.com/what-we-offer/#consulting
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] server-side InvokeEvent(...) doesn't call client-side observer

2017-11-27 Thread Utkarsh Ayachit
Catalyst live-session is managed this custom engineering from both the
client and the server side. Hence it's not a mechanism that arbitrary
filters can use to communicate events from server to client. If you're
interested in how Catalyst live sessions manages this, start by
looking at vtkSMLiveInsituLinkProxy and vtkLiveInsituLink classes.
Following the code path for NEXT_TIMESTEP_AVAILABLE might be helpeful.

Utkarsh

On Thu, Nov 23, 2017 at 12:57 PM, Kolja Petersen
<petersenko...@gmail.com> wrote:
> Can anybody answer my question?
> When Catalyst receives the next timestep update from some simulation every
> few seconds or minutes, it sends its data to the pvserver process. The
> pvserver somehow notifies the Paraview client, which will display the new
> data.
> If Utkarsh's comment is correct that no events can be forwarded from server
> to client, then how does Paraview know that it should display the next
> timestep?
>
> I need to implement a very similar use case, for which a better
> understanding of the communication between the Catalyst session, the
> pvserver and the Paraview client is of high importance.
> Thanks
> Kolja
>
> On Wed, Nov 22, 2017 at 7:54 PM, Kolja Petersen <petersenko...@gmail.com>
> wrote:
>>
>> Oh, well, but how is Catalyst forwarding new time step information from
>> server to client?
>> Time step updates can occur at any time. Which event mechanism notifies
>> the client?
>> Thanks
>> Kolja
>>
>> On Wed, Nov 22, 2017 at 6:57 PM, Utkarsh Ayachit
>> <utkarsh.ayac...@kitware.com> wrote:
>>>
>>> This is not a use-case supported in ParaView. We don't forward events
>>> from server to client.
>>>
>>> On Wed, Nov 22, 2017 at 12:53 PM, Kolja Petersen
>>> <petersenko...@gmail.com> wrote:
>>>>
>>>> Hello,
>>>> I would like to invoke a callback on a proxy in a pvpython session from
>>>> a server-side method.
>>>>
>>>> In my server-side class "vtkCustom" I have a method
>>>> void vtkCustom::SetData(int i){
>>>>   ...
>>>>   this->InvokeEvent(1999,NULL);
>>>>   ...
>>>> }
>>>>
>>>>
>>>> On the client side, I create a proxy to a vtkCustom object, register an
>>>> observer and set the "Data" property, which should invoke eventid=1999:
>>>> ...
>>>> custom=pxm.NewProxy("myextensions","Custom")
>>>> pxm.RegisterProxy("myextensions","Custom",custom)
>>>>
>>>> def fun(obj,event):
>>>>   print "CALLBACK",obj,event
>>>>
>>>> custom.AddObserver(1999,fun)
>>>> vtk.vtkSMPropertyHelper(custom.GetProperty("Data")).Set(42)
>>>> ...
>>>>
>>>> The observer function "fun" on the client is never invoked, although the
>>>> server-side invokes that event. I'm misunderstanding some concept of
>>>> Paraviews event mechanism for sure. Can you help me correct my steps?
>>>> Thanks
>>>> Kolja
>>>>
>>>>
>>>> Virenfrei. www.avast.com
>>>>
>>>> ___
>>>> 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:
>>>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Segfault with simple C++ filter derived from vtkMultiTimeStepAlgorithm

2017-11-27 Thread Utkarsh Ayachit
Mark,

You're simply missing a call to `this->SetNumberOfOutputPorts(1)` in
your constructor. That will get past the segfault.

Besides that, look at `vtkTemporalArrayOperatorFilter` as an example
for how to overload `RequestDataObject` to create correct output
dataset type, `RequestInformation` to determine which timesteps are
available, and `RequestUpdateExtent` to request a set of timesteps.

Utkarsh

On Mon, Nov 27, 2017 at 11:41 AM, Messner, Mark Christian
 wrote:
> In my ongoing quest to get a filter to process multiple time steps worth of
> data into a single result field I've attempted to derive a C++ vtk filter
> from vtkMultiTimeStepAlgorithm.  However, the attached simple example
> segfaults out when I try to apply it in paraview.  All it should do is a
> shallow copy of input to output for now.  I don't have much luck getting a
> stacktrace from paraview but it appears to be bombing at:
>
>
> Program received signal SIGSEGV, Segmentation fault.
> getIconType (this=0x4109120)
> at
> /home/messner/Downloads/ParaView-v5.4.1/Qt/Components/pqPipelineModel.cxx:232
> 232return this->getIconType(source->getOutputPort(0))
>
>
> Can someone please help or point me to a minimal working example of a
> vtkMultiTimeStepAlgorithm filter?
>
>
> Thanks,
>
>
> Mark
>
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] server-side InvokeEvent(...) doesn't call client-side observer

2017-11-22 Thread Utkarsh Ayachit
This is not a use-case supported in ParaView. We don't forward events from
server to client.

On Wed, Nov 22, 2017 at 12:53 PM, Kolja Petersen 
wrote:

> Hello,
> I would like to invoke a callback on a proxy in a pvpython session from a
> server-side method.
>
> In my server-side class "vtkCustom" I have a method
> void vtkCustom::SetData(int i){
>   ...
>   this->InvokeEvent(1999,NULL);
>   ...
> }
>
>
> On the client side, I create a proxy to a vtkCustom object, register an
> observer and set the "Data" property, which should invoke eventid=1999:
> ...
> custom=pxm.NewProxy("myextensions","Custom")
> pxm.RegisterProxy("myextensions","Custom",custom)
>
> def fun(obj,event):
>   print "CALLBACK",obj,event
>
> custom.AddObserver(1999,fun)
> vtk.vtkSMPropertyHelper(custom.GetProperty("Data")).Set(42)
> ...
>
> The observer function "fun" on the client is never invoked, although the
> server-side invokes that event. I'm misunderstanding some concept of
> Paraviews event mechanism for sure. Can you help me correct my steps?
> Thanks
> Kolja
>
>
>
> 
>  Virenfrei.
> www.avast.com
> 
> <#m_-8161186613008835523_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Input multiple arrays for processing in ProgrammableFilter

2017-11-21 Thread Utkarsh Ayachit
Mark,

Add another property on the filter and add `default_values="1"`
attribute it.  For example see this [1].

Utkarsh

[1] 
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/filters.xml#L5759-5780



On Tue, Nov 21, 2017 at 3:34 PM, Messner, Mark Christian
 wrote:
> Following the example in the wiki
> (https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list_with_values_from_input_arrays)
> I can add a dropdown to my xml plugin to grab an array to process with a
> programmable filter.  But I want to process two arrays.  How can I do this?
> It's obviously related to the "idx" parameter of SetInputArrayToProcess in
> vtkAlgorithm but I can't figure out how to make the paraview GUI cooperate.
>
>
> Thanks,
>
>
> Mark
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraview osmesa render on supercomputer nodes

2017-11-20 Thread Utkarsh Ayachit
Di,

While it's not entirely obvious to me what could be going wrong, you
may to check these docs out instead:
https://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding#A_Forward_Connection_Over_an_ssh_Tunnel

Utkarsh

On Sat, Nov 18, 2017 at 7:04 AM, 程迪  wrote:
> Hi everyone,
>
> I just compiled the OSMesa version of paraview 5.4.1 on Tianhe-2
> supercomputer. My trouble is to connect the pvserver running on computing
> nodes while I am on login node with ssh tunnelling (-L).
>
> Here is what I did
>
> My computer (win7 64 bit)
> ---ssh -L15801:localhost:15801 through VPN--->
> LN31 (login node, RHEL maybe, using slurm)
>> srun -n 24 pvserver -sp=15801 --mesa --use-offscreen-rendering
>> --disable-xdisplay-test
> ---ssh -N -f -L15801:localhost:15801 though internal connection-->
> CN (computing node)
>
> And here is the error:
>
> ```
> Waiting for client...
> Connection URL: cs://cn10687:15801
> ERROR: In /HOME/pp569/soft/ParaView-v5.4.1/VTK/Common/System/vtkSocket.cxx,
> line 206
> vtkServerSocket (0x20e9c20): Socket error in call to bind. Address already
> in use.
>
> ERROR: In
> /HOME/pp569/soft/ParaView-v5.4.1/ParaViewCore/ClientServerCore/Core/vtkTCPNetworkAccessManager.cxx,
> line 349
> vtkTCPNetworkAccessManager (0x14ad080): Failed to set up server socket.
>
> Exiting...
> ```
>
> It seems not working. I am pretty sure that the PC -- ssh -L through VPN -->
> LN works well. What happend in LN -- ssh -L --> CNxxx link?
>
> I have searched the internet for something, I found that LLNL did some work
> on it
> [https://hpc.llnl.gov/data-vis/vis-software/paraview/running-paraview-in-client-server-mode].
>
> They used `ssh -R` to map from LN to CN, rather than `ssh -L` and run
> paraview in RC mode, does it make any sense?
>
> However, in Tianhe-2, the `ssh -R` is forbidden. So I cannot use this
> method.
>
> Di Cheng
> Visting scholar at UConn ME Combustion Diagnostic Lab
> Engineer of Research Center of China Academy of Aerospace Aerodynamics
> Phone: +86-l58Ol5949ll
>
> Address: No.17, YunGang West Road, Fengtai District, Beijing, China
>
> Zip Code:100074
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] steps to add class with ClientServer and Python wrapping

2017-11-09 Thread Utkarsh Ayachit
I'd suggesting starting simple and just adding to existing modules in
ParaView. Once you are familiar with the CMake code, you can experiment
with adding separate modules.

On Thu, Nov 9, 2017 at 1:55 PM, Kolja Petersen <petersenko...@gmail.com>
wrote:

> Thanks, I was missing those details about the modules system. I'll try
> your suggestions.
> Is the modules system documented somewhere? I don't remember reading
> anything about it in the ParaView Guide.
> Kolja
>
> On Thu, Nov 9, 2017 at 7:38 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> Where are you adding your classes? If you add them to one of the
>> "modules" e.g. ParaViewCore/VTKExtensions/Default, you'd only need to
>> add them to the CMakeLists.txt and they'd get wrapped. You'll then need to
>> add a XML config for the proxy e.g in ParaViewCore/ServerManager/
>> SMApplication/Resources/filters.xml. That should be it.
>>
>> Another option is to add a new module. You can also add a new "module".
>> See `ParaViewCore/VTKExtensions/Points/`. You can have the source
>> directory external to your ParaView source, and in your build simply set
>> `PARAVIEW_EXTERNAL_MODULE_ROOTS` CMake cache variable in your ParaView
>> build to include the directory containing your new module's dir. You will
>> need to manually enable the module in CMakeLists.txt as well as ParaView
>> wont' enable it by default.
>>
>> Utkarsh
>>
>> On Thu, Nov 9, 2017 at 1:14 PM, Kolja Petersen <petersenko...@gmail.com>
>> wrote:
>>
>>> Heya,
>>> I'd like to add some custom classes to paraview that should also be
>>> accessible through proxies on the client side. And a Python interface is
>>> also needed.
>>>
>>> I found that the classes that should be wrapped need to be listed in a
>>> few different CMakeLists.txt files in the paraview sources, and again in
>>> the scripts that take care of generating the wrappers. But I must have
>>> missed more, as I am getting more and more errors the more I try to fix.
>>>
>>> Which steps do I have to follow to implement a new class with wrapping?
>>> Thank you
>>> Kolja
>>>
>>>
>>> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
>>>  Virenfrei.
>>> www.avast.com
>>> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
>>> <#m_-6224627429951704770_m_4958346466197006339_m_-5312748509129356624_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> ___
>>> 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:
>>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] steps to add class with ClientServer and Python wrapping

2017-11-09 Thread Utkarsh Ayachit
Where are you adding your classes? If you add them to one of the "modules"
e.g. ParaViewCore/VTKExtensions/Default, you'd only need to add them to the
CMakeLists.txt and they'd get wrapped. You'll then need to add a XML config
for the proxy e.g
in ParaViewCore/ServerManager/SMApplication/Resources/filters.xml. That
should be it.

Another option is to add a new module. You can also add a new "module". See
`ParaViewCore/VTKExtensions/Points/`. You can have the source directory
external to your ParaView source, and in your build simply set
`PARAVIEW_EXTERNAL_MODULE_ROOTS` CMake cache variable in your ParaView
build to include the directory containing your new module's dir. You will
need to manually enable the module in CMakeLists.txt as well as ParaView
wont' enable it by default.

Utkarsh

On Thu, Nov 9, 2017 at 1:14 PM, Kolja Petersen 
wrote:

> Heya,
> I'd like to add some custom classes to paraview that should also be
> accessible through proxies on the client side. And a Python interface is
> also needed.
>
> I found that the classes that should be wrapped need to be listed in a few
> different CMakeLists.txt files in the paraview sources, and again in the
> scripts that take care of generating the wrappers. But I must have missed
> more, as I am getting more and more errors the more I try to fix.
>
> Which steps do I have to follow to implement a new class with wrapping?
> Thank you
> Kolja
>
>
> 
>  Virenfrei.
> www.avast.com
> 
> <#m_-5312748509129356624_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python calculator sum_per_block()

2017-11-08 Thread Utkarsh Ayachit
I've reported an issue :
https://gitlab.kitware.com/paraview/paraview/issues/17824

On Wed, Nov 8, 2017 at 4:13 PM, Utkarsh Ayachit
<utkarsh.ayac...@kitware.com> wrote:
> That sounds like a bug to me. `sum_per_block` should work as you
> expect `sum_per_block(Volume)`. Let me see what's going on.
>
> On Mon, Nov 6, 2017 at 3:10 PM, Dennis Conklin
> <dennis_conk...@goodyear.com> wrote:
>> All,
>>
>>
>>
>> Anyone know how this works?
>>
>>
>>
>> I have an element variable called “Volume”,  I tried:
>>
>> sum_per_block(Volume) and
>>
>> sum_per_block(“Volume”)  and
>>
>> sum_per_block(inputs[0].CellData[‘Volume’])
>>
>>
>>
>> And all I got was errors.How should this work – and where will the
>> results be – will each element in a block get the total volume for that
>> block as a variable?
>>
>>
>>
>> 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:
>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python calculator sum_per_block()

2017-11-08 Thread Utkarsh Ayachit
That sounds like a bug to me. `sum_per_block` should work as you
expect `sum_per_block(Volume)`. Let me see what's going on.

On Mon, Nov 6, 2017 at 3:10 PM, Dennis Conklin
 wrote:
> All,
>
>
>
> Anyone know how this works?
>
>
>
> I have an element variable called “Volume”,  I tried:
>
> sum_per_block(Volume) and
>
> sum_per_block(“Volume”)  and
>
> sum_per_block(inputs[0].CellData[‘Volume’])
>
>
>
> And all I got was errors.How should this work – and where will the
> results be – will each element in a block get the total volume for that
> block as a variable?
>
>
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Remote rendering through reverse SSH breaks with a GLX error

2017-11-06 Thread Utkarsh Ayachit
Thanks for the update, Robert.

Utkarsh

On Fri, Nov 3, 2017 at 4:22 PM, Robert Sawko  wrote:
> Utkarsh,
>
> Again, thanks again for the comment and sorry for missing the email. I am
> checking my filter rules as this didn't get through to my inbox.
>
> Your insight was quite right: it's all down to drivers. I've been working on
> PV with EGL since then and I can get it all work under Ubuntu POWER8 NVIDIA
> driver but not under RHEL. There seems to be a packaging problem in RHEL where
> presumably an older or flawed version of EGL is shipped. I've been promised a
> fix soon so I am waiting for this.
>
> I've got access to two clusters with K80s and P100s and my intention is to run
> EGL enabled PV on both of them. X-less config is ideal as I could make any 
> node
> act as a PV server. I'll keep you posted.
>
> Robert
> --
> P-hacking again...
> https://www.youtube.com/watch?v=42QuXLucH3Q
> Sorry, but I think p-values are important.
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Error with plot selection over time

2017-10-31 Thread Utkarsh Ayachit
Jairaj,

If you have dataset that can help reproduce this issue that you can
share, that'll be great.

Utkarsh

On Mon, Oct 30, 2017 at 3:40 PM, Jairaj Mathur  wrote:
> Hey all
>
> I was thinking more about this, and I was wondering, is this because
> paraview can't find cell_id of the cells?
>
> Thanks
>
> Jairaj Mathur
> Mechanical Engineering
> Washington University in St Louis
>
> On Oct 26, 2017 4:18 PM, "Jairaj Mathur"  wrote:
>>
>> Hey all
>>
>> I have unstructured grid vtu/vtk type data. When I select some cells and
>> try "plot selection over time", it gives me error Type mismatch: source:
>> double dest: idtype. This error has never occurred before, when I tried to
>> use this.
>>
>> Thank you all!
>>
>> --
>> Jairaj Mathur,
>> Mechanical Engineering
>> Washington University in St Louis
>>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] pvbatch

2017-10-30 Thread Utkarsh Ayachit
Seems like pvbatch is not in the path. Can you confirm that `module load
paraview/5.4.0-osmesa` is indeed  pointing to a valid PATH and that
contains a `pvbatch` executable?

Utkarsh

On Mon, Oct 30, 2017 at 8:14 PM, White, Judy  wrote:

> I am having problems using pvbatch on the LANL machines.  It works fine on
> paraview/5.2.0, but can’t find pvbatch with paraview/5.4.0.  I contacted
> the consultants at LANL, and they suggested that I send this problem to you.
>
> Any help or suggestions would be appreciated!
>
> Thanks –
>
> Judy White
>
> (505) 660-7424
>
>
>
>
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] POV Exporter, spheres/geom/colors

2017-10-26 Thread Utkarsh Ayachit
Randy,

That's indeed a bug, I've reported the issue and the cause here:
https://gitlab.kitware.com/paraview/paraview/issues/17802

Utkarsh

On Thu, Oct 26, 2017 at 8:38 PM, Heiland, Randy  wrote:

> I have a simple 2-point Pgmable Source (below) and render it 1) as 2D
> Glyphs/Vertex (with the nice OSPRay, and scaled spheres), and 2) as various
> 3D/geometric glyphs. Then I Export the scenes as POV files. Only the
> geometric (non 2D/Vertex) glyphs generate partially-meaningful POV output.
> However, there’s no color associated with the geometry. Thoughts?
>
> The last related thread I saw was at:
> http://markmail.org/search/?q=ParaView+povray#query:
> ParaView%20povray%20order%3Adate-backward+page:1+mid:
> 6xiimz4cus55dwhh+state:results
> 
>
> -Randy
>
> pdo = self.GetPolyDataOutput()
> num_pts = 2
> print "num_pts =",num_pts
> newPts = vtk.vtkPoints()
> cell_color_ID = vtk.vtkFloatArray()
> cell_radius = vtk.vtkFloatArray()
>
> cell_color_ID.SetName('cell_color_ID')
> cell_radius.SetName('cell_radius')
>
> newPts.InsertPoint(0, -1,0,0)
> cell_color_ID.InsertNextValue(1)
> cell_radius.InsertNextValue(0.5)
>
> newPts.InsertPoint(1, 1,0,0)
> cell_color_ID.InsertNextValue(2)
> cell_radius.InsertNextValue(0.7)
>
> pdo.SetPoints(newPts)
> pdo.GetPointData().AddArray(cell_color_ID)
> pdo.GetPointData().AddArray(cell_radius)
>
> verts = vtk.vtkCellArray()
> for idx in range(0, num_pts):
>   verts.InsertNextCell(1)
>   verts.InsertCellPoint(idx)
> pdo.SetVerts(verts)
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Script for exporting multiple scenes

2017-10-26 Thread Utkarsh Ayachit
Claudio,

Attached is an example script with a demo vtu file used for it.

Hope that helps.

Utkarsh

On Mon, Oct 23, 2017 at 8:55 AM, Ing. Claudio Pascarelli <
claudio.pascare...@unisalento.it> wrote:

> Hi,
>
> these are the first times that I'm using Paraview and Python.
>
>
> I would like to create a script that:
>
>
> 1 - Read the number and name of properties (variables/contour plot) that I
> have in my .vtu file (for instance TEMPERATURE and TH_FLUX)
>
> 2 - Export every contour plot (Export Scenes) in vrml format, looping
> among them (like a "for" cycle), with the right name (for instance
> VtuName_TEMPERATURE.vrml and VtuName_TH_FLUX.vrml)
>
>
> A priori I do not know how many and which are these properties so I think
> that I need first lo list them in some way.
>
>
> If I record a trace this is what I obtain
>
>
> 
> ***
>
>  import the simple module from the paraview
> from paraview.simple import *
>  disable automatic camera reset on 'Show'
> paraview.simple._DisableFirstRenderCameraReset()
>
> # get active source.
> valvola_XXX_termicovtu = GetActiveSource()
>
> # get active view
> renderView1 = GetActiveViewOrCreate('RenderView')
> # uncomment following to set a specific view size
> # renderView1.ViewSize = [763, 502]
>
> # get display properties
> valvola_XXX_termicovtuDisplay = GetDisplayProperties(valvola_XXX_termicovtu,
> view=renderView1)
>
> # set scalar coloring
> ColorBy(valvola_XXX_termicovtuDisplay, ('POINTS', 'TEMP'))
>
> # rescale color and/or opacity maps used to include current data range
> valvola_XXX_termicovtuDisplay.RescaleTransferFunctionToDataRange(True,
> False)
>
> # show color bar/color legend
> valvola_XXX_termicovtuDisplay.SetScalarBarVisibility(renderView1, True)
>
> # get color transfer function/color map for 'TEMP'
> tEMPLUT = GetColorTransferFunction('TEMP')
>
> # export view
> ExportView('C:/Users/User/Desktop/TEMP.vrml', view=renderView1)
>
> # set scalar coloring
> ColorBy(valvola_XXX_termicovtuDisplay, ('POINTS', 'TH_FLUX', 'Magnitude'))
>
> # Hide the scalar bar for this color map if no visible data is colored by
> it.
> HideScalarBarIfNotNeeded(tEMPLUT, renderView1)
>
> # rescale color and/or opacity maps used to include current data range
> valvola_XXX_termicovtuDisplay.RescaleTransferFunctionToDataRange(True,
> False)
>
> # show color bar/color legend
> valvola_XXX_termicovtuDisplay.SetScalarBarVisibility(renderView1, True)
>
> # get color transfer function/color map for 'TH_FLUX'
> tH_FLUXLUT = GetColorTransferFunction('TH_FLUX')
>
> # export view
> ExportView('C:/Users/User/Desktop/TH_FLUX.vrml', view=renderView1)
>
>  saving camera placements for all active views
>
> # current camera placement for renderView1
> renderView1.CameraPosition = [-0.091789327, 0.0665,
> 0.7345691646101393]
> renderView1.CameraFocalPoint = [-0.091789327, 0.0665, -0.05375]
> renderView1.CameraParallelScale = 0.2040320134204131
>
>  uncomment the following to render all views
> # RenderAllViews()
> # alternatively, if you want to write images, you can use
> SaveScreenshot(...).
>
> ***
>
>
> Thank you
>
>
> Claudio Pascarelli
>
>
>
>
> ___
> 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:
> http://public.kitware.com/mailman/listinfo/paraview
>
>


foo.vtu.tar.gz
Description: GNU Zip compressed data
from paraview.simple import *

reader = OpenDataFile('/tmp/foo.vtu')

# load all available point and cell arrays.
reader.PointArrayStatus.SelectAll()
reader.CellArrayStatus.SelectAll()

display = Show()

for (arrayName, arrayInfo) in reader.PointData.items():
# color by array of interest
ColorBy(display, ("POINTS", arrayName))
# in case we want to force LUT range to match data.
display.RescaleTransferFunctionToDataRange()
# render
Render()
fname = "/tmp/points_%s.vrml"
if raw_input("Save as '%s'? (y/n) " %fname) in ['y', 'Y']:
ExportView(fname)

# do the same for cell data, if needed by iterating over items in `reader.CellData.items()`
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] my current State/.pvsm ?

2017-10-26 Thread Utkarsh Ayachit
> Is the current State filename hiding somewhere in the GUI?

Alas no. There's no notion of current state file in ParaView and hence
no way to know what state file was loaded in the current instance.
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python Scripting - Acess vtkOpenGL cameras from .pvx files information

2017-10-25 Thread Utkarsh Ayachit
Leo,

To handle 90-degree pitch or elevation, do the following:

camera.Pitch(90)
camera.OrthogonalizeViewUp()
Render()

Utkarsh


On Tue, Oct 24, 2017 at 2:50 PM, Léo Pessanha <leonardopessanh...@gmail.com>
wrote:

> Thanks Utkarsh!
>
> This change would take a build right? Can't do it right now =/
>
> My goal is to know what should I do after a
>
> cameraInstance.Pitch(90)
>>
>
> and before a
>
> Render()
>>
>
> In order not to get the warning
>
> Resetting view-up since view plane normal is parallel
>>
>
> I've tried
>
> cameraInstance.ComputeViewPlaneNormal()
>>
>
> but with no sucess...
>
> Do you know why and can explain me the reason of this warning ?
> More important, how to get rid of it? hahaha
> My goal trying to print the camera attributes was to debug this info!
>
> Thanks in advance!
>
>
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-10-23 13:01 GMT-02:00 Utkarsh Ayachit <utkarsh.ayac...@kitware.com>:
>
>> Leo,
>>
>> You can't access it in Python since the Python script is not run on the
>> server side. If your goal is to debug what thet camera is set to, you can
>> put cout's to print the camera in 
>> `vtkCaveSynchronizedRenderers::HandleStartRender`.
>> That's where the local camera on each rank is "prepped" for rendering a
>> frame.
>>
>> Utkarsh
>>
>> On Mon, Oct 23, 2017 at 9:20 AM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Hi!
>>>
>>> I would like to know if there's a way to acess the
>>> information/attributes of the cameras there are created trough a .pvx file
>>>
>>> To acess the attributes in the camera of the active Layout/RenderView  I
>>> do:
>>>
>>> 1 - Open Python Shell
>>> 2 - camera = GetActiveCamera()
>>> 3 - print(camera)
>>>
>>> And the output is:
>>>
>>> vtkOpenGLCamera (0x4a45e80)
>>>
>>> Debug: Off
>>>
>>> Modified Time: 405029
>>>
>>> Reference Count: 5
>>>
>>> Registered Events:
>>>
>>> Registered Observers:
>>>
>>> (none)
>>>
>>> ClippingRange: (1.63277, 5.56498)
>>>
>>> DirectionOfProjection: (0.526409, 0.492965, -0.692733)
>>>
>>> Distance: 3.37001
>>>
>>> EyeAngle: 2
>>>
>>> FocalDisk: 1
>>>
>>> FocalPoint: (0, 0, 0)
>>>
>>> ViewShear: (0, 0, 1)
>>>
>>> ParallelProjection: Off
>>>
>>> ParallelScale: 0.872667
>>>
>>> Position: (-1.77401, -1.6613, 2.33452)
>>>
>>> Stereo: Off
>>>
>>> Left Eye: 1
>>>
>>> Thickness: 3.93221
>>>
>>> ViewAngle: 30
>>>
>>> UseHorizontalViewAngle: 0
>>>
>>> UserTransform: (none)
>>>
>>> (none)
>>>
>>> FreezeFocalPoint: (none)
>>>
>>> ViewPlaneNormal: (-0.526409, -0.492965, 0.692733)
>>>
>>> ViewUp: (-0.0865543, 0.841596, 0.533127)
>>>
>>> WindowCenter: (0, 0)
>>>
>>> UseOffAxisProjection: (0)
>>>
>>> ScreenBottomLeft: (-0.5, -0.5, -0.5)
>>>
>>> ScreenBottomRight: (0.5, -0.5, -0.5)
>>>
>>> ScreenTopRight: (0.5, 0.5, -0.5)
>>>
>>> EyeSeparation: (0.06)
>>>
>>> WorldToScreenMatrix: (0x4a457c0
>>>
>>> Debug: Off
>>>
>>> Modified Time: 155883
>>>
>>> Reference Count: 1
>>>
>>> Registered Events: (none)
>>>
>>> Elements:
>>>
>>> 1 0 0 0
>>>
>>> 0 1 0 0
>>>
>>> 0 0 1 0
>>>
>>> 0 0 0 1
>>>
>>> )
>>>
>>> EyeTransformMatrix: (0x4a458b0
>>>
>>> Debug: Off
>>>
>>> Modified Time: 155885
>>>
>>> Reference Count: 1
>>>
>>> Registered Events: (none)
>>>
>>> Elements:
>>>
>>> 1 0 0 0
>>>
>>> 0 1 0 0
>>>
>>> 0 0 1 0
>>>
>>> 0 0 0 1
>>>
>>> )
>>>
>>> ModelTransformMatrix: (0x4a459a0
>>>
>>> Debug: Off
>>>
>>> Modified Time: 155887
>>>
>>> Reference Count: 1
>>>
>

Re: [Paraview] Remote rendering with pvpython + grab remote image data

2017-10-23 Thread Utkarsh Ayachit
Koija,

> But I have still no clue how to make the pvserver render the scene remotely 
> and only transfer the rendered image to the pvpython client instead of all 3D 
> datasets (which will be huge).

By default, ParaView will do remote rendering, if possible when the
geometry size exceeds ~20MBs. You can change it as following to force
remote rendering for all data.

...
simple.Show(simple.Cone())
view  = simple.GetActiveView()
view.RemoteRenderThreshold = 0

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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Equally spaced points on a slice (for the streamlines)

2017-10-23 Thread Utkarsh Ayachit
Is the slice axis aligned? If so, you can use a regular source eg. Wavelet
or Mandlebrot to generate the evenly spaced points by setting the extents
appropriately.

Utkarsh

On Mon, Oct 23, 2017 at 2:41 AM, Andrew  wrote:

> Hello.
> I need to distribute points on a slice equally to start streamlines from
> these points. The problem is that the Mask Points filter seems to not to
> have such option. I tried all combinations of randomizing in this filter
> but the problem persist. My mesh is unstructured tetra with inflation
> layers on wall so there are lots of cells (points) at the wall and almost
> all streamlines start in near-wall region while I need their starting
> points to be equally distributed along the slice. Is there a way to do it
> in ParaView?
> Thanks for attention...
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python Scripting - Acess vtkOpenGL cameras from .pvx files information

2017-10-23 Thread Utkarsh Ayachit
Leo,

You can't access it in Python since the Python script is not run on the
server side. If your goal is to debug what thet camera is set to, you can
put cout's to print the camera in
`vtkCaveSynchronizedRenderers::HandleStartRender`. That's where the local
camera on each rank is "prepped" for rendering a frame.

Utkarsh

On Mon, Oct 23, 2017 at 9:20 AM, Léo Pessanha 
wrote:

> Hi!
>
> I would like to know if there's a way to acess the information/attributes
> of the cameras there are created trough a .pvx file
>
> To acess the attributes in the camera of the active Layout/RenderView  I
> do:
>
> 1 - Open Python Shell
> 2 - camera = GetActiveCamera()
> 3 - print(camera)
>
> And the output is:
>
> vtkOpenGLCamera (0x4a45e80)
>
> Debug: Off
>
> Modified Time: 405029
>
> Reference Count: 5
>
> Registered Events:
>
> Registered Observers:
>
> (none)
>
> ClippingRange: (1.63277, 5.56498)
>
> DirectionOfProjection: (0.526409, 0.492965, -0.692733)
>
> Distance: 3.37001
>
> EyeAngle: 2
>
> FocalDisk: 1
>
> FocalPoint: (0, 0, 0)
>
> ViewShear: (0, 0, 1)
>
> ParallelProjection: Off
>
> ParallelScale: 0.872667
>
> Position: (-1.77401, -1.6613, 2.33452)
>
> Stereo: Off
>
> Left Eye: 1
>
> Thickness: 3.93221
>
> ViewAngle: 30
>
> UseHorizontalViewAngle: 0
>
> UserTransform: (none)
>
> (none)
>
> FreezeFocalPoint: (none)
>
> ViewPlaneNormal: (-0.526409, -0.492965, 0.692733)
>
> ViewUp: (-0.0865543, 0.841596, 0.533127)
>
> WindowCenter: (0, 0)
>
> UseOffAxisProjection: (0)
>
> ScreenBottomLeft: (-0.5, -0.5, -0.5)
>
> ScreenBottomRight: (0.5, -0.5, -0.5)
>
> ScreenTopRight: (0.5, 0.5, -0.5)
>
> EyeSeparation: (0.06)
>
> WorldToScreenMatrix: (0x4a457c0
>
> Debug: Off
>
> Modified Time: 155883
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Elements:
>
> 1 0 0 0
>
> 0 1 0 0
>
> 0 0 1 0
>
> 0 0 0 1
>
> )
>
> EyeTransformMatrix: (0x4a458b0
>
> Debug: Off
>
> Modified Time: 155885
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Elements:
>
> 1 0 0 0
>
> 0 1 0 0
>
> 0 0 1 0
>
> 0 0 0 1
>
> )
>
> ModelTransformMatrix: (0x4a459a0
>
> Debug: Off
>
> Modified Time: 155887
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Elements:
>
> 1 0 0 0
>
> 0 1 0 0
>
> 0 0 1 0
>
> 0 0 0 1
>
> )
>
> ProjectionTransform: (0x4a46280
>
> Debug: Off
>
> Modified Time: 405415
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Inverse: (0)
>
> Matrix: (0x4a46330)
>
> Debug: Off
>
> Modified Time: 405416
>
> Reference Count: 1
>
> Registered Events: (none)
>
> Elements:
>
> 3.76067 0 0 0
>
> 0 3.73205 0 0
>
> 0 0 -1.83046 -4.62147
>
> 0 0 -1 0
>
> Input: (0)
>
> InverseFlag: 0
>
> NumberOfConcatenatedTransforms: 1
>
> 0: vtkSimpleTransform at 0x6ecdae0
>
> )
>
>
> *How to get these informations of the cameras created from a .pvx file?*
>
>
>
> Thanks in advance,
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] ParaView Release Roadmap

2017-10-23 Thread Utkarsh Ayachit
Folks,

We have a change in the ParaView release plan, as follows:


*1. ParaView 5.5 October/November 2017 release has been postponed.*
We have already had 3 releases this year, hence we have decided to postpone
the 5.5 release. The next release will be according to the release plan
described below.


*2. Spring and Fall releases each year*
Barring exceptional circumstances, starting with 2018, we plan to do at
least two feature releases of ParaView each year scheduled for March
(Spring) and September (Fall) with release candidates out in Feb and August
respectively.


*3. Patch releases as needed.*
Patch releases to fix critical issues with the Spring and Fall releases
will be cut as needed.


*4. Preview releases as needed.*
Preview releases to advertise new features may be cut at other times. These
are to be treated as alpha releases intended to demonstrate a new feature
or capability.

Any comments, concerns, or suggestions are always welcome.

Thanks,
The ParaView Team
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] How to run a python script in every interaction

2017-10-23 Thread Utkarsh Ayachit
For camera interaction, you can add an observer to
vtkCommand::[InteractionEvent|StartInteractionEvent|EndInteractionEvent]
fired by vtkRenderWindowInteractor.

e.g.
def callback(caller, event):
   print ("ineraction")
from paraview.vtk import vtkCommand
view = GetActiveView()
view.GetInteractor().AddObserver(vtkCommand.InteractionEvent, callback)


There's no event fired on "Apply", however. Another option is to
observe vtkCommand::StartEvent and/or vtkCommand::EndEvent on the view
itself. This is fired at start/end of each render. Since that happens
as a consequence of any interaction including moving camera or hitting
apply or advancing timestrep, that may be a reasonable approach.

Utkarsh

On Mon, Oct 23, 2017 at 9:36 AM, Léo Pessanha
 wrote:
> Hi!
>
> How can I run a python script in every interaction?
>
> By interaction I mean camera movements, hitting apply buttons and etc
>
> I don't know if an approach like running the script every N frames is the
> ideal, but if that's possible it would be a great start too
>
> Best regards,
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Setting glyph "Scalars" property in a C++ pipeline

2017-10-23 Thread Utkarsh Ayachit
Jimmy,

You can use `vtkSMPropertyHelper(glyph,
"Scalars").SetInputArrayToProcess(vtkDataObject::POINT, "Diameters")`.

Utkarsh


On Mon, Oct 23, 2017 at 5:19 AM, A .  wrote:

> Dear community,
>
>
> I'm having a hard time figuring out how to set the "Scalars" property of a
> glyph object with the C++ API.
>
> In Python it's as easy as: glyph.Scalars=['POINTS', 'ScaleByThis']
>
>
> In C++ I would assume something like: vtkSMPropertyHelper(glyph,
> "Scalars", true).Set("['POINTS', 'Diameters']");
>
>
> But this unfortunately doesn't work. I cannot seem to find any examples or
> documentation on this. If someone has an example or the relevant
> documentation for setting this property, could you please share it with me?
>
>
> It would be great if you could let me know how I can find out how to set a
> certain property of a source or filter, so that I don't need to ask such
> questions in the future 
>
>
> Best,
>
> Jimmy
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Hidden Line Removal in Parallel

2017-10-17 Thread Utkarsh Ayachit
That's correct. It currently is not implemented for that configuration.

Here's an issue for the same if you want to follow it:
https://gitlab.kitware.com/paraview/paraview/issues/16947

Utkarsh

On Tue, Oct 17, 2017 at 9:41 AM, PALUSZEK, Lukasz <
lukasz.palus...@airbus.com> wrote:

> Hello,
>
>
>
> I noticed that Hidden Line Removal is not working in parallel. I am using
> Paraview 5.4.1 (Kitware binaries) and tested on the wavelet source.
>
>
>
> Regards,
>
> Lukasz
>
>
>
> [image: Beschreibung: Beschreibung: Description :
> cid:image001.png@01CF0B8F.DB7831F0]
>
> *Łukasz Paluszek*
>
> Airbus Helicopters
>
> Aerodynamics Department (ETGAI)
>
> 86607 Donauwörth
>
> Germany
>
> Tel.: +49 (90) 671 8231 <+49%20906%20718231>
>
> Fax.: +49 (90) 671 9122
>
> lukasz.palus...@airbus.com
>
>
>
> AIRBUS HELICOPTERS DEUTSCHLAND GmbH
>
> Sitz der Gesellschaft / Registered Office: Donauwörth
>
> Registergericht / Registration Court: Amtsgericht Augsburg HRB 16508
>
> Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board:
> Guillaume Faury
>
> Geschäftsführung / Board of Management: Dr. Wolfgang Schoder, Vorsitzender
> / CEO; Thomas Hundt; Johannes Kleidorfer; Dr. Klaus Przemeck; Martin
> Schübel; Stefan Thomé
>
>
> The information in this e-mail is confidential. The contents may not be 
> disclosed or used by anyone other than the addressee. Access to this e-mail 
> by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately and 
> delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness of 
> this e-mail as it has been sent over public networks. If you have any 
> concerns over the content of this message or its Accuracy or Integrity, 
> please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus 
> scanning software but you should take whatever measures you deem to be 
> appropriate to ensure that this message and any attachments are virus free.
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Add data to the pipeline browser via CLI

2017-10-16 Thread Utkarsh Ayachit
This is currently not supported, I am afraid.

On Mon, Oct 16, 2017 at 6:57 AM, Nicolas Cedilnik  wrote:

> Hello,
>
> I'm wondering if there is an option somewhere or a CLI argument to "open"
> a file (from the file manager or terminal) in the last opened paraview
> window. Right now it launches a new paraview instance for every file I
> open. My workaround is to use drag'n'drop but I'd be happy avoid using the
> mouse as much as possible.
>
> Thanks,
>
> -- Nicolas
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] pvserver MPI issue

2017-10-14 Thread Utkarsh Ayachit
Quentin,

Each pvserver rank trying to connect the same socket is the classic symptom
of paraview not build with MPI. Mind attaching your CMakeCache.txt?

Utkarsh

On Sat, Oct 14, 2017 at 8:05 PM, Quentin d'Avout <quen...@arrivo-loop.com>
wrote:

> Thanks Utkarsh.
>
> Yes, I’ve checked both.
>
>
>
> Quentin d’Avout | Aerodynamics
>
> [image: Arrivo Loop] <http://www.arrivo-loop.com/>
>
>
>
> *From:* Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
> *Sent:* Saturday, October 14, 2017 4:55 PM
> *To:* Quentin d'Avout <quen...@arrivo-loop.com>
> *Cc:* Scott, W Alan <wasc...@sandia.gov>; ParaView <paraview@paraview.org>
> *Subject:* Re: [Paraview] [EXTERNAL] pvserver MPI issue
>
>
>
> Are you sure you ParaView is built with MPI support enabled? If so, are
> you sure you're using the correct mpirun executable that goes with the MPI
> implementation you used to build ParaView?
>
>
>
> Utkarsh
>
>
>
> On Sat, Oct 14, 2017 at 2:49 PM, Quentin d'Avout <quen...@arrivo-loop.com>
> wrote:
>
> Actually, it turns out that you have to specifically tell pvserver to use
> different ports for every process:
>
>
>
> mpirun -np 32 pvserver --server-port=%PV_SERVER_PORT%
>
>
>
> But I’m now having issues connecting to all of these processes from the
> paraView GUI/connect window. Can’t seem to be able to specify more than one
> port at once…
>
>
>
> Anybody knows the trick?
>
> Thanks again
>
>
>
> *From:* Scott, W Alan [mailto:wasc...@sandia.gov]
> *Sent:* Friday, October 13, 2017 6:40 PM
>
>
> *To:* Quentin d'Avout <quen...@arrivo-loop.com>; paraview@paraview.org
> *Subject:* Re: [EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> All I have is back to the firewall?
>
>
>
> *From: *Quentin d'Avout <quen...@arrivo-loop.com>
> *Date: *Friday, October 13, 2017 at 4:39 PM
> *To: *W Scott <wasc...@sandia.gov>, "paraview@paraview.org" <
> paraview@paraview.org>
> *Subject: *RE: [EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> Thanks Scott.
>
> Didn’t do the trick tho.
>
> Other ideas?
>
>
>
> *From:* Scott, W Alan [mailto:wasc...@sandia.gov]
> *Sent:* Friday, October 13, 2017 2:15 PM
> *To:* Quentin d'Avout <quen...@arrivo-loop.com>; paraview@paraview.org
> *Subject:* Re: [EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> Not saying I’m right here, but it looks like multiple versions of ParaView
> are tying up the socket.  Do a ps -ef on paraview, client side, and kill
> them.  Do the same on the server side.  Then, try again.
>
>
>
> Alan
>
>
>
> *From: *ParaView <paraview-boun...@paraview.org> on behalf of Quentin
> d'Avout <quen...@arrivo-loop.com>
> *Date: *Friday, October 13, 2017 at 3:10 PM
> *To: *"paraview@paraview.org" <paraview@paraview.org>
> *Subject: *[EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> Hi All,
>
>
>
> my issue is when I hit:
>
>
>
> mpirun -np 32 pvserver # with or without --mpi option
>
>
>
> I get :"vtkServerSocket (0x23fb3e0): Socket error in call to bind. Address
> already in use."
>
> and: "vtkTCPNetworkAccessManager (0x1879510): Failed to set up server
> socket."
>
>
>
> as if my paraView was compiled with the mpi capability off. But it is on
> (D3 filter available, "about" windows also says so).
>
>
>
> pvserver in serial works just fine.
>
> Could have been the ufw firewall blocking connections, but it is disabled.
>
> Ubuntu 17.04.
>
>
>
> Thanks in advance for your help.
>
> Quentin
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] pvserver MPI issue

2017-10-14 Thread Utkarsh Ayachit
Are you sure you ParaView is built with MPI support enabled? If so, are you
sure you're using the correct mpirun executable that goes with the MPI
implementation you used to build ParaView?

Utkarsh

On Sat, Oct 14, 2017 at 2:49 PM, Quentin d'Avout 
wrote:

> Actually, it turns out that you have to specifically tell pvserver to use
> different ports for every process:
>
>
>
> mpirun -np 32 pvserver --server-port=%PV_SERVER_PORT%
>
>
>
> But I’m now having issues connecting to all of these processes from the
> paraView GUI/connect window. Can’t seem to be able to specify more than one
> port at once…
>
>
>
> Anybody knows the trick?
>
> Thanks again
>
>
>
> *From:* Scott, W Alan [mailto:wasc...@sandia.gov]
> *Sent:* Friday, October 13, 2017 6:40 PM
>
> *To:* Quentin d'Avout ; paraview@paraview.org
> *Subject:* Re: [EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> All I have is back to the firewall?
>
>
>
> *From: *Quentin d'Avout 
> *Date: *Friday, October 13, 2017 at 4:39 PM
> *To: *W Scott , "paraview@paraview.org" <
> paraview@paraview.org>
> *Subject: *RE: [EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> Thanks Scott.
>
> Didn’t do the trick tho.
>
> Other ideas?
>
>
>
> *From:* Scott, W Alan [mailto:wasc...@sandia.gov]
> *Sent:* Friday, October 13, 2017 2:15 PM
> *To:* Quentin d'Avout ; paraview@paraview.org
> *Subject:* Re: [EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> Not saying I’m right here, but it looks like multiple versions of ParaView
> are tying up the socket.  Do a ps -ef on paraview, client side, and kill
> them.  Do the same on the server side.  Then, try again.
>
>
>
> Alan
>
>
>
> *From: *ParaView  on behalf of Quentin
> d'Avout 
> *Date: *Friday, October 13, 2017 at 3:10 PM
> *To: *"paraview@paraview.org" 
> *Subject: *[EXTERNAL] [Paraview] pvserver MPI issue
>
>
>
> Hi All,
>
>
>
> my issue is when I hit:
>
>
>
> mpirun -np 32 pvserver # with or without --mpi option
>
>
>
> I get :"vtkServerSocket (0x23fb3e0): Socket error in call to bind. Address
> already in use."
>
> and: "vtkTCPNetworkAccessManager (0x1879510): Failed to set up server
> socket."
>
>
>
> as if my paraView was compiled with the mpi capability off. But it is on
> (D3 filter available, "about" windows also says so).
>
>
>
> pvserver in serial works just fine.
>
> Could have been the ufw firewall blocking connections, but it is disabled.
>
> Ubuntu 17.04.
>
>
>
> Thanks in advance for your help.
>
> Quentin
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Help files (.pdf) not opening v5.4.1

2017-10-13 Thread Utkarsh Ayachit
We simply use QDesktopServices [1] to open the PDF. I think it uses
the window manager to determine which app to use.

[1] http://doc.qt.io/qt-5/qdesktopservices.html

On Thu, Oct 12, 2017 at 11:09 AM, Dennis Conklin
 wrote:
> All
>
>
>
> Help files (.pdf) clicked on the Help Menu are not launching from PV v5.4.1
> on Redhat - okular is our system pdf reader - do we need to set something to
> use this?  This all works fine in Windoze.
>
>
>
> Thanks for any hint.
>
>
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Saving as csv data

2017-10-09 Thread Utkarsh Ayachit
Teng,

In your attached VTK file, stress is a cell data i.e. associated with
each of the cells rather than the points. When you export data as CSV
you can only save points along with point data or cells data and not
both. If you want to save out stress associated with each of the
points, you can apply the "Cell Data To Point Data" filter first and
then save the result out.

Utkarsh

On Mon, Oct 9, 2017 at 1:16 PM, Li, Teng  wrote:
> Hi all,
>
> I have a question about saving vtk data in a csv file. Please find the
> following link for the vtk file:
>
> https://drive.google.com/file/d/0B-Dmy2O1v21NbGlfTm9odlZpa2M/view?usp=sharinghttps://drive.google.com/file/d/0B-Dmy2O1v21NbGlfTm9odlZpa2M/view?usp=sharing
>
> I expected to see 7 components in the csv file I saved: x, y, z, stress_x,
> stress_y, stress_z, stress_magnitude. However, in the csv file I saved,
> there are only three columns of data. Please find the csv file I saved:
>
> https://drive.google.com/file/d/0B-Dmy2O1v21NeWZnejVqbHEzME0/view?usp=sharinghttps://drive.google.com/file/d/0B-Dmy2O1v21NeWZnejVqbHEzME0/view?usp=sharing
>
> I saved the vtk file by first highlighting the vtk file in the pipeline, and
> then click save data. Then I used the default settings. Is there anything
> wrong in my saving process?
>
> Thanks!
>
> Best,
> Teng
>
> Teng Li
>
> Master Candidate in Structures
>
> Department of Civil and Environmental Engineering
>
> University of Illinois at Urbana-Champaign
>
> 205 North Mathews Ave, Urbana, IL. 61801
>
> Phone:(217)8196210, Email: teng...@illinois.edu
>
>
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Hardware for local install

2017-10-09 Thread Utkarsh Ayachit
Keith,

There's no easy answer for this, I am afraid. It depends on the type of
data and kind of processing you intend to do. A few things to note:

1. most data processing is done on CPU.
2. rendering, including rendering of image volumes using volume rendering
techniques as well as surface/polygonal rendering uses GPU.

What is the type of data or kinds of processing you plan to do? Maybe that
can help weigh the scale in direction over the other.

Utkarsh

On Mon, Oct 9, 2017 at 11:44 AM, Draghi, Keith 
wrote:

> Hi All,
>
> I am looking for some recommendations or running Para View on local
> hardware, specifically geared to 3d rendering.  Should I be looking at more
> GPU vs processor vs memory?
>
> Thank you.
>
> K
> Keith Draghi
> Yale University
> Yale ITS West Campus
> 203.494.6656 <(203)%20494-6656>
> http://www.yale.edu/its http://www.yale.edu/westcampus
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Animate Clip - Cue does not have domain or property set!

2017-10-09 Thread Utkarsh Ayachit
That's indeed a bug.  Here's a fix:
https://gitlab.kitware.com/paraview/paraview/merge_requests/1955

For your build of ParaView (assuming you are using 5.4), you can load the
adding XML as a plugin and then create the filter. The XML will override
the builtin definition for the proxy and hence will overcome the issue.

Utkarsh

On Mon, Oct 9, 2017 at 12:08 PM, Dani Schmid  wrote:

> Anybody?
>
> Dani
>
> On Sun, Jun 18, 2017 at 2:44 PM, Dani Schmid 
> wrote:
> > Hi,
> >
> > I try to animate a clip through an object by putting a ramp on Clip1 -
> > Clip Type - Offset. This results in an error:
> >
> > vtkPVKeyFrameAnimationCueForProxies (0192A6D1C570): Cue does not
> > have domain or property set!
> >
> > Animating other properties such as orgin and normals works. The error
> > can be reproduced by adding a sphere, applying a clip, and then adding
> > Clip1 - Clip Type - Offset [-.2 .2] in the animation view. Using the
> > same values as offset values in the Properties of the clip works as
> > expected. What do I do wrong?
> >
> > Cheers,
> >
> > Dani
>
>
>
> --
> Dani Schmid
> Hystadveien 41
> 3208 Sandefjord
> +47 980 00 120
> ___
> 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:
> http://public.kitware.com/mailman/listinfo/paraview
>

  

  
  

  

  


  Set the origin of the plane.

  
  


  Set the normal of the plane.  For many filters this also sets the side
  of the plane that is of interest.  The normal points towards the
  "outside" of the plane.

  
  


  Specify the offset to shift the origin along the direction of the normal by.

  

  



  

  



  
  

  

  

___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Question about modify data in VTK files

2017-10-06 Thread Utkarsh Ayachit
You can do similar things simply using Python and numpy, instead of matlab.
Numpy is included in the Python distributed with ParaView, so you can use
it in pvpython or Python shell in the GUI to open csv [1] and process it
add appropriate before saving out.


[1]
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.loadtxt.html

On Wed, Oct 4, 2017 at 11:45 PM, Li, Teng  wrote:

> Hi,
>
> I have a question about modify the data in vtk files and then visualize
> them again in Paraview.
>
> First, I have 118 vtk files which record the information of each time
> step. In order to process some data in my vtk files, I plan to store them
> as .CSV files. I saved them as points data files. However, I find that I
> need to save 118 CSV files and then process the data in each of them. And
> then I need to visualize each of them.
>
> Because in every time step, I use the same method to modify specific data. I
> wonder is there a way that I can process all the data just one time so
> these specific data in every time step will be changed in the same way.
>
> I know calculator works for some simple applications, such as add, minus.
> However, I might use some if else loops to modify the data. So I need to
> import the .CSV data into the Matlab to process them. And then import the
> modified .CSV files into Paraview to visualize the information.
>
> Thanks!
>
> Best,
> Teng
>
>
> Teng Li
>
> Master Candidate in Structures
>
> Department of Civil and Environmental Engineering
>
> University of Illinois at Urbana-Champaign
>
> 205 North Mathews Ave, Urbana, IL. 61801
>
> Phone:(217)8196210 <(217)%20819-6210>, Email: teng...@illinois.edu
>
>
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Details of XML filter with lists of input arrays

2017-10-04 Thread Utkarsh Ayachit
Dennis,

Oops sorry, it slipped my mind you were doing this for programmable
filter. It should be doable, but I'll need to dig -- don't remember of
the top of my head. I'll put it on my plate to put together a small
example for you.

Utkarsh

On Wed, Oct 4, 2017 at 7:59 AM, Dennis Conklin
<dennis_conk...@goodyear.com> wrote:
> Utkarsh,
>
> I think you have me confused with a real programmer!   ;- )
>
> I am just trying to write a Programmable Filter in python and I'm lost.
>
> I want to write an xml plugin that will put up a list of all the cell 
> variables and let the user select from then and then have the names of those 
> variables available in my python script within the Programmable Filter.
> I'm hoping this can be similar to plugins I have written with hardcoded 
> variable names where I've used something like:
>
> Properties = dict(
>   Sector_Angle = True)
>
>
> def RequestData():
>
>
>def process_block(block):
>   #
>   #
>   if (Sector_Angle):
>
> Maybe this isn't possible at this low level, but how would I put up the list 
> and then what would I have in my RequestData script that I could branch on.
>
> Thanks for your patience.
>
> Dennis
>
>
> -Original Message-
> From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
> Sent: Tuesday, October 03, 2017 4:07 PM
> To: Dennis Conklin <dennis_conk...@goodyear.com>
> Cc: Paraview (paraview@paraview.org) <paraview@paraview.org>
> Subject: Re: [EXT] Re: [Paraview] Details of XML filter with lists of input 
> arrays
>
>> So, after the user chooses some variables, are the chosen variable names in 
>> "input_array"?
>> Or does "input_array"  contain True or False based on which he chose, in 
>> which case where are the corresponding names of the variables?
>
> When user selects variables, he's doing it on the "VolumeArrays"
> property. Thus the selection is provided to the VTK filter via calling the 
> command specified on the "VolumeArrays" property. In the case of the 
> ExtractCTHParts files, this is done via `AddVolumeArrayName` and 
> `RemoveVolumeArrayNames` API.
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Details of XML filter with lists of input arrays

2017-10-03 Thread Utkarsh Ayachit
> So, after the user chooses some variables, are the chosen variable names in 
> "input_array"?
> Or does "input_array"  contain True or False based on which he chose, in 
> which case where are the corresponding names of the variables?

When user selects variables, he's doing it on the "VolumeArrays"
property. Thus the selection is provided to the VTK filter via calling
the command specified on the "VolumeArrays" property. In the case of
the ExtractCTHParts files, this is done via `AddVolumeArrayName` and
`RemoveVolumeArrayNames` API.
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Details of XML filter with lists of input arrays

2017-10-03 Thread Utkarsh Ayachit
> To be more exact, I wrote a routine here that does an area-weighted average 
> of some variables.Now the users are asking if I can give them a list of 
> variables in the model and they can choose which ones to calculate a weighted 
> average.

There are many filters you can base this on. Here are a few examples:

1. 
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/filters.xml#L2026-2041

Here the arrays to list is determined by the "InputArrayDomain"
element defined on the InputProperty and fixed to cell data.

2. 
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/filters.xml#L13865-13881

Here the user can separately select which attribute he/she is
interested in using a separate "AttributeMode" property.

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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Details of XML filter with lists of input arrays

2017-10-03 Thread Utkarsh Ayachit
Dennis,

Before I answer the question, I need to know what are you adding this
property on? Is this a filter or a reader? The difference is that for a
reader, the information about arrays available is provided by the reader
itself; while for filter, that information is obtained from its input.

Utkarsh

On Tue, Oct 3, 2017 at 8:17 AM, Dennis Conklin 
wrote:

> All,
>
>
>
> I’m confused about how to write an XML plugin that lets the user select
> input variables for processing.
>
>
>
> Say I want to put up a list of  cell variables and let the user select
> which ones to process:
>
>
>
> I see this:
>
> https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_
> down_list_with_values_from_input_arrays
>
> but it is not clear to me.
>
> My questions include:
>
>
>
>1. How do I get Cell variables, point variables or field variables –
>which is the example, or do we always get all 3?
>2. Within my code, how do I know what variables have been selected by
>the user from the list?
>
> Thanks for all for any help.
>
>
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Remote rendering through reverse SSH breaks with a GLX error

2017-10-02 Thread Utkarsh Ayachit
Robert,

A few suggestions:

1. let's see what GL you're getting. If you run the following, what it
the output?
   
   pgc104% DISPLAY=:0.0 glxinfo

2. What GPU do you have and which drivers? If it's NVidia with new
enough drivers that support EGL, an EGL-enabled build may be a good
way to circumvent x-server issues.

Utkarsh

On Thu, Sep 28, 2017 at 11:43 AM, Robert Sawko  wrote:
> Dear Paraviewers,
>
> I am trying to run Paraview in a client-server mode on a remote compute node
> using a reverse SSH through the login node.
>
> I have successfully worked out my port forwarding skulduggery and was able to
> connect to a host which does NOT run X server. Inside my local client. I do 
> get
> an error
>
> "Display is not accessible on the server side. Remote rendering
> will be disabled"
>
> This is to be expected on the node without X.
>
> On the node with X running my client gets connected but then breaks with:
>
> Waiting for client...
> Connection URL: cs://pgc104:6
> Accepting connection(s): pgc104:6
> Client connected.
> Xlib:  extension "GLX" missing on display ":0.0".
> Xlib:  extension "GLX" missing on display ":0.0".
> ...
> (core dumped)
>
>
> Finally on the login node client-server works fine and rendering (I guess)
> is done on the remote side as I don't get any errors. We have made sure that
> xorg.conf on login and X-enabled compute node are the same.
>
>
> My connection procedure:
>
> local% ssh -L 6:localhost:6 login_node
> login% bsub -R "select[hname=pgc104]" -Is /bin/bash
> pgc104% ssh -N -R 6:localhost:6 login &
> pgc104% DISPLAY=:0.0 pvserver -sp=6 --use-offscreen-rendering
> local% paraview->connect to localhost:6
>
> Same thing works on pgc304 which doesn't run X. Please let us know if you have
> any suggestions.
>
> Best wishes,
> Robert
> --
> Ironically, it was Christopher Columbus who was wrong
> http://en.wikipedia.org/wiki/Myth_of_the_Flat_Earth
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Force or deactivate some Readers. Reuse the Paraview already running

2017-09-28 Thread Utkarsh Ayachit
> 1) I always work with xmdf files and every time I have to choose the reader
> to use in the menu, can we deactivate or force the use of a specific reader
> in the command line?

Not currently, but that's a nice and easy feature to add. Feel free to
report a feature request.

> 2) also if I run a second command line to run paraview (with a filename as
> argument) can we reuse the instance of paraview already running. (to compare
> results for example)

Not currently supported also, I am afraid.
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Trouble running paraview 5.4.1 with client-server mode.

2017-09-26 Thread Utkarsh Ayachit
Zhen,

Seems like the pvserver process is segfaulting/aborting. When does it
happen, as soon as the client connects or after someone steps? It hard to
gauge what could be going on. Is it possible for you to do a "debug" build
of ParaView on your cluster and then run through gdb? If can get the
callstack for the crash, we will have some clues.

Utkarsh

On Tue, Sep 26, 2017 at 9:55 AM, Zhen Ni  wrote:

> Hi,
>
> I have installed paraview 5.4.1 on my local macbook and our redhat
> cluster, and tried to run the client-server mode. However, some errors
> occurred after the connection and forced it broken. Can you please provide
> some information on how to resolve this issue?
>
> [image: Inline image 3]
>
> --
> Zhen Ni
> leoniz...@email.gwu.edu 
> (202)-994-3963 <(202)%20994-3963>
> SEAS Computing Facility
> George Washington University 
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView GPU support (UNCLASSIFIED)

2017-09-15 Thread Utkarsh Ayachit
Simon,

The answer depends on whether you want to ParaView to use GPU for
rendering alone or also for computation e.g. contours. For former,
it's automatic via OpenGL. So long as your environment and/or your
build is set up such that ParaView picks up the OpenGL implementation
provided by your GPU drivers, you'll get GPU acceleration. For
GPU-accelerated algorithms, you have to enable VTK-m support at build
time and then enable CUDA support for VTM-m. Currently, you need
create special filters via the VTM-m plugin [1] to use accelerated
versions of common algorithms like contour. In future, this will be
automatic, and you will be able to simply use the generic filters.

Hope that helps.

Utkarsh


[1] https://blog.kitware.com/paraview-5-3-0-release-notes/

On Thu, Sep 14, 2017 at 3:42 PM, Su, Simon M CIV USARMY RDECOM ARL
(US)  wrote:
> CLASSIFICATION: UNCLASSIFIED
>
>  Hello,
>
> How do we configure ParaView to take advantage of available GPU hardware? Do 
> we have to compile with different compile flags? Or ParaView automatically 
> detects availability of GPU hardware and take advantage of it?  Any insight 
> is greatly appreciated
>
> Thanks
> -simon
>
>
> CLASSIFICATION: UNCLASSIFIED
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Select points based on coordinates

2017-09-13 Thread Utkarsh Ayachit
On Tue, Sep 12, 2017 at 6:10 PM, Scott, W Alan  wrote:
> This is on the todo list.
> https://gitlab.kitware.com/paraview/paraview/issues/15530

A fix is available in master
(https://gitlab.kitware.com/paraview/paraview/merge_requests/1724).
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Using 64 or more cores on a single node when running client/server

2017-09-13 Thread Utkarsh Ayachit
> It should be related to your mpi environment: may be oversubscribing (more
> than one mpi process by core) is not the default behavior.

I am tempted to second that. There's nothing in ParaView that checks
how many cores your node has, as a result if there's a cap, it's
coming from the MPI implementation itself.
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] SelectInputVector attribute in the SurfaceLIC plugin

2017-09-11 Thread Utkarsh Ayachit
Lionel,

There's indeed a bug there. A temporary workaround is as follows:

LoadDistributedPlugin("SurfaceLIC", ns=globals())
Disconnect()
Connect()

A fix for the issue is here:
https://gitlab.kitware.com/paraview/paraview/merge_requests/1898
I'll have it merged in before the next release.

Utkarsh

On Mon, Sep 11, 2017 at 10:54 AM, Wilhelm Lionel <lionel.wilh...@epfl.ch> wrote:
> Utkarsh,
> Thanks for the so quick reply :)
> Actually I explicitly load the plugin with the following command :
> LoadPlugin('/usr/lib/paraview-5.4/plugins/SurfaceLIC/libSurfaceLIC.so', 
> remote=True, ns=globals())
>
> I tried to load it with the command you suggested but it raises the same 
> error.
>
> While i'm continuing looking for a solution, I saw this old thred 
> https://public.kitware.com/pipermail/paraview/2012-July/025681.html
> I tried to use a command like
> extractBlock1Display_1 = Show(extractBlock1, View4)
> extractBlock1Display_1.Representation = 'Surface LIC'
> extractBlock1Display_1.SMProxy.GetProperty('SelectInputVectors').SetElement(0,['POINTS',
>  'vitesse'])
>
> but it still does not work...
> Thanks in advance,
>
> Lionel
> 
> De : Utkarsh Ayachit <utkarsh.ayac...@kitware.com>
> Envoyé : lundi 11 septembre 2017 16:43
> À : Wilhelm Lionel
> Cc : Paraview@paraview.org
> Objet : Re: [Paraview] SelectInputVector attribute in the SurfaceLIC plugin
>
> Lionel,
>
> Does your Python script load the plugin explcitly? Currently none of
> the state files capture which plugins are loaded, you have to manually
> load the plugin. You can use  the following to load the plugin in your
> script before creating any of the proxies.
>
> LoadDistributedPlugin("SurfaceLIC", ns=globals())
>
>
>
> On Mon, Sep 11, 2017 at 10:16 AM, Wilhelm Lionel <lionel.wilh...@epfl.ch> 
> wrote:
>> Dear Paraviewers,
>>
>>
>> I'm trying to use the SurfaceLIC plugin in a script intended to be executed
>> by pvbatch. Naturally, I used the trace tool in the GUI to design my python
>> script. When save the state in python and try to run it with pvbatch it
>> raises the following error :
>>
>>
>> ensight_full_cyclescaseDisplay.SelectInputVectors = ['POINTS', 'vitesse']
>>   File "/usr/lib/lib/python2.7/site-packages/paraview/servermanager.py",
>> line 453, in __setattr__
>> "to add this attribute.")
>> AttributeError: Attribute SelectInputVectors does not exist.  This class
>> does not allow addition of new attributes to avoid mistakes due to typos.
>> Use add_attribute() if you really want to add this attribute.
>>
>>
>> but if I just load state in the paraview GUI with the exact same script,
>> paraview does not complain. Any workaround ?
>>
>>
>> In fact, by searching a solution, it seems that the
>> ensight_full_cyclescaseDisplay object has a dictionary called
>> _Proxy__Properties which contain a key 'SelectInputVectors'. The problem is
>> that the SelectInputVectors value is a dead weakref object... and I'm not
>> really familiar with weakref objects.
>>
>>
>> Lionel Wilhelm
>>
>>
>> ___
>> 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:
>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] SelectInputVector attribute in the SurfaceLIC plugin

2017-09-11 Thread Utkarsh Ayachit
Lionel,

Does your Python script load the plugin explcitly? Currently none of
the state files capture which plugins are loaded, you have to manually
load the plugin. You can use  the following to load the plugin in your
script before creating any of the proxies.

LoadDistributedPlugin("SurfaceLIC", ns=globals())



On Mon, Sep 11, 2017 at 10:16 AM, Wilhelm Lionel  wrote:
> Dear Paraviewers,
>
>
> I'm trying to use the SurfaceLIC plugin in a script intended to be executed
> by pvbatch. Naturally, I used the trace tool in the GUI to design my python
> script. When save the state in python and try to run it with pvbatch it
> raises the following error :
>
>
> ensight_full_cyclescaseDisplay.SelectInputVectors = ['POINTS', 'vitesse']
>   File "/usr/lib/lib/python2.7/site-packages/paraview/servermanager.py",
> line 453, in __setattr__
> "to add this attribute.")
> AttributeError: Attribute SelectInputVectors does not exist.  This class
> does not allow addition of new attributes to avoid mistakes due to typos.
> Use add_attribute() if you really want to add this attribute.
>
>
> but if I just load state in the paraview GUI with the exact same script,
> paraview does not complain. Any workaround ?
>
>
> In fact, by searching a solution, it seems that the
> ensight_full_cyclescaseDisplay object has a dictionary called
> _Proxy__Properties which contain a key 'SelectInputVectors'. The problem is
> that the SelectInputVectors value is a dead weakref object... and I'm not
> really familiar with weakref objects.
>
>
> Lionel Wilhelm
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Opacity editor with log scale

2017-09-08 Thread Utkarsh Ayachit
Steven,

That's done so because the opacity mapping doesn't support log scale yet.

Utkarsh

On Thu, Sep 7, 2017 at 6:28 PM, Hahn, Steven E.  wrote:
> Hi,
>
>
>
> I noticed that when “Use log scale when mapping data to colors” is selected,
> the color opacity editor isn’t being rescaled to reflect this. In the
> attached screenshot only the red portion of the color map is visible in the
> editor, suggesting the x axis remains linear. In contrast, the color legend
> rescales so that while the values change, colors stay the same.
>
>
>
> Would it be more intuitive for the opacity editor to behave more like the
> color legend? Or is keeping the color map linear in the opacity editor by
> design?
>
>
>
> Best,
>
> Steven
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Question about animation background size

2017-09-08 Thread Utkarsh Ayachit
Does your current window size and target image size for the animation
differ in aspect ratio? That's one reason why animation view may not
match your expectation. With ParaView 5.5, there will be a "Preview"
mode which allow you to set up your viz to match the target aspect
(see https://gitlab.kitware.com/paraview/paraview/merge_requests/1733).
With 5.4 and earlier, you can use "Tools | Lock View Size Custom" to
lock the view size to an aspect ratio matching your target resolution
and then zoom in/out as needed to ensure a better fit.

Utkarsh

On Thu, Sep 7, 2017 at 6:42 PM, Li, Teng  wrote:
> Hi,
>
> I have a question about saving animation. I find that when I try to save the
> animation, the main model only occupies a small space. The background will
> occupy a large space. I wonder how can I save the animation to make sure not
> only the whole main body will show in the video, but also the background
> area is very small.
>
> Thanks!
>
> Best,
> Teng
>
> Teng Li
>
> Master Candidate in Structures
>
> Department of Civil and Environmental Engineering
>
> University of Illinois at Urbana-Champaign
>
> 205 North Mathews Ave, Urbana, IL. 61801
>
> Phone:(217)8196210, Email: teng...@illinois.edu
>
>
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Read files in different folders at the same time

2017-09-08 Thread Utkarsh Ayachit
I am afraid that's not possible currently. A workaround is to create a
pvd file as follows:



  





  


Make sure that header matches the header in one of the vtu files.

Utkarsh

On Thu, Sep 7, 2017 at 7:04 PM, Ke Gao  wrote:
> Hi all,
>
> When I do the simulation, I restart the computation and as a result there
> are files generated in different folders but with sequential vtu file names.
> For example, in the first folder we have vtu files numbered from 0 to 100,
> and in the second folder we have vtu files from 101 to 200. I wonder if
> there is a convenient way to animate all these 200 files in one setup,
> without copy them into the same folder?
>
> Thanks.
>
> --
> ..
> Ke Gao
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Visualization of time course data with legacy vtk format

2017-09-07 Thread Utkarsh Ayachit
James,

Are you running into the following issue? Are your names suffixed by a
non-number?

https://gitlab.kitware.com/paraview/paraview/issues/17677





On Wed, Aug 30, 2017 at 2:04 PM, James Thunes  wrote:
> Hello all,
>
> Sometime between v5.1 and the latest version (v.5.4.1) the handling of
> legacy vtk files changed.
>
> I use paraview to visualize FE data that I've written in the legacy vtk
> format. Data is written with a separate file for each time step. The naming
> convention is: File.vtk with  the step number.
>
> When I click the open dialog with the latest version, I no longer see the
> files grouped as a file series (as described in this page from the wiki:
> Animating legacy VTK file series).
>
> Is this new behavior expected, and if so, is there an alternative way to
> visualize time series data?
>
> Thanks,
> James
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Dialog box for Macros?

2017-09-07 Thread Utkarsh Ayachit
None of those packages are including in standard ParaView
distribution.  (PyQt5 could have been included but we can't because of
licensing issues).

Utkarsh



On Thu, Sep 7, 2017 at 5:17 PM, Shuhao Wu  wrote:
> Hello,
>
> I would like to create a dialog box for my macro that takes a screenshot for
> each timestep. I want to be able to specify a file name prefix and the
> number of timesteps to screenshot. I can't figure out how to import PyQT
> (tried import PyQt4, PyQt5, PySide). Am I doing something wrong?
>
> Thanks,
> Shuhao
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Error message: Not supported on OpenGL ES when I launch Paraview

2017-09-07 Thread Utkarsh Ayachit
Can you try something out:
1. Download https://www.paraview.org/files/dependencies/mesa-opengl-win64.zip
2. Put all the dlls in the same location as paraview.exe (or in your
PATH) and then start ParaView

Does that work? This should use  software rendering via Mesa3D and
avoid any driver issues we may be running into.

Utkarsh

On Mon, Sep 4, 2017 at 8:22 AM, Antonio Orlando
 wrote:
> Dear All:
>
> I have tried to install the new version of
> ParaView-5.4.1-Qt5-OpenGL2-Windows-64bit.exe on Windows 8.1, with a
> 64bit OS, and when I launch it I get at the end of a long error
> message log the following
>
> ERROR: In 
> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx,
> line 409
> vtkShaderProgram (00A5CDCC3D00):
>
> Generic Warning: In
> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderTimer.cxx,
> line 104
> vtkOpenGLRenderTimer::Stop called before vtkOpenGLRenderTimer::Start. 
> Ignoring.
>
> versionFunctions: Not supported on OpenGL ES
>
>
> Would someone give me a hint what I should do for a correct
> installation? Many thanks.
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Windows Surface Book

2017-08-30 Thread Utkarsh Ayachit
I am afraid I have no experience with Surface book. Any more details?
How does it fail?

On Wed, Aug 30, 2017 at 8:05 PM, Scott, W Alan  wrote:
> Ping?
>
>
>
> From: ParaView  on behalf of W Scott
> 
> Date: Thursday, August 24, 2017 at 3:27 PM
> To: "paraview@paraview.org" 
> Subject: [EXTERNAL] [Paraview] Windows Surface Book
>
>
>
> I have a user that is having issues running ParaView on a Windows Surface
> Book.  Has anyone else seen this?  Any advice?
>
>
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Rendering/Screenshot with "deep color" (REPOST)

2017-08-24 Thread Utkarsh Ayachit
Jonathan,

As far as I know, no such a setting is not available in ParaView
currently. It's not on our todo list. Feel free to report an issue at
`https://gitlab.kitware.com/paraview/paraview/issues` so that it can
be tackled in the future.

Utkarsh

On Wed, Aug 9, 2017 at 12:52 PM, Jonathan Borduas
 wrote:
> Dear Paraviewers,
>
> As seen in the attached image, we can see the transitions between the
> different grays that occur with a 24bits-per-pixel screenshot export of
> ParaView.
> While most image editing software and printer support 32bits-per-pixel such
> as Ms Paint and Photoshop.
>
> Most GPU manufacturers call that “deep color”. Some display already have
> 30bpp/10bpc.
>
>
> Is there a setting available to configure the image bit depth (Bit Per
> Pixel, Bit Per Channel) in ParaView ?
> If no, is there any short time plans to integrate the control over the bit
> depth ?
>
> Best regards,
>
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Removing wire frame from Ensight Gold Case Data format

2017-08-23 Thread Utkarsh Ayachit
Can you share a sample dataset? That'll make it easier.

Thanks
Utkarsh

On Tue, Aug 22, 2017 at 6:06 PM, Niaz M. via ParaView  wrote:

> Hello:
> I am exporting Fluent simulation results as Ensight gold case. Then
> importing in paraview. Then I am plotting a slice . I am selecting
> Representation as Surface (not surface with edge). But I can't get rid of
> Mesh (or wireframe) . Is there any way I can get rid of wire frame.
> Thanks in advance
>
>
> [image: Inline image 1]
>
>
> Niaz
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] 答复: Help: How to get multi screenshots in one picture from Paraview

2017-08-16 Thread Utkarsh Ayachit
Shudi,

Is this what you're looking for:
https://www.paraview.org/Wiki/Parameter_Study

If so, you may want to look at Chapter 12 in the ParaView Users
Guide[1]. It covers in the comparative views in more up-to-date
details.

Utkarsh

[1] https://www.paraview.org/paraview-guide/

On Tue, Aug 15, 2017 at 7:10 PM, 董 舒迪 <ganpla...@hotmail.com> wrote:
> Hi Utkarsh,
>
>
> Good evening.
>
> I am running a series of numerical data (.vtk file) in Paraview, which is
> about 90s long. What I want are several screenshots from different time
> period and conbine them into one picture with Paraview. For example, I want
> the screenshots of 12s, 13s, 14s and 15s, and output these four screenshots
> into one picture. I heard Paraview itself coiuld help me to do it but I
> cannot find how.
>
>
> I am not sure it this explaination makes sense? Do you have anyidea about
> how to obtain this kind of screenshots?
>
>
> Best regards
>
> Shudi Dong.
>
>
>
> 
> 发件人: Utkarsh Ayachit <utkarsh.ayac...@kitware.com>
> 发送时间: 2017年8月15日 2:46
> 收件人: 董 舒迪
> 抄送: paraview@paraview.org
> 主题: Re: [Paraview] Help: How to get multi screenshots in one picture from
> Paraview
>
> Shudi,
>
> Can you elaborate a little? I am not sure I understand what you want
> to take multiple screenshots of.
>
> Utkarsh
>
> On Mon, Aug 14, 2017 at 4:58 PM, 董 舒迪 <ganpla...@hotmail.com> wrote:
>> Dear all,
>>
>>
>> I am currently using paraview to analyse my .vtk data. I want to get some
>> screenshots for my presentation. I have tried version 4.1 and 5.2 and I
>> could save one screenshot per time. Does anyone know how can I get multi
>> screenshots in one picture with paraview itself?  I do not want to use
>> python as I have no experience with it.  I would appreciate your reply and
>> help.
>>
>>
>> Many thanks
>>
>> Shudi Dong
>>
>>
>> ___
>> 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
> ParaView - KitwarePublic
> paraview.org
> ParaView is an open-source, multi-platform application designed to visualize
> data sets of varying sizes from small to very large. The goals of the
> ParaView project ...
>
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
> ParaView Info Page - Kitware
> public.kitware.com
> To see the collection of prior postings to the list, visit the ParaView
> Archives. Using ParaView: To post a message to all the list members, send
> ...
>
>>
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Help: How to get multi screenshots in one picture from Paraview

2017-08-14 Thread Utkarsh Ayachit
Shudi,

Can you elaborate a little? I am not sure I understand what you want
to take multiple screenshots of.

Utkarsh

On Mon, Aug 14, 2017 at 4:58 PM, 董 舒迪  wrote:
> Dear all,
>
>
> I am currently using paraview to analyse my .vtk data. I want to get some
> screenshots for my presentation. I have tried version 4.1 and 5.2 and I
> could save one screenshot per time. Does anyone know how can I get multi
> screenshots in one picture with paraview itself?  I do not want to use
> python as I have no experience with it.  I would appreciate your reply and
> help.
>
>
> Many thanks
>
> Shudi Dong
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [vtkusers] SafeDownCast does not work properly

2017-08-09 Thread Utkarsh Ayachit
Maximilian,

That's not a reasonable expectation. Mesh **isa** vtkPolyData, and not
vice-versa. Look at docs for dynamic_cast in C++. In spirit, SafeDownCast
is essentially the same thing.

Utkarsh

On Wed, Aug 9, 2017 at 2:12 PM, Maximilian Weiherer <
weiherer.maximil...@gmx.de> wrote:

> Hi Utkarsh,
>
>
>
> thanks for your reply. I created the custom mesh class in order to add
> some new functionality (e.g. a method to check whether a mesh intersects
> another mesh). The vtkPolyData object which should be casted is the output
> of a vtkSTLReader, i.e.
>
> Mesh* mesh = Mesh::SafeDownCast(reader->GetOutput()); // mesh always
> equals NULL
>
> Best regards
>
> Maximilian
>
>
>
> *Von:* Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
> *Gesendet:* Mittwoch, 9. August 2017 17:53
> *An:* Maximilian Weiherer <weiherer.maximil...@gmx.de>
> *Cc:* vtk <vtkus...@vtk.org>
> *Betreff:* Re: [vtkusers] SafeDownCast does not work properly
>
>
>
> Maximilian,
>
>
>
> I am confused why any arbitrary vtkPolyData object would be castable to
> "Mesh". It will only return non-null, if it's is indeed created as a Mesh.
> Is it? Where's the "" coming from?
>
>
>
> Utkarsh
>
>
>
> On Wed, Aug 9, 2017 at 11:50 AM, Maximilian Weiherer <
> weiherer.maximil...@gmx.de> wrote:
>
> Hi all,
>
>
>
> I defined my own mesh class (named *Mesh*) by inheriting from
> vtkPolyData. Now I am struggling with the SafeDownCast method in order to
> cast a vtkPolyData object into a *Mesh* object. Whenever I am applying a
> SafeDownCast to a vtkPolyData object, NULL is returned.
>
>
>
> The *Mesh* class looks as follows:
>
>
>
> class Mesh : public vtkPolyData
>
> {
>
>   public:
>
> static Mesh* New();
>
> vtkTypeMacro(Mesh, vtkPolyData);
>
> void PrintSelf(ostream& os, vtkIndent indent);
>
>
>
>   protected:
>
> Mesh();
>
> ~Mesh();
>
>   private:
>
> Mesh(const Mesh&); // Not implemented.
>
> void operator=(const Mesh&); // Not implemented.
>
> };
>
>
>
> …and this is the cast that does not work properly:
>
>
>
> Mesh* mesh = Mesh::SafeDownCast(); // mesh always
> equals NULL
>
>
>
> Any help would be appreciated. Thanks!
>
>
>
> Best regards
>
> Maximilian
>
>
>
> [image: Das Bild wurde vom Absender entfernt.]
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=emailclient>
>
> Virenfrei. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=emailclient>
>
>
> ___
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Hiding all pipeline objects

2017-08-08 Thread Utkarsh Ayachit
With 5.1.2, try this:


>>> view = GetActiveView()

>>> sources = GetSources().values()

>>> for aSource in sources:

... Hide(aSource, view)


Utkarsh






On Tue, Aug 8, 2017 at 1:05 PM, Amelia Launspach <amylaunsp...@gmail.com>
wrote:

> Using paraview 5.1.2, thats a bummer
>
> On Tue, Aug 8, 2017 at 12:03 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> What version of ParaView  are you using? `simple.HideAll` has been
>> supported since 5.2.
>>
>> On Tue, Aug 8, 2017 at 12:39 PM, Amelia Launspach <amylaunsp...@gmail.com
>> > wrote:
>>
>>> Hi everyone,
>>>
>>> I'm trying to hide all pipeline objects on my view. My paraview.simple
>>> does not have a "HideAll" so I'm not sure how to do this. The following
>>> methods have not worked for me:
>>>
>>> def HideAll(view=None):
>>>
>>> """Hide all pipeline sources in the given view.
>>>
>>> If view is not specified, active view is used."""
>>>
>>> if not view:
>>>
>>> view = active_objects.view
>>>
>>> controller = servermanager.ParaViewPipelineController()
>>>
>>> controller.HideAll(view)
>>>
>>>
>>> paraview.simple.HideAll()
>>>
>>>
>>>
>>> Does anyone know how I could accomplish this?
>>> Seems simple enough but nothing is working
>>>
>>> Thanks,
>>> Amy
>>>
>>> ___
>>> 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:
>>> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Hiding all pipeline objects

2017-08-08 Thread Utkarsh Ayachit
What version of ParaView  are you using? `simple.HideAll` has been
supported since 5.2.

On Tue, Aug 8, 2017 at 12:39 PM, Amelia Launspach 
wrote:

> Hi everyone,
>
> I'm trying to hide all pipeline objects on my view. My paraview.simple
> does not have a "HideAll" so I'm not sure how to do this. The following
> methods have not worked for me:
>
> def HideAll(view=None):
>
> """Hide all pipeline sources in the given view.
>
> If view is not specified, active view is used."""
>
> if not view:
>
> view = active_objects.view
>
> controller = servermanager.ParaViewPipelineController()
>
> controller.HideAll(view)
>
>
> paraview.simple.HideAll()
>
>
>
> Does anyone know how I could accomplish this?
> Seems simple enough but nothing is working
>
> Thanks,
> Amy
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView newbie with a (hopefully) simple question

2017-08-08 Thread Utkarsh Ayachit
>
> Would there be anyway to automatically group together all the sources
> without looping?
>

This should work:

* GroupDatasets(Input=GetSources().values())*


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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Carrier deformation ParaView

2017-08-01 Thread Utkarsh Ayachit
Do you have  sample dataset that you can share? That'll make it easier.
Thanks.

Utkarsh

On Tue, Aug 1, 2017 at 9:18 AM, Anna Baburin  wrote:

> Hello,
>
> I’m using a ParaView Version 4.3.1.
>
> I'm trying to figure out how to measure the carrier deformation of an bolt
> (in x, y and z axis).
>
> Can somebody help me?
>
> Thank you
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Can I use paraview to visualize molecule dataset?

2017-07-26 Thread Utkarsh Ayachit
And here's a related blog post:
https://blog.kitware.com/new-features-paraview-chemistry-pettt/

Utkarsh

On Wed, Jul 26, 2017 at 7:25 AM, Cory Quammen 
wrote:

> Zhang,
>
> Yes, you can visualize molecules in ball-and-stick representation in
> ParaView (see attached). This representation is used whenever you load
> a vtkMolecule data type. If you have a PDB file, for example, it will
> be read in as a vtkMolecule data type and displayed with
> ball-and-stick representation by default. You can also change the
> Molecule "Render Mode" property to "Space Filling" or "Liquorice"
> representation.
>
> HTH,
> Cory
>
>
>
> On Wed, Jul 26, 2017 at 3:57 AM, 张驭洲  wrote:
> >
> >
> > Hello,
> >
> >   I want to know if I can use paraview to visualize molecule dataset,
> > i.e., using ball-and-stick model to represent molecules? Currently I can
> > only using point gaussian to represent the "ball", but I don't know how
> to
> > visualize the "stick". I know another visualization tool VMD is designed
> to
> > do works of this kind, but I've not found similar founctions in ParaView.
> >
> > -Zhang
> >
> >
> >
> >
> >
> > ___
> > 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:
> > http://public.kitware.com/mailman/listinfo/paraview
> >
>
>
>
> --
> Cory Quammen
> Staff R 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Monitoring the progress of a paraview filter

2017-07-25 Thread Utkarsh Ayachit
Joe,

I am afraid there's no easy answer for this. In fact, in ParaView, we don't
collect progress from ranks other than the root.

Utkarsh

On Mon, Jul 24, 2017 at 5:18 PM, Hennessey, Joseph G CTR USARMY RDECOM ARL
(US)  wrote:

> Hello,
>
> I am trying to monitor the progress of a paraview filter (contour)
> on rather large data, so that I could  predict when it will finish.
> Is there a recommended way to do this? I am running using
> 42 paraview servers and I cannot find an easy way of estimating
> the filter percent of progress or expected completion time.
>
> Thanks,
>
> Joe
>
> ~~~
> Joseph G. Hennessey Ph.D., SAIC
> Team SAIC
> Army Research Lab
> DOD Supercomputing Resource Center
> Aberdeen Proving Ground, MD 21005
>
>
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Multi-RenderView in tiled-display

2017-07-25 Thread Utkarsh Ayachit
David,

This is indeed a bug (
https://gitlab.kitware.com/paraview/paraview/issues/17611). I believe the
bug was introduced in 5.0.

Utkarsh

On Tue, Jul 25, 2017 at 7:17 AM, David <253295...@qq.com> wrote:

> Hello,everyone.
>
> When I use the tiled-display mode with one RenderView, the image can be
> correctly displayed.
>
> But if I open another horizontal or vertical RenderView, the result will
> go wrong.
>
> For instance, one of these tiles will be invisible. And the image's
> sequence is incorrect,and we can only get two fragmentary images.
>
> Shall we reconfigure our MPI machinefile?
>
> David
>
> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview


  1   2   3   4   5   6   7   8   9   10   >