Re: [Paraview] Paraview v5.4.1 using EGL on ppc64le RHEL7.2

2017-10-23 Thread Andy Bauer
Hi,

It may be a driver issue. Which NVIDIA driver version are you using?
According to
https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/
you'll need at lest 355.11.

Cheers,
Andy

On Mon, Oct 23, 2017 at 5:25 PM, Bruce D'Amora  wrote:

> I think there is an issue with volume rendering on Paraview v5.4.1 using
> EGL on ppc64le RHEL 7.2 and client-server rendering. Any model that I try
> to volume render results in a segfault.
> Always seem to get these errors, but only when I try volume rendering.
>
> Warning: In /gsa/yktgsa/home/s/a/sawkor/ess/ParaView-v5.4.1/VTK/
> Rendering/OpenGL2/vtkEGLRenderWindow.cxx, line 272
> vtkEGLRenderWindow (0x1003dad7340): Setting an EGL display to device
> index: 0 require EGL_EXT_device_base EGL_EXT_platform_device
> EGL_EXT_platform_base extensions
>
> ERROR: In /gsa/yktgsa/home/s/a/sawkor/ess/ParaView-v5.4.1/VTK/
> Rendering/OpenGL2/vtkEGLRenderWindow.cxx, line 341
> vtkEGLRenderWindow (0x1003dad7340): Only EGL 1.4 and greater allows OpenGL
> as client API. See eglBindAPI for more information.
>
> ERROR: In /gsa/yktgsa/home/s/a/sawkor/ess/ParaView-v5.4.1/VTK/
> Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 819
> vtkEGLRenderWindow (0x1003dad7340): GLEW could not be initialized.
> ___
> Bruce D'Amora
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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 v5.4.1 using EGL on ppc64le RHEL7.2

2017-10-23 Thread Bruce D'Amora
I think there is an issue with volume rendering on Paraview v5.4.1 using 
EGL on ppc64le RHEL 7.2 and client-server rendering. Any model that I try 
to volume render results in a segfault.
Always seem to get these errors, but only when I try volume rendering.

Warning: In 
/gsa/yktgsa/home/s/a/sawkor/ess/ParaView-v5.4.1/VTK/Rendering/OpenGL2/vtkEGLRenderWindow.cxx,
 
line 272
vtkEGLRenderWindow (0x1003dad7340): Setting an EGL display to device 
index: 0 require EGL_EXT_device_base EGL_EXT_platform_device 
EGL_EXT_platform_base extensions

ERROR: In 
/gsa/yktgsa/home/s/a/sawkor/ess/ParaView-v5.4.1/VTK/Rendering/OpenGL2/vtkEGLRenderWindow.cxx,
 
line 341
vtkEGLRenderWindow (0x1003dad7340): Only EGL 1.4 and greater allows OpenGL 
as client API. See eglBindAPI for more information.

ERROR: In 
/gsa/yktgsa/home/s/a/sawkor/ess/ParaView-v5.4.1/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx,
 
line 819
vtkEGLRenderWindow (0x1003dad7340): GLEW could not be initialized.
___
Bruce D'Amora


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView 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] Calculating time-averaged shear stress

2017-10-23 Thread Shuhao Wu
There's the `SaveData` function you can use. Just save via a .vtu 
extension. I personally also use CompressorType="LZ4"


Try doing this in the paraview gui first and then record it into Python. 
Then you can see how everything is done.


Shuhao

On 2017-10-23 05:00 PM, Eslami, Parastou wrote:

Hi Shuhao,


Thank you for your response. Yes, I found the TemporalStatistics filter as 
well. Could you please let me know how I can save it back as a .vtu file?


Best Regards,

Parastou




From: ParaView  on behalf of Shuhao Wu 

Sent: Monday, October 23, 2017 4:46:24 PM
To: paraview@paraview.org
Subject: Re: [Paraview] Calculating time-averaged shear stress

I believe you're looking for the TemporalStatistics filter. Specifically
what you want maybe something along the lines of:

