Re: [Paraview] How to give Python access to a Plugin

2016-02-09 Thread Utkarsh Ayachit
> I don't seem to be able to access properties in the VRPlugin from a Python 
> source or filter. I can see other Plugins in the Python Shell (if I load the 
> plugin before opening the shell for the first time), but only filter or 
> source plugins. Is this related to the .xml file in some plugin source 
> directories?

ParaView doesn't provide access all the classes for access in Python
only filters/sources etc. The VR plugin doesn't have any of these are
is primarily implemented using GUI level code and hence you don't have
access to anything from the VR plugin in Python.


> I ultimately want to allow a VR CAVE user to select points in 3D space with a 
> tracked device, much like the "Interactive Select Points On" feature in the 
> GUI in 4.4.0 and later. If anybody has suggestions for how to do this, I 
> would be appreciative.

A good approach would be to create a new interactor style (by
subclassing  vtkVRInteractorStyle  similar to
vtkVRControlSliceOrientationStyle, vtkVRGrabWorldStyle etc.) to handle
the tracker event to then do the work for picking and showing pick
information.

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] ParaView Binary Installer 5.0 - Linux 64 bit - Scene Export : SVG, EPS and PDF formats missing

2016-02-09 Thread David Lonie
On Tue, Feb 9, 2016 at 11:59 AM, Tomislav Maric  wrote:
> I am using ParaView 5.0 from the 64 bit binary installer on on Arch
> Linux. When I click on File->Export Scene, I can't find the SVG, EPS and
> PDF formats.

Due to differences in the OpenGL features available to the VTK OpenGL2
backend (in particular, the deprecation of the feedback render mode),
the GL2PS exporter was not compatible with builds of ParaView that
used the new backend, such as the 5.0 release.

I've recently made some changes to gl2ps and our exporter that allow
vector export to work again, although with reduced functionality. The
new (OpenGL2) GL2PS exporter will only export the following as vector
graphics:
- Charts, etc (anything drawn via the vtkContext2D interface)
- 2D Text (as native text objects or generic path objects; see
vtkGL2PSExporter::TextAsPath)
- 2D MathText (always as path objects)
- 3D Text (always as path objects)

All other rendered objects (including polygonal data previously
exported as vectors by the old backend) will be rasterized to the
image's background.

This should be available in the next paraview release. In the
meantime, builds of ParaView that use the OpenGL VTK backend will
still have the old implementation of the exporter available.

Hope this helps,
Dave
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] Cylinder axis for slices spatially limited within bounding box

2016-02-09 Thread Felix Raynaud
Hi there, 
I've just tried the new slice type "cylinder" and can observe a strange 
behaviour (bug?).
I'm post-processing a one-sector jet engine turbine and the engine axis is 
"far away" from the visible geometry and thus outside its bounding box. I'd 
like to make a cylinder-slice whose axis is the engine axis and radius 
something between turbine hub and shroud radius. And it's impossible... The 
resulting cylinder axis stays fixed on one face of the bounding box!
Does somebody observe the same behaviour ? Is there a workaround?
Tanks for your help!
Felix

___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] Parallel unfriendly filters?

2016-02-09 Thread Dan Lipsa
>
>
>
> Cell Data to Point Data is the only way I know of to activate the contour
> filter for silo files.  The results are stored in cell arrays, which
> apparently don't activate the contour filter.  I stumbled upon using Cell
> Data to Point Data by accident, so if there's a better way to do this, I'm
> open to it.
>

I see. I would go with Ken's suggestions, then.  I would also create a new
array called  'vtkGhostType' from 'avtGhostZones'. You could do that
instead of thresholding out the ghost zones. VTK knows about vtkGhostType
name. I think you could leave those in as they should not be rendered.

You can create the new array from avtGhostZone using the Calculator filter.

Dan
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] Antivirus Quarantining paraview.exe

2016-02-09 Thread Nicholas Jenkins
Has anybody experienced this issue? My Panda Antivirus keeps quarantining
paraview.exe as soon as I install it.

I'm not sure if they are using a script sequence that is picked up as
malicious, or it's actually infected?

I'm on Windows 7 64-bit, and installing the latest stable version.

Thanks.

Nick Jenkins
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] Building a stress tensor to compute eigenvalues and eigenvectors

2016-02-09 Thread Rémy Mercenier
Hello, 

I would like to compute the eigenvalues/eigenvectors of a stress tensor using 
either the python calculator or the tensor glyph filter. However, as far as i 
understand, i need to have 3D matrices to use these filters but when reading my 
exodusII file in paraview, i get each stress component as a single variable. 
Would there be a way to group these variables into a 3D tensor within paraview?

Also, i renamed the stress components to have sxx, sxy, sxz, syx, syy, syz, 
szx, szy, szz notations but this gave me 3 vectors sx, sy and sz when i opened 
the exodusII file in paraview instead of one vector s containing all the stress 
components.   

Thank you for your help,
Rémy Mercenier
PhD student
  ___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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 Binary Installer 5.0 - Linux 64 bit - Scene Export : SVG, EPS and PDF formats missing

2016-02-09 Thread Tomislav Maric
Hello everyone,

I am using ParaView 5.0 from the 64 bit binary installer on on Arch
Linux. When I click on File->Export Scene, I can't find the SVG, EPS and
PDF formats.