temporal_statistics = TemporalStatistics(Input=vtk_data)
temporal_statistics.ComputeAverage = 1
temporal_statistics.ComputeMinimum = 0
temporal_statistics.ComputeMaximum = 0
temporal_statistics.ComputeStandardDeviation = 0

This should make the computation slightly faster as you don't need to
compute and store the stddev, min, and max.

Shuhao

On 2017-10-23 02:36 PM, Eslami, Parastou wrote:

Hi  Everyone,


I'm very new to Paraview and python scripting. I have a series of time 
dependent .vtu files and would like to

1.  Read the vtu files for each time step
2.  calculate the magnitude of shear stress
3.  calculate time-averaged shear stress for all the elements in my geometry
4.  output/write a vtu file and load it back to paraview.

I think I have been able to successfully implement steps 1 and 2 (please see 
bellow)  but am completely clueless on how to do 3 and 4. Could anyone help me 
with this? I also should mention that I have tried the Temporal Statistics 
Filter and it seems to be working fine, but would like to have a way to do it 
with pythons scripting as well.


Thanks,
Parastou


 import the simple module from the paraview
from paraview.simple import *
import numpy as np
 disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

dumm_vWSS = []

for i in range(4500, 4550, 50):
  f = "\...\.../all_results_0" + str(i) + ".vtu"
  print i
  # create a new 'XML Unstructured Grid Reader'
  all_results = XMLUnstructuredGridReader(FileName=f)
  all_results.CellArrayStatus = ['GlobalElementID']
  all_results.PointArrayStatus = ['GlobalNodeID', 'vinplane_traction', 
'vWSS', 'average_speed', 'average_pressure', 'pressure', 'velocity', 
'timeDeriv']
  # create a new 'Calculator'
  calculator1 = Calculator(Input=all_results)
  calculator1.Function = ''
  # Properties modified on calculator1
  calculator1.ResultArrayName = 'WSS mag'
  calculator1.Function = 'mag(vWSS)'
  # get the data points
  SetActiveSource(calculator1)
  calculator1.UpdatePipeline()
  vWSSdata=servermanager.Fetch(calculator1)
  vWSSPoints =vWSSdata.GetPoints()
  vWSSPointData  =vWSSdata.GetPointData()
  vWSSArrayData=vWSSPointData.GetArray('WSS mag')
  dumm_vWSS.append(vWSSArrayData)
  print dumm_vWSS



Parastou Eslami, PhD
Post-doctoral Fellow, Harvard University
Department of Radiology, Massachusetts General Hospital








The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView 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


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search 

Re: [Paraview] Calculating time-averaged shear stress

2017-10-23 Thread Eslami, Parastou
Hi Shuhao,


Thank you for your response. Yes, I found the TemporalStatistics filter as 
well. Could you please let me know how I can save it back as a .vtu file?


Best Regards,

Parastou




From: ParaView  on behalf of Shuhao Wu 

Sent: Monday, October 23, 2017 4:46:24 PM
To: paraview@paraview.org
Subject: Re: [Paraview] Calculating time-averaged shear stress

I believe you're looking for the TemporalStatistics filter. Specifically
what you want maybe something along the lines of:

   temporal_statistics = TemporalStatistics(Input=vtk_data)
   temporal_statistics.ComputeAverage = 1
   temporal_statistics.ComputeMinimum = 0
   temporal_statistics.ComputeMaximum = 0
   temporal_statistics.ComputeStandardDeviation = 0

This should make the computation slightly faster as you don't need to
compute and store the stddev, min, and max.

Shuhao

On 2017-10-23 02:36 PM, Eslami, Parastou wrote:
> Hi  Everyone,
>
>
> I'm very new to Paraview and python scripting. I have a series of time 
> dependent .vtu files and would like to
>
>1.  Read the vtu files for each time step
>2.  calculate the magnitude of shear stress
>3.  calculate time-averaged shear stress for all the elements in my 
> geometry
>4.  output/write a vtu file and load it back to paraview.
>
> I think I have been able to successfully implement steps 1 and 2 (please see 
> bellow)  but am completely clueless on how to do 3 and 4. Could anyone help 
> me with this? I also should mention that I have tried the Temporal Statistics 
> Filter and it seems to be working fine, but would like to have a way to do it 
> with pythons scripting as well.
>
>
> Thanks,
> Parastou
>
>
>  import the simple module from the paraview
> from paraview.simple import *
> import numpy as np
>  disable automatic camera reset on 'Show'
> paraview.simple._DisableFirstRenderCameraReset()
>
> dumm_vWSS = []
>
> for i in range(4500, 4550, 50):
>  f = "\...\.../all_results_0" + str(i) + ".vtu"
>  print i
>  # create a new 'XML Unstructured Grid Reader'
>  all_results = XMLUnstructuredGridReader(FileName=f)
>  all_results.CellArrayStatus = ['GlobalElementID']
>  all_results.PointArrayStatus = ['GlobalNodeID', 'vinplane_traction', 
> 'vWSS', 'average_speed', 'average_pressure', 'pressure', 'velocity', 
> 'timeDeriv']
>  # create a new 'Calculator'
>  calculator1 = Calculator(Input=all_results)
>  calculator1.Function = ''
>  # Properties modified on calculator1
>  calculator1.ResultArrayName = 'WSS mag'
>  calculator1.Function = 'mag(vWSS)'
>  # get the data points
>  SetActiveSource(calculator1)
>  calculator1.UpdatePipeline()
>  vWSSdata=servermanager.Fetch(calculator1)
>  vWSSPoints =vWSSdata.GetPoints()
>  vWSSPointData  =vWSSdata.GetPointData()
>  vWSSArrayData=vWSSPointData.GetArray('WSS mag')
>  dumm_vWSS.append(vWSSArrayData)
>  print dumm_vWSS
>
>
>
> Parastou Eslami, PhD
> Post-doctoral Fellow, Harvard University
> Department of Radiology, Massachusetts General Hospital
>
>
>
>
>
>
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine 
> at
> http://www.partners.org/complianceline . If the e-mail was sent to you in 
> error
> but does not contain patient information, please contact the sender and 
> properly
> dispose of the e-mail.
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView 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] Calculating time-averaged shear stress

2017-10-23 Thread Shuhao Wu
I believe you're looking for the TemporalStatistics filter. Specifically 
what you want maybe something along the lines of:


  temporal_statistics = TemporalStatistics(Input=vtk_data)
  temporal_statistics.ComputeAverage = 1
  temporal_statistics.ComputeMinimum = 0
  temporal_statistics.ComputeMaximum = 0
  temporal_statistics.ComputeStandardDeviation = 0

This should make the computation slightly faster as you don't need to 
compute and store the stddev, min, and max.


Shuhao

On 2017-10-23 02:36 PM, Eslami, Parastou wrote:

Hi  Everyone,


I'm very new to Paraview and python scripting. I have a series of time 
dependent .vtu files and would like to

   1.  Read the vtu files for each time step
   2.  calculate the magnitude of shear stress
   3.  calculate time-averaged shear stress for all the elements in my geometry
   4.  output/write a vtu file and load it back to paraview.

I think I have been able to successfully implement steps 1 and 2 (please see 
bellow)  but am completely clueless on how to do 3 and 4. Could anyone help me 
with this? I also should mention that I have tried the Temporal Statistics 
Filter and it seems to be working fine, but would like to have a way to do it 
with pythons scripting as well.


Thanks,
Parastou


 import the simple module from the paraview
from paraview.simple import *
import numpy as np
 disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

dumm_vWSS = []