Is the pre-built binary not linked against gl2ps
(http://www.paraview.org/Wiki/ParaView/Vector_Graphics_Export) ?

Do I need to define an environmental variable apart from extending PATH
to the location of the ParaView binary?

Thank you!

Tomislav
___
Powered by www.kitware.com

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

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

2016-02-09 Thread Burlen Loring
A fresh clone as of midday yesterday PV client fails to launch with the 
below error. I enabled mpi and python, everything else is default value.


libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: BadValue (integer parameter out of range for operation) 2
  Extension:153 (Uknown extension)
  Minor opcode: 3 (Unknown request)
  Resource id:  0x0

apparently ParaView's attempting to load swrast,  a mesa renderer, 
although I have nvidia gpu and drivers. I also tried the OpenGL2 backend 
and encountered the same error. To work around this I manually located 
the nvidia headers and opengl library and forced cmake to use those.


I'm not sure if you want to call this a bug in ParaView or the CMake 
find opengl module. But ParaView should probably correctly detect and 
use nvidia drivers, and ignore mesa drivers, which are likely present on 
every system no matter if third party gpu/driver is installed or not.


Burlen


___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] Cylinder axis for slices spatially limited within bounding box

2016-02-09 Thread Scott, W Alan
Felix,
Complicated answer to a simple question.  Here goes.

The cylinder slice and clip were added in 4.4.0.  The error you ask about below 
is in ParaView 4.4.0.  It was fixed for PV 5.0.0.  You may want to upgrade to 
ParaView 5.0.0.  However, in researching this issue, I did find a few annoying 
issues, and wrote up bugs.  They are here:  
http://www.paraview.org/Bug/view.php?id=15985 and  
http://www.paraview.org/Bug/view.php?id=15984.  Fixes are scheduled for next 
summer.

Alan

-Original Message-
From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Felix Raynaud
Sent: Tuesday, February 09, 2016 7:32 AM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] Cylinder axis for slices spatially limited 
within bounding box

Hi there,
I've just tried the new slice type "cylinder" and can observe a strange 
behaviour (bug?).
I'm post-processing a one-sector jet engine turbine and the engine axis is "far 
away" from the visible geometry and thus outside its bounding box. I'd like to 
make a cylinder-slice whose axis is the engine axis and radius something 
between turbine hub and shroud radius. And it's impossible... The resulting 
cylinder axis stays fixed on one face of the bounding box!
Does somebody observe the same behaviour ? Is there a workaround?
Tanks for your help!
Felix

___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] Periodicity aware streamline?

2016-02-09 Thread Tim Gallagher
Hi,

I have a simulation that is periodic in 2 of the 3 directions and I would like 
to plot some streamlines coming from specific points in the domain. Some of 
these points are close to one of the periodic edges. 

Is there a way to tell Paraview that the domain is periodic and that streamline 
integration can continue from the opposite face? 

Thanks,

Tim
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView 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] How to uncheck Map Scalars using ParaView Python console

2016-02-09 Thread Tias Maiti
Hi,

I am trying to set RGB color based on a data with 3 components. Unchecking "Map 
Scalars" checkbox under Scalar coloring does the trick in GUI mode. Is there a 
way to do it using pvpython (scripts) ?

How do I set up the lookup table to do the same thing ?

Thanks,
Tias

———
Tias Maiti
Research Assistant
Computational Material Mechanics
Michigan State 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


Re: [Paraview] How to uncheck Map Scalars using ParaView Python console

2016-02-09 Thread Cory Quammen
Tias,

Sure, there is, and it's easy to find out how. Under the Tools menu,
choose, Start Trace. In the dialog box that appears, click OK. Now
uncheck the Map Scalars checkbox in your pipeline object. Stop the
trace by selecting Stop Trace in the Tools menu.

Doing this for a simple sphere source, the trace gives:

# get active source.
sphere1 = GetActiveSource()

# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [684, 597]

# get display properties
sphere1Display = GetDisplayProperties(sphere1, view=renderView1)

# Properties modified on sphere1Display
sphere1Display.MapScalars = 0

This last line gets you what you want.

HTH,
Cory

On Tue, Feb 9, 2016 at 7:08 PM, Tias Maiti  wrote:
> Hi,
>
> I am trying to set RGB color based on a data with 3 components. Unchecking 
> "Map Scalars" checkbox under Scalar coloring does the trick in GUI mode. Is 
> there a way to do it using pvpython (scripts) ?
>
> How do I set up the lookup table to do the same thing ?
>
> Thanks,
> Tias
>
> ———
> Tias Maiti
> Research Assistant
> Computational Material Mechanics
> Michigan State 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



-- 
Cory Quammen
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


[Paraview] Combining files in an animation

2016-02-09 Thread Salazar De Troya, Miguel
Hello

Newbie here, hopefully my question is not too obvious. I have two .e files from 
two consecutive optimization iterations. I want to show how the results evolve 
from one iteration to the next with an animation. What I did was to add the two 
files in the animation and modify the field Opacity from 1 to 0 for the first 
iteration and from 0 to 1 for the second one during the same time span from 0 
to 1. Both with a Ramp interpolation. I would like to see that transition 
combined. Instead of having a value of 0.5 for both files at time 0.5, I would 
like to have an overall result of 1. Is it possible to add the Opacities and 
have that represented in the Animation?

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