for i in range(4500, 4550, 50):
 f = "\...\.../all_results_0" + str(i) + ".vtu"
 print i
 # create a new 'XML Unstructured Grid Reader'
 all_results = XMLUnstructuredGridReader(FileName=f)
 all_results.CellArrayStatus = ['GlobalElementID']
 all_results.PointArrayStatus = ['GlobalNodeID', 'vinplane_traction', 
'vWSS', 'average_speed', 'average_pressure', 'pressure', 'velocity', 
'timeDeriv']
 # create a new 'Calculator'
 calculator1 = Calculator(Input=all_results)
 calculator1.Function = ''
 # Properties modified on calculator1
 calculator1.ResultArrayName = 'WSS mag'
 calculator1.Function = 'mag(vWSS)'
 # get the data points
 SetActiveSource(calculator1)
 calculator1.UpdatePipeline()
 vWSSdata=servermanager.Fetch(calculator1)
 vWSSPoints =vWSSdata.GetPoints()
 vWSSPointData  =vWSSdata.GetPointData()
 vWSSArrayData=vWSSPointData.GetArray('WSS mag')
 dumm_vWSS.append(vWSSArrayData)
 print dumm_vWSS



Parastou Eslami, PhD
Post-doctoral Fellow, Harvard University
Department of Radiology, Massachusetts General Hospital








The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView 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] Calculating time-averaged shear stress

2017-10-23 Thread Eslami, Parastou
Hi  Everyone,


I'm very new to Paraview and python scripting. I have a series of time 
dependent .vtu files and would like to

  1.  Read the vtu files for each time step
  2.  calculate the magnitude of shear stress
  3.  calculate time-averaged shear stress for all the elements in my geometry
  4.  output/write a vtu file and load it back to paraview.

I think I have been able to successfully implement steps 1 and 2 (please see 
bellow)  but am completely clueless on how to do 3 and 4. Could anyone help me 
with this? I also should mention that I have tried the Temporal Statistics 
Filter and it seems to be working fine, but would like to have a way to do it 
with pythons scripting as well.


Thanks,
Parastou


 import the simple module from the paraview
from paraview.simple import *
import numpy as np
 disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

dumm_vWSS = []

for i in range(4500, 4550, 50):
f = "\...\.../all_results_0" + str(i) + ".vtu"
print i
# create a new 'XML Unstructured Grid Reader'
all_results = XMLUnstructuredGridReader(FileName=f)
all_results.CellArrayStatus = ['GlobalElementID']
all_results.PointArrayStatus = ['GlobalNodeID', 'vinplane_traction', 
'vWSS', 'average_speed', 'average_pressure', 'pressure', 'velocity', 
'timeDeriv']
# create a new 'Calculator'
calculator1 = Calculator(Input=all_results)
calculator1.Function = ''
# Properties modified on calculator1
calculator1.ResultArrayName = 'WSS mag'
calculator1.Function = 'mag(vWSS)'
# get the data points
SetActiveSource(calculator1)
calculator1.UpdatePipeline()
vWSSdata=servermanager.Fetch(calculator1)
vWSSPoints =vWSSdata.GetPoints()
vWSSPointData  =vWSSdata.GetPointData()
vWSSArrayData=vWSSPointData.GetArray('WSS mag')
dumm_vWSS.append(vWSSArrayData)
print dumm_vWSS



Parastou Eslami, PhD
Post-doctoral Fellow, Harvard University
Department of Radiology, Massachusetts General Hospital








The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView 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 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] Rescale & axes grid tricks

2017-10-23 Thread Sonya Davydycheva
Cory,

This is what I needed. It works.
Many thanks,

Sonya Davydycheva 
(713)498-6139


On Mon, Oct 23, 2017 at 7:47 AM, Cory Quammen 
wrote:

> Sonya,
>
> ParaView 5.2.0 does have a "Rescale" color map feature. It is circled in
> red here:
>
> [image: Inline image 1]
>
> Best regards,
> Cory
>
> On Mon, Oct 23, 2017 at 8:09 AM, Sonya Davydycheva 
> wrote:
>
>> Cory, Alan and all ParaView experts,
>>
>> I keep playing with two versions of Paraview following your kind advice,
>> thanks (see below, on Paraview 5.4.1 error message & freeze).
>>
>> The earlier versions freeze sometimes as well, but I found a way to
>> isolate and avoid the bug (I just avoid making full screen or draw the
>> screen edges).
>>
>> The recommended Paraview 4.4.0 I like the most, since it has button
>> "Rescale", which I find very useful: when you do threshold to remove
>> extreme values from the view, the picture looses contrast, and you can
>> rescale the color again.
>>
>>  BUT in Paraview 5.2.0 I do not see "Rescale" button. So, after
>> "Threshold" all looks grayish & hard to understand what is what.
>>
>> I then would stick to Paraview 4.4.0, but it has another drawback or a
>> bug:
>> when I try to make visible Axas Grid & units, it works with 3D data sets
>> and 1D data sets (along one line), but does not work with 2D data sets.
>> Namely, it first appears, when I load the file, but after I click Glyph or
>> Threshold, the picture emerges, but the Axas Grid & units disapper! With
>> 3D/1D data it does not, and you can enjoy seeing your full geometry. But
>> not with 2D, and I now mostly work with 2D  data. Paraview 5.2.0 has no
>> such problem.
>>
>> SUMMARY:
>> Paraview 5.2.0 allows seeing Axas Grid & units, but does not allow
>> Rescale color.
>> Paraview 4.4.0 does not allow seeing Axas Grid & units with 2D data, but
>> allows Rescale.
>>
>> Is there a way to enjoy both?
>>
>> Thank you,
>>
>> Sonya Davydycheva 
>> (713)498-6139
>>
>>
>> On Mon, Oct 9, 2017 at 1:54 PM, Scott, W Alan  wrote:
>>
>>> Sonya,
>>>
>>> If nothing else works, use ParaView 4.4.0.  That release is a workhorse,
>>> and was the version before we updated OpenGL requirements.
>>>
>>>
>>>
>>> Alan
>>>
>>>
>>>
>>>
>>>
>>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Sonya
>>> Davydycheva
>>> *Sent:* Monday, October 9, 2017 9:53 AM
>>> *To:* Quammen, Cory (External Contacts) 
>>> *Cc:* ParaView 
>>> *Subject:* [EXTERNAL] Re: [Paraview] Paraview 5.4.1 error message &
>>> freeze
>>>
>>>
>>>
>>> Hello Cory & Paraview team,
>>>
>>>
>>>
>>> I am just giving below a SUMMARY on the errors I encountered while
>>> working with ParaView.
>>>
>>>
>>>
>>> Version 4.0.1 installed on my old (2013) 64-bit Toshiba laptop under
>>> Windows 7: works fine, shows images for model.vtk & glyph for data.vtk;
>>> does not freeze.
>>>
>>>
>>>
>>> Version 5.4.1 just DOES NOT install on my old (2013) Toshiba laptop.
>>>
>>>
>>>
>>> Version 4.0.1 installed on a new (2016) Dell laptop under Windows 7:
>>> shows images for model.vtk & glyph for data.vtk, but freezes while
>>> attempting to do full screen or just to drug the screen edge in order to
>>> increase screen with the following diagnostics:
>>>
>>> 
>>>
>>> Output messages
>>>
>>> QWidget:: repaint: Recursive repaint detected.
>>>
>>> -
>>>
>>>
>>>
>>> Version 5.4.1 installed on a 2016 Dell laptop under Windows 7: shows
>>> images for model.vtk, BUT glyph for data.vtk STAYS EMPTY, and the
>>> application ALSO freezes while attempting to do full screen or just to drug
>>> the screen edge in order to increase screen, with no diagnostics.
>>>
>>>
>>>
>>> - - - - - - -
>>>
>>> So, for now I have to continue working with version 4.0.1, and it is
>>> fine, so far, for the learning purpose. To prevent freezing, I simply avoid
>>> to increase screen / full screen.
>>>
>>>
>>>
>>> The  version 4.0.1 was my random choice, just the first version I saw
>>> available for 64-bit system.
>>>
>>> Would you recommend for me to try any newer version?
>>>
>>>
>>>
>>> Many thanks for your help,
>>>
>>>
>>>
>>> Sonya Davydycheva
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Oct 4, 2017 at 7:29 PM, Sonya Davydycheva 
>>> wrote:
>>>
>>> Cory,
>>>
>>>
>>>
>>> The Glyph works just fine with my data.vtk and is very useful tool! It
>>> was a good advice.
>>>
>>>
>>>
>>> As to not-responding and freezing of ParaView: let me accumulate
>>> statistics and then I will let you know.
>>>
>>>
>>>
>>> I appreciate your help,
>>>
>>>
>>> Sonya Davydycheva
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Oct 4, 2017 at 6:27 PM, Cory Quammen 
>>> wrote:
>>>
>>> [cc'ing to the paraview mailing list so others may contribute to and
>>> benefit from the discussion]
>>>
>>>
>>>
>>> On Tue, Oct 3, 2017 at 3:44 PM, Sonya Davydycheva 

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

2017-10-23 Thread Léo Pessanha
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


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

2017-10-23 Thread Léo Pessanha
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


[Paraview] Script for exporting multiple scenes

2017-10-23 Thread Ing. Claudio Pascarelli
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


Re: [Paraview] Rescale & axes grid tricks

2017-10-23 Thread Cory Quammen
Sonya,

ParaView 5.2.0 does have a "Rescale" color map feature. It is circled in
red here:

[image: Inline image 1]

Best regards,
Cory

On Mon, Oct 23, 2017 at 8:09 AM, Sonya Davydycheva  wrote:

> Cory, Alan and all ParaView experts,
>
> I keep playing with two versions of Paraview following your kind advice,
> thanks (see below, on Paraview 5.4.1 error message & freeze).
>
> The earlier versions freeze sometimes as well, but I found a way to
> isolate and avoid the bug (I just avoid making full screen or draw the
> screen edges).
>
> The recommended Paraview 4.4.0 I like the most, since it has button
> "Rescale", which I find very useful: when you do threshold to remove
> extreme values from the view, the picture looses contrast, and you can
> rescale the color again.
>
>  BUT in Paraview 5.2.0 I do not see "Rescale" button. So, after
> "Threshold" all looks grayish & hard to understand what is what.
>
> I then would stick to Paraview 4.4.0, but it has another drawback or a bug:
> when I try to make visible Axas Grid & units, it works with 3D data sets
> and 1D data sets (along one line), but does not work with 2D data sets.
> Namely, it first appears, when I load the file, but after I click Glyph or
> Threshold, the picture emerges, but the Axas Grid & units disapper! With
> 3D/1D data it does not, and you can enjoy seeing your full geometry. But
> not with 2D, and I now mostly work with 2D  data. Paraview 5.2.0 has no
> such problem.
>
> SUMMARY:
> Paraview 5.2.0 allows seeing Axas Grid & units, but does not allow Rescale
> color.
> Paraview 4.4.0 does not allow seeing Axas Grid & units with 2D data, but
> allows Rescale.
>
> Is there a way to enjoy both?
>
> Thank you,
>
> Sonya Davydycheva 
> (713)498-6139
>
>
> On Mon, Oct 9, 2017 at 1:54 PM, Scott, W Alan  wrote:
>
>> Sonya,
>>
>> If nothing else works, use ParaView 4.4.0.  That release is a workhorse,
>> and was the version before we updated OpenGL requirements.
>>
>>
>>
>> Alan
>>
>>
>>
>>
>>
>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Sonya
>> Davydycheva
>> *Sent:* Monday, October 9, 2017 9:53 AM
>> *To:* Quammen, Cory (External Contacts) 
>> *Cc:* ParaView 
>> *Subject:* [EXTERNAL] Re: [Paraview] Paraview 5.4.1 error message &
>> freeze
>>
>>
>>
>> Hello Cory & Paraview team,
>>
>>
>>
>> I am just giving below a SUMMARY on the errors I encountered while
>> working with ParaView.
>>
>>
>>
>> Version 4.0.1 installed on my old (2013) 64-bit Toshiba laptop under
>> Windows 7: works fine, shows images for model.vtk & glyph for data.vtk;
>> does not freeze.
>>
>>
>>
>> Version 5.4.1 just DOES NOT install on my old (2013) Toshiba laptop.
>>
>>
>>
>> Version 4.0.1 installed on a new (2016) Dell laptop under Windows 7:
>> shows images for model.vtk & glyph for data.vtk, but freezes while
>> attempting to do full screen or just to drug the screen edge in order to
>> increase screen with the following diagnostics:
>>
>> 
>>
>> Output messages
>>
>> QWidget:: repaint: Recursive repaint detected.
>>
>> -
>>
>>
>>
>> Version 5.4.1 installed on a 2016 Dell laptop under Windows 7: shows
>> images for model.vtk, BUT glyph for data.vtk STAYS EMPTY, and the
>> application ALSO freezes while attempting to do full screen or just to drug
>> the screen edge in order to increase screen, with no diagnostics.
>>
>>
>>
>> - - - - - - -
>>
>> So, for now I have to continue working with version 4.0.1, and it is
>> fine, so far, for the learning purpose. To prevent freezing, I simply avoid
>> to increase screen / full screen.
>>
>>
>>
>> The  version 4.0.1 was my random choice, just the first version I saw
>> available for 64-bit system.
>>
>> Would you recommend for me to try any newer version?
>>
>>
>>
>> Many thanks for your help,
>>
>>
>>
>> Sonya Davydycheva
>>
>>
>>
>>
>>
>> On Wed, Oct 4, 2017 at 7:29 PM, Sonya Davydycheva 
>> wrote:
>>
>> Cory,
>>
>>
>>
>> The Glyph works just fine with my data.vtk and is very useful tool! It
>> was a good advice.
>>
>>
>>
>> As to not-responding and freezing of ParaView: let me accumulate
>> statistics and then I will let you know.
>>
>>
>>
>> I appreciate your help,
>>
>>
>> Sonya Davydycheva
>>
>>
>>
>>
>>
>> On Wed, Oct 4, 2017 at 6:27 PM, Cory Quammen 
>> wrote:
>>
>> [cc'ing to the paraview mailing list so others may contribute to and
>> benefit from the discussion]
>>
>>
>>
>> On Tue, Oct 3, 2017 at 3:44 PM, Sonya Davydycheva 
>> wrote:
>>
>> Thank you Cory,
>>
>>
>>
>> For your prompt response. Good to know that the message is harmless.
>>
>>
>>
>> My Paraview 5.4.1 just stops responding sometimes.
>>
>>
>>
>> If it stops responding consistently after a specific event or sequence of
>> events, please let us know. It shouldn't do that :-)
>>
>>
>>
>> But, well, I installed on another 

[Paraview] Rescale & axes grid tricks

2017-10-23 Thread Sonya Davydycheva
Cory, Alan and all ParaView experts,

I keep playing with two versions of Paraview following your kind advice,
thanks (see below, on Paraview 5.4.1 error message & freeze).

The earlier versions freeze sometimes as well, but I found a way to isolate
and avoid the bug (I just avoid making full screen or draw the screen
edges).

The recommended Paraview 4.4.0 I like the most, since it has button
"Rescale", which I find very useful: when you do threshold to remove
extreme values from the view, the picture looses contrast, and you can
rescale the color again.

 BUT in Paraview 5.2.0 I do not see "Rescale" button. So, after "Threshold"
all looks grayish & hard to understand what is what.

I then would stick to Paraview 4.4.0, but it has another drawback or a bug:
when I try to make visible Axas Grid & units, it works with 3D data sets
and 1D data sets (along one line), but does not work with 2D data sets.
Namely, it first appears, when I load the file, but after I click Glyph or
Threshold, the picture emerges, but the Axas Grid & units disapper! With
3D/1D data it does not, and you can enjoy seeing your full geometry. But
not with 2D, and I now mostly work with 2D  data. Paraview 5.2.0 has no
such problem.

SUMMARY:
Paraview 5.2.0 allows seeing Axas Grid & units, but does not allow Rescale
color.
Paraview 4.4.0 does not allow seeing Axas Grid & units with 2D data, but
allows Rescale.

Is there a way to enjoy both?

Thank you,

Sonya Davydycheva 
(713)498-6139


On Mon, Oct 9, 2017 at 1:54 PM, Scott, W Alan  wrote:

> Sonya,
>
> If nothing else works, use ParaView 4.4.0.  That release is a workhorse,
> and was the version before we updated OpenGL requirements.
>
>
>
> Alan
>
>
>
>
>
> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Sonya
> Davydycheva
> *Sent:* Monday, October 9, 2017 9:53 AM
> *To:* Quammen, Cory (External Contacts) 
> *Cc:* ParaView 
> *Subject:* [EXTERNAL] Re: [Paraview] Paraview 5.4.1 error message & freeze
>
>
>
> Hello Cory & Paraview team,
>
>
>
> I am just giving below a SUMMARY on the errors I encountered while working
> with ParaView.
>
>
>
> Version 4.0.1 installed on my old (2013) 64-bit Toshiba laptop under
> Windows 7: works fine, shows images for model.vtk & glyph for data.vtk;
> does not freeze.
>
>
>
> Version 5.4.1 just DOES NOT install on my old (2013) Toshiba laptop.
>
>
>
> Version 4.0.1 installed on a new (2016) Dell laptop under Windows 7: shows
> images for model.vtk & glyph for data.vtk, but freezes while attempting to
> do full screen or just to drug the screen edge in order to increase screen
> with the following diagnostics:
>
> 
>
> Output messages
>
> QWidget:: repaint: Recursive repaint detected.
>
> -
>
>
>
> Version 5.4.1 installed on a 2016 Dell laptop under Windows 7: shows
> images for model.vtk, BUT glyph for data.vtk STAYS EMPTY, and the
> application ALSO freezes while attempting to do full screen or just to drug
> the screen edge in order to increase screen, with no diagnostics.
>
>
>
> - - - - - - -
>
> So, for now I have to continue working with version 4.0.1, and it is fine,
> so far, for the learning purpose. To prevent freezing, I simply avoid to
> increase screen / full screen.
>
>
>
> The  version 4.0.1 was my random choice, just the first version I saw
> available for 64-bit system.
>
> Would you recommend for me to try any newer version?
>
>
>
> Many thanks for your help,
>
>
>
> Sonya Davydycheva
>
>
>
>
>
> On Wed, Oct 4, 2017 at 7:29 PM, Sonya Davydycheva 
> wrote:
>
> Cory,
>
>
>
> The Glyph works just fine with my data.vtk and is very useful tool! It was
> a good advice.
>
>
>
> As to not-responding and freezing of ParaView: let me accumulate
> statistics and then I will let you know.
>
>
>
> I appreciate your help,
>
>
> Sonya Davydycheva
>
>
>
>
>
> On Wed, Oct 4, 2017 at 6:27 PM, Cory Quammen 
> wrote:
>
> [cc'ing to the paraview mailing list so others may contribute to and
> benefit from the discussion]
>
>
>
> On Tue, Oct 3, 2017 at 3:44 PM, Sonya Davydycheva 
> wrote:
>
> Thank you Cory,
>
>
>
> For your prompt response. Good to know that the message is harmless.
>
>
>
> My Paraview 5.4.1 just stops responding sometimes.
>
>
>
> If it stops responding consistently after a specific event or sequence of
> events, please let us know. It shouldn't do that :-)
>
>
>
> But, well, I installed on another (older) laptop an older version, 4.0.1
> (5.4.1 did not work there), and it does not freeze. So far, I think it is
> ok for my learning purpose.
>
>
>
> Very good.
>
>
>
> Both versions (on both computers) allow me to visualize my sample
> model.vtk file: in RenderView I can do Threshold, Slice and Clip and see
> some 3D pictures. But something is wrong with my other sample data.vtk file
> (or, with my approach?). It contains 

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

2017-10-23 Thread A .
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


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

2017-10-23 Thread Andrew
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