Re: [Paraview] Visualize equdistant cell-centered data

2018-02-08 Thread Cory Quammen
Henrik,

I believe I understand what you are trying to do. However, there is nothing
available in ParaView to do this simply.

You could use the Programmable Filter to create a new structured grid with
the C+1 number of points in each dimension and then set the point data
array in the C-sized grid to be a cell data array in the (C+1)-sized grid.
The data layout is such that that should work. However, you will need to
set up the points manually.

Hope that helps,
Cory

On Thu, Feb 8, 2018 at 5:42 AM, Buesing, Henrik <
hbues...@eonerc.rwth-aachen.de> wrote:

> Ok. Let me rephrase my question. Maybe someone speaks Matlab? Full Matlab
> Code below (see [1]).
>
>
>
> Let’s assume I have a 2x2 matrix with color values C=[1 2; 3 4]. Now I can
> visualize this matrix with on a 2x2 grid with surf in Matlab. What I get is
> one square with the color values on each node (see Case 1 in the Matlab
> code). This is what Paraview does!
>
>
>
> What I want is the following: I define a new grid, which is 3x3. So one
> value more in each direction than I have color values. On this grid the
> color values live cell-centered. If I now visualize this in Matlab, I get a
> 2x2 block matrix with color values from 1-4. This is what I want!
>
>
>
> To sum up: I want to keep my color values, but I want to define a new
> cell-centered grid (with size(C,1)+1) where these color values live on. Is
> this somehow possible in Paraview?
>
> Thank you!
> Henrik
>
>
>
>
>
>
>
> [1]
>
>
>
> % Full Matlab Code to visualize the two cases.
>
>
>
> C = [1 2; 3 4];
>
>
>
> % Case 1
>
> x=linspace(0,1,size(C,1));
>
> y=x;
>
> [X,Y]=meshgrid(x,y);
>
> Z=zeros(size(C));
>
> figure;surf(X,Y,Z,C);shading interp;view(0,90);
>
> colorbar
>
>
>
> % Case 2
>
> x=linspace(0,1,size(C,1)+1);
>
> y=x;
>
> [X,Y]=meshgrid(x,y);
>
> Z=zeros(size(C)+1);
>
> figure;surf(X,Y,Z,C);shading flat;view(0,90);
>
> colorbar
>
>
>
> --
>
> Dipl.-Math. Henrik Büsing
>
> Institute for Applied Geophysics and Geothermal Energy
>
> E.ON Energy Research Center
>
> RWTH Aachen University
>
>
>
> Mathieustr. 10| Tel +49 (0)241 80 49907 <+49%20241%208049907>
>
> 52074 Aachen, Germany | Fax +49 (0)241 80 49889 <+49%20241%208049889>
>
>
>
> http://www.eonerc.rwth-aachen.de/GGE
>
> hbues...@eonerc.rwth-aachen.de
>
>
>
> *Von:* ParaView [mailto:paraview-boun...@paraview.org] *Im Auftrag von 
> *Buesing,
> Henrik
> *Gesendet:* Freitag, 19. Januar 2018 21:13
> *An:* paraview@paraview.org
> *Betreff:* [Paraview] Visualize equdistant cell-centered data
>
>
>
> Dear all,
>
>
>
> I have a “Structured (Curvilinear) Grid” (*.vts), which gets read in as
> 314531 cells and 33 points. I would like to tell Paraview that this is
> equidistant cell-centered data (33 cells). I want every cell to get one
> color, such that color interpolation becomes correct.
>
>
>
> Can I somehow convert the data I have?
>
>
>
> Thank you!
> Henrik Büsing
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] FEM solver interfaced with Paraview

2018-02-05 Thread Cory Quammen
[snip]

> Some of the following questions have probably ever been asked, but:
>
> What is the best format to create a result file readable by Paraview,
> especially for huge file? after some readings, VTK XML format seems to be
> the most interesting (parallelization capabilities) compared to the legacy
> VTK one, am I right or do ou have any other suggestion?

You are right, the VTK XML file formats are quite capable; I would
avoid the legacy formats.

> I’m still trying to figure out if xdmf and/or hdf5 format are relevant, and
> if they are relevant for my application: any feedback on it?
>
Personally, having worked with writing to both types of data sets, I
would choose VTK XML over XDMF.
>
> The workflow I’m imaginating sounds like:
>
>
> Intermediate calculations
> ^
> |
>
> Raw data (ascii file) from my solver --> intermediate file in xdmf or hdf5
> format --> Paraview input file (depending on the reader)

If you choose to ultimately write out to VTK XML files, I would skip
the intermediate file writing step.

HTH,
Cory

>
> Any feedback, advice and suggestion will be highly appreciated
>
> (I’m quite new with Paraview)
>
>
> Regards
>
>
> Paul
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://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


Re: [Paraview] Scaling cylinder glyph's radius and height individually

2018-02-02 Thread Cory Quammen
Ahmad,

First, I recommend that you try loading your plugin in the ParaView
UI, using the ParaView that you built your plugin against. Then, in
Tools -> Manage Plugins. Click on Load New... and select the file
libvtkPVGlyphFilterP.so. You should now be able to find your filter
GlyphP in the Filters menu.

Second, to instantiate the filter the way you are trying is correct,
but first you need to load the plugin. I believe you can do it this
way:

vtkSMPluginManager::LoadLocalPlugin("//libvtkPVGlyphFilterP.so");

HTH,
Cory



On Thu, Feb 1, 2018 at 1:12 PM, Ahmad . <super_ac...@hotmail.com> wrote:
> Sorry about that Cory; will keep this in the mailing list.
>
>
> I have tried to implement your suggestion, and now I have generated a plugin
> file "libvtkPVGlyphFilterP.so".
>
> Please find the files I used to create this plugin in the attachment.
>
>
> What I did after compiling the plugin:
>
>
> Try to use the new class I made, like such:
> `session_manager_->NewProxy("filters", "GlyphP")));`
> where GlyphP is what I called my custom glyph filter (see the xml file in
> the attachment).
> Compile my application against "libvtkPVGlyphFilterP.so".
> Run my application and get the following error:
>
>
> ERROR: In
> /home/ahmad/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx,
> line 526
> vtkSIProxyDefinitionManager (0x294d320): No proxy that matches:
> group=filters and proxy=GlyphP were found.
>
> I feel like I am missing an important step, which has to do with the XML
> file, but I don't know how.
>
> In the Plugin Wiki of ParaView the instructions I find after compiling are:
> Then using cmake and a build system, one can build a plugin for this new
> filter. Once this plugin is loaded the filter will appear under the
> "Alphabetical" list in the Filters menu.
> There are no instructions on how to use the new class in a C++ pipeline...
>
> Any pointers on this?
>
> Best,
> Ahmad
>
> 
> Van: Cory Quammen <cory.quam...@kitware.com>
> Verzonden: vrijdag 19 januari 2018 16:59
> Aan: Ahmad .; ParaView
>
> Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height
> individually
>
> Ahmad,
>
> Please keep replies on the mailing list. Responses are inlined.
>
> On Tue, Jan 16, 2018 at 9:25 AM, Ahmad . <super_ac...@hotmail.com> wrote:
>
> Hi Cory,
>
>
> Thanks for your reply.
>
>
> I am trying to implement your suggestion of extending the vtkGlyph3D with
> this additional "scaling by normals".
>
> The idea seems quite straightforward. I was just wondering how to
> incorporate this new class in my C++ pipeline.
>
> Currently I create the glyph, and set its properties, like this:
>
>
> vtkSmartPointer glyph;
> glyph.TakeReference(vtkSMSourceProxy::SafeDownCast(
> session_manager_->NewProxy("filters", "Glyph")));
> controller_->PreInitializeProxy(glyph);
>
> vtkSMPropertyHelper(glyph, "Input").Set(producer);
> vtkSMPropertyHelper(glyph, "Source").Set(GetCylinderSource(glyph));
> vtkSMPropertyHelper(glyph, "ScaleMode", true).Set(0);
> vtkSMPropertyHelper(glyph, "ScaleFactor", true).Set(1.0);
> vtkSMPropertyHelper(glyph, "GlyphMode", true).Set(0);
>
> As you can see I am not directly working with vtkGlyph3D or vtkPVGlyphFilter
> classes, but I am using the vtkSMPropertyHelper to take care of the
> boilerplate code.
>
>
> Right. Unfortunately, implementing my suggestion would require creating a
> subclass of vtkPVGlyphFilter and importing that with a ParaView plugin. See
> the ParaView Howto on how to add a filter to ParaView.
>
> After I created a new class that has this extra scaling option, how would I
> go about using this in such a pipeline? Do I need to 'register' my
> "ModifiedGlyph" to the filter proxies to be able to do something like
> `NewProxy("filters", "ModifiedGlyph")`?
>
>
> Yes, that should do it. Your modified glyph class will be available once
> you've imported the ParaView plugin mentioned above.
>
> A quick question about setting the active normals. Is there an existing way
> to do this, or would I need to do this myself? I would like to do this the
> same way one would set the "Scalars":
>
>
> vtkSMPropertyHelper(glyph, "Normals")
> .SetInputArrayToProcess(vtkDataObject::POINT, "ScalingArray");
>
>
> I think that should work.
>
> Best,
> Cory
>
>
> Looking forward to your reply.
>
>

Re: [Paraview] [EXTERNAL] Re: Make animation from steady state result

2018-02-02 Thread Cory Quammen
On Fri, Feb 2, 2018 at 4:44 AM, Andrew Parker
<andy.john.par...@googlemail.com> wrote:
> Cory,
>
> As a follow up.  Can I ask if it would be possible to do all that is
> suggested on Scott's page:
> https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field
>
> Along with all of your additional steps below from your last post (be great
> to add these to Scott's page), entirely in pvpython or pvbatch?  I make use
> of the anaconda version from here: https://anaconda.org/conda-forge/paraview
>
> Would it be possible do you think to script all of this? I have not tired it
> yet I should add just checking for show stoppers before I begin.

I don't foresee any showstoppers. To make scripting easier, use the
Python tracing capability within the ParaView GUI. Tools menu -> Start
Trace, then perform the suggested actions. When done, choose Tools ->
Stop Trace, and you will see a dialog with the generated script that
you can use as a starting point.

Thanks,
Cory

> Thanks,
> Andy
>
> On 19 January 2018 at 13:18, Cory Quammen <cory.quam...@kitware.com> wrote:
>>
>> Andrew,
>>
>> Responses inlined below:
>>
>> On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView
>> <paraview@paraview.org> wrote:
>> > Dear all,
>> >
>> > Sorry to post onto an old thread. I have been reading this thread and
>> > the
>> > related write up here:
>> >
>> > https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field
>> >
>> > This thread (and the tips and tricks post) is really close to what I
>> > want to
>> > do, but I have a few follow-up questions.  I too have a steady-state
>> > solution field. I want to trace particles from the inlet of my domain to
>> > the
>> > exit, following the steady-state velocity field, and report for each
>> > particle the temperature-time history (or any other scalar from my
>> > simulation) that the particle sees.  In additional and crucially, the
>> > time
>> > the particle has within the domain: a residence time.  The residence
>> > time
>> > would be the maximum value or IntegrationTime each particle attains
>> > before
>> > it leaves the domain.
>> >
>> > I see that if I follow the notes I can plot (using Glyphs) the
>> > temperature
>> > as it varies across my domain as the particles are animated down the
>> > streamlines: this is working.  What I do not seem to be able to find
>> > however, is the IntegrationTime.  It appears as point-field data after
>> > the
>> > streamlines are created, but vanishes after the contour filter is
>> > applied.
>> > I guess the contour filter is computing a singular value for all values
>> > of
>> > the IntegrationTime from T=0 to T=N with a specific level of
>> > granularity.
>>
>> By default, the Contour filter does not copy the scalar field used to
>> determine the contour surface since it will always be the same value.
>> You can tell it to copy the scalar field by enabling the Compute
>> Scalars option.
>>
>> > However, I can't seem to extract the specific value of IntegrationTime
>> > (the
>> > contour value) when I stop the simulation at any given point.  Do you
>> > know
>> > how to do that?  The "time" scale in the VCR window always goes from
>> > 0->1
>> > not from 0->(max value of IntegrationTime in seconds).  Can the actual
>> > value
>> > of time be backed out or animated? If so how do I do that, or am I
>> > applying
>> > the Contour filter wrongly: as per the post, I am only using the default
>> > values in the Counter filter panel.
>>
>> Instead of using the Sequence animation mode, use Real Time. Then, set
>> the Start Time to the minimum IntegrationTime value and End Time to
>> the maximum IntegrationTime value. You can see these listed either in
>> the Information tab of the StreamTracer filter in the Pipeline Browser
>> or under the Contour filter's Property tab under the Isosurfaces
>> section (Value Range). To show the current time in the render view,
>> use an Annotate Time source, available in the Sources menu.
>>
>> > Finally, and importantly for me, while the Glyphs move across the screen
>> > following the streamlines, and render via the temperature field, how to
>> > I
>> > actually extract information from this pseudo time series to perform
>> > analysis?  For example, the min and max temperature seen

Re: [Paraview] Can I generate a single file that contains data and filter settings?

2018-02-01 Thread Cory Quammen
On Wed, Jan 31, 2018 at 4:51 PM, Wyatt Spear <wsp...@cs.uoregon.edu> wrote:
> The data that I'm generating has a set of scalar values for every point in
> the 2D matrix, so a single data row looks like
> xcoord, ycoord, zcord(probably superfluous), scalar1, scalar2,...scalarN
> Since the data in your example is being rendered as an image directly I'm
> not sure how I could incorporate different scalar data which can be selected
> from the UI, as I can when running the table-to-points filter on a loaded
> CSV file.

Ah, I assumed your data was on a regular grid. I've modified the
example to set up a vtkPolyData instead to hold an unstructured set of
points. I have also shown how to add multiple arrays to the data set.
Just treat each scalar column you have as an array.

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

# Create a 2D image data object
from paraview import vtk
vtk_poly_data = vtk.vtkPolyData()
points = vtk.vtkPoints()
points.SetNumberOfPoints(200)
vtk_poly_data.SetPoints(points)

# Wrap data in numpy interface
from vtk.numpy_interface import dataset_adapter as dsa
poly_data = dsa.WrapDataObject(vtk_poly_data)

# Create numpy array. Set your data here
import numpy as np
x_coords = np.zeros(200) # zeros is just a stand-in for your actual data
y_coords = np.ones(200)
z_coords = np.zeros(200)

poly_data.Points[:,0] = x_coords
poly_data.Points[:,1] = y_coords
poly_data.Points[:,2] = z_coords

# Set the data in the image object
scalar1 = np.random.rand(200)
poly_data.PointData.append(scalar1, 'scalar1')
scalar2 = np.random.rand(200)
poly_data.PointData.append(scalar2, 'scalar2')

# Now set up a ParaView proxy for the image data
tp = PVTrivialProducer()
tp.GetClientSideObject().SetOutput(vtk_poly_data)
Show(tp)


# Set up filters, display options, etc. below


> Is there a way to have a python macro cause ParaView to request a file
> selection through the UI? Then I could have this single macro loaded and it
> could process any CSV file I select.

No, there is no ParaView-provided way to do that. Maybe there is some
other way you can do that with a different Python module. Note,
though, that ParaView does not provide a Python module manager a la
pip, so consider doing that experimental.

Cheers,
Cory

> Thanks,
> Wyatt
>
> On Wed, Jan 31, 2018 at 8:23 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> Wyatt,
>>
>> Here's a simple script that sets up a 200 x 200 image data object like
>> you might use for displaying a heat map.
>>
>>  import the simple module from the paraview
>> from paraview.simple import *
>>  disable automatic camera reset on 'Show'
>> paraview.simple._DisableFirstRenderCameraReset()
>>
>> # Create a 2D image data object
>> from paraview import vtk
>> vtk_image = vtk.vtkImageData()
>> vtk_image.SetDimensions(200, 200, 1) # Your size may vary
>>
>> # Wrap data in numpy interface
>> from vtk.numpy_interface import dataset_adapter as dsa
>> image = dsa.WrapDataObject(vtk_image)
>>
>> # Create numpy array. Set your data here
>> import numpy as np
>> arr = np.zeros(200*200)
>>
>> # Set the data in the image object
>> image.PointData.append(arr, 'myarray')
>>
>> # Now set up a ParaView proxy for the image data
>> tp = PVTrivialProducer()
>> tp.GetClientSideObject().SetOutput(vtk_image)
>> Show(tp)
>>
>>
>> # Set up filters, display options, etc. below
>>
>>
>> You can modify it as needed to set up your data array as a numpy array.
>>
>> Hope that helps,
>> Cory
>>
>> On Mon, Jan 29, 2018 at 3:27 PM, Wyatt Spear <wsp...@cs.uoregon.edu>
>> wrote:
>> > I think the python scripting with embedded data is worth a try. I'm not
>> > familiar with the built-in vs other server modes so I'm not sure what
>> > kind
>> > of restrictions that entails.  Probably my ultimate goal is to build a
>> > reader plugin that will parse the data out of my application's native
>> > format
>> > but generating a script seems like a decent interim solution.
>> >
>> > Thanks,
>> > Wyatt
>> >
>> > On Mon, Jan 29, 2018 at 5:57 AM, Cory Quammen <cory.quam...@kitware.com>
>> > wrote:
>> >>
>> >> Wyatt,
>> >>
>> >> ParaView provides extensive Python scriptability. One solution is to
>> >> write out a Python script from your program. Within the Pythons
>> >> script, you set up the data, set up filters and modify visualization
>> >> settings just as you wish. On

Re: [Paraview] issue with savescreenshot in pvpython when having two renderviews

2018-01-31 Thread Cory Quammen
Hi Jens,

I was not able to reproduce the missing data in the bottom render view.

As for the legend size changing, I explained it and how to fix it in
your issue https://gitlab.kitware.com/paraview/paraview/issues/17938

Thanks,
Cory


On Wed, Jan 17, 2018 at 1:37 AM, Jens Dahl Kunoy
<jensdahlku...@gmail.com> wrote:
> Hi,
> I want to compare two vtk files by having two render views and dump these
> two renderviews into a single image file. The py script recorded by trace
> works from GUI but not from the command line using pvpython. Using pvpython
> the second renderview has no data and there is also other artefacts. You can
> see the difference in the attached two files.
>
> I put it up as an issue here:
> https://gitlab.kitware.com/paraview/paraview/issues/17938
>
> Any ideas?
>
> BR
> Jens
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Unexpected measurement appears in 5.4.1 but not 5.0.1

2018-01-31 Thread Cory Quammen
Ufuk,

Thanks for the report. Is there a reliable way to reproduce the
behavior that you can share?

Best,
Cory

On Wed, Jan 31, 2018 at 12:16 PM, Ufuk Turuncoglu
<u.utku.turunco...@be.itu.edu.tr> wrote:
> I don't know it is related or not. I have very similar behavior under 5.4.1. 
> If i save a state and load it later, Polar Axes show up and i need to disable 
> it from the properties panel. Somehow, ParaView loads Polar Axes even if it 
> is not activated in the original pipeline. It might help to find the source 
> of the issue.
>
> Best Regards,
>
> --ufuk
>
> ----- Original Message -
> From: "Cory Quammen" <cory.quam...@kitware.com>
> To: "Joe Ping-Lin Hsiao" <phs...@cs.unc.edu>
> Cc: "paraview" <paraview@paraview.org>
> Sent: Wednesday, January 31, 2018 6:44:45 PM
> Subject: Re: [Paraview] Unexpected measurement appears in 5.4.1 but not 5.0.1
>
> Hmm, that's weird. The Polar Axes should be off by default. Do the
> Polar Axes appear when creating a Sphere source?
>
> You should be able to force it off by adding the following line to the
> loadFile() function in your script:
>
> display.PolarAxes.Visibility = 0
>
> HTH,
> Cory
>
> On Tue, Jan 23, 2018 at 4:40 PM, Joe Ping-Lin Hsiao <phs...@cs.unc.edu> wrote:
>> Yes exactly.
>>
>> On Tue, Jan 23, 2018 at 3:47 PM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>>>
>>> Hi Joe,
>>>
>>> Are you referring to the circular (polar axes) in the image? It says
>>> 90.0 deg, 45.0 deg., etc.
>>>
>>> Thanks,
>>> Cory
>>>
>>> On Tue, Jan 23, 2018 at 3:31 PM, Joe Ping-Lin Hsiao <phs...@cs.unc.edu>
>>> wrote:
>>> > The attached image shows the unexpected measure with text. I tested two
>>> > versions of ParaView and it only happens in 5.4.1 but not 5.0.1.
>>> >
>>> > 180 stacks are loaded and set to volume rendering by my Python script,
>>> > which
>>> > is also attached.
>>> >
>>> > Thanks,
>>> > Joe
>>> >
>>> > ___
>>> > Powered by www.kitware.com
>>> >
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Please keep messages on-topic and check the ParaView 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.
>>
>>
>
>
>
> --
> 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



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


Re: [Paraview] Can I generate a single file that contains data and filter settings?

2018-01-31 Thread Cory Quammen
Wyatt,

Here's a simple script that sets up a 200 x 200 image data object like
you might use for displaying a heat map.

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

# Create a 2D image data object
from paraview import vtk
vtk_image = vtk.vtkImageData()
vtk_image.SetDimensions(200, 200, 1) # Your size may vary

# Wrap data in numpy interface
from vtk.numpy_interface import dataset_adapter as dsa
image = dsa.WrapDataObject(vtk_image)

# Create numpy array. Set your data here
import numpy as np
arr = np.zeros(200*200)

# Set the data in the image object
image.PointData.append(arr, 'myarray')

# Now set up a ParaView proxy for the image data
tp = PVTrivialProducer()
tp.GetClientSideObject().SetOutput(vtk_image)
Show(tp)


# Set up filters, display options, etc. below


You can modify it as needed to set up your data array as a numpy array.

Hope that helps,
Cory

On Mon, Jan 29, 2018 at 3:27 PM, Wyatt Spear <wsp...@cs.uoregon.edu> wrote:
> I think the python scripting with embedded data is worth a try. I'm not
> familiar with the built-in vs other server modes so I'm not sure what kind
> of restrictions that entails.  Probably my ultimate goal is to build a
> reader plugin that will parse the data out of my application's native format
> but generating a script seems like a decent interim solution.
>
> Thanks,
> Wyatt
>
> On Mon, Jan 29, 2018 at 5:57 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> Wyatt,
>>
>> ParaView provides extensive Python scriptability. One solution is to
>> write out a Python script from your program. Within the Pythons
>> script, you set up the data, set up filters and modify visualization
>> settings just as you wish. Once it is loaded, you can continue to
>> explore your data by creating new filters, changing visualization
>> parameters, and so on.
>>
>> Creating example Python scripts is easy using the Trace functionality
>> (Tools menu -> Start Trace) - you just interact with the UI and the
>> equivalent Python operations will be written to the trace file. Use
>> such a trace as a basis for what is written from your program.
>>
>> To save the data to the Python script and then load it is a different
>> use case from what we typical support, but I think it is doable. It
>> would just look a little ugly (and it would only work in built-in
>> server mode). Basically, you could write out your data in a NumPy
>> array within the script, as if you were entering the array information
>> by hand, then provide that data to what's called a TrivialProducer
>> source. This source would stand in place of a reader. There is a
>> little bit of code required to do that that isn't super obvious -
>> before sketching it out, would this approach work for your needs?
>>
>> Thanks,
>> Cory
>>
>>
>>
>> On Sun, Jan 28, 2018 at 10:10 PM, Wyatt Spear <wsp...@cs.uoregon.edu>
>> wrote:
>> > Thanks, I'll take a look at this. My use case is pretty severely
>> > underutilizing ParaView's capabilities though. I'm rendering very large
>> > multi-variable heat maps. So color mapped 2d points are all I need
>> > rendered,
>> > (until I can figure out how to map glyph height to another variable).
>> >
>> > =Wyatt
>> >
>> >
>> > On Sat, Jan 27, 2018 at 8:52 AM Samuel Key <samuel...@bresnan.net>
>> > wrote:
>> >>
>> >> Wyatt--
>> >>
>> >> While ParaView can read CSV files and subsequently generate images, the
>> >> CSV format for simulation results limits the functionality available to
>> >> you
>> >> in ParaView. My suggestion is that you write your simulation results in
>> >> a
>> >> format that contains geometry information, as well as, Point and Cell
>> >> centered values like displacement, velocity, acceleration, temperature,
>> >> concentrations, volume fractions, et cetera.
>> >>
>> >> The attached document is a good place to start. (This document is very
>> >> concise and very complete, but the information is only written down
>> >> once. As
>> >> a result, the format information is sometimes not located where you
>> >> need
>> >> it.)
>> >>
>> >> If your simulations are concerned with the deformation of 3-D solids
>> >> and
>> >> structures, I can provide you with FORTRAN95 routines that you can use
>> >> to
>> >> write VTK-formatted simulation

Re: [Paraview] Unexpected measurement appears in 5.4.1 but not 5.0.1

2018-01-31 Thread Cory Quammen
Hmm, that's weird. The Polar Axes should be off by default. Do the
Polar Axes appear when creating a Sphere source?

You should be able to force it off by adding the following line to the
loadFile() function in your script:

display.PolarAxes.Visibility = 0

HTH,
Cory

On Tue, Jan 23, 2018 at 4:40 PM, Joe Ping-Lin Hsiao <phs...@cs.unc.edu> wrote:
> Yes exactly.
>
> On Tue, Jan 23, 2018 at 3:47 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> Hi Joe,
>>
>> Are you referring to the circular (polar axes) in the image? It says
>> 90.0 deg, 45.0 deg., etc.
>>
>> Thanks,
>> Cory
>>
>> On Tue, Jan 23, 2018 at 3:31 PM, Joe Ping-Lin Hsiao <phs...@cs.unc.edu>
>> wrote:
>> > The attached image shows the unexpected measure with text. I tested two
>> > versions of ParaView and it only happens in 5.4.1 but not 5.0.1.
>> >
>> > 180 stacks are loaded and set to volume rendering by my Python script,
>> > which
>> > is also attached.
>> >
>> > Thanks,
>> > Joe
>> >
>> > ___
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the ParaView 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.
>
>



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


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


Re: [Paraview] Can I generate a single file that contains data and filter settings?

2018-01-29 Thread Cory Quammen
p://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
>



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


Re: [Paraview] python mismatch with superbuild on os x

2018-01-24 Thread Cory Quammen
On Wed, Jan 24, 2018 at 12:57 PM, Sgouros, Thomas
<thomas_sgou...@brown.edu> wrote:
> Hello:
>
> I unpacked a version of the Paraview-v5.4.1 tarball, and then did git clone
> of the superbuild right next to it. So I have this:
>
> $ ls
> ParaView-v5.4.1
> paraview-superbuild
> $ mkdir paraview-superbuild-build
> $ cd paraview-superbuild-build
> $ ccmake ../paraview-superbuild
>
> There is a mismatch between the python it wants and the python on my system
> so the configure step will not run and gives this error:
>
>Python interpreter version (2.7.13) does not match the library version
> (2.7.10)
>
> The /usr/bin/python on my system is 2.7.10. What's it complaining about?
> There are other Pythons on my system. I changed my $PATH so /usr/bin is
> first, and deleted the contents of the paraview-superbuild-build directory
> and that seems to have taken care of it.
>
> This doesn't seem like the right solution to me, posting here either to help
> someone else with the same problem, or so that some developer of the
> superbuild can fix this.

I have encountered the same problem with the interpreter version
differing from the library version while having a homebrew Python
installed on my system. Perhaps there is an opportunity for a bug fix
in CMake's FindPythonInterp.cmake and FindPythonLibs.cmake files.

For now, what you have done is a reasonable workaround.

Thanks,
Cory


> Thank you,
>
>  -Tom
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://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


Re: [Paraview] Reading group of pvti files: vtkImageData is static over time

2018-01-24 Thread Cory Quammen
Hi Ahmad,

Please see Mathieu Westphal's comment on the issue you created.

Thanks,
Cory

On Wed, Jan 24, 2018 at 9:02 AM, Ahmad . <super_ac...@hotmail.com> wrote:
> Hello again,
>
>
> Could someone please confirm this to be a bug, or otherwise tell me how it
> could be resolved?
>
>
> The problem is that my vtkImageData object changes in size over time, but
> visually it stays the same when I import it in ParaView as a group and play
> it as an animation.
>
> Please see https://gitlab.kitware.com/paraview/paraview/issues/17732 for a
> reproducer and a screenshot of the problem.
>
>
> Best,
> Ahmad
>
>
> 
> Van: Ahmad . <super_ac...@hotmail.com>
> Verzonden: dinsdag 9 januari 2018 14:30
>
> Aan: paraview@paraview.org
> Onderwerp: Re: Reading group of pvti files: vtkImageData is static over time
>
>
> Sorry wrong link in my last e-mail. This is the correct one:
> https://gitlab.kitware.com/paraview/paraview/issues/17732
>
>
> 
> Van: Ahmad . <super_ac...@hotmail.com>
> Verzonden: dinsdag 9 januari 2018 14:27
> Aan: paraview@paraview.org
> Onderwerp: Re: Reading group of pvti files: vtkImageData is static over time
>
>
> Was about to create a new question about this, but I remembered I had asked
> it already a few months back ;-)
>
> However I didn't receive a reply unfortunately.
>
>
> Does anyone have a clue? I also opened an issue about this on gitlab:
> https://gitlab.kitware.com/paraview/paraview/issues/17698
>
> There are also the files that demonstrate the issue.
>
>
> Cheers!
>
>
> 
> Van: A . <super_ac...@hotmail.com>
> Verzonden: donderdag 14 september 2017 17:41
> Aan: paraview@paraview.org
> Onderwerp: Reading group of pvti files: vtkImageData is static over time
>
>
> Hello,
>
>
> I have a vtkImageData object that I write (with a XMLPImageDataWriter) every
> time step to a pvti file.
>
> When I open the group of output_*.pvti files, properties like X, Y, Z extent
> and range do not change as I animate over time.
>
> But when I open the actual files I can see that these values in fact are
> different.
>
>
> And if I open the files individually (for example output_99.pvti) these
> properties are displayed correctly in ParaView.
>
> The problem appears when I open them as a group; it then keeps the
> properties of the first file.
>
>
> Does anyone else has this issue, and is there a way to solve this?
>
>
> Best,
>
> Ahmad
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Unexpected measurement appears in 5.4.1 but not 5.0.1

2018-01-23 Thread Cory Quammen
Hi Joe,

Are you referring to the circular (polar axes) in the image? It says
90.0 deg, 45.0 deg., etc.

Thanks,
Cory

On Tue, Jan 23, 2018 at 3:31 PM, Joe Ping-Lin Hsiao <phs...@cs.unc.edu> wrote:
> The attached image shows the unexpected measure with text. I tested two
> versions of ParaView and it only happens in 5.4.1 but not 5.0.1.
>
> 180 stacks are loaded and set to volume rendering by my Python script, which
> is also attached.
>
> Thanks,
> Joe
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-23 Thread Cory Quammen
As a happy coincidence, Will Schroeder just posted a merge request for
a VTK filter that computes the volumes of connected regions in a poly
data and stores the volumes in field data:
https://gitlab.kitware.com/vtk/vtk/merge_requests/3825. We could
expose this in ParaView once it lands in VTK.

Cory

On Mon, Jan 22, 2018 at 11:28 PM, Cory Quammen <cory.quam...@kitware.com> wrote:
> On Wed, Jan 17, 2018 at 9:42 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
>> Thanks Andy!  Although I will take a round about method, I would love a real
>> solution.
>>
>>
>>
>> Cory?  Thoughts?
>>
>>
>>
>> Alan
>>
>>
>>
>> From: Andy Bauer [mailto:andy.ba...@kitware.com]
>> Sent: Wednesday, January 17, 2018 9:24 AM
>> To: Scott, W Alan <wasc...@sandia.gov>; Quammen, Cory (External Contacts)
>> <cory.quam...@kitware.com>
>> Cc: paraview@paraview.org
>> Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter
>>
>>
>>
>> The best way I can think of is to then use the threshold filter to isolate
>> each of the pieces and then use the cell size filter on each piece. This
>> would be fairly easy to automate in a Python script to just print out the
>> values.
>>
>> Alternatively, I don't see a reason why the Connectivity filter couldn't
>> have an option added to output a field data array with the summed sizes of
>> each piece. Since Cory just made the connectivity filter work correctly in
>> parallel it would surprise me that he may be familiar enough with the code
>> to do the change in a couple of hours.
>
> I'm hesitant to add an option in the Connectivity filter to do this.
> Instead, I can imagine uses for a volume computation for
> surfaces/volumes labeled by a RegionId that isn't necessarily assigned
> as a function of connectivity. Instead, I would prefer to create a
> separate filter that computes volumes for each RegionId in the input
> dataset. You would feed the output of the Connectivity filter to this
> new filter and get the volume-per-region information you want.
>
> Cory
>
>>
>>
>> On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
>>
>> I have a user that wants to use the equivalent of the Material Interface
>> Filter on VTK files.  Is there a way to do this?  I did find the
>> Connectivity filter, that gets me half way.  I then want to find the mass of
>> these individual fragments.
>>
>>
>>
>> To test, I used Wavelet, the Clip by Sphere, then made the Radius 15, then
>> ran the connectivity filter.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Alan
>>
>>
>>
>>
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://paraview.org/mailman/listinfo/paraview
>>
>>
>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.



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


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-22 Thread Cory Quammen
On Wed, Jan 17, 2018 at 9:42 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
> Thanks Andy!  Although I will take a round about method, I would love a real
> solution.
>
>
>
> Cory?  Thoughts?
>
>
>
> Alan
>
>
>
> From: Andy Bauer [mailto:andy.ba...@kitware.com]
> Sent: Wednesday, January 17, 2018 9:24 AM
> To: Scott, W Alan <wasc...@sandia.gov>; Quammen, Cory (External Contacts)
> <cory.quam...@kitware.com>
> Cc: paraview@paraview.org
> Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter
>
>
>
> The best way I can think of is to then use the threshold filter to isolate
> each of the pieces and then use the cell size filter on each piece. This
> would be fairly easy to automate in a Python script to just print out the
> values.
>
> Alternatively, I don't see a reason why the Connectivity filter couldn't
> have an option added to output a field data array with the summed sizes of
> each piece. Since Cory just made the connectivity filter work correctly in
> parallel it would surprise me that he may be familiar enough with the code
> to do the change in a couple of hours.

I'm hesitant to add an option in the Connectivity filter to do this.
Instead, I can imagine uses for a volume computation for
surfaces/volumes labeled by a RegionId that isn't necessarily assigned
as a function of connectivity. Instead, I would prefer to create a
separate filter that computes volumes for each RegionId in the input
dataset. You would feed the output of the Connectivity filter to this
new filter and get the volume-per-region information you want.

Cory

>
>
> On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
>
> I have a user that wants to use the equivalent of the Material Interface
> Filter on VTK files.  Is there a way to do this?  I did find the
> Connectivity filter, that gets me half way.  I then want to find the mass of
> these individual fragments.
>
>
>
> To test, I used Wavelet, the Clip by Sphere, then made the Radius 15, then
> ran the connectivity filter.
>
>
>
> Thanks,
>
>
>
> Alan
>
>
>
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://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


Re: [Paraview] Scaling cylinder glyph's radius and height individually

2018-01-19 Thread Cory Quammen
Ahmad,

Please keep replies on the mailing list. Responses are inlined.

On Tue, Jan 16, 2018 at 9:25 AM, Ahmad . <super_ac...@hotmail.com> wrote:

> Hi Cory,
>
>
> Thanks for your reply.
>
>
> I am trying to implement your suggestion of extending the vtkGlyph3D with
> this additional "scaling by normals".
>
> The idea seems quite straightforward. I was just wondering how to
> incorporate this new class in my C++ pipeline.
>
> Currently I create the glyph, and set its properties, like this:
>
>
> vtkSmartPointer glyph;
> glyph.TakeReference(vtkSMSourceProxy::SafeDownCast(
> session_manager_->NewProxy("filters", "Glyph")));
> controller_->PreInitializeProxy(glyph);
>
> vtkSMPropertyHelper(glyph, "Input").Set(producer);
> vtkSMPropertyHelper(glyph, "Source").Set(
> GetCylinderSource(glyph));
> vtkSMPropertyHelper(glyph, "ScaleMode", true).Set(0);
> vtkSMPropertyHelper(glyph, "ScaleFactor", true).Set(1.0);
> vtkSMPropertyHelper(glyph, "GlyphMode", true).Set(0);
>
> As you can see I am not directly working with vtkGlyph3D or
> vtkPVGlyphFilter classes, but I am using the vtkSMPropertyHelper to take
> care of the boilerplate code.
>
>
Right. Unfortunately, implementing my suggestion would require creating a
subclass of vtkPVGlyphFilter and importing that with a ParaView plugin. See
the ParaView Howto on how to add a filter to ParaView.

> After I created a new class that has this extra scaling option, how would
> I go about using this in such a pipeline? Do I need to 'register' my "
> ModifiedGlyph" to the filter proxies to be able to do something like
> `NewProxy("filters", "ModifiedGlyph")`?
>

Yes, that should do it. Your modified glyph class will be available once
you've imported the ParaView plugin mentioned above.

A quick question about setting the active normals. Is there an existing way
> to do this, or would I need to do this myself? I would like to do this the
> same way one would set the "Scalars":
>
>
> vtkSMPropertyHelper(glyph, "Normals")
> .SetInputArrayToProcess(vtkDataObject::POINT, "ScalingArray");
>

I think that should work.

Best,
Cory


> Looking forward to your reply.
>
> Best,
> Ahmad
>
>
>
> --
> *Van:* Cory Quammen <cory.quam...@kitware.com>
> *Verzonden:* dinsdag 9 januari 2018 15:30
> *Aan:* Ahmad .
> *CC:* paraview@paraview.org
> *Onderwerp:* Re: [Paraview] Scaling cylinder glyph's radius and height
> individually
>
> Hi Ahmad,
>
> Alas, reading the code of vtkGlyph3D, you cannot orient by a vector
> array different from the vector array used to do the scaling using the
> functionality in ParaView. You would have to modify either
> vtkPVGlyphFilter or its parent class vtkGlyph3D, to do this, and
> expose the new VTK class through a ParaView plugin [1]. A simple
> modification would be to add a ScaleMode, say VTK_SCALE_BY_NORMAL, to
> vtkGlyph3D, and then set the active normals in your data set to the
> vector by which you wish to scale. Then the "vectors" property could
> control the orientation and the active normals would control the
> scale. That's kind of kludgey, but it would be a fairly fast
> modification to make.
>
> HTH,
> Cory
>
> [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo
> ParaView/Plugin HowTo - KitwarePublic
> <https://www.paraview.org/Wiki/ParaView/Plugin_HowTo>
> www.paraview.org
> Introduction. ParaView comes with plethora of functionality bundled in:
> several readers, multitude of filters, quite a few different types of views
> etc.
>
>
>
>
> On Tue, Jan 9, 2018 at 7:43 AM, Ahmad . <super_ac...@hotmail.com> wrote:
> > Just want to add that a programmatic (C++) solution is preferred rather
> than
> > using the GUI
> >
> >
> > I have a C++ pipeline where I can set the properties of the cylinder
> glyph
> > with vtkSMPropertyHelper.
> >
> > I have looked in filters.xml under vtkPVGlyphFilter source proxy (file
> > located in
> > /ParaViewCore/ServerManager/SMApplication/Resources) to
> see
> > what my options are, but there is only one "SetInputArrayToProcess" that
> > takes a vector attribute as input; nothing about a vector specifically
> for
> > orientation..
> >
> > Suggestions on how to handle this issue, are very welcome; other
> approaches
> > than mine as well!
> >
> > 
> > Van: Ahmad . <super_ac...@hotmail.com>
> &

Re: [Paraview] [EXTERNAL] Re: Make animation from steady state result

2018-01-19 Thread Cory Quammen
oreland, Kenneth
>> Sent: Friday, June 06, 2014 11:43 AM
>> To: David E DeMarle; minh hien
>> Cc: paraview@paraview.org
>>
>>
>> Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
>>
>>
>>
>> Here's a more expanded list of steps outlining the solution David gave in
>> case you are not very familiar with the contour filter and animation
>> controls in ParaView.
>>
>>
>>
>> 1. Create the streamlines as you normally would.
>>
>>
>>
>> 2. Add a Contour filter to the streamline (third toolbar, second button
>> from the left).
>>
>> 2.a. Change the Contour By property to IntegrationTime.
>>
>> 2.b. Press Apply.
>>
>> This little trick will create a point on each streamline at a particular
>> time in the particle advection simulation that created the streamlines.
>>
>>
>>
>> 3. Open the Animation View (View -> Animation View)
>>
>> 3.a. On the bottom row, select the contour filter in the first chooser box
>> and Isosurfaces in the second chooser box. Then hit the blue plus button at
>> the left.
>>
>> 3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
>>
>> 3.c. Hit the play button in the VCR controls (green triangle in the top
>> toolbar). You will see the dots animate over the streamlines.
>>
>> 3.d. You can adjust the speed of the animation by changing the No. Frames.
>>
>>
>>
>> 4. If you want to see glyphs instead of dots, just add the glyph filter to
>> the output of the contour filter.
>>
>>
>>
>> BTW, props to Jean Favre for originally posting this solution to the
>> ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
>>
>>
>>
>> -Ken
>>
>>
>>
>> From: David E DeMarle <dave.dema...@kitware.com>
>> Date: Thursday, June 5, 2014 8:07 AM
>> To: minh hien <minh@gmail.com>
>> Cc: "paraview@paraview.org" <paraview@paraview.org>
>> Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
>>
>>
>>
>> Make an isocontour of the streamlines' integrationTime variable.
>>
>> Then in animation view, make a track for the isocontour value.
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> R Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909
>>
>>
>>
>> On Thu, Jun 5, 2014 at 9:52 AM, minh hien <minh@gmail.com> wrote:
>>
>> Hi all,
>>
>>
>>
>> I got steady state solution for my problem. After plotting streamlines at
>> steady state, I would like to make animation showing moving of spheres
>> (resulted from Glyph filter) on the streamlines, the spheres' velocity
>> should be defined by the flow velocity. How can I make this?
>>
>> Any suggestion would be very much appreciated.
>>
>>
>>
>> Thank you in advance.
>>
>>
>>
>> Minh
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.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
>



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


Re: [Paraview] xml keywords

2018-01-15 Thread Cory Quammen
Felipe,

Unfortunately, there is no one place that documents all the XML
elements and attributes. There is some documentation on property
attributes in [1], but I'm not sure this is an exhaustive list. Your
user is doing one of the most effective things already, looking for
desired functionality in an existing source/filter and looking at how
it is done in the .xml files.

Digging deeper, one can view the code in the methods ReadXMLAttributes
in the various vtkSM*Proxy classes in ParaView, e.g.,
vtkSMProxy::ReadXMLAttributes [2]., to understand which attributes are
available in different proxies.

Hope that helps,
Cory

[1] 
https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMProperty.html#details

[2] 
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Core/vtkSMProxy.cxx#L1439

On Mon, Jan 15, 2018 at 10:18 AM, Felipe Bordeu <felipebor...@gmail.com> wrote:
> Hi to all,
>
> I have a user that use intensively xml files to deploy and customise his
> python programmable filters.
> He would like to know if there is a list with all the xml keyword available
> (for filters, readers,writers).
> He uses the files in
> "./ParaViewCore/ServerManager/SMApplication/Resources/*.xml"  for
> inspiration but not actually sure about the potential and limits of the xml
> customization.
>
> for info: We use also the wiki
> (https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_Categories_to_the_Filters_Menu)
> for inspiration
>
> Felipe
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Compile Error of Paraview on Maverick

2018-01-12 Thread Cory Quammen
Ah, I see.

Make sure the same compiler module is loaded when you compile pvserver
as when you run it. That should ensure a consistent glibc version.

Your local user support or system administrators should also be able
to help with the module system usage on Maverick.

Thanks,
Cory

On Fri, Jan 12, 2018 at 3:51 PM, Yangguang Liao <ygl...@ucdavis.edu> wrote:
> Oops, Sorry I didn’t make it clear. I am trying to build on TACC cluster
> Maverick
>
> On Fri, Jan 12, 2018 at 12:38 PM Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> Sorry, I was thinking you were building on a Mac with Mavericks
>> installed, but now I think that is not right. Are you trying to build
>> on Maverick Meerkat (Ubuntu 10.10)?
>>
>> On Fri, Jan 12, 2018 at 3:27 PM, Yangguang Liao <ygl...@ucdavis.edu>
>> wrote:
>> > Hi, Cory,
>> >
>> > Sorry for the late reply, no clue why this email came to my trash. I
>> > tried
>> > to builld paraview. and the problem is that paraview failed on qt
>> > compile
>> > step due to low version of glibc.(which in Maverick is 2.13 and the
>> > minimum
>> > is 2.14).
>> > So I also try to get ride of GUI first, and then I successfully build
>> > paraview. but when I want to start a pvserver, the error comes with low
>> > glibcxx version which I think is the same problem with low version glibc
>> > in
>> > build.
>> > Do you know how can I fixed this?
>> >
>> > Thanks,
>> > Yangguang
>> >
>> > On Wed, Jan 10, 2018 at 6:02 AM, Cory Quammen <cory.quam...@kitware.com>
>> > wrote:
>> >>
>> >> I don't see any errors in the terminal output you've posted. Are there
>> >> errors further back in the terminal output history?
>> >>
>> >> Thanks,
>> >> Cory
>> >>
>> >> On Wed, Jan 10, 2018 at 12:28 AM, Yangguang Liao <ygl...@ucdavis.edu>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > Trying to compile Paraview but get such error. I have no idea what is
>> >> > the
>> >> > reason.
>> >> >
>> >> > Here is terminal output:
>> >> > [  3%] Built target protobuf
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/dynamic_message.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/extension_set_heavy.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/generated_message_reflection.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/message.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/reflection_ops.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/service.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/text_format.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/unknown_field_set.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/wire_format.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/printer.cc.o
>> >> > [  3%] Building CXX object
>> >> >
>> >> >
>> >> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/zero_copy_stream_impl.cc.o
>> >> > [  3%] Building CXX object
>> &

Re: [Paraview] Compile Error of Paraview on Maverick

2018-01-12 Thread Cory Quammen
Sorry, I was thinking you were building on a Mac with Mavericks
installed, but now I think that is not right. Are you trying to build
on Maverick Meerkat (Ubuntu 10.10)?

On Fri, Jan 12, 2018 at 3:27 PM, Yangguang Liao <ygl...@ucdavis.edu> wrote:
> Hi, Cory,
>
> Sorry for the late reply, no clue why this email came to my trash. I tried
> to builld paraview. and the problem is that paraview failed on qt compile
> step due to low version of glibc.(which in Maverick is 2.13 and the minimum
> is 2.14).
> So I also try to get ride of GUI first, and then I successfully build
> paraview. but when I want to start a pvserver, the error comes with low
> glibcxx version which I think is the same problem with low version glibc in
> build.
> Do you know how can I fixed this?
>
> Thanks,
> Yangguang
>
> On Wed, Jan 10, 2018 at 6:02 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> I don't see any errors in the terminal output you've posted. Are there
>> errors further back in the terminal output history?
>>
>> Thanks,
>> Cory
>>
>> On Wed, Jan 10, 2018 at 12:28 AM, Yangguang Liao <ygl...@ucdavis.edu>
>> wrote:
>> > Hi,
>> >
>> > Trying to compile Paraview but get such error. I have no idea what is
>> > the
>> > reason.
>> >
>> > Here is terminal output:
>> > [  3%] Built target protobuf
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/dynamic_message.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/extension_set_heavy.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/generated_message_reflection.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/message.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/reflection_ops.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/service.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/text_format.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/unknown_field_set.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/wire_format.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/printer.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/zero_copy_stream_impl.cc.o
>> > [  3%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/tokenizer.cc.o
>> > [  4%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/compiler/importer.cc.o
>> > [  4%] Building CXX object
>> >
>> > ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/compiler/parser.cc.o
>> > [  4%] Linking CXX executable ../../../../bin/protoc
>> > [  4%] Built target protoc_compiler
>> > make: *** [all] Error 2
>> >
>> > Mu compiler is using icc and icpc. have Qt5 installed.
>> > 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
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>
>
>
>
> --
> Yangguang Liao
> PhD. student of Computer Science Department
> University of California, Davis



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


Re: [Paraview] error when compiling Paraview 5.4 macOS 10.13

2018-01-12 Thread Cory Quammen
Alas, this fix was made after ParaView 5.2 was released.

If you really need ParaView 5.2 instead of 5.3 or 5.4.1, you can apply
the patch in my previous email to the VTK subdirectory in the ParaView
source code. As you can see, just two lines need to be modified, so
you could easily do this manually.

Hope that helps,
Cory

On Fri, Jan 12, 2018 at 1:15 PM, Sergio Emanuel Galembeck
<segal...@usp.br> wrote:
> Cory,
>
> Sorry, I am trying to install Paraview 5.2.0. Even doing 'git submodule 
> update —init’
> the error that I noticed continues.
>
> What do you suggest?
>
> Thanks,
>
> Sergio
>
>> On 8 Jan 2018, at 12:38, Cory Quammen <cory.quam...@kitware.com> wrote:
>>
>> Sergio,
>>
>> This problem was fixed in November 2016, so I am surprised you are
>> running into it. Current ParaView master includes VTK that contains
>> the commit
>>
>> commit 33631146a85dfa64433c3997f166cbaa96bedee9
>> Author: gnzlbg <gonzalob...@gmail.com>
>> Date:   Wed Nov 23 05:29:14 2016 -0500
>>
>>[bugfix] Invalid pointer comparisons.
>>
>>The code was performing a null pointer check
>>using (void*)Data <= 0 instead of Data == NULL
>>(or nullptr). This results in a compilation
>>error with clang trunk (future clang 4.0).
>>
>> diff --git a/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
>> b/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
>> index 1e88f08..e89e153 100644
>> --- a/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
>> +++ b/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
>> @@ -52,7 +52,7 @@ XdmfDsmComm::Receive(XdmfDsmMsg *Msg){
>> XdmfErrorMessage("Cannot Receive Message of Length = " << 
>> Msg->Length);
>> return(XDMF_FAIL);
>> }
>> -if(Msg->Data <= 0 ){
>> +if(Msg->Data == NULL){
>> XdmfErrorMessage("Cannot Receive Message into Data Buffer = "
>> << Msg->Length);
>> return(XDMF_FAIL);
>> }
>> @@ -66,7 +66,7 @@ XdmfDsmComm::Send(XdmfDsmMsg *Msg){
>> XdmfErrorMessage("Cannot Send Message of Length = " << Msg->Length);
>> return(XDMF_FAIL);
>> }
>> -if(Msg->Data <= 0 ){
>> +if(Msg->Data == NULL) {
>> XdmfErrorMessage("Cannot Send Message from Data Buffer = " <<
>> Msg->Length);
>> return(XDMF_FAIL);
>> }
>>
>> Make sure you have run `git submodule update` to ensure your VTK is up to 
>> date.
>>
>> HTH,
>> Cory
>>
>> On Mon, Jan 8, 2018 at 6:55 AM, Sergio Emanuel Galembeck
>> <segal...@usp.br> wrote:
>>> Hello,
>>>
>>> I am trying to compile Paraview 5.4 in MacOS 10.13.2 (High Sierra), using
>>> software from MacPorts 2.4.2. After a successful configuration,
>>> the make -j 4 command give the following error:
>>>
>>> /Users/sergiogalembeck/paraview_install/ParaView/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx:55:18:
>>> error:
>>>  ordered comparison between pointer and zero ('void *' and 'int')
>>>if(Msg->Data <= 0 ){
>>>
>>> How can I solve this problem?
>>>
>>> Best regards,
>>>
>>> Sergio
>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView 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.
>



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


Re: [Paraview] Given 2D Displacement Field, Visualize Stretch as Geometric Change in Mesh

2018-01-10 Thread Cory Quammen
Great, thanks for the follow up.

Cory

On Wed, Jan 10, 2018 at 10:58 AM, Charlie Talbot <chazti...@gmail.com> wrote:
> That seems to work, thank you very much! I had some issues with Paraview 5.0
> (crashed upon python calculation) but this did indeed work after upgrading
> to Paraview 5.4
>
> On Tue, Jan 9, 2018 at 4:02 PM, Charlie Talbot <chazti...@gmail.com> wrote:
>>
>> Thanks Cory!
>>
>> Knowing the procedure is very helpful.
>>
>> I am not well-versed in paraview, so I am referring to the wiki to see how
>> to use the Python Calculator and execute the other steps.  Will update.
>> Thanks again
>>
>> On Tue, Jan 9, 2018 at 2:48 PM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>>>
>>> Charlie,
>>>
>>> You can use the Warp by Vector filter to warp the points in your data
>>> set according to a vector field. To get that vector field from your
>>> p_x and p_y scalar arrays, it is convenient to use the Python
>>> Calculator with the expression
>>>
>>> make_vector(p_x, p_y, np.zeros(p_x.shape))
>>>
>>> Apply the Python Calculator filter to your data set, then add a Warp
>>> by Vector filter off the Python Calculator filter. Set the Vectors
>>> property to "result", the default name of the array produced by the
>>> Python Calculator.
>>>
>>> Hope that helps,
>>> Cory
>>>
>>> On Tue, Jan 9, 2018 at 2:02 PM, Charlie Talbot <chazti...@gmail.com>
>>> wrote:
>>> > Hi, this is my first time posting to paraview-users, and I am wondering
>>> > how
>>> > to visualize displacements by changes in the mesh rather than field
>>> > quantities (for attached file, px and py, displacements in x and y
>>> > coordinates).
>>> >
>>> > Is this possible in paraview?  How so?  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:
>>> > https://paraview.org/mailman/listinfo/paraview
>>> >
>>>
>>>
>>>
>>> --
>>> Cory Quammen
>>> Staff R Engineer
>>> Kitware, Inc.
>>
>>
>



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


Re: [Paraview] Compile Error of Paraview on Maverick

2018-01-10 Thread Cory Quammen
I don't see any errors in the terminal output you've posted. Are there
errors further back in the terminal output history?

Thanks,
Cory

On Wed, Jan 10, 2018 at 12:28 AM, Yangguang Liao <ygl...@ucdavis.edu> wrote:
> Hi,
>
> Trying to compile Paraview but get such error. I have no idea what is the
> reason.
>
> Here is terminal output:
> [  3%] Built target protobuf
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/dynamic_message.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/extension_set_heavy.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/generated_message_reflection.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/message.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/reflection_ops.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/service.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/text_format.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/unknown_field_set.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/wire_format.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/printer.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/zero_copy_stream_impl.cc.o
> [  3%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/io/tokenizer.cc.o
> [  4%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/compiler/importer.cc.o
> [  4%] Building CXX object
> ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/compiler/parser.cc.o
> [  4%] Linking CXX executable ../../../../bin/protoc
> [  4%] Built target protoc_compiler
> make: *** [all] Error 2
>
> Mu compiler is using icc and icpc. have Qt5 installed.
> 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
>



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


Re: [Paraview] Glyph type options

2018-01-09 Thread Cory Quammen
Replying back to the list so that others may benefit from and
contribute to the conversation.

Rotate is an advanced property. To show advanced properties, look in
the Properties panel. Click the gear icon to the right of the text box
that says "Search ...". You can also search for "Rotate" in that text
box.

HTH,
Cory

On Tue, Jan 9, 2018 at 3:54 PM, Sonya Davydycheva <sda...@gmail.com> wrote:
> Thanks, Cory,
>
> So far, I have a problem to find the Rotate property. Not in Orientation,
> not in Scaling... where is it?
>
> Sonya Davydycheva
> (713)498-6139
>
>
> On Tue, Jan 9, 2018 at 12:53 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> On Tue, Jan 9, 2018 at 1:40 PM, Sonya Davydycheva <sda...@gmail.com>
>> wrote:
>> > Thank you Cory,
>> >
>> > It works for me.
>> > Is it possible to change the direction of arrows or cones: from x, as is
>> > default for scalar data sets, to some other direction (say, negative z)?
>>
>> Yes, modify the Rotate property of the Glyph filter. Setting the
>> Rotation to [0, 90, 0] should point the glyphs down the negative z
>> axis.
>>
>> HTH,
>> Cory
>>
>> > I appreciate your help!
>> >
>> > Sonya Davydycheva
>> > (713)498-6139
>> >
>> >
>> > On Tue, Jan 9, 2018 at 10:32 AM, Cory Quammen <cory.quam...@kitware.com>
>> > wrote:
>> >>
>> >> Reduce the value of the "Scale Factor" property in the Glyph filter to
>> >> reduce the glyph size.
>> >>
>> >> On Tue, Jan 9, 2018 at 11:21 AM, Sonya Davydycheva <sda...@gmail.com>
>> >> wrote:
>> >> > Hello,
>> >> >
>> >> > I wonder if there is any option to change SIZE of the glyphs (arrows
>> >> > or
>> >> > spheres)? They look enormously large and tend block each other on my
>> >> > scalar
>> >> > data set while using Glyph option.
>> >> >
>> >> > I will appreciate any tip.
>> >> >
>> >> > Sonya Davydycheva
>> >> > (713)498-6139
>> >> >
>> >> >
>> >> > ___
>> >> > Powered by www.kitware.com
>> >> >
>> >> > Visit other Kitware open-source projects at
>> >> > http://www.kitware.com/opensource/opensource.html
>> >> >
>> >> > Please keep messages on-topic and check the ParaView 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.
>> >
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>
>



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


Re: [Paraview] Given 2D Displacement Field, Visualize Stretch as Geometric Change in Mesh

2018-01-09 Thread Cory Quammen
Charlie,

You can use the Warp by Vector filter to warp the points in your data
set according to a vector field. To get that vector field from your
p_x and p_y scalar arrays, it is convenient to use the Python
Calculator with the expression

make_vector(p_x, p_y, np.zeros(p_x.shape))

Apply the Python Calculator filter to your data set, then add a Warp
by Vector filter off the Python Calculator filter. Set the Vectors
property to "result", the default name of the array produced by the
Python Calculator.

Hope that helps,
Cory

On Tue, Jan 9, 2018 at 2:02 PM, Charlie Talbot <chazti...@gmail.com> wrote:
> Hi, this is my first time posting to paraview-users, and I am wondering how
> to visualize displacements by changes in the mesh rather than field
> quantities (for attached file, px and py, displacements in x and y
> coordinates).
>
> Is this possible in paraview?  How so?  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:
> 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


Re: [Paraview] Glyph type options

2018-01-09 Thread Cory Quammen
Reduce the value of the "Scale Factor" property in the Glyph filter to
reduce the glyph size.

On Tue, Jan 9, 2018 at 11:21 AM, Sonya Davydycheva <sda...@gmail.com> wrote:
> Hello,
>
> I wonder if there is any option to change SIZE of the glyphs (arrows or
> spheres)? They look enormously large and tend block each other on my scalar
> data set while using Glyph option.
>
> I will appreciate any tip.
>
> Sonya Davydycheva
> (713)498-6139
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Scaling cylinder glyph's radius and height individually

2018-01-09 Thread Cory Quammen
Hi Ahmad,

Alas, reading the code of vtkGlyph3D, you cannot orient by a vector
array different from the vector array used to do the scaling using the
functionality in ParaView. You would have to modify either
vtkPVGlyphFilter or its parent class vtkGlyph3D, to do this, and
expose the new VTK class through a ParaView plugin [1]. A simple
modification would be to add a ScaleMode, say VTK_SCALE_BY_NORMAL, to
vtkGlyph3D, and then set the active normals in your data set to the
vector by which you wish to scale. Then the "vectors" property could
control the orientation and the active normals would control the
scale. That's kind of kludgey, but it would be a fairly fast
modification to make.

HTH,
Cory

[1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo


On Tue, Jan 9, 2018 at 7:43 AM, Ahmad . <super_ac...@hotmail.com> wrote:
> Just want to add that a programmatic (C++) solution is preferred rather than
> using the GUI
>
>
> I have a C++ pipeline where I can set the properties of the cylinder glyph
> with vtkSMPropertyHelper.
>
> I have looked in filters.xml under vtkPVGlyphFilter source proxy (file
> located in
> /ParaViewCore/ServerManager/SMApplication/Resources) to see
> what my options are, but there is only one "SetInputArrayToProcess" that
> takes a vector attribute as input; nothing about a vector specifically for
> orientation..
>
> Suggestions on how to handle this issue, are very welcome; other approaches
> than mine as well!
>
> 
> Van: Ahmad . <super_ac...@hotmail.com>
> Verzonden: maandag 8 januari 2018 20:52
> Aan: paraview@paraview.org
> Onderwerp: Re: Scaling cylinder glyph's radius and height individually
>
>
> Following up on my own question, I found out that if I scale by "Vector
> Components" it is possible to change the length of the cylinders with the
> second vector index, and the radius with the first and third. I need to
> rearrange my attribute data as such: [radius_x, length, radius_z]. If I keep
> radius_x == radius_z, then the cylinder will not deform, and the cross
> section stays a perfect circle. See the image in the attachment please.
>
>
> BUT the problem here is that "vector components" also affects the
> orientation of my cylindrical glyphs. I can turn this off in the properties
> menu, but I need to orient my cylinders based on another vector attribute
> data...
>
>
> I feel I'm getting somewhere, but if someone could give me an idea on how to
> now orient my glyphs with another vector data than the one I use now for
> scaling, that would be much appreciated!
>
>
> Best,
> Ahmad
>
> 
> Van: Ahmad . <super_ac...@hotmail.com>
> Verzonden: maandag 8 januari 2018 18:01
> Aan: paraview@paraview.org
> Onderwerp: Scaling cylinder glyph's radius and height individually
>
>
> Dear community,
>
>
> When I try to scale cylindrical glyph objects by a 'Scalar', it scales both
> the radius and height of the glyphs.
>
> Is there a way to scale the radius by a Scalar1, and the height be a
> Scalar2?
>
>
> I have an unstructured grid, and for each point I want to create a cylinder
> that can have an arbitrary radius and height.
>
> I thought Glyphs would be the way to go, but I'm kind of stuck with this
> issue.
>
>
> Any help is much appreciated; or if you can recommend a different way to
> achieve the above-mentioned please let me know!
>
>
> Best,
>
> Ahmad
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Question about build paraview

2018-01-08 Thread Cory Quammen
Ah, that's right, Ken. It has been a while since I have done this, but
you are right that setting CC and CXX is the way to do it.

On Mon, Jan 8, 2018 at 11:29 AM, Moreland, Kenneth <kmo...@sandia.gov> wrote:
> Actually I find the easiest way to do it is, assuming you have icc in your 
> path, to set the CC and CXX environment variables on the command of the first 
> run of cmake (or ccmake or cmake-gui, whichever one you are using). So the 
> start of your build would be something like this:
>
> mkdir paraview-build
> cd paraview-build
> CC=icc CXX=icc cmake ../paraview
>
> That should ignore gcc. (Remember, you have to delete all of any build files 
> you have created so far and start over. Once CMake picks a compiler, you 
> cannot change it without starting over.)
>
> -Ken
>
> -Original Message-
> From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Cory 
> Quammen
> Sent: Monday, January 8, 2018 7:23 AM
> To: Yangguang Liao <ygl...@ucdavis.edu>
> Cc: ParaView <paraview@paraview.org>
> Subject: [EXTERNAL] Re: [Paraview] Question about build paraview
>
> It's kind of a quirk of CMake, but once CMAKE_CXX_COMPILER is set by the 
> initial CMake configuration, you can't change it. So what should you do?
>
> The solution is to set an environment variable named CMAKE_CXX_COMPILER in 
> your shell prior to running CMake for the first time. Set that variable to 
> the path of version of gcc or icc you want to use, and that should do it. You 
> may also need to set CMAKE_C_COMPILER as well.
>
> HTH,
> Cory
>
> On Mon, Jan 8, 2018 at 12:17 AM, Yangguang Liao <ygl...@ucdavis.edu> wrote:
>> Hi,
>>
>> Anyone has experience build paraview on TACC Maverick or other
>> clusters before? I need to build my own paraview. I use superbuild to build 
>> paraview.
>> but everytime it stop at the step of configure paraview due to GCC
>> version is lower than 4.6. Maverick does have GCC 4.9 and 5.4
>> installed and also have intel icc and icpc installed. When I try to
>> change CMAKE_CXX_COMPILER to high verion GCC it still detect GCC is
>> lower than 4.6. Even when I try to use icc to compile it still detects
>> GCC lower version error. No idea how to fix. I know I should probably
>> ask Maverick system admin. Just wonder if anybody happen to know this issue.
>> 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
>>
>
>
>
> --
> 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



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


Re: [Paraview] error when compiling Paraview 5.4 macOS 10.13

2018-01-08 Thread Cory Quammen
Sergio,

This problem was fixed in November 2016, so I am surprised you are
running into it. Current ParaView master includes VTK that contains
the commit

commit 33631146a85dfa64433c3997f166cbaa96bedee9
Author: gnzlbg <gonzalob...@gmail.com>
Date:   Wed Nov 23 05:29:14 2016 -0500

[bugfix] Invalid pointer comparisons.

The code was performing a null pointer check
using (void*)Data <= 0 instead of Data == NULL
(or nullptr). This results in a compilation
error with clang trunk (future clang 4.0).

diff --git a/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
b/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
index 1e88f08..e89e153 100644
--- a/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
+++ b/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
@@ -52,7 +52,7 @@ XdmfDsmComm::Receive(XdmfDsmMsg *Msg){
 XdmfErrorMessage("Cannot Receive Message of Length = " << Msg->Length);
 return(XDMF_FAIL);
 }
-if(Msg->Data <= 0 ){
+if(Msg->Data == NULL){
 XdmfErrorMessage("Cannot Receive Message into Data Buffer = "
<< Msg->Length);
 return(XDMF_FAIL);
 }
@@ -66,7 +66,7 @@ XdmfDsmComm::Send(XdmfDsmMsg *Msg){
 XdmfErrorMessage("Cannot Send Message of Length = " << Msg->Length);
 return(XDMF_FAIL);
 }
-if(Msg->Data <= 0 ){
+if(Msg->Data == NULL) {
 XdmfErrorMessage("Cannot Send Message from Data Buffer = " <<
Msg->Length);
 return(XDMF_FAIL);
 }

Make sure you have run `git submodule update` to ensure your VTK is up to date.

HTH,
Cory

On Mon, Jan 8, 2018 at 6:55 AM, Sergio Emanuel Galembeck
<segal...@usp.br> wrote:
> Hello,
>
> I am trying to compile Paraview 5.4 in MacOS 10.13.2 (High Sierra), using
> software from MacPorts 2.4.2. After a successful configuration,
> the make -j 4 command give the following error:
>
> /Users/sergiogalembeck/paraview_install/ParaView/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx:55:18:
> error:
>   ordered comparison between pointer and zero ('void *' and 'int')
> if(Msg->Data <= 0 ){
>
> How can I solve this problem?
>
> Best regards,
>
> Sergio
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Question about build paraview

2018-01-08 Thread Cory Quammen
It's kind of a quirk of CMake, but once CMAKE_CXX_COMPILER is set by
the initial CMake configuration, you can't change it. So what should
you do?

The solution is to set an environment variable named
CMAKE_CXX_COMPILER in your shell prior to running CMake for the first
time. Set that variable to the path of version of gcc or icc you want
to use, and that should do it. You may also need to set
CMAKE_C_COMPILER as well.

HTH,
Cory

On Mon, Jan 8, 2018 at 12:17 AM, Yangguang Liao <ygl...@ucdavis.edu> wrote:
> Hi,
>
> Anyone has experience build paraview on TACC Maverick or other clusters
> before? I need to build my own paraview. I use superbuild to build paraview.
> but everytime it stop at the step of configure paraview due to GCC version
> is lower than 4.6. Maverick does have GCC 4.9 and 5.4 installed and also
> have intel icc and icpc installed. When I try to change CMAKE_CXX_COMPILER
> to high verion GCC it still detect GCC is lower than 4.6. Even when I try to
> use icc to compile it still detects GCC lower version error. No idea how to
> fix. I know I should probably ask Maverick system admin. Just wonder if
> anybody happen to know this issue.
> 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
>



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


Re: [Paraview] getting Client Info

2017-12-20 Thread Cory Quammen
On my Mac, I can copy individual cells, but not the whole table.

It would be a nice feature. Feel free to write up a feature request in the
issue tracker: gitlab.kitware.com/paraview/paraview/issues

Thanks,
Cory

On Wed, Dec 20, 2017 at 8:26 AM, Heiland, Randy <heil...@iu.edu> wrote:

> On the “About ParaView” popup window, there’s a “Client Information” tab,
> but I can’t seem to copy/paste that info. Is there a way to easily get it?
> I happen to be on OS X, but interested for all OSes.
>
> 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
>



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


Re: [Paraview] paraview GUI entry point not found in win10, compiled with qt 5.10 and vs 2017.

2017-12-20 Thread Cory Quammen
Check your PATH environment variable to make sure nothing is inserting a
path Qt DLLs different from the Qt with which you built ParaView. Note that
CMake installs Qt DLLs, so if you have that installed, your PATH may be set
to point to those DLLs.

HTH,
Cory

On Tue, Dec 19, 2017 at 7:01 PM, 程迪 <chengdi123...@gmail.com> wrote:

> Hi everyone,
>
> I just compiled paraview 5.4.1 using vs 2017 in win 10 using qt 5.10.
> The compilation works but only the `pvserver` works while the
> `paraview.exe` cannot run.
>
> The error is :Entry Point Not Found:
> [image: Inline image 1]
> entry point  `?setSelectionModel@QListWidget ... ` could not be located
> in the dynamic link library `C:\pv54_diy\bin\vtkpqComponents-pv5.4.dll`
>
>
> Here is what I did:
> - win10 64bit
> - vs2017 community version
> - MSMPI  8.1.12438.1091 runtime and SDK
> - QT 5.10.0 using msvc2017_64/lib
> - cmake version 3.10.1
> - Python 3.6.3 :: Anaconda, Inc.
> - I compiled the boost 1.66.0 myself
> - I attached the `CMakeCache.txt` file in the email.
>
>
> I tried to solve this problem like this:
> - locate  `vtkpqComponents` in the vtk source code. I cannot locate where
> it is, so I cannot find which file is responsible for this, I also cannot
> identify what this `dll` file is used for.
> - I searched the maillist archive, cannot find anything useful.
> - I tried to read the successful build log on DashBoard:
> https://open.cdash.org/buildSummary.php?buildid=5187747, However, I
> cannot see essential difference.
> - I can run `pvserver` and use the official release of paraview 5.4.1 gui
> client to connect to it. I can open the head dataset and render it using
> volume mode remotely.
>
> Could anyone help me?
>
> Di Cheng
> Engineer of Research and Development Center, visiting scholar at
> University of Connecticut
> China Academy of Aerospace Aerodynamics
> Phone @ China: +86-l58Ol5949ll
> Phone @ US: +l-86O-6l7-l886
>
> 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:
> 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


Re: [Paraview] Color bar labels

2017-12-18 Thread Cory Quammen
Hi Quentin,

In the refactor of the color bar, we decided to replace the unreliable
"number of labels" option with a list of explicit labels you can set. The
number of labels option was only a maximum number of labels and often
didn't give you the requested number. To use the new list option, turn on
the "Use Custom Labels" checkbox in the "Edit Color Legend Properties"
dialog. The list lets you control exactly how many labels to provide, with
the caveat that you need to specify the label values manually. In addition,
there is no prevention of overlapping labels when this option is enabled.

I hope that helps,
Cory

On Fri, Dec 15, 2017 at 5:17 PM, Quentin d'Avout <quen...@arrivo-loop.com>
wrote:

> Hi all,
>
> there used to be (in 5.0.1) a field for setting the number of labels for
> color bars in the color bar settings window (summoned by clicking the icon
> with the color bar with the little "e" in bold font on it).
> Not anymore in 5.4.1 (or at least in the nightly build I got last week).
> Could that be just a setting that I'm missing?
>
> As always, thanks 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:
> 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


Re: [Paraview] Missing paraview binary in Conda package

2017-12-13 Thread Cory Quammen
If you don't get a response here, you might have better luck checking with
the Conda folks who provide the ParaView Conda package.

On Wed, Dec 13, 2017 at 12:28 PM, Chong Luo <luoch...@gmail.com> wrote:

> I installed paraview in Miniconda on my linux desktop:
> https://anaconda.org/conda-forge/paraview
>
> However, there is only paraview-config under ~/miniconda3/bin/, and no
> binary "paraview".
>
> Is this a bug?
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] BUG REPORT: Axes grid option grayed out, version 5.4.1 64bit, on Ubuntu 16.04

2017-12-07 Thread Cory Quammen
Hmm, that's strange. Can you give step-by-step directions on how to make
the buttons grayed out, preferably with a simple starting source such as
the Sphere source or Wavelet source?

Thanks,
Cory

On Thu, Dec 7, 2017 at 11:25 PM, Jianbo Long <longtuteng...@gmail.com>
wrote:

> Hello,
>
> I am trying to add axes information to a clipped 3-D mesh, which was
> generated by clipping, slicing, and clipping of a 3-D mesh from a .VTK
> file. However, in the latest Paraview version 5.4.1,  the  'Axes grid'
> option sometimes doesn't work (grayed out, please see attached picture). I
> remember I could use this button a few days ago with the same version.
> Even after restarting Paraview,  there's no luck.  This was not a problem
> in previous versions 4.4 and 4.0.  I would like to use v5.4 because this
> version has more controls over axis properties like fonts.
>
> Could you give any ideas about this issue ?
>
> Thank you very much,
>
> Jianbo Long
>
> [image: Inline image 1]
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-12-06 Thread Cory Quammen
Hi Roman,

Sorry I failed to follow up. Did you find a solution to this problem?

This line in your script looks funny to me:

d[props] = pvs.GetProperty(repr, props[0])

Shouldn't props[0] just be props?

Thanks,
Cory

On Fri, Nov 10, 2017 at 10:28 AM, Grothausmann, Roman Dr.
<grothausmann.ro...@mh-hannover.de> wrote:
> Dear Cory,
>
> On 15/09/17 15:27, Grothausmann, Roman Dr. wrote:
>>
>> On 15/09/17 15:14, Cory Quammen wrote:
>>>
>>> Put a ** in front of reppro[i], e.g.,
>>>
>>> pvs.SetProperties(repr, **reppro[i])
>>
>> Hm, I now get:
>> TypeError: SetProperties() argument after ** must be a mapping, not list
>> Do I have to store the dict of object properties in another dict instead
>> of a list?
>
>
> With a dict of dicts
> https://github.com/romangrothausmann/ParaView_scripts/commit/3b309cc603433f02afc3e50656bd99f8b7cd0aa8#diff-2804420278bfff084788b82c715c452e
> I get:
>
>   File "/net/home/grothama/paraview/scripts/pvsm-multi.py", line 64, in main
> pvs.SetProperties(repr, **reppro[i]);
>   File
> "/opt/paraview-5.3.0_GL1/lib/paraview-5.3/site-packages/paraview/simple.py",
> line 568, in SetProperties
> setattr(proxy, param, params[param])
>   File
> "/opt/paraview-5.3.0_GL1/lib/paraview-5.3/site-packages/paraview/servermanager.py",
> line 317, in __setattr__
> setter(self, value)
>   File
> "/opt/paraview-5.3.0_GL1/lib/paraview-5.3/site-packages/paraview/servermanager.py",
> line 2528, in setProperty
> return self.SetPropertyWithName(propName, value)
>   File
> "/opt/paraview-5.3.0_GL1/lib/paraview-5.3/site-packages/paraview/servermanager.py",
> line 375, in SetPropertyWithName
> prop.SetData(arg)
>   File
> "/opt/paraview-5.3.0_GL1/lib/paraview-5.3/site-packages/paraview/servermanager.py",
> line 803, in SetData
> raise RuntimeError("This property requires %d values." %
> self.GetNumberOfElements())
> RuntimeError: This property requires 3 values.
>
> Any ideas what could still be wrong?
>
>
>>>> On 07/09/17 23:37, Cory Quammen wrote:
>>>>>
>>>>>
>>>>> Hi Roman,
>>>>>
>>>>> It turns out ParaView was not designed for this use case because of
>>>>> certain difficulties discussed here:
>>>>>
>>>>> https://gitlab.kitware.com/paraview/paraview/issues/17442
>>>>>
>>>>> In your Python script, you could manually cash all the properties of
>>>>> the existing representations and restore them after loading the most
>>>>> recent state file.
>>>>>
>>>>> The functions
>>>>>
>>>>> reprs = GetRepresentations()
>>>>> repr = reprs.values()[0]
>>>>> props = repr.ListProperties()
>>>>> GetProperty(repr, props[0])
>>>>>
>>>>> would be helpful for this.
>>>>>
>>>>> Cory
>>>>>
>>>>>
>>>>> On Mon, Sep 4, 2017 at 8:42 AM, Grothausmann, Roman Dr.
>>>>> <grothausmann.ro...@mh-hannover.de> wrote:
>>>>>>
>>>>>>
>>>>>> Dear mailing list members,
>>>>>>
>>>>>>
>>>>>> It seems that PV (and paraview.simple.LoadState) by default hides
>>>>>> already
>>>>>> loaded objects (and resets e.g. their coloring) when another
>>>>>> state-file
>>>>>> is
>>>>>> loaded.
>>>>>> Is there a way to load multiple state-files after one another without
>>>>>> hiding
>>>>>> and resetting already existent objects? I.e. a way to concatenate
>>>>>> multiple
>>>>>> state-files and leave their objects in the state as they got loaded
>>>>>> (e.g.
>>>>>> colored, hidden/visible)?
>>>>>> I do understand that loading a new state-file will reset the camera,
>>>>>> but
>>>>>> not
>>>>>> the rest.
>>>>>> Here's my initial attempt to achieve this with pvpython:
>>>>>>
>>>>>>
>>>>>> https://github.com/romangrothausmann/ParaView_scripts/blob/90eb4ca8499070bed941d50b89ebea82fd6a9e23/pvsm-multi.py
>>>>>>
>>>>>> Any help or hints are very much appreciated
>>>>>> Roman
>>>>>>
>>>>>> --
>>>>>>

Re: [Paraview] How to read the file info in *pvd file

2017-12-06 Thread Cory Quammen
Did you make progress on this? You should just be able to use your
favorite Python XML module to locate all the  elements and
find the "file" attributes to get the *pvtu file names. Then you can
parse those *pvtu XML files to get whatever information you want. One
such module is documented here:
https://docs.python.org/2/library/xml.etree.elementtree.html.

HTH,
Cory

On Wed, Nov 15, 2017 at 1:17 PM, Ke Gao <ke.gao...@gmail.com> wrote:
> Actually, what I want to do is using python script to read *pvd file first
> to get the name info of *pvtu files. Then use the *pvtu file name to read
> through all of them one by one to extract the info I want. I'm not sure if
> there is a better way to realize this.
>
> Many thanks.
>
> On Wed, Nov 15, 2017 at 11:05 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>>
>> The file names are embedded in the same XML element as the time step:
>>
>> 
>>
>> But I'll be that's not how you want to access them.
>>
>> Next question: From where do you want to access the file names? A Python
>> script? In the UI?
>>
>> On Wed, Nov 15, 2017 at 12:35 PM, Ke Gao <ke.gao...@gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I mean how to get the file name info such as "Sout_1012.pvtu",
>>> "Sout_1013.pvtu". Currently I can only read the timestep info such as
>>> "+1.9880e+03".
>>>
>>> Many thanks.
>>>
>>>
>>> 
>>>   
>>>   
>>> >> file="Sout_1012.pvtu"/>
>>> >> file="Sout_1013.pvtu"/>
>>> >> file="Sout_1014.pvtu"/>
>>>
>>> On Wed, Nov 15, 2017 at 10:33 AM, Cory Quammen <cory.quam...@kitware.com>
>>> wrote:
>>>>
>>>> What do you mean by "file info"? File name? Size of the file? Data
>>>> arrays in the file?
>>>>
>>>> - Cory
>>>>
>>>> On Tue, Nov 14, 2017 at 4:45 PM, Ke Gao <ke.gao...@gmail.com> wrote:
>>>>>
>>>>> Does anyone know how to read the file info from *pvd file? I know how
>>>>> to get the time step values, just using the keyword of “TimestepValues”,
>>>>> however, I tried different ways, still haven’t figured out how to read the
>>>>> file info.
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> 
>>>>>   
>>>>>   
>>>>> >>>> file="Sout_1012.pvtu"/>
>>>>> >>>> file="Sout_1013.pvtu"/>
>>>>>     >>>> file="Sout_1014.pvtu"/>
>>>>> --
>>>>>
>>>>> ..
>>>>> 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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Cory Quammen
>>>> Staff R Engineer
>>>> Kitware, Inc.
>>>
>>>
>>>
>>>
>>> --
>>>
>>> ..
>>> Ke Gao
>>
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>
>
>
>
> --
> ..
> Ke Gao



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


Re: [Paraview] Update Programmable Source

2017-12-06 Thread Cory Quammen
> Is there a possibility to perform a cyclic update of a Programmable Source?

What do you mean? Do you mean update a Programmable Source once every
time period?

>
>
>
>
>
> Best,
>
> Lukas
>
>
>
>
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] [EXTERNAL] Re: background color not saved in state

2017-12-05 Thread Cory Quammen
Great, thanks Alan.

Cory

On Tue, Dec 5, 2017 at 12:58 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
> Cory,
> I've replicated this one.  It is still in master.  I wrote it up a while ago 
> here: https://gitlab.kitware.com/paraview/paraview/issues/16879.  I will 
> update the bug with exactly how to replicate.
>
> Alan
>
>> -Original Message-
>> From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of
>> Heiland, Randy
>> Sent: Tuesday, December 5, 2017 9:52 AM
>> To: Quammen, Cory (External Contacts) <cory.quam...@kitware.com>
>> Cc: ParaView <paraview@paraview.org>
>> Subject: [EXTERNAL] Re: [Paraview] background color not saved in state
>>
>> Strange. I just did the same steps and when I reload, it momentarily flashes
>> the background in black (as I’d saved it), but then switches to white.
>>
>> ParaView-5.4.1-Qt5-OpenGL2-MPI-OSX10.8-64bit.dmg
>>
>> > On Dec 5, 2017, at 8:58 AM, Cory Quammen
>> <cory.quam...@kitware.com> wrote:
>> >
>> > Hmm, I can't reproduce with the following:
>> >
>> > * Start ParaView
>> > * Add Wavelet
>> > * Change background color.
>> > * Save state, reset the session, and reload the state.
>> >
>> > Can you give step-by-step instructions for how to reproduce?
>> >
>> > By the way, if you wish to discuss in the issue tracker, the original
>> > Mantis issue has been copied to GitLab:
>> > https://gitlab.kitware.com/paraview/paraview/issues/8722
>> >
>> > Thanks,
>> > Cory
>> >
>> > On Tue, Dec 5, 2017 at 6:52 AM, Heiland, Randy <heil...@iu.edu> wrote:
>> >> Is this the expected behavior?
>> >>
>> >> Related:
>> >>
>> https://www.paraview.org/Bug/bug_relationship_graph.php?bug_id=8722;
>> g
>> >> raph=relation
>> >>
>> >> 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
>> >>
>> >
>> >
>> >
>> > --
>> > 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



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


Re: [Paraview] background color not saved in state

2017-12-05 Thread Cory Quammen
Hmm, I can't reproduce with the following:

* Start ParaView
* Add Wavelet
* Change background color.
* Save state, reset the session, and reload the state.

Can you give step-by-step instructions for how to reproduce?

By the way, if you wish to discuss in the issue tracker, the original
Mantis issue has been copied to GitLab:
https://gitlab.kitware.com/paraview/paraview/issues/8722

Thanks,
Cory

On Tue, Dec 5, 2017 at 6:52 AM, Heiland, Randy <heil...@iu.edu> wrote:
> Is this the expected behavior?
>
> Related:
> https://www.paraview.org/Bug/bug_relationship_graph.php?bug_id=8722=relation
>
> 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
>



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


Re: [Paraview] unable to RGB voxel from tiff/jpeg slice to volume

2017-12-01 Thread Cory Quammen
On Thu, Nov 30, 2017 at 9:17 PM, joe kozak <lentilwal...@hotmail.com> wrote:
> that worked...so why cant IsoVolume work on that type of dataset?  Can i
> not carve out a volume base on some range of Reds or Greens ?   What about
> based on some union of each channel?

I'm not sure what you are referring when you say IsoVolume. Is this
the Contour filter in ParaView? If so, the Contour filter does not
operate on RGB data. The Threshold filter does not work with RGB data,
either. You may be able to instead use Find Data to locate all points
that fall in some range, and you can use a Python expression to
perform a union of thresholds on different channels. After you have
created a selection this way, you can extract the selection with the
Extract Selection button on the bottom of the Find Data dialog.

Note that image data is associated with points in images in ParaView,
not cells, so if you want to extract a selection of cells, you might
use the Point Data to Cell Data filter before creating a selection.

HTH,
Cory

> ____
> From: Cory Quammen <cory.quam...@kitware.com>
> Sent: Thursday, November 30, 2017 7:29 PM
> To: joe kozak
> Cc: paraview@paraview.org
> Subject: Re: [Paraview] unable to RGB voxel from tiff/jpeg slice to volume
>
> Joe,
>
> This is more of a question for the ITK discussion forum [1], but I'll
> give you a potential solution here.
>
> The problem is that
>
> typedef itk::Image  ImageType;
>
> declares a 3-dimensional scalar-valued image, not a 3-component (RGB)
> 2-dimensional image. To declare an RGB ITK image, try this:
>
> typedef itk::RGBPixel< unsigned char > RGBPixelType;
> typedef itk::Image< RGBPixelType, 3 > ImageType;
>
> I hope that helps.
>
> Cory
>
> [1] https://discourse.itk.org/
>
> On Thu, Nov 30, 2017 at 8:14 PM, joe kozak <lentilwal...@hotmail.com> wrote:
>> grabbed frames from a standard youtube color video via ffmpeg
>> used something like $./imageSeriesToVolume -sz 1.0 -o test.vtk -i
>> input*.jpeg
>> loaded test.vtk in paraview 5.0.1 and also paraview 5.4.1
>> on information tab i see:   scalars  unsigned char [33,239]
>>
>> "Map Scalars"  on or off I get no RGB colored voxels, of course, because
>> there is only one datum of type unsigned char.
>>
>> Where are the other two scalars?!?
>>
>> The important part you will ask me is here:
>>
>>  91   io->SetFileName (filenames[0].c_str());
>>  92   io->ReadImageInformation();
>>  93
>>  94   if (io->GetNumberOfDimensions()==2) {
>>  95
>>  96 typedef itk::Image  ImageType;
>>  97 typedef itk::ImageSeriesReader SeriesReaderType;
>>  98
>>  99
>> 100 SeriesReaderType::Pointer reader = SeriesReaderType::New();
>> 101 std::cout << "Adding:\n";
>> 102 for (unsigned int i=0; i<filenames.size(); i++)
>> 103 {
>> 104   std::cout << filenames[i] << std::endl;
>> 105   reader->AddFileName ( filenames[i].c_str() );
>> 106 }
>> 107
>>
>> Looks pretty standard, but no 3 scalar datums for an RGB voxel for
>> non-false-colored volume.
>> It is perported to work, and all other examples i see are none different
>> from the code i used to generate a .vtk file.
>>
>>
>> I cannot use IsoVolume If I load the jpegs directly in paraview,  but I
>> can
>> get RGB color voxels.
>> The GOAL is to use IsoVolume on a volume of RGB points from frames from a
>> video sequence.
>> I have tried on and off for MANY YEARS to figure this out...(its for
>> an
>> art project, metalcasting &3d Printing)
>>
>> _______
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView 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.



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


Re: [Paraview] unable to RGB voxel from tiff/jpeg slice to volume

2017-11-30 Thread Cory Quammen
Joe,

This is more of a question for the ITK discussion forum [1], but I'll
give you a potential solution here.

The problem is that

typedef itk::Image  ImageType;

declares a 3-dimensional scalar-valued image, not a 3-component (RGB)
2-dimensional image. To declare an RGB ITK image, try this:

typedef itk::RGBPixel< unsigned char > RGBPixelType;
typedef itk::Image< RGBPixelType, 3 > ImageType;

I hope that helps.

Cory

[1] https://discourse.itk.org/

On Thu, Nov 30, 2017 at 8:14 PM, joe kozak <lentilwal...@hotmail.com> wrote:
> grabbed frames from a standard youtube color video via ffmpeg
> used something like $./imageSeriesToVolume -sz 1.0 -o test.vtk -i
> input*.jpeg
> loaded test.vtk in paraview 5.0.1 and also paraview 5.4.1
> on information tab i see:   scalars  unsigned char [33,239]
>
> "Map Scalars"  on or off I get no RGB colored voxels, of course, because
> there is only one datum of type unsigned char.
>
> Where are the other two scalars?!?
>
> The important part you will ask me is here:
>
>  91   io->SetFileName (filenames[0].c_str());
>  92   io->ReadImageInformation();
>  93
>  94   if (io->GetNumberOfDimensions()==2) {
>  95
>  96 typedef itk::Image  ImageType;
>  97 typedef itk::ImageSeriesReader SeriesReaderType;
>  98
>  99
> 100 SeriesReaderType::Pointer reader = SeriesReaderType::New();
> 101 std::cout << "Adding:\n";
> 102 for (unsigned int i=0; i<filenames.size(); i++)
> 103 {
> 104   std::cout << filenames[i] << std::endl;
> 105   reader->AddFileName ( filenames[i].c_str() );
> 106 }
> 107
>
> Looks pretty standard, but no 3 scalar datums for an RGB voxel for
> non-false-colored volume.
> It is perported to work, and all other examples i see are none different
> from the code i used to generate a .vtk file.
>
>
> I cannot use IsoVolume If I load the jpegs directly in paraview,  but I can
> get RGB color voxels.
> The GOAL is to use IsoVolume on a volume of RGB points from frames from a
> video sequence.
> I have tried on and off for MANY YEARS to figure this out...(its for an
> art project, metalcasting &3d Printing)
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] [EXTERNAL] Re: boolean mesh filtering

2017-11-27 Thread Cory Quammen
Alan,

It would be possible to expose the boolean operations filter in ParaView
without much trouble. However, that filter is limited to
polydata-to-polydata intersection (a plus for Jeff's application), and
works best when the geometries overlap but do not share faces (a minus for
Jeff's application). For Jeff's needs, I don't think it would be that
useful.

Thanks,
Cory

On Mon, Nov 20, 2017 at 5:38 PM, Scott, W Alan <wasc...@sandia.gov> wrote:

> T.J.,
>
>
>
> This filter doesn’t appear to be in ParaView.  Am I missing something?
> Should we add it to ParaView?
>
>
>
> Alan
>
>
>
> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *TJ
> Corona
> *Sent:* Monday, November 20, 2017 1:22 PM
> *To:* Mauldin, Jeffrey A. <jama...@sandia.gov>
> *Cc:* paraview@paraview.org
> *Subject:* [EXTERNAL] Re: [Paraview] boolean mesh filtering
>
>
>
> Hi Jeffrey,
>
>
>
> You may want to check out vtkBooleanOperationPolyDataFilter
> <https://www.vtk.org/doc/nightly/html/classvtkBooleanOperationPolyDataFilter.html>.
> It sounds like it may have the functionality you desire.
>
>
>
> Sincerely,
>
> T.J.
>
>
>
> Thomas J. Corona, Ph.D.
> Kitware, Inc.
> Senior R Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4443 <(518)%20881-4443>
>
>
>
> On Nov 20, 2017, at 3:18 PM, Mauldin, Jeffrey A. <jama...@sandia.gov>
> wrote:
>
>
>
> I have a need to do a Boolean intersection of two unstructured multiblock
> datasets.  It so happens in this case that the underlying element sets are
> polygonal meshes, so in this particular case I could also do what I want
> with a Boolean intersection of two polygonal meshes.  To be (hopefully)
> redundant, I have two meshes which share some points and cells and each of
> which have other points and cells which are not shared.  I would like a new
> mesh which consists of all the points and cells that are in both of these
> meshes.  I need this to work properly in parallel.
>
>
>
> I know enough to create a python-based filter (python programmable filter)
> to create this operation, but are there already existing Boolean mesh
> operations, and if not would those be a useful thing to add?
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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
>
>


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


Re: [Paraview] Displaying volume outside of mesh as solid

2017-11-27 Thread Cory Quammen
There isn't anything in ParaView to view empty volumes. At some stage, the
volume you are talking about needs to be represented by a grid or mesh for
it to be visualized with ParaView. If you can generate a volumetric mesh
outside of ParaView, then you could use all the visualization techniques in
ParaView that apply to volume meshes. As a post-processing application,
ParaView has essentially no built-in functions for generating volume meshes.

Hope that helps,
Cory

On Mon, Nov 20, 2017 at 7:42 PM, sergey <schar...@gmail.com> wrote:

> Hello,
>
> I am looking for a way to display a volume that is not covered by mesh
> (its located somewhere in the middle of mesh).
>
> By default such volumes (without mesh) are shown as empty area, and
> meshed area is shown as solid.
>
> I need to reverse the solid and empty areas, so that non-meshed volume
> is shown as solid, and meshed volume as empty.
>
> Mesh is in 3D.
>
> Is there a way to do this?
>
> Thank you very much.
>
> Best,
>
> Sergey
>
> ___
> 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
>



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


Re: [Paraview] How to plot pressure map on an airfoil or circle?

2017-11-27 Thread Cory Quammen
Hi Eman,

The Warp By Scalar filter will warp a geometry, such as a circle, according
to a scalar field at each point in the geometry. The geometry must have a
Normals array set for this to work.

The Glyph filter can draw arrows scaled according to the scalar value at
your circular geometry.

HTH,
Cory

On Sun, Nov 19, 2017 at 11:18 AM, emanmoba Mb <emanm...@gmail.com> wrote:

> Hello everyone,
>
> I have some scalar data on the surface of a circle and I want to plot it
> on the circle, something similar to the attached images (like a pressure
> map around airfoil). Does anyone know how I can do it in ParaView?
>
> https://image.ibb.co/d9WnA6/para.png
> http://dhaerotech.com/Images/Clark%20Y%20Aileron%20Forces.jpg
> https://cyclistsforsustainablebicycles.files.wordpress.com/2009/08/
> airfoil.gif
>
> Thanks a lot.
> Eman
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] How to read the file info in *pvd file

2017-11-15 Thread Cory Quammen
The file names are embedded in the same XML element as the time step:



But I'll be that's not how you want to access them.

Next question: From where do you want to access the file names? A Python
script? In the UI?

On Wed, Nov 15, 2017 at 12:35 PM, Ke Gao <ke.gao...@gmail.com> wrote:

> Hi,
>
> I mean how to get the file name info such as "Sout_1012.pvtu",
> "Sout_1013.pvtu". Currently I can only read the timestep info such as
> "+1.9880e+03".
>
> Many thanks.
>
>
> 
>   
>   
> 
> 
> 
>
> On Wed, Nov 15, 2017 at 10:33 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
>> What do you mean by "file info"? File name? Size of the file? Data arrays
>> in the file?
>>
>> - Cory
>>
>> On Tue, Nov 14, 2017 at 4:45 PM, Ke Gao <ke.gao...@gmail.com> wrote:
>>
>>> Does anyone know how to read the file info from *pvd file? I know how to
>>> get the time step values, just using the keyword of “TimestepValues”,
>>> however, I tried different ways, still haven’t figured out how to read the
>>> file info.
>>>
>>> Thanks
>>>
>>> 
>>>   
>>>   
>>> >> file="Sout_1012.pvtu"/>
>>> >> file="Sout_1013.pvtu"/>
>>> >> file="Sout_1014.pvtu"/>
>>> --
>>> 
>>> 
>>> ..
>>> 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
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>>
>
>
>
> --
> 
> 
> ..
> Ke Gao
>



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


Re: [Paraview] [EXTERNAL] Re: pvbatch

2017-11-15 Thread Cory Quammen
Alan,

You should be able to run

pvpython --force-offscreen-rendering script.py

and no render window will appear. The help for --force-offscreen-rendering
says:

  "If supported by the build and platform, create headless (offscreen)
render windows for rendering results."

I believe this should work on linux systems, but you should try it out on
the system on which you want to force offscreen rendering just to be sure
before using it to produce classified images.

pvbatch running the same script will indeed not pop up a render window even
without the --force-offscreen-rendering option.

Let us know how it goes,
Cory

On Mon, Nov 13, 2017 at 5:04 PM, Scott, W Alan <wasc...@sandia.gov> wrote:

> Ben,
> I believe this is a change from the past.  Here is what I desire – how do
> I get it?
>
> I want to run pv(pythonScript).  I want it to produce output.  I want it
> to run off screen, not showing on the console display or current display.
> This is especially important on classified systems.  MPI is not available.
>
> Not too long ago, my understanding was this was pvbatch.  pvpython used
> either the console display or current display as it’s rendering space.
> This does not catch my needs.
>
> Alan
>
> On 11/13/17, 9:04 AM, "Ben Boeckel" <ben.boec...@kitware.com> wrote:
>
> On Sun, Nov 12, 2017 at 22:42:29 +, Scott, W Alan wrote:
> > What are the magic cmake switches, for superbuild, that are used to
> > build a non MPI, Mesa version of pvbatch?  Where is this documented?
>
> pvpython is the non-MPI version of pvbatch. The superbuild docs could
> probably be improved here. Currently, the mention is:
>
> ParaView supports multiple rendering engines including `egl`,
> `mesa`, `osmesa`, and `qt5`. All of these are incompatible with
> each
> other. If none of these are chosen, a UI-less ParaView will be
> built
> (basically just `pvpython`). On Windows and macOS, only the `qt5`
> rendering engine is available.
>
> --Ben
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] How to read the file info in *pvd file

2017-11-15 Thread Cory Quammen
What do you mean by "file info"? File name? Size of the file? Data arrays
in the file?

- Cory

On Tue, Nov 14, 2017 at 4:45 PM, Ke Gao <ke.gao...@gmail.com> wrote:

> Does anyone know how to read the file info from *pvd file? I know how to
> get the time step values, just using the keyword of “TimestepValues”,
> however, I tried different ways, still haven’t figured out how to read the
> file info.
>
> 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
>
>


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


Re: [Paraview] vtkCutter

2017-10-30 Thread Cory Quammen
Hmm, vtkContourTriangulator may not copy point data to its output. You can
use Resample With Dataset to get the point data back in the output of
vtkContourTriangulator. Select the input to the triangulator as well as the
triangulator itself and add a Resample With Dataset Set filter. Set the
Input of this filter to the input of the triangulator filter, and set the
Source to the triangulator filter itself.

On Fri, Oct 27, 2017 at 2:05 PM, Heiland, Randy <heil...@iu.edu> wrote:

> The Properties for the vtkContourTriangulator filter don’t seem to allow
> coloring by a scalar field. Is that expected?
>
>
>
> On Oct 26, 2017, at 11:18 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
> On Thu, Oct 26, 2017 at 11:15 AM, Heiland, Randy <heil...@iu.edu> wrote:
>
>> Thanks! Before I start down that path, will this handle multiple,
>> disjoint polylines? E.g., a plane slicing through 2 spheres; I just want to
>> cap the sliced spheres.
>>
>
> I'm about 95% sure it will. It is fairly robust IIRC.
>
> Cory
>
>> On Oct 26, 2017, at 11:10 AM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>>
>> There isn't a filter exposed in ParaView to do this. You could expose
>> vtkContourTriangulator in an XML plugin [1] and apply that to the polyline
>> created by the planar Slice through your polygonal geometry.
>>
>> Cory
>>
>> [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only
>>
>> On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>
>>> Yes, sorry I wasn’t clear.
>>>
>>> On Oct 26, 2017, at 10:33 AM, Cory Quammen <cory.quam...@kitware.com>
>>> wrote:
>>>
>>> I'm not sure what you mean. Are you trying to clip some polygonal
>>> geometry with a plane and want to fill in the hole created with a polygon?
>>>
>>> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>>
>>>> Is there a property that lets me cap the results?
>>>>
>>>> On Oct 26, 2017, at 10:18 AM, Cory Quammen <cory.quam...@kitware.com>
>>>> wrote:
>>>>
>>>> Sounds like you want the Slice filter.
>>>>
>>>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy <heil...@iu.edu>
>>>> wrote:
>>>>
>>>>> I’m not seeing the vtkCutter in the list of filters (well, perhaps the
>>>>> AMR CutPlane). If not, any advice on how to accomplish it for some 
>>>>> polydata?
>>>>>  https://www.paraview.org/Wiki/Python_Programmable_Filter ?
>>>>>
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Cory Quammen
>>>> Staff R Engineer
>>>> Kitware, Inc.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Cory Quammen
>>> Staff R Engineer
>>> Kitware, Inc.
>>>
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>>
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


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


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
On Thu, Oct 26, 2017 at 11:15 AM, Heiland, Randy <heil...@iu.edu> wrote:

> Thanks! Before I start down that path, will this handle multiple, disjoint
> polylines? E.g., a plane slicing through 2 spheres; I just want to cap the
> sliced spheres.
>

I'm about 95% sure it will. It is fairly robust IIRC.

Cory

> On Oct 26, 2017, at 11:10 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
> There isn't a filter exposed in ParaView to do this. You could expose
> vtkContourTriangulator in an XML plugin [1] and apply that to the polyline
> created by the planar Slice through your polygonal geometry.
>
> Cory
>
> [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only
>
> On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy <heil...@iu.edu> wrote:
>
>> Yes, sorry I wasn’t clear.
>>
>> On Oct 26, 2017, at 10:33 AM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>>
>> I'm not sure what you mean. Are you trying to clip some polygonal
>> geometry with a plane and want to fill in the hole created with a polygon?
>>
>> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>
>>> Is there a property that lets me cap the results?
>>>
>>> On Oct 26, 2017, at 10:18 AM, Cory Quammen <cory.quam...@kitware.com>
>>> wrote:
>>>
>>> Sounds like you want the Slice filter.
>>>
>>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>>
>>>> I’m not seeing the vtkCutter in the list of filters (well, perhaps the
>>>> AMR CutPlane). If not, any advice on how to accomplish it for some
>>>> polydata? https://www.paraview.org/Wiki/Python_Programmable_Filter ?
>>>>
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Cory Quammen
>>> Staff R Engineer
>>> Kitware, Inc.
>>>
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>>
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


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


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
There isn't a filter exposed in ParaView to do this. You could expose
vtkContourTriangulator in an XML plugin [1] and apply that to the polyline
created by the planar Slice through your polygonal geometry.

Cory

[1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only

On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy <heil...@iu.edu> wrote:

> Yes, sorry I wasn’t clear.
>
> On Oct 26, 2017, at 10:33 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
> I'm not sure what you mean. Are you trying to clip some polygonal geometry
> with a plane and want to fill in the hole created with a polygon?
>
> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy <heil...@iu.edu> wrote:
>
>> Is there a property that lets me cap the results?
>>
>> On Oct 26, 2017, at 10:18 AM, Cory Quammen <cory.quam...@kitware.com>
>> wrote:
>>
>> Sounds like you want the Slice filter.
>>
>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy <heil...@iu.edu> wrote:
>>
>>> I’m not seeing the vtkCutter in the list of filters (well, perhaps the
>>> AMR CutPlane). If not, any advice on how to accomplish it for some
>>> polydata? https://www.paraview.org/Wiki/Python_Programmable_Filter ?
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>>
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


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


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
I'm not sure what you mean. Are you trying to clip some polygonal geometry
with a plane and want to fill in the hole created with a polygon?

On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy <heil...@iu.edu> wrote:

> Is there a property that lets me cap the results?
>
> On Oct 26, 2017, at 10:18 AM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
> Sounds like you want the Slice filter.
>
> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy <heil...@iu.edu> wrote:
>
>> I’m not seeing the vtkCutter in the list of filters (well, perhaps the
>> AMR CutPlane). If not, any advice on how to accomplish it for some
>> polydata? https://www.paraview.org/Wiki/Python_Programmable_Filter ?
>>
>> 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
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


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


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
Sounds like you want the Slice filter.

On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy <heil...@iu.edu> wrote:

> I’m not seeing the vtkCutter in the list of filters (well, perhaps the AMR
> CutPlane). If not, any advice on how to accomplish it for some polydata?
> https://www.paraview.org/Wiki/Python_Programmable_Filter ?
>
> 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
>
>


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


Re: [Paraview] Programmable filter VTK/numpy

2017-10-25 Thread Cory Quammen
You should change 'array_name' to 'MetaImage'. Sorry I didn't make it clear
that 'array_name' is just a placeholder for whatever name your array has.

Cory

On Wed, Oct 25, 2017 at 7:46 AM, Edoardo Pasca <edo.pask...@gmail.com>
wrote:

> Hallo Cory and all,
>
> I've spent a few minutes trying to find out where my script crashes:
>
> 1) I load a MetaImage and the scalars are named 'MetaImage'
>
> 2) Paraview crashes if I use inData = dsa.WrapDataObject(inputs[0])
>
> B = inData.PointData['array_name'] # best practice is to name the array
>
>
> 3) If I use the outData = dsa.WrapDataObject(output)
>
> outData.PointData.append(A,'new_array_name')
>
>
> the output contains nothing. It says type Uniform Rectilinear Grid but there 
> is no point inside.
>
>
> Thanks
>
>
> Edo
>
>
> On Fri, Oct 20, 2017 at 3:48 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
>> On Thu, Oct 19, 2017 at 11:02 AM, Edoardo Pasca <edo.pask...@gmail.com>
>> wrote:
>>
>>> Hi Cory,
>>>
>>> thanks for your reply. I'd love to simplify the code like that but there
>>> are 2 issues with that programmable filter
>>>
>>> 1) I miss information on the input and output variables. Where are
>>> defined?
>>>
>>
>> It's a bit complicated to select them in the user interface, but it is
>> possible. There was a related discussion on the mailing list recently on
>> how to do this: http://paraview.markmail.org/thread/j4ynkclxcucpqoa5
>>
>> In the worst case, you can hard-code the array names if they don't
>> change. Relying on the active scalar attribute is old-style VTK and may go
>> away someday in the not-too-near future. Or you could just keep your
>> original code for defining array B.
>>
>>
>>> 2) Paraview crashes. Paraview for windows 5.4.1 and 5.3.0 (official
>>> kitware build)
>>>
>>> It seems a memory access problem.
>>>
>>
>> To debug, I suggest writing your Programmable Filter script a few lines
>> at a time to determine which line causes the crash.
>>
>> HTH,
>> Cory
>>
>>
>>> Edo
>>>
>>> On Thu, Oct 19, 2017 at 2:52 PM, Cory Quammen <cory.quam...@kitware.com>
>>> wrote:
>>>
>>>> Hi Edo,
>>>>
>>>> Documentation for the VTK/Numpy adapter can be found here:
>>>>
>>>> https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/par
>>>> aview.vtk.numpy_interface.html?highlight=numpy_interface#num
>>>> py-interface-package
>>>>
>>>> You will likely be interested in the dataset_adapter module that
>>>> provides a convenient way to wrap VTK data objects in a Python class that
>>>> provides easy read/write access to VTK data arrays as Numpy arrays.
>>>>
>>>> You could simplify your code quite a bit using this adapter as in the
>>>> following:
>>>>
>>>> import numpy
>>>>
>>>> from vtk.util import numpy_support, vtkImageImportFromArray
>>>>
>>>> import vtk.numpy_interface.dataset_adapter as dsa
>>>>
>>>>
>>>> inData = dsa.WrapDataObject(inputs[0])
>>>>
>>>> B = inData.PointData['array_name'] # best practice is to name the array
>>>>
>>>>
>>>> #B = numpy_support.vtk_to_numpy(
>>>>
>>>> #inputs[0].GetPointData().GetScalars())
>>>>
>>>>
>>>> ifLarger = lambda x,M: x if x<=M else 0
>>>>
>>>> fgt = numpy.frompyfunc(ifLarger,2,1)
>>>>
>>>> #A = fgt(B,int(2**16*0.8))
>>>>
>>>>
>>>> ifSmaller = lambda x,M: x if x>M else 0
>>>>
>>>> flt = numpy.frompyfunc(ifSmaller,2,1)
>>>>
>>>> #A = flt(B,int(2**16*0.3))
>>>>
>>>>
>>>> ifBetween = lambda x,m,M: ifSmaller(x,m) if x<=M else 0
>>>>
>>>> fbetw = numpy.frompyfunc(ifBetween,3,1)
>>>>
>>>>
>>>> A = fbetw(B,int(2**16*0.3), int(2**16*0.95))
>>>>
>>>>
>>>> outData = dsa.WrapDataObject(output)
>>>>
>>>> outData.PointData.append(A,'new_array_name')
>>>>
>>>>
>>>> #A = numpy.asarray(A,dtype=uint16)
>>>>
>>>> #dims = inputs[0].GetDimensions()
>>>>
>>>> #A = numpy.reshape(A, (dims[2],dims[1],dims[0]), order='C')
>>>>
>>>

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 <sda...@gmail.com> 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 <http://3demholding.com>
> (713)498-6139
>
>
> On Mon, Oct 9, 2017 at 1:54 PM, Scott, W Alan <wasc...@sandia.gov> 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) <cory.quam...@kitware.com>
>> *Cc:* ParaView <paraview@paraview.org>
>> *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 <sda...@gmail.com>
>> wrote:
>>
>> Cory,
>>
>>
>>
>> The Glyph works just fine with my data.vtk and is very useful tool! It
>> was a good advice.
>&

Re: [Paraview] Programmable filter VTK/numpy

2017-10-20 Thread Cory Quammen
On Thu, Oct 19, 2017 at 11:02 AM, Edoardo Pasca <edo.pask...@gmail.com>
wrote:

> Hi Cory,
>
> thanks for your reply. I'd love to simplify the code like that but there
> are 2 issues with that programmable filter
>
> 1) I miss information on the input and output variables. Where are defined?
>

It's a bit complicated to select them in the user interface, but it is
possible. There was a related discussion on the mailing list recently on
how to do this: http://paraview.markmail.org/thread/j4ynkclxcucpqoa5

In the worst case, you can hard-code the array names if they don't change.
Relying on the active scalar attribute is old-style VTK and may go away
someday in the not-too-near future. Or you could just keep your original
code for defining array B.


> 2) Paraview crashes. Paraview for windows 5.4.1 and 5.3.0 (official
> kitware build)
>
> It seems a memory access problem.
>

To debug, I suggest writing your Programmable Filter script a few lines at
a time to determine which line causes the crash.

HTH,
Cory


> Edo
>
> On Thu, Oct 19, 2017 at 2:52 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
>> Hi Edo,
>>
>> Documentation for the VTK/Numpy adapter can be found here:
>>
>> https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/
>> paraview.vtk.numpy_interface.html?highlight=numpy_
>> interface#numpy-interface-package
>>
>> You will likely be interested in the dataset_adapter module that provides
>> a convenient way to wrap VTK data objects in a Python class that provides
>> easy read/write access to VTK data arrays as Numpy arrays.
>>
>> You could simplify your code quite a bit using this adapter as in the
>> following:
>>
>> import numpy
>>
>> from vtk.util import numpy_support, vtkImageImportFromArray
>>
>> import vtk.numpy_interface.dataset_adapter as dsa
>>
>>
>> inData = dsa.WrapDataObject(inputs[0])
>>
>> B = inData.PointData['array_name'] # best practice is to name the array
>>
>>
>> #B = numpy_support.vtk_to_numpy(
>>
>> #inputs[0].GetPointData().GetScalars())
>>
>>
>> ifLarger = lambda x,M: x if x<=M else 0
>>
>> fgt = numpy.frompyfunc(ifLarger,2,1)
>>
>> #A = fgt(B,int(2**16*0.8))
>>
>>
>> ifSmaller = lambda x,M: x if x>M else 0
>>
>> flt = numpy.frompyfunc(ifSmaller,2,1)
>>
>> #A = flt(B,int(2**16*0.3))
>>
>>
>> ifBetween = lambda x,m,M: ifSmaller(x,m) if x<=M else 0
>>
>> fbetw = numpy.frompyfunc(ifBetween,3,1)
>>
>>
>> A = fbetw(B,int(2**16*0.3), int(2**16*0.95))
>>
>>
>> outData = dsa.WrapDataObject(output)
>>
>> outData.PointData.append(A,'new_array_name')
>>
>>
>> #A = numpy.asarray(A,dtype=uint16)
>>
>> #dims = inputs[0].GetDimensions()
>>
>> #A = numpy.reshape(A, (dims[2],dims[1],dims[0]), order='C')
>>
>> #A = numpy.ascontiguousarray(A)
>>
>> #importer = vtkImageImportFromArray.vtkImageImportFromArray()
>>
>> #importer.SetArray(A)
>>
>> #importer.SetDataSpacing(inputs[0].GetSpacing())
>>
>> #importer.SetDataOrigin(inputs[0].GetOrigin())
>>
>> #importer.Update()
>>
>>
>> #output.DeepCopy(importer.GetOutput())
>>
>>
>> Hope that helps,
>>
>> Cory
>>
>> On Tue, Oct 17, 2017 at 10:38 AM, Edoardo Pasca <edo.pask...@gmail.com>
>> wrote:
>>
>>> Hi there,
>>>
>>> In my programmable filter I want to use numpy to perform some operations
>>> on the pixels (in this case a simple thresholding). I've come up with this
>>> solution which works. I'm wondering if there are other ways to do the
>>> conversion from numpy array to vtkImageData.
>>>
>>> in the following code I get a numpy array out of the input vtkImageData
>>> as B. Then I do something on the content an store the result in a numpy
>>> array, A.
>>>
>>> Then I convert the numpy array to a vtkImageData with
>>> vtkImageImportFromArray importer class.
>>> Finally I copy the importer output to the output of the programmable
>>> filter.
>>>
>>> Thanks for any suggestions
>>>
>>> Edo
>>>
>>> import numpy
>>>
>>> from vtk.util import numpy_support, vtkImageImportFromArray
>>>
>>> import vtk.numpy_interface.dataset_adapter as dsa
>>>
>>>
>>> B = numpy_support.vtk_to_numpy(
>>>
>>> inputs[0].GetPointData().GetScalars())
>>>
>>

Re: [Paraview] Is it possible to group vtkImageData objects?

2017-10-20 Thread Cory Quammen
On Fri, Oct 20, 2017 at 10:10 AM, A . <super_ac...@hotmail.com> wrote:

> Thanks for your reply. I can see this work for vtkImageData objects having
> the same dimensions. What would you advise when working with vtkImageData
> objects of varying dimensions? In that case the attribute data will not
> 'fit' a single vtkImageData object.
>
For that case, nothing comes to mind that will let you stored several
different vtkImageData objects in a single file. Even if a
vtkMultiBlockDataSet worked for your other needs, it would actually be
saved out as one .vti file for each block plus a top-level .vtm file that
points to the .vti files.

Sorry,
Cory


> Best,
>
> Jimmy
>
>
> ------
> *Van:* Cory Quammen <cory.quam...@kitware.com>
> *Verzonden:* vrijdag 20 oktober 2017 14:48
> *Aan:* A .
> *CC:* paraview@paraview.org
> *Onderwerp:* Re: [Paraview] Is it possible to group vtkImageData objects?
>
> Hi Jimmy,
>
> Try "Append Attributes". This will yield a single vtkImageData that has
> several point data arrays, or "attributes". As long as the input
> vtkImageData have the same dimensions, this filter will do what you like.
> You can then pick which array you want to view with the Volume
> representation.
>
> To extract a vtkImageData with one or a subset of the appended arrays, you
> can use "Extract Component" or "Pass Arrays", respectively.
>
> HTH,
> Cory
>
> On Fri, Oct 20, 2017 at 7:29 AM, A . <super_ac...@hotmail.com> wrote:
>
>> Dear community,
>>
>>
>> Is it possible with ParaView to group vtkImageData objects in a single
>> file format? I would like to import a couple of regular grids (i.e.
>> vtkImageData objects) as a single file, rather than as grid_1.pvti,
>> grid_2.pvti, etc... Once imported I would like to simply select which grid
>> to visualize (with volume rendering).
>>
>>
>> I tried the following structures already:
>>
>>
>>
>>1. vktMultiBlockDataSet containing N vtkImageData objects as child
>>blocks.
>>2. vtkMultiBlockDataSet containing 1 vtkMultiPieceDataSet, which
>>contains N vtkImageData objects as child pieces
>>
>>
>> The first structure kind of works, but in order to visualize one
>> vtkImageData I need to "Extract Block" and "Resample to Image", which
>> doesn't result in the exact same image when doing volume rendering.
>> The second structure mixes my vtkImageData into a single data object. I
>> cannot do something like "Extract Piece".
>>
>> The main reason I want to have a single data structure containing all my
>> grids is so that I can pass it to my Python CoProcess Catalyst pipeline.
>> The number of grids can vary so I cannot simply hardcode the pipeline for a
>> fixed number of grids.
>>
>> If there is a way to make this work, please let me know!
>>
>> 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
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>



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


Re: [Paraview] Is it possible to group vtkImageData objects?

2017-10-20 Thread Cory Quammen
Hi Jimmy,

Try "Append Attributes". This will yield a single vtkImageData that has
several point data arrays, or "attributes". As long as the input
vtkImageData have the same dimensions, this filter will do what you like.
You can then pick which array you want to view with the Volume
representation.

To extract a vtkImageData with one or a subset of the appended arrays, you
can use "Extract Component" or "Pass Arrays", respectively.

HTH,
Cory

On Fri, Oct 20, 2017 at 7:29 AM, A . <super_ac...@hotmail.com> wrote:

> Dear community,
>
>
> Is it possible with ParaView to group vtkImageData objects in a single
> file format? I would like to import a couple of regular grids (i.e.
> vtkImageData objects) as a single file, rather than as grid_1.pvti,
> grid_2.pvti, etc... Once imported I would like to simply select which grid
> to visualize (with volume rendering).
>
>
> I tried the following structures already:
>
>
>
>1. vktMultiBlockDataSet containing N vtkImageData objects as child
>blocks.
>2. vtkMultiBlockDataSet containing 1 vtkMultiPieceDataSet, which
>contains N vtkImageData objects as child pieces
>
>
> The first structure kind of works, but in order to visualize one
> vtkImageData I need to "Extract Block" and "Resample to Image", which
> doesn't result in the exact same image when doing volume rendering.
> The second structure mixes my vtkImageData into a single data object. I
> cannot do something like "Extract Piece".
>
> The main reason I want to have a single data structure containing all my
> grids is so that I can pass it to my Python CoProcess Catalyst pipeline.
> The number of grids can vary so I cannot simply hardcode the pipeline for a
> fixed number of grids.
>
> If there is a way to make this work, please let me know!
>
> 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
>
>


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


Re: [Paraview] Problem compiling ParaView with NMake

2017-10-20 Thread Cory Quammen
Hi Thomas,

I strongly recommend using the Ninja generator for building ParaView with
Superbuild on Windows. It will build much faster than if you use other
build generators, and will take care of the particular problem you are
seeing as -j is a Ninja option that controls the level of build parallelism.

Cheers,
Cory

On Fri, Oct 20, 2017 at 8:28 AM, Thomas Krug <dammal...@gmail.com> wrote:

> Hallo everyone,
>
>
> I tried to compile ParaView for Windows 10, using the superbuild of
> version 5.4.1 and NMake Makefiles as generator.
>
>
> After the execution of nmake, I get the following error:
>
>
> --
>
> NMAKE : fatal error U1065: invalid option 'j'
>
> Stop.
>
> CMake Error at D:/Dokumente/…/ParaView/build_
> nmake/superbuild/sb-paraview-build.cmake:43 (message): Failed with exit
> code 2
>
> --
>
>
> Is this somehow related to a wrong setting of
> the SUPERBUILD_PROJECT_PARALLELISM build variable or might there be
> another cause for the error?
>
>
> My configuration:
>
> Windows 10 64bit
>
> cmake version 3.8.0
>
> VisualStudio 2015 Community
>
>
> Can anybody recommend how to proceed?
>
>
> Thanks in advance
>
> 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:
> 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


Re: [Paraview] Programmable filter VTK/numpy

2017-10-19 Thread Cory Quammen
Hi Edo,

Documentation for the VTK/Numpy adapter can be found here:

https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.vtk.numpy_interface.html?highlight=numpy_interface#numpy-interface-package

You will likely be interested in the dataset_adapter module that provides a
convenient way to wrap VTK data objects in a Python class that provides
easy read/write access to VTK data arrays as Numpy arrays.

You could simplify your code quite a bit using this adapter as in the
following:

import numpy

from vtk.util import numpy_support, vtkImageImportFromArray

import vtk.numpy_interface.dataset_adapter as dsa


inData = dsa.WrapDataObject(inputs[0])

B = inData.PointData['array_name'] # best practice is to name the array


#B = numpy_support.vtk_to_numpy(

#inputs[0].GetPointData().GetScalars())


ifLarger = lambda x,M: x if x<=M else 0

fgt = numpy.frompyfunc(ifLarger,2,1)

#A = fgt(B,int(2**16*0.8))


ifSmaller = lambda x,M: x if x>M else 0

flt = numpy.frompyfunc(ifSmaller,2,1)

#A = flt(B,int(2**16*0.3))


ifBetween = lambda x,m,M: ifSmaller(x,m) if x<=M else 0

fbetw = numpy.frompyfunc(ifBetween,3,1)


A = fbetw(B,int(2**16*0.3), int(2**16*0.95))


outData = dsa.WrapDataObject(output)

outData.PointData.append(A,'new_array_name')


#A = numpy.asarray(A,dtype=uint16)

#dims = inputs[0].GetDimensions()

#A = numpy.reshape(A, (dims[2],dims[1],dims[0]), order='C')

#A = numpy.ascontiguousarray(A)

#importer = vtkImageImportFromArray.vtkImageImportFromArray()

#importer.SetArray(A)

#importer.SetDataSpacing(inputs[0].GetSpacing())

#importer.SetDataOrigin(inputs[0].GetOrigin())

#importer.Update()


#output.DeepCopy(importer.GetOutput())


Hope that helps,

Cory

On Tue, Oct 17, 2017 at 10:38 AM, Edoardo Pasca <edo.pask...@gmail.com>
wrote:

> Hi there,
>
> In my programmable filter I want to use numpy to perform some operations
> on the pixels (in this case a simple thresholding). I've come up with this
> solution which works. I'm wondering if there are other ways to do the
> conversion from numpy array to vtkImageData.
>
> in the following code I get a numpy array out of the input vtkImageData as
> B. Then I do something on the content an store the result in a numpy array,
> A.
>
> Then I convert the numpy array to a vtkImageData with
> vtkImageImportFromArray importer class.
> Finally I copy the importer output to the output of the programmable
> filter.
>
> Thanks for any suggestions
>
> Edo
>
> import numpy
>
> from vtk.util import numpy_support, vtkImageImportFromArray
>
> import vtk.numpy_interface.dataset_adapter as dsa
>
>
> B = numpy_support.vtk_to_numpy(
>
> inputs[0].GetPointData().GetScalars())
>
>
> ifLarger = lambda x,M: x if x<=M else 0
>
> fgt = numpy.frompyfunc(ifLarger,2,1)
>
> #A = fgt(B,int(2**16*0.8))
>
>
> ifSmaller = lambda x,M: x if x>M else 0
>
> flt = numpy.frompyfunc(ifSmaller,2,1)
>
> #A = flt(B,int(2**16*0.3))
>
>
> ifBetween = lambda x,m,M: ifSmaller(x,m) if x<=M else 0
>
> fbetw = numpy.frompyfunc(ifBetween,3,1)
>
>
> A = fbetw(B,int(2**16*0.3), int(2**16*0.95))
>
>
>
> A = numpy.asarray(A,dtype=uint16)
>
> dims = inputs[0].GetDimensions()
>
> A = numpy.reshape(A, (dims[2],dims[1],dims[0]), order='C')
>
> A = numpy.ascontiguousarray(A)
>
> importer = vtkImageImportFromArray.vtkImageImportFromArray()
>
> importer.SetArray(A)
>
> importer.SetDataSpacing(inputs[0].GetSpacing())
>
> importer.SetDataOrigin(inputs[0].GetOrigin())
>
> importer.Update()
>
>
> output.DeepCopy(importer.GetOutput())
>
>
>
> --
> Edo
> I know you think you understand what you thought I said, but I'm not sure
> you realize that what you heard is not what I meant (prob. Alan Greenspan)
> :wq
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] [EXTERNAL] 2d decimation

2017-10-13 Thread Cory Quammen
Alan,

I just tried it on a Slice through a Wavelet and it seemed to work okay.
Can you list the steps you took to reproduce the holes?

Thanks,
Cory

On Fri, Oct 13, 2017 at 1:48 PM, Scott, W Alan <wasc...@sandia.gov> wrote:

> Ping?
>
>
>
> *From: *ParaView <paraview-boun...@paraview.org> on behalf of W Scott <
> wasc...@sandia.gov>
> *Date: *Wednesday, October 11, 2017 at 12:08 PM
> *To: *"paraview@paraview.org" <paraview@paraview.org>
> *Subject: *[EXTERNAL] [Paraview] 2d decimation
>
>
>
> I tried the decimation filter on a slice, and it ended up with huge
> holes.Is this a fool’s errand, or should we be able to decimate a slice
> and not have holes?  Do we need a new filter – decimate2d?
>
>
>
> 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
>
>


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


Re: [Paraview] simple Programmable Source

2017-10-11 Thread Cory Quammen
Randy,

Try setting a name on the array with

scalars.SetName('array_name')

This should let you select this array as the color array in ParaView.

- Cory

On Wed, Oct 11, 2017 at 9:48 PM, Heiland, Randy <heil...@iu.edu> wrote:

> I create the following in the Pgmable Source in PV, but cannot figure out
> how to color the resulting points or 3D glyphs using the scalar values.
> What am I missing?
> -Randy
>
> # Get a vtk.PolyData object for the output
> pdo = self.GetPolyDataOutput()
>
> # Create points
> num_pts = 3
> newPts = vtk.vtkPoints()
> scalars = vtk.vtkFloatArray()
>
> xval = -1.0
> for idx in range(0, num_pts):
>   # rf. PhysiCell User Guide for these array indices to a cell's position.
>   x = xval
>   y = 0.0
>   z = 0.0
>   newPts.InsertPoint(idx, x,y,z)
>   sval = xval*2
>   scalars.InsertNextValue(sval)
>   xval += 1.0
>
> # Add the points to the vtkPolyData object.
> pdo.SetPoints(newPts)
> pdo.GetPointData().SetScalars(scalars)
>
> 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
>
>


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


Re: [Paraview] Paraview 5.4.1 error message & freeze

2017-10-09 Thread Cory Quammen
Sonya,

Thanks for the report. Could you try ParaView 5.2 and see if that works or
produces the same problem as 5.4?

Thank you,
Cory

On Mon, Oct 9, 2017 at 8:52 AM, Sonya Davydycheva <sda...@gmail.com> wrote:

> 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 <http://3demholding.com>
>
>
>
> On Wed, Oct 4, 2017 at 7:29 PM, Sonya Davydycheva <sda...@gmail.com>
> 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 <cory.quam...@kitware.com>
>> 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 <sda...@gmail.com>
>>> 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 data points (3 coordinates) and the
>>>> resistivity values assigned to them. When I open it, I can see only the
>>>> resistivity colorbar, and I can add axes, but the image stays empty.
>>>> Threshold does not work at all (and even the colorbar disappears when I
>>>> apply it).
>>>> Slice somewhat works, but it stays gray/empty and does not change as I
>>>> move it along the box.
>>>> And when I am in "Slice" mode, pressing "Apply" removes the colorbar as
>>>> well, and does not show anything meaningful.
>>>>
>>>> Any idea how can I activate Threshold or Slice for my resistivity
>>>> data.vtk?
>>>>
>>>> I am beginner and suspect I just miss something simple...
>>>> Reading ParaViewGettingStarted-5.4.0.pdf and ParaViewTutorial54.pdf,
>>>> does not help, so far.
>>>>
>>>
>>> I suspect that you do not have any cells in your 3-point data.vtk file.
>>> Without cells, there is nothing for ParaView to visualize. This is a common
>>> stumbling block for people trying to visualize point data.I suggest after
>&g

Re: [Paraview] Clearing a selection created in python

2017-10-05 Thread Cory Quammen
Felipe,

I can confirm this behavior, and I have filed a bug report here:

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

Thanks,
Cory

On Thu, Sep 14, 2017 at 4:06 AM, Felipe Bordeu <felipebor...@gmail.com>
wrote:

> Hi, I'm trying to create a selection using python, but I have a little
> question
>
> I use this script (as a macro)
>
> source = GetActiveSource()
> activeView = GetActiveView()
> props = GetDisplayProperties(source,view=activeView)
> fieldtype, arrayname = props.ColorArrayName
> a = paraview.simple._select(fieldtype[0:-1], arrayname,source)
> Render()
>
> this will highlight all the entities (points or cells) with values
> different form zero in the current view (this work great)
>
> the only problem is that the clear selection icon ("garbage icon") is
> disable and the only way to clear the selection is to create a new
> selection (using the mouse) and the clear it using the button.
>
> Any ideas.
> thanks
>
> Felipe
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Paraview 5.4.1 error message & freeze

2017-10-04 Thread Cory Quammen
[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 <sda...@gmail.com> 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 data points (3 coordinates) and the
> resistivity values assigned to them. When I open it, I can see only the
> resistivity colorbar, and I can add axes, but the image stays empty.
> Threshold does not work at all (and even the colorbar disappears when I
> apply it).
> Slice somewhat works, but it stays gray/empty and does not change as I
> move it along the box.
> And when I am in "Slice" mode, pressing "Apply" removes the colorbar as
> well, and does not show anything meaningful.
>
> Any idea how can I activate Threshold or Slice for my resistivity data.vtk?
>
> I am beginner and suspect I just miss something simple...
> Reading ParaViewGettingStarted-5.4.0.pdf and ParaViewTutorial54.pdf, does
> not help, so far.
>

I suspect that you do not have any cells in your 3-point data.vtk file.
Without cells, there is nothing for ParaView to visualize. This is a common
stumbling block for people trying to visualize point data.I suggest after
loading your data applying a Glyph filter. It should show you three spheres
colored according to your resistivity array. Now you should be able to
apply the Threshold and Slice filters as you would expect.

Thanks,
Cory


> Many thanks in advance,
>
> Best regards,
>
> Sonya Davydycheva
>
>
> On Tue, Oct 3, 2017 at 4:12 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
>> On Tue, Oct 3, 2017 at 3:31 PM, Sonya Davydycheva <sda...@gmail.com>
>> wrote:
>> > Hello,
>> >
>> > Does anybody know what this Output message mean? (appears when I press
>> > "Example Visuatizations"... thougth, some examples emerge),
>> > -
>> > QWindowsWindow::setGeometry: Unable to set geometry 996x403+228+226 on
>> > QWidgetWindow/'pqExampleVisualizationsDialogWindow'. Resulting
>> geometry:
>> > 996x412+228+226 (frame: 9, 36, 9, 9, custom margin: 0, 0, 0, 0, minimum
>> > size: 956x403, maximum size: 16777215x16777215).QWindowsWin
>> dow::setGeometry:
>> > Unable to set geometry 996x403+228+226 on
>> > QWidgetWindow/'pqExampleVisualizationsDialogWindow'. Resulting
>> geometry:
>> > 996x412+228+226 (frame: 9, 36, 9, 9, custom margin: 0, 0, 0, 0, minimum
>> > size: 956x403, maximum size: 16777215x16777215).
>> > --
>>
>> The message is a warning from the Qt side. Aside from being annoying,
>> it should be harmless. Sorry, but we haven't figured out why this
>> appears on some systems and not others.
>>
>> > Also, my Paraview 5.4.1 (installed under 64-bit Windows 7, ) often
>> freezes.
>> > I wonder if this can be related to the issue above.
>>
>> Does it stop responding or does it crash? It's probably not related to
>> the warning message above.
>>
>> Cory
>>
>> > Thanks,
>> >
>> > Sonya Davydycheva
>> >
>> >
>> >
>> > _______
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the ParaView 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.
>>
>
>


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


Re: [Paraview] Paraview 5.4.1 error message & freeze

2017-10-03 Thread Cory Quammen
On Tue, Oct 3, 2017 at 3:31 PM, Sonya Davydycheva <sda...@gmail.com> wrote:
> Hello,
>
> Does anybody know what this Output message mean? (appears when I press
> "Example Visuatizations"... thougth, some examples emerge),
> -
> QWindowsWindow::setGeometry: Unable to set geometry 996x403+228+226 on
> QWidgetWindow/'pqExampleVisualizationsDialogWindow'. Resulting geometry:
> 996x412+228+226 (frame: 9, 36, 9, 9, custom margin: 0, 0, 0, 0, minimum
> size: 956x403, maximum size: 16777215x16777215).QWindowsWindow::setGeometry:
> Unable to set geometry 996x403+228+226 on
> QWidgetWindow/'pqExampleVisualizationsDialogWindow'. Resulting geometry:
> 996x412+228+226 (frame: 9, 36, 9, 9, custom margin: 0, 0, 0, 0, minimum
> size: 956x403, maximum size: 16777215x16777215).
> --

The message is a warning from the Qt side. Aside from being annoying,
it should be harmless. Sorry, but we haven't figured out why this
appears on some systems and not others.

> Also, my Paraview 5.4.1 (installed under 64-bit Windows 7, ) often freezes.
> I wonder if this can be related to the issue above.

Does it stop responding or does it crash? It's probably not related to
the warning message above.

Cory

> Thanks,
>
> Sonya Davydycheva
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] Windows MPI capable Paraview binary install package question

2017-09-29 Thread Cory Quammen
On Fri, Sep 29, 2017 at 5:46 PM, Cone, Giovanni Antonio <con...@lanl.gov> wrote:
> Hello gang,
>
>   We're attempting to deploy the PV-5.4.1 Windows client via the SCCM
> utility on our systems here at LANL. Our SCCM team deployed the MPI-
> enabled version for user installation. Early testers are encountering
> an error message regarding a missing "msmpi.dll" library.  I'm
> suspecting that this particular build of PV is making use of
> Microsoft's MPI library/SDK?

Yes, that is correct.

> If so, I'll simply have our SCCM team deploy the non-MPI capable PV.
> Given that the common use case will be to use the PV GUI for a client-
> server connection to our HPC platforms, having a locally MPI-capable
> ParaView is likely overkill.

That will work. Otherwise they would need to deploy Microsoft's MPI
library as well.

Thanks,
Cory

> Polite feedback is appreciated :-)
>
> Thanks!
>
>
> --
> !   Giovanni "Vann" Cone
> !   LANL HPC Consultant
> !   TA-3, BLDG 2327, RM 1128
> !   Schedule B
> !   (505) 665- option 3
> !...
> !   I fight for the users!
> END OF LINE
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] link 403

2017-09-29 Thread Cory Quammen
Hi Paul,

Thanks for the report! I have fixed the link on that page.

Cory

On Fri, Sep 29, 2017 at 12:20 PM, Paul Kapinos
<kapi...@itc.rwth-aachen.de> wrote:
> Dear ParaView developer,
>
> This is my very 1st mail to this list (and thus a test), and a report about a
> broken link here: https://www.paraview.org/Wiki/ParaView#Developers_Corner
>
> Clicking on https://public.kitware.com/mailman/subscribe/paraview-developers
> results in 403 Permission Denied, maybe due to missing credentials. If so, a
> hint about this would be helpful.
>
> Have a nice day,
>
> Paul
>
> --
> Dipl.-Inform. Paul Kapinos   -   High Performance Computing,
> RWTH Aachen University, IT Center
> Seffenter Weg 23,  D 52074  Aachen (Germany)
> Tel: +49 241/80-24915
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] [vtkusers] Paraview Error while reading .vts file

2017-09-27 Thread Cory Quammen
Hi Siming,

Please reply-all to keep the discussion on the list so others may
participate and benefit.

This line in your export code is a problem:

sgrid->GetCellData()->AddArray(probe->GetOutput()->GetPointData()->GetArray(i));

Point and cell data arrays have different lengths for structured
grids. The writer is apparently not catching this, but the reader is.

Cory

On Wed, Sep 27, 2017 at 9:42 AM, Siming Bayer <siming.ba...@gmail.com> wrote:
> I used the vtkProbeFilter to interpolate the value on the edges of a
> volumetric mesh onto a image volume with dimension of 256x256x256. And save
> the output of vtkProbeFilter to a .vts file use the following code:
>
> vtkSmartPointer volume = vtkSmartPointer::New();
>
> volume->DeepCopy(reader->GetOutput());
>
> //find the cell centers, store as polydata
>
> vtkSmartPointer probePoints = vtkSmartPointer::New();
>
> double center[3] = { 0,0,0 };
>
> for (vtkIdType cellId = 0; cellId < volume->GetNumberOfCells(); ++cellId)
>
> {
>
> double pcoords[3] = { 0,0,0 };
>
> double *weights = new double[volume->GetMaxCellSize()];
>
> vtkCell* cell = volume->GetCell(cellId);
>
> int subId = cell->GetParametricCenter(pcoords);
>
> cell->EvaluateLocation(subId, pcoords, center, weights);
>
> probePoints->InsertNextPoint(center[0], center[1], center[2]);
>
> }
>
> vtkSmartPointer probePolyData =
> vtkSmartPointer::New();
>
> probePolyData->SetPoints(probePoints);
>
> //read the .vtu mesh file as untructured grid
>
> vtkSmartPointer meshReader =
> vtkSmartPointer::New();
>
> meshReader->SetFileName(argv[2]);
>
> meshReader->Update();
>
> vtkUnstructuredGrid* ugrid = meshReader->GetOutput();
>
> std::cout << "Interpolating" << std::endl;
>
> //Probe filter
>
> vtkSmartPointer probe =
> vtkSmartPointer::New();
>
> probe->SetValidPointMaskArrayName("mesh");
>
> probe->SetSourceData(ugrid);
>
> probe->SetInputData(probePolyData);
>
> probe->Update();
>
> //save the output of probefileter as .vtu file
>
> vtkSmartPointer sgrid =
> vtkSmartPointer::New();
>
> sgrid->SetDimensions(256, 256, 256);
>
> sgrid->SetPoints(probePoints);
>
> unsigned int numberOfArrays =
> probe->GetOutput()->GetPointData()->GetNumberOfArrays();
>
> std::cout << "Copying arrays:" << std::endl;
>
> for (unsigned int i = 0; i < numberOfArrays; i++)
>
> {
>
> std::cout << "\t" <<
> probe->GetOutput()->GetPointData()->GetArray(i)->GetName() << std::endl;
>
> sgrid->GetCellData()->AddArray(probe->GetOutput()->GetPointData()->GetArray(i));
>
> }
>
> std::cout << "Writing .vts output" << std::endl;
>
> vtkSmartPointer sWriter =
> vtkSmartPointer::New();
>
> sWriter->SetFileName("test.vts");
>
> sWriter->SetInputData(sgrid);
>
> sWriter->Write();
>
> }
>
>
> Maybe something wrong here?
>
>
> best,
>
> Siming
>
>
> 2017-09-27 15:29 GMT+02:00 Cory Quammen <cory.quam...@kitware.com>:
>>
>> [Moving this discussion over to the ParaView list serve as it has to
>> do with ParaView.]
>>
>> Unfortunately, there's not enough information in the header file. What
>> wrote this .vts file?
>>
>> Thanks,
>> Cory
>>
>> On Wed, Sep 27, 2017 at 9:25 AM, Siming Bayer <siming.ba...@gmail.com>
>> wrote:
>> > Yes,
>> >
>> > the whole file is quite large. The header part is the following:
>> >
>> > 
>> > > > header_type="UInt32" compressor="vtkZLibDataCompressor">
>> >   
>> > > >>
>> >   
>> >   
>> >   
>> > > > format="appended" RangeMin="0"    RangeMax="0"
>> > offset="0"   />
>> > > > format="appended" RangeMin="0"RangeMax="0"
>> > offset="906832"  />
>> > > > NumberOfComponents="3" format="appended" RangeMin="0"
>> > RangeMax="0"offset="1813664" />
>> > > > RangeMin="0"
>> > RangeMax="0"offset="2720496" />
>> >   
>> >   
>> > > > format="appended&quo

Re: [Paraview] [vtkusers] Paraview Error while reading .vts file

2017-09-27 Thread Cory Quammen
[Moving this discussion over to the ParaView list serve as it has to
do with ParaView.]

Unfortunately, there's not enough information in the header file. What
wrote this .vts file?

Thanks,
Cory

On Wed, Sep 27, 2017 at 9:25 AM, Siming Bayer <siming.ba...@gmail.com> wrote:
> Yes,
>
> the whole file is quite large. The header part is the following:
>
> 
>  header_type="UInt32" compressor="vtkZLibDataCompressor">
>   
> >
>   
>   
>   
>  format="appended" RangeMin="0"RangeMax="0"
> offset="0"   />
>  format="appended" RangeMin="0"RangeMax="0"
> offset="906832"  />
>  NumberOfComponents="3" format="appended" RangeMin="0"
> RangeMax="0"offset="1813664" />
>  RangeMax="0"offset="2720496" />
>   
>   
>  format="appended" RangeMin="0.86602540378"RangeMax="440.80693053"
> offset="2758320" />
>   
> 
>   
>   
>
> _...(here
> is the data)
>   
> 
>
> Thank you!
>
> best,
> Siming
>
> 2017-09-27 15:21 GMT+02:00 Cory Quammen <cory.quam...@kitware.com>:
>>
>> On Wed, Sep 27, 2017 at 8:50 AM, Siming Bayer <siming.ba...@gmail.com>
>> wrote:
>> > Dear all,
>> >
>> > I got the following error while reading a .vts file with ParaView:
>> >
>> >
>> >
>> > ERROR: In
>> >
>> > C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\IO\XML\vtkXMLStructuredDataReader.cxx,
>> > line 360
>> >
>> > vtkXMLStructuredGridReader (0B791F40): Error reading extent 0
>> > 255 0
>> > 255 0 255 from piece 0
>> >
>> >
>> > What does it mean? What could be the reason?
>> >
>>
>> Perhaps there is something wrong with the file. Can you share it, or
>> ideally a smaller data set that exhibits the same problem?
>>
>> Thanks,
>> Cory
>>
>> >
>> >
>> >
>> > ___
>> > Powered by www.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
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>
>



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


Re: [Paraview] Fwd: paraview.simple

2017-09-26 Thread Cory Quammen
Hmm, this is very odd. I don't know why libarpack would be loaded. It
looks like something is loading it and libarpack does not like the
libgfortran that ships with ParaView.

If you are familiar with gdb, could you run pvpython through gdb and
get a stack trace where libarpack is being loaded?

Thanks,
Cory



On Mon, Sep 18, 2017 at 2:48 PM, Guillermo <guillermo180...@gmail.com> wrote:
> Sorry but I could not fix it.
>
> I removed the ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit from /opt/
> directory
>
> Reinstalled paraview following the steps I have indicated on the previous
> email.
>
> I have deleted all sentences from ~/.bashrc except the first one: "export
> PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/"
>
> Run paraview as:
>
> paraview
>
> And worked fine.
> However I executed the script as you indicated:
>
> pvpython 
>
> And the error message is:
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/libgfortran.so.3:
> version `GFORTRAN_1.4' not found (required by /usr/lib/libarpack.so.2)
> Traceback (most recent call last):
>   File , line 47, in 
> reader = OpenDataFile(prefix+ '.vtu'); #This is sentence from my script
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 846, in OpenDataFile
> raise RuntimeError (msg)
>
> I am really sorry for the inconveniences.
>
> Guillermo
>
>
> On 18/09/17 13:59, Cory Quammen wrote:
>
> On Sat, Sep 16, 2017 at 7:48 AM, Guillermo <guillermo180...@gmail.com>
> wrote:
>
> Hi Cory,
>
> I am trying again to install paraview 5.3. I have downloaded it from the
> paraview webpage. I am using Ubuntu 16.04 LTS; OS type 64-bit. Then I
> followed these steps:
>
> tar xzvf ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>
> sudo mv ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit /opt/
>
> sudo emacs ~/.bashrc # and added the following lines:
>
> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
> export
> PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/Utilities/VTKPythonWrapping/site-packages
> #fixes "no module named paraview"
> export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/bin #fixes
> "ImportError: No module named libvtkCommonPython"
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packagesexport
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>
> Setting the PYTHONPATH is not necessary to use pvpython. pvpython sets
> up the necessary system paths within the Python executable so you
> don't have to.
>
> Saved and exit
>
> #Created the symbolic links
>
> sudo ln -s /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
> /usr/bin/paraview
>
> sudo ln -s /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
> /usr/lib/paraview
>
> #Restarted the computer and then executed:
>
> ./paraview
>
> This command means "launch the paraview executable in my current
> working directory". To use the paraview executable in your PATH,
> remove the ./ and run
>
> paraview
>
> This will make sure the paraview found on your PATH is executed.
>
> And paraview opens and works fine.
>
> # Execute the script I mentioned in previous emails:
>
> ./
>
> And the following error message appears:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>   File "./", line 42, in 
> from paraview.simple import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
> from paraview import servermanager
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
> from paraview import vtk
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
> from paraview.vtk.vtkCommonCore import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
> from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> Then I tried running it by using:
>
> ./pvpython 
>
> And the error message is the following:
>
> bash: ./pvpython: No such file or directory
>
> Again, when you run ./pvpython, it is looking for a pvpython
> executable in the present working directory. Drop the ./ and it should
> work.
>
> I have also tried

Re: [Paraview] Fwd: paraview.simple

2017-09-18 Thread Cory Quammen
On Sat, Sep 16, 2017 at 7:48 AM, Guillermo <guillermo180...@gmail.com> wrote:
> Hi Cory,
>
> I am trying again to install paraview 5.3. I have downloaded it from the
> paraview webpage. I am using Ubuntu 16.04 LTS; OS type 64-bit. Then I
> followed these steps:
>
> tar xzvf ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>
> sudo mv ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit /opt/
>
> sudo emacs ~/.bashrc # and added the following lines:
>
> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
> export
> PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/Utilities/VTKPythonWrapping/site-packages
> #fixes "no module named paraview"
> export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/bin #fixes
> "ImportError: No module named libvtkCommonPython"
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packagesexport
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Setting the PYTHONPATH is not necessary to use pvpython. pvpython sets
up the necessary system paths within the Python executable so you
don't have to.

> Saved and exit
>
> #Created the symbolic links
>
> sudo ln -s /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
> /usr/bin/paraview
>
> sudo ln -s /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
> /usr/lib/paraview
>
> #Restarted the computer and then executed:
>
> ./paraview

This command means "launch the paraview executable in my current
working directory". To use the paraview executable in your PATH,
remove the ./ and run

paraview

This will make sure the paraview found on your PATH is executed.

> And paraview opens and works fine.
>
> # Execute the script I mentioned in previous emails:
>
> ./
>
> And the following error message appears:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>   File "./", line 42, in 
> from paraview.simple import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
> from paraview import servermanager
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
> from paraview import vtk
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
> from paraview.vtk.vtkCommonCore import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
> from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> Then I tried running it by using:
>
> ./pvpython 
>
> And the error message is the following:
>
> bash: ./pvpython: No such file or directory

Again, when you run ./pvpython, it is looking for a pvpython
executable in the present working directory. Drop the ./ and it should
work.

> I have also tried by using:
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython  script>
>
> And the message is:
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/libgfortran.so.3:
> version `GFORTRAN_1.4' not found (required by /usr/lib/libarpack.so.2)
> Traceback (most recent call last):
>   File , line 47, in 
> reader = OpenDataFile(prefix+ '.vtu');
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 846, in OpenDataFile
> raise RuntimeError (msg)
>
> My python version is (python --version) Python 2.7.12

This is strange. I don't see the same when I download ParaView 5.3 on
Ubuntu 16.04. I wonder if you are pulling in something by setting
PYTHONPATH? Try not setting PYTHONPATH (it isn't needed to use
pvpython) and see if that resolves the error.

HTH,
Cory

> My script starts with:
> #!/usr/bin/python
> import re,sys,os,shutil
> -- and I also use --
> from paraview.simple import *
>
> Sorry for the inconveniences.
>
> Really grateful,
>
> Guillermo S.
>
>
>
> On 07/09/17 18:54, Cory Quammen wrote:
>>>
>>> I usually use:
>>> ./
>>
>> I think you would be better off running your script with
>>
>> ./pvpython 
>>
>> pvpython comes with the ParaView binary and is located in the same
>> directory as the 'paraview' executable. pvpython uses the same Python
>> as ParaView is, so compatibility with some local Python on your system
>> is not a problem. Further, pvpython sets up Python environment to
>> provide 

Re: [Paraview] Subdomain

2017-09-18 Thread Cory Quammen
On Wed, Sep 13, 2017 at 1:58 AM, Muhammad Kashif Saeed
<kashifsaee...@gmail.com> wrote:
> Can I make Programmable clip filter which can clip 200 or more sections of
> domain separately?

Sure, you can, but it may be slow.

Could you define your subdomains in a regular grid structure with a
number of even divisions in X, Y, and Z? If so, you may be better off
creating a grid structure with your 200 subdomains and then use the
vtkCellLocator approach I outlined earlier in this thread.

Cory

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


Re: [Paraview] Input files

2017-09-18 Thread Cory Quammen
Hi,

Welcome to ParaView!

It sounds like you might find several items in ParaView's help menu useful:

* Getting Started with ParaView
* ParaView Tutorial
* ParaView Guide

If you have more specific questions about how to load your data,
please describe the kind of data you have. Is it points? Is it a
volumetric mesh? Etc.

Thanks,
Cory

On Mon, Sep 18, 2017 at 8:54 AM, Doina Gumeniuc (224252 MAHS)
<224...@via.dk> wrote:
> Hi dear users,
>
> This might sound a bit stupid, but I am new in paraview and I have hard
> times understanding how this tool works: for instance, I do not understand
> how is paraview reading info such as radius in specific points, how can I
> generate surface and not just some floating points in space, how can I build
> based on cross sectional area and height. So far, the only info I could
> implement is x, y and z of points through csv file.
>
> Could anyone please support me with theoretical material and so on?
>
> Thank you!
>
> I would really appreciate an example of a 3D model file readable in
> 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
>



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


Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-15 Thread Cory Quammen
On Fri, Sep 15, 2017 at 9:27 AM, Grothausmann, Roman Dr.
<grothausmann.ro...@mh-hannover.de> wrote:
> Dear Cory,
>
> Many thanks for Your quick reply.
> On 15/09/17 15:14, Cory Quammen wrote:
>>
>> Put a ** in front of reppro[i], e.g.,
>>
>> pvs.SetProperties(repr, **reppro[i])
>>
>> That works for me.
>
> Hm, I now get:
> TypeError: SetProperties() argument after ** must be a mapping, not list
> Do I have to store the dict of object properties in another dict instead of
> a list?

Ah, I didn't read far enough up in your code to see how `reppro` is
defined. ListProperties() just gives you the names of the properties,
not a list or dictionary with the values. You can create a dictionary
of properties and their values with

d = {}
for p in s.ListProperties():
  d[p] = GetProperty(s, p)
reppro.append(d)

- Cory

> Best
> Roman
>
>
>>> On 07/09/17 23:37, Cory Quammen wrote:
>>>>
>>>>
>>>> Hi Roman,
>>>>
>>>> It turns out ParaView was not designed for this use case because of
>>>> certain difficulties discussed here:
>>>>
>>>> https://gitlab.kitware.com/paraview/paraview/issues/17442
>>>>
>>>> In your Python script, you could manually cash all the properties of
>>>> the existing representations and restore them after loading the most
>>>> recent state file.
>>>>
>>>> The functions
>>>>
>>>> reprs = GetRepresentations()
>>>> repr = reprs.values()[0]
>>>> props = repr.ListProperties()
>>>> GetProperty(repr, props[0])
>>>>
>>>> would be helpful for this.
>>>>
>>>> Cory
>>>>
>>>>
>>>> On Mon, Sep 4, 2017 at 8:42 AM, Grothausmann, Roman Dr.
>>>> <grothausmann.ro...@mh-hannover.de> wrote:
>>>>>
>>>>>
>>>>> Dear mailing list members,
>>>>>
>>>>>
>>>>> It seems that PV (and paraview.simple.LoadState) by default hides
>>>>> already
>>>>> loaded objects (and resets e.g. their coloring) when another state-file
>>>>> is
>>>>> loaded.
>>>>> Is there a way to load multiple state-files after one another without
>>>>> hiding
>>>>> and resetting already existent objects? I.e. a way to concatenate
>>>>> multiple
>>>>> state-files and leave their objects in the state as they got loaded
>>>>> (e.g.
>>>>> colored, hidden/visible)?
>>>>> I do understand that loading a new state-file will reset the camera,
>>>>> but
>>>>> not
>>>>> the rest.
>>>>> Here's my initial attempt to achieve this with pvpython:
>>>>>
>>>>>
>>>>> https://github.com/romangrothausmann/ParaView_scripts/blob/90eb4ca8499070bed941d50b89ebea82fd6a9e23/pvsm-multi.py
>>>>>
>>>>> Any help or hints are very much appreciated
>>>>> Roman
>>>>>
>>>>> --
>>>>> Dr. Roman Grothausmann
>>>>>
>>>>> Tomographie und Digitale Bildverarbeitung
>>>>> Tomography and Digital Image Analysis
>>>>>
>>>>> Medizinische Hochschule Hannover
>>>>> Institut für Funktionelle und Angewandte Anatomie
>>>>> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
>>>>>
>>>>> Tel. +49 511 532-2900
>>>>> grothausmann.ro...@mh-hannover.de
>>>>> http://www.mh-hannover.de/anatomie.html
>>>>> ___
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView 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
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Dr. Roman Grothausmann
>>>
>>> Tomographie und Digitale Bildverarbeitung
>>> Tomography and Digital Image Analysis
>>>
>>> Medizinische Hochschule Hannover
>>> Institut für Funktionelle und Angewandte Anatomie
>>> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
>>>
>>> Tel. +49 511 532-2900
>>> grothausmann.ro...@mh-hannover.de
>>> http://www.mh-hannover.de/anatomie.html
>>
>>
>>
>>
>
> --
> Dr. Roman Grothausmann
>
> Tomographie und Digitale Bildverarbeitung
> Tomography and Digital Image Analysis
>
> Medizinische Hochschule Hannover
> Institut für Funktionelle und Angewandte Anatomie
> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
>
> Tel. +49 511 532-2900
> grothausmann.ro...@mh-hannover.de
> http://www.mh-hannover.de/anatomie.html



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


Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-15 Thread Cory Quammen
On Fri, Sep 15, 2017 at 8:09 AM, Grothausmann, Roman Dr.
<grothausmann.ro...@mh-hannover.de> wrote:
> Dear Cory,
>
>
> Many thanks for your reply pointing out the known limitations and
> suggestions for restoring with python. I tried to give that a try:
> https://github.com/romangrothausmann/ParaView_scripts/blob/146aa352d1a3ada203bcf91d17e11c169bc99583/pvsm-multi.py#L44-L61
>
> but am stuck at the python error:
> TypeError: SetProperties() takes at most 1 argument (2 given)
> while the docs suggest to specify 2 args:
> https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.html?highlight=getproperty#paraview.simple.SetProperties
>
> What am I missing here? Do I have to set each property by itself (i.e. from
> GetProperty) or can I just set the whole list of properties from
> ListProperties() in one go?
> Is the approach for restoring to go through all objects from the last
> LoadState the right one?

Put a ** in front of reppro[i], e.g.,

pvs.SetProperties(repr, **reppro[i])

That works for me. The ** unpacks the dictionary into a variable
keyword parameter. See [1] for more info.

> Many thanks for looking into this.
> Roman

No problem.

Thanks,
Cory

[1] 
https://softwareengineering.stackexchange.com/questions/131403/what-is-the-name-of-in-python/131415

>
> On 07/09/17 23:37, Cory Quammen wrote:
>>
>> Hi Roman,
>>
>> It turns out ParaView was not designed for this use case because of
>> certain difficulties discussed here:
>>
>> https://gitlab.kitware.com/paraview/paraview/issues/17442
>>
>> In your Python script, you could manually cash all the properties of
>> the existing representations and restore them after loading the most
>> recent state file.
>>
>> The functions
>>
>> reprs = GetRepresentations()
>> repr = reprs.values()[0]
>> props = repr.ListProperties()
>> GetProperty(repr, props[0])
>>
>> would be helpful for this.
>>
>> Cory
>>
>>
>> On Mon, Sep 4, 2017 at 8:42 AM, Grothausmann, Roman Dr.
>> <grothausmann.ro...@mh-hannover.de> wrote:
>>>
>>> Dear mailing list members,
>>>
>>>
>>> It seems that PV (and paraview.simple.LoadState) by default hides already
>>> loaded objects (and resets e.g. their coloring) when another state-file
>>> is
>>> loaded.
>>> Is there a way to load multiple state-files after one another without
>>> hiding
>>> and resetting already existent objects? I.e. a way to concatenate
>>> multiple
>>> state-files and leave their objects in the state as they got loaded (e.g.
>>> colored, hidden/visible)?
>>> I do understand that loading a new state-file will reset the camera, but
>>> not
>>> the rest.
>>> Here's my initial attempt to achieve this with pvpython:
>>>
>>> https://github.com/romangrothausmann/ParaView_scripts/blob/90eb4ca8499070bed941d50b89ebea82fd6a9e23/pvsm-multi.py
>>>
>>> Any help or hints are very much appreciated
>>> Roman
>>>
>>> --
>>> Dr. Roman Grothausmann
>>>
>>> Tomographie und Digitale Bildverarbeitung
>>> Tomography and Digital Image Analysis
>>>
>>> Medizinische Hochschule Hannover
>>> Institut für Funktionelle und Angewandte Anatomie
>>> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
>>>
>>> Tel. +49 511 532-2900
>>> grothausmann.ro...@mh-hannover.de
>>> http://www.mh-hannover.de/anatomie.html
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView 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
>>
>>
>>
>>
>
> --
> Dr. Roman Grothausmann
>
> Tomographie und Digitale Bildverarbeitung
> Tomography and Digital Image Analysis
>
> Medizinische Hochschule Hannover
> Institut für Funktionelle und Angewandte Anatomie
> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
>
> Tel. +49 511 532-2900
> grothausmann.ro...@mh-hannover.de
> http://www.mh-hannover.de/anatomie.html



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


Re: [Paraview] Subdomain

2017-09-12 Thread Cory Quammen
What part do you need help with? The math for setting up the box? Or
how to move the box around in the domain?

On Mon, Sep 11, 2017 at 11:33 PM, Muhammad Kashif Saeed
<kashifsaee...@gmail.com> wrote:
> Thanks, Cory,
> I can count the particles in a clip box but can you help me how to adjust
> the desired location of clip box because I have to use lot of clip box
> filters to cover the whole domain in small box domains.
>
> Thanks in advance



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


Re: [Paraview] Issue with Python path variable change from ver 5.2 onward

2017-09-11 Thread Cory Quammen
Evan,

I have filed a bug report [1]. I don't recall if this was an
intentional change, but it appears to be causing you and at least one
other person problems.

Thanks,
Cory

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

On Thu, May 25, 2017 at 12:33 AM, Evan Kao <tos...@gmail.com> wrote:
> Hello all,
>
> I've encountered a minor, but annoying issue (for me, at least) when using
> Python in Paraview (installed from binaries on Windows).  I noticed that
> since version 5.2, the Paraview-related paths are appended to the end of the
> system PYTHONPATH variable, instead of inserted at the beginning.  For
> instance:
>
>
> v5.1.2
>
>>>> import sys
>
>>>> for p in sys.path:
>
> ... print p
>
> ...
>
> D:\Program Files\ParaView 5.1.2\lib\paraview-5.1\site-packages\vtk
>
> D:\Program Files\ParaView 5.1.2\lib\paraview-5.1\site-packages <- Paraview
> VTK code
>
> D:\Program Files\ParaView 5.1.2\lib\paraview-5.1
>
> D:\Program Files\ParaView 5.1.2\bin
>
> ...
>
> D:\Anaconda2\Lib\site-packages <- original system PYTHONPATH paths
>
> etc...
>
> D:\Program Files\ParaView 5.1.2\bin\python27.zip
>
> D:\Program Files\ParaView 5.1.2\bin\DLLs
>
> D:\Program Files\ParaView 5.1.2\bin\lib
>
> D:\Program Files\ParaView 5.1.2\bin\lib\plat-win
>
> D:\Program Files\ParaView 5.1.2\bin\lib\lib-tk
>
> D:\Program Files\ParaView 5.1.2\bin
>
> D:\Program Files\ParaView 5.1.2\bin\lib\site-packages
>
>
>
> v5.4.0-RC2:
>
>>>> import sys
>
>>>> for p in sys.path:
>
> ... print p
>
> ...
>
> D:\Program Files\ParaView 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin
>
> ...
>
> D:\Anaconda2\Lib\site-packages <- original system PYTHONPATH paths
>
> etc...
>
> D:\Program Files\ParaView
> 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\python27.zip
>
> D:\Program Files\ParaView 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\DLLs
>
> D:\Program Files\ParaView 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib
>
> D:\Program Files\ParaView
> 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\plat-win
>
> D:\Program Files\ParaView 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\lib-tk
>
> D:\Program Files\ParaView 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin
>
> D:\Program Files\ParaView
> 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages <- Paraview VTK
> code
>
> D:\Program Files\ParaView
> 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\win32
>
> D:\Program Files\ParaView
> 5.4.0-RC2-Qt5-OpenGL2-Windows-64bit\bin\lib\site-packages\win32\lib
>
>
>
> This is a problem for me because I like to use the Python Programmable
> Filter a lot, but now whenever I import VTK, it will first look for the
> version of VTK on my system, rather than the one used by Paraview, which
> leads to conflict errors.
>
> I know this can be fixed by running the Python Shell and manipulating the
> PYTHONPATH variable from there, but I'd have to do that every time I open
> Paraview, which is pretty cumbersome.  Is there a way to change this
> behavior?  Could it be a changed back in future versions or was there a
> reason for this change?
>
> Thanks,
> Evan Kao
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


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

2017-09-08 Thread Cory Quammen
Not seeing anything with Qt is a good thing in that it means some
other software installed on your system is not interfering with
ParaView's operation. That bad news is that I'm out of ideas on what
might be causing your problem.

Maybe a graphics card driver update would help?

Cory

On Fri, Sep 8, 2017 at 10:51 AM, Antonio Orlando
<aorla...@herrera.unt.edu.ar> wrote:
> Cory:
>
> I did what you were saying and there is no location listed with "Qt"
> in the Environment Variables.
>
> Is that the problem? If so, what should I then do?
>
> Many thanks again
> Regards
>
> Antonio
>
> 2017-09-08 10:42 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>> Antonio,
>>
>> No worries! We do run into issues from time to time on other Windows
>> machines, so we are happy to help you work through the kinks so that
>> we can understand the potential issues out there.
>>
>> One other thing to look for:
>>
>>  See if you have a different Qt installation on your system whose path
>> is in your PATH environment variable. To check, click on the
>> Start/Windows menu. Type in "environment" and select "Edit the system
>> environment variables". In the System Properties dialog that shows up,
>> click on the "Environment Variables..." button on the bottom right.
>> This brings up an Environment Variables dialog with user variables in
>> the top panel and system variables in the bottom panel. Look at the
>> Path variables and see if there is a location listed with "Qt" in the
>> name, or if you have a program that might use its own Qt.
>>
>> Also look to see if an environment variable named QT_PLUGIN_PATH is
>> set. If it is set, it will confuse ParaView as it loads Qt and it
>> might result in this error. We have seen this in one other Windows
>> machine.
>>
>> Best regards,
>> Cory
>>
>> On Fri, Sep 8, 2017 at 9:21 AM, Antonio Orlando
>> <aorla...@herrera.unt.edu.ar> wrote:
>>> Cory:
>>>
>>> I am sorry, but I am still getting the same error message.
>>>
>>> I fear that there might something wrong then with my system if other
>>> paraview user using windows do not have problems.
>>>
>>> I will try to download and install paraview on another computer and
>>> let you know.
>>> I am sorry for all the inconveniences I am causing.
>>>
>>> Many thanks for your time and attention.
>>>
>>> Kind regards
>>>
>>> Antonio
>>>
>>>
>>> 2017-09-08 10:00 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>>>> Antonio,
>>>>
>>>> Do you happen to have an integrated graphics chip on your laptop? I
>>>> wonder if ParaView is set to use integrated graphics rather than your
>>>> NVIDIA card and isn't liking what it finds. You can try going to the
>>>> NVIDIA control panel. Under 3D Settings in the panel on the left,
>>>> click on "Manage 3D settings". On the right side, click on the "Global
>>>> Settings" tab. Make sure "High-performance NVIDIA processor" is
>>>> selected. Apply the changes, then run ParaView again to see if the
>>>> problem is resolved.
>>>>
>>>> - Cory
>>>>
>>>> On Thu, Sep 7, 2017 at 6:50 PM, Antonio Orlando
>>>> <aorla...@herrera.unt.edu.ar> wrote:
>>>>> Thanks Cory for your prompt reply and sorry for not sending the
>>>>> message to the mailing list.
>>>>>
>>>>> I have the graphics card NVIDIA GeForce GT 750M 2GB DDR5
>>>>>
>>>>> I can run though Paraview 4.
>>>>>
>>>>> Thanks again for your attention to this matter.
>>>>>
>>>>> Cheers
>>>>> Antonio
>>>>>
>>>>>
>>>>> 2017-09-07 17:59 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>>>>>> Antonio,
>>>>>>
>>>>>> I'm adding back Utkarsh, who pointed you to the mesa libraries. Please
>>>>>> also reply to the mailing list so that others may benefit from and
>>>>>> contribute to the discussion.
>>>>>>
>>>>>> What kind of graphics hardware do you have on that machine?
>>>>>>
>>>>>> Thanks,
>>>>>> Cory
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 7, 2017 at 4

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

2017-09-08 Thread Cory Quammen
Antonio,

No worries! We do run into issues from time to time on other Windows
machines, so we are happy to help you work through the kinks so that
we can understand the potential issues out there.

One other thing to look for:

 See if you have a different Qt installation on your system whose path
is in your PATH environment variable. To check, click on the
Start/Windows menu. Type in "environment" and select "Edit the system
environment variables". In the System Properties dialog that shows up,
click on the "Environment Variables..." button on the bottom right.
This brings up an Environment Variables dialog with user variables in
the top panel and system variables in the bottom panel. Look at the
Path variables and see if there is a location listed with "Qt" in the
name, or if you have a program that might use its own Qt.

Also look to see if an environment variable named QT_PLUGIN_PATH is
set. If it is set, it will confuse ParaView as it loads Qt and it
might result in this error. We have seen this in one other Windows
machine.

Best regards,
Cory

On Fri, Sep 8, 2017 at 9:21 AM, Antonio Orlando
<aorla...@herrera.unt.edu.ar> wrote:
> Cory:
>
> I am sorry, but I am still getting the same error message.
>
> I fear that there might something wrong then with my system if other
> paraview user using windows do not have problems.
>
> I will try to download and install paraview on another computer and
> let you know.
> I am sorry for all the inconveniences I am causing.
>
> Many thanks for your time and attention.
>
> Kind regards
>
> Antonio
>
>
> 2017-09-08 10:00 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>> Antonio,
>>
>> Do you happen to have an integrated graphics chip on your laptop? I
>> wonder if ParaView is set to use integrated graphics rather than your
>> NVIDIA card and isn't liking what it finds. You can try going to the
>> NVIDIA control panel. Under 3D Settings in the panel on the left,
>> click on "Manage 3D settings". On the right side, click on the "Global
>> Settings" tab. Make sure "High-performance NVIDIA processor" is
>> selected. Apply the changes, then run ParaView again to see if the
>> problem is resolved.
>>
>> - Cory
>>
>> On Thu, Sep 7, 2017 at 6:50 PM, Antonio Orlando
>> <aorla...@herrera.unt.edu.ar> wrote:
>>> Thanks Cory for your prompt reply and sorry for not sending the
>>> message to the mailing list.
>>>
>>> I have the graphics card NVIDIA GeForce GT 750M 2GB DDR5
>>>
>>> I can run though Paraview 4.
>>>
>>> Thanks again for your attention to this matter.
>>>
>>> Cheers
>>> Antonio
>>>
>>>
>>> 2017-09-07 17:59 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>>>> Antonio,
>>>>
>>>> I'm adding back Utkarsh, who pointed you to the mesa libraries. Please
>>>> also reply to the mailing list so that others may benefit from and
>>>> contribute to the discussion.
>>>>
>>>> What kind of graphics hardware do you have on that machine?
>>>>
>>>> Thanks,
>>>> Cory
>>>>
>>>>
>>>>
>>>> On Thu, Sep 7, 2017 at 4:57 PM, Antonio Orlando
>>>> <aorla...@herrera.unt.edu.ar> wrote:
>>>>> Hi Cory:
>>>>>
>>>>> Thanks for your message and for the drivers.
>>>>>
>>>>> I am sorry but it is still not working!
>>>>>
>>>>> The error message I get is the following.
>>>>>
>>>>> ---
>>>>>
>>>>> ERROR: In
>>>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
>>>>> line 819
>>>>> vtkGenericOpenGLRenderWindow (00214C5F3460): GLEW could not be
>>>>> initialized.
>>>>>
>>>>> ERROR: In
>>>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
>>>>> line 819
>>>>> vtkGenericOpenGLRenderWindow (00214C5F3460): GLEW could not be
>>>>> initialized.
>>>>>
>>>>> ERROR: In
>>>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx,
>>>>> line 453
>>>>> vtkShaderProgram (00214CB8B7A0): Shader object was not
>>>>> initiali

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

2017-09-08 Thread Cory Quammen
Antonio,

Do you happen to have an integrated graphics chip on your laptop? I
wonder if ParaView is set to use integrated graphics rather than your
NVIDIA card and isn't liking what it finds. You can try going to the
NVIDIA control panel. Under 3D Settings in the panel on the left,
click on "Manage 3D settings". On the right side, click on the "Global
Settings" tab. Make sure "High-performance NVIDIA processor" is
selected. Apply the changes, then run ParaView again to see if the
problem is resolved.

- Cory

On Thu, Sep 7, 2017 at 6:50 PM, Antonio Orlando
<aorla...@herrera.unt.edu.ar> wrote:
> Thanks Cory for your prompt reply and sorry for not sending the
> message to the mailing list.
>
> I have the graphics card NVIDIA GeForce GT 750M 2GB DDR5
>
> I can run though Paraview 4.
>
> Thanks again for your attention to this matter.
>
> Cheers
> Antonio
>
>
> 2017-09-07 17:59 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>> Antonio,
>>
>> I'm adding back Utkarsh, who pointed you to the mesa libraries. Please
>> also reply to the mailing list so that others may benefit from and
>> contribute to the discussion.
>>
>> What kind of graphics hardware do you have on that machine?
>>
>> Thanks,
>> Cory
>>
>>
>>
>> On Thu, Sep 7, 2017 at 4:57 PM, Antonio Orlando
>> <aorla...@herrera.unt.edu.ar> wrote:
>>> Hi Cory:
>>>
>>> Thanks for your message and for the drivers.
>>>
>>> I am sorry but it is still not working!
>>>
>>> The error message I get is the following.
>>>
>>> ---
>>>
>>> ERROR: In
>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
>>> line 819
>>> vtkGenericOpenGLRenderWindow (00214C5F3460): GLEW could not be
>>> initialized.
>>>
>>> ERROR: In
>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
>>> line 819
>>> vtkGenericOpenGLRenderWindow (00214C5F3460): GLEW could not be
>>> initialized.
>>>
>>> ERROR: In
>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx,
>>> line 453
>>> vtkShaderProgram (00214CB8B7A0): Shader object was not
>>> initialized, cannot attach it.
>>>
>>> ERROR: In
>>> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx,
>>> line 408
>>> vtkShaderProgram (00214CB8B7A0): 1: #version 120
>>> 2: #ifdef GL_ES
>>> 3: #if __VERSION__ == 300
>>> 4: #define attribute in
>>> 5: #define varying out
>>> 6: #endif // 300
>>> 7: #else // GL_ES
>>> 8: #define highp
>>> 9: #define mediump
>>> 10: #define lowp
>>> 11: #if __VERSION__ == 150
>>> 12: #define attribute in
>>> 13: #define varying out
>>> 14: #endif
>>> 15: #endif // GL_ES
>>> 16:
>>> 17:
>>> 18:
>>> /*=
>>> 19:
>>> 20:   Program:   Visualization Toolkit
>>> 21:   Module:vtkPolyDataVS.glsl
>>> 22:
>>> 23:   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
>>> 24:   All rights reserved.
>>> 25:   See Copyright.txt or http://www.kitware.com/Copyright.htm for
>>> details.
>>> 26:
>>> 27:  This software is distributed WITHOUT ANY WARRANTY; without even
>>> 28:  the implied warranty of MERCHANTABILITY or FITNESS FOR A
>>> PARTICULAR
>>> 29:  PURPOSE.  See the above copyright notice for more information.
>>> 30:
>>> 31:
>>> =*/
>>> 32:
>>> 33: attribute vec4 vertexMC;
>>> 34:
>>> 35: // frag position in VC
>>> 36: //VTK::PositionVC::Dec
>>> 37:
>>> 38: // optional normal declaration
>>> 39: //VTK::Normal::Dec
>>> 40:
>>> 41: // extra lighting parameters
>>> 42: //VTK::Light::Dec
>>> 43:
>>> 44: // Texture coordinates
>>> 45: //VTK::TCoord::Dec
>>> 46:
>>> 47: // material property values
>>> 48: //VTK::Color::Dec
>>> 49:
>>> 50: // clipping plane vars
>>> 51: //VTK::Clip::Dec
>>> 52:
>>> 53: // camera and actor matrix values
&g

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-07 Thread Cory Quammen
Hi Roman,

It turns out ParaView was not designed for this use case because of
certain difficulties discussed here:

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

In your Python script, you could manually cash all the properties of
the existing representations and restore them after loading the most
recent state file.

The functions

reprs = GetRepresentations()
repr = reprs.values()[0]
props = repr.ListProperties()
GetProperty(repr, props[0])

would be helpful for this.

Cory


On Mon, Sep 4, 2017 at 8:42 AM, Grothausmann, Roman Dr.
<grothausmann.ro...@mh-hannover.de> wrote:
> Dear mailing list members,
>
>
> It seems that PV (and paraview.simple.LoadState) by default hides already
> loaded objects (and resets e.g. their coloring) when another state-file is
> loaded.
> Is there a way to load multiple state-files after one another without hiding
> and resetting already existent objects? I.e. a way to concatenate multiple
> state-files and leave their objects in the state as they got loaded (e.g.
> colored, hidden/visible)?
> I do understand that loading a new state-file will reset the camera, but not
> the rest.
> Here's my initial attempt to achieve this with pvpython:
> https://github.com/romangrothausmann/ParaView_scripts/blob/90eb4ca8499070bed941d50b89ebea82fd6a9e23/pvsm-multi.py
>
> Any help or hints are very much appreciated
> Roman
>
> --
> Dr. Roman Grothausmann
>
> Tomographie und Digitale Bildverarbeitung
> Tomography and Digital Image Analysis
>
> Medizinische Hochschule Hannover
> Institut für Funktionelle und Angewandte Anatomie
> OE 4120, Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland
>
> Tel. +49 511 532-2900
> grothausmann.ro...@mh-hannover.de
> http://www.mh-hannover.de/anatomie.html
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] vtkClipDataSet in a programmable filter

2017-09-07 Thread Cory Quammen
Xavier,

The runtime error is troubling. I suspect there may be a problem or
incompatibility with a shared library on your system.

If you wanted to debug further, you could try downloading Dependency Walker
[1] and load paraview.exe with it. It should show you the DLLs ParaView is
trying to load. I wonder if ParaView is trying to load a Python other than
the one it ships with?

HTH,
Cory

[1] http://www.dependencywalker.com/

On Thu, Aug 31, 2017 at 2:32 AM, Xavier Garnaud <xgarn...@gmail.com> wrote:

> Dear Cory,
>
> Thank you for your help.
> In my case, this does not work and I get the following error message:
>
> Traceback (most recent call last):
>
> File "", line 22, in 
>
> File "", line 12, in RequestData
>
> TypeError: SetInputData argument 1: method requires a VTK object
>
> Maybe it is related to the fact that when I create the first programmable
> filter, I get this error message:
> [image: Inline image 1]
>
> I use Paraview 5.4.1 on windows (I get the same behavior with Paraview
> 5.3.0)
>
> Best regards,
>
> Xavier
>
> On Wed, Aug 30, 2017 at 7:38 PM, Cory Quammen <cory.quam...@kitware.com>
> wrote:
>
>> This works for me in 5.4.1:
>>
>> import vtk
>>
>> plane = vtk.vtkPlane()
>> plane.SetOrigin(0, 0, 0)
>> plane.SetNormal(0, 1, 0)
>>
>> clip = vtk.vtkClipDataSet()
>> clip.SetClipFunction(plane)
>> clip.SetInputData(self.GetInput())
>> clip.Update()
>>
>> self.GetOutput().DeepCopy(clip.GetOutput())
>>
>> Make sure you set the "Output Data Set Type" to "vtkUnstructuredGrid"
>> before you first hit Apply. I believe there is a bug that does not let
>> you change the output data set type after you first click Apply.
>>
>> HTH,
>> Cory
>>
>> On Wed, Aug 30, 2017 at 10:27 AM, Xavier Garnaud <xgarn...@gmail.com>
>> wrote:
>> > Dear all,
>> >
>> > I'd like to use the vtkClipDataSet in a programmable filter, but I can't
>> > find it it paraview.vtk, and the function from vtk does not seem to
>> work. (I
>> > am using Paraview 5.2 or 5.4 on windows).
>> > Is the function available, or is there another way to perform the clip?
>> >
>> > Best regards,
>> >
>> > Xavier
>> >
>> > ___
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the ParaView 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.
>>
>
>


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


Re: [Paraview] [EXTERNAL] Windows Surface Book

2017-09-07 Thread Cory Quammen
A student in a ParaView course I just taught had a regular Surface
(not Surface Book) and had no problem running ParaView on it.

- Cory

On Wed, Aug 30, 2017 at 8:54 PM, Utkarsh Ayachit
<utkarsh.ayac...@kitware.com> wrote:
> 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 <wasc...@sandia.gov> wrote:
>> Ping?
>>
>>
>>
>> From: ParaView <paraview-boun...@paraview.org> on behalf of W Scott
>> <wasc...@sandia.gov>
>> Date: Thursday, August 24, 2017 at 3:27 PM
>> To: "paraview@paraview.org" <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



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


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

2017-09-07 Thread Cory Quammen
Antonio,

I'm adding back Utkarsh, who pointed you to the mesa libraries. Please
also reply to the mailing list so that others may benefit from and
contribute to the discussion.

What kind of graphics hardware do you have on that machine?

Thanks,
Cory



On Thu, Sep 7, 2017 at 4:57 PM, Antonio Orlando
<aorla...@herrera.unt.edu.ar> wrote:
> Hi Cory:
>
> Thanks for your message and for the drivers.
>
> I am sorry but it is still not working!
>
> The error message I get is the following.
>
> ---
>
> ERROR: In 
> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
> line 819
> vtkGenericOpenGLRenderWindow (00214C5F3460): GLEW could not be 
> initialized.
>
> ERROR: In 
> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
> line 819
> vtkGenericOpenGLRenderWindow (00214C5F3460): GLEW could not be 
> initialized.
>
> ERROR: In 
> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx,
> line 453
> vtkShaderProgram (00214CB8B7A0): Shader object was not
> initialized, cannot attach it.
>
> ERROR: In 
> C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx,
> line 408
> vtkShaderProgram (00214CB8B7A0): 1: #version 120
> 2: #ifdef GL_ES
> 3: #if __VERSION__ == 300
> 4: #define attribute in
> 5: #define varying out
> 6: #endif // 300
> 7: #else // GL_ES
> 8: #define highp
> 9: #define mediump
> 10: #define lowp
> 11: #if __VERSION__ == 150
> 12: #define attribute in
> 13: #define varying out
> 14: #endif
> 15: #endif // GL_ES
> 16:
> 17:
> 18: 
> /*=
> 19:
> 20:   Program:   Visualization Toolkit
> 21:   Module:vtkPolyDataVS.glsl
> 22:
> 23:   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
> 24:   All rights reserved.
> 25:   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
> 26:
> 27:  This software is distributed WITHOUT ANY WARRANTY; without even
> 28:  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
> 29:  PURPOSE.  See the above copyright notice for more information.
> 30:
> 31: 
> =*/
> 32:
> 33: attribute vec4 vertexMC;
> 34:
> 35: // frag position in VC
> 36: //VTK::PositionVC::Dec
> 37:
> 38: // optional normal declaration
> 39: //VTK::Normal::Dec
> 40:
> 41: // extra lighting parameters
> 42: //VTK::Light::Dec
> 43:
> 44: // Texture coordinates
> 45: //VTK::TCoord::Dec
> 46:
> 47: // material property values
> 48: //VTK::Color::Dec
> 49:
> 50: // clipping plane vars
> 51: //VTK::Clip::Dec
> 52:
> 53: // camera and actor matrix values
> 54: uniform mat4 MCDCMatrix;
> 55:
> 56: // Apple Bug
> 57: //VTK::PrimID::Dec
> 58:
> 59: // Value raster
> 60: //VTK::ValuePass::Dec
> 61:
> 62: void main()
> 63: {
> 64:   //VTK::Color::Impl
> 65:
> 66:   //VTK::Normal::Impl
> 67:
> 68:   //VTK::TCoord::Impl
> 69:
> 70:   //VTK::Clip::Impl
> 71:
> 72:   //VTK::PrimID::Impl
> 73:
> 74: gl_Position = MCDCMatrix * vertexMC;
> 75:
> 76:
> 77:   //VTK::ValuePass::Impl
> 78:
> 79:   //VTK::Light::Impl
> 80: }
> 81:
>
> --
>
> Does this have something to do with my graphics card?
>
> Many thanks for your attention.
>
> Kind regards
>
> Antonio
>
>
>
>
>
> 2017-09-07 17:06 GMT-03:00, Cory Quammen <cory.quam...@kitware.com>:
>> Hi Antonio,
>>
>> I have reported an issue for this so we can track the issue:
>> https://gitlab.kitware.com/paraview/paraview/issues/17695
>>
>> - Cory
>>
>> On Mon, Sep 4, 2017 at 8:22 AM, Antonio Orlando
>> <aorla...@herrera.unt.edu.ar> 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\vtkOpe

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

2017-09-07 Thread Cory Quammen
Hi Antonio,

I have reported an issue for this so we can track the issue:
https://gitlab.kitware.com/paraview/paraview/issues/17695

- Cory

On Mon, Sep 4, 2017 at 8:22 AM, Antonio Orlando
<aorla...@herrera.unt.edu.ar> 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



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


Re: [Paraview] Fwd: paraview.simple

2017-09-07 Thread Cory Quammen
> I usually use:
> ./

I think you would be better off running your script with

./pvpython 

pvpython comes with the ParaView binary and is located in the same
directory as the 'paraview' executable. pvpython uses the same Python
as ParaView is, so compatibility with some local Python on your system
is not a problem. Further, pvpython sets up Python environment to
provide access to the ParaView and VTK Python modules without having
to set up any environment variables.

> but I also tried with:
> python3 

python3 definitely won't work with the official ParaView binaries,
which are built against Python 2.7.

HTH,
Cory

>
> Guillermo
>
> P.S: With the version 5.0.1 installed and working fine (the script works) I
> have searched the lib you mentioned to me but I do not have it.
>
> 2017-08-23 13:15 GMT-01:00 Cory Quammen <cory.quam...@kitware.com>:
>>
>> > The problem results when executing the python script from the Ubuntu's
>> > terminal.
>>
>> What command are you using to run the Python script?
>>
>> Thanks,
>> Cory
>>
>> > Thank you very much.
>> >
>> > ASAP I will try to install the v5.3 and I will let you know if I
>> > encounter
>> > any problem.
>> >
>> > Cheers,
>> >
>> > Guillermo
>> >
>> >
>> > On 23/08/17 12:58, Cory Quammen wrote:
>> >
>> > Guillermo,
>> >
>> > I'm sorry that my suggestions didn't work out.
>> >
>> > Could you try one last thing? Please run the following commands:
>> >
>> > cd /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
>> > ./paraview
>> >
>> > That should work without problem. If it doesn't, we definitely have a
>> > problem.
>> >
>> > Cheers,
>> > Cory
>> >
>> > On Wed, Aug 23, 2017 at 7:32 AM, Guillermo <guillermo180...@gmail.com>
>> > wrote:
>> >
>> > Hi Cory,
>> >
>> > I have made a purge of paraview, reinstalled the 5.3 version, as I
>> > indicated
>> > on the first email, but the result is the same,  it does not work and
>> > the
>> > message is the same as in the beginning. Also, the libs you indicated to
>> > me
>> > are not present.
>> >
>> > Actually, I really need to use this python script and I do not have too
>> > much
>> > time to spend on it, so I decided to downgrade to 5.0.1 version.
>> >
>> > In a near future, 1-1.5 month, I will try it again, as I want to upgrade
>> > to
>> > a newer version. I will let you know if I experiment any issue.
>> >
>> > Sorry for the inconveniences,
>> >
>> > Really grateful,
>> >
>> > Guillermo S.
>> >
>> >
>> > On 22/08/17 13:46, Cory Quammen wrote:
>> >
>> > Oops, I failed to change the version number in the line I gave you,
>> > but caught that and corrected it, just not quite to the right version
>> > number.
>> >
>> > Try
>> >
>> > export
>> >
>> > PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>> >
>> > Basically, you have to set the PYTHONPATH to where the lib*Python.so
>> > files are located. Make sure
>> > /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>> > exists and confirm that a file starting with libvtkCommonCorePython27
>> > is there.
>> >
>> > Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
>> > stuff if you just add
>> >
>> > /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
>> >
>> > to your PATH.
>> >
>> > HTH,
>> > Cory
>> >
>> > On Tue, Aug 22, 2017 at 1:38 PM, Guillermo <guillermo180...@gmail.com>
>> > wrote:
>> >
>> > I forgot to mention that the error message is the same as before.
>> >
>> >
>> > On 22/08/17 13:24, Cory Quammen wrote:
>> >
>> > Guillermo,
>> >
>> > Please CC the mailing list so others can participate and learn from
>> > the discussion.
>> >
>> > That looks like progress. Now try adding to your .bashrc:
>> >
>> > export
>> >
>> > PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>> >
>> > HTH,
>> > Cory
>> >
>> > On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
>> > <guillermo180...@gmail.co

Re: [Paraview] Subdomain

2017-09-07 Thread Cory Quammen
Muhammad ,

You can try the Clip filter to generate box-shaped subdomains.
Counting the number of particles in each cell is a little more
complicated. Off the top of my head, I can't think of a filter that
does that for you. But, you could write a Programmable Filter that
does this. Briefly, the Programmable Filter would:

1. Set up a vtkCellLocator and give it the input to the Programmable
Filter (which is assumed to be a subdomain you've created with the
Clip filter)

2. Create a cell vtkDataArray (e.g., vtkIntArray) to store the counts
of particles falling inside each cell. The array should have the same
number of tuples as cells in the subdomain.

3. Iterate through all the points in a second input given to the
Programmable Filter. For each point, find the cell containing the
point using vtkCellLocator::FindCell(). Increment the count in the
cell array you created in step 2 given the cell ID returned by the
vtkCellLocator::FindCell() method.

There is a lot of information about the Programmable Filter in the
ParaView Guide and at
https://www.paraview.org/Wiki/Python_Programmable_Filter.

Hope that helps,
Cory

On Tue, Sep 5, 2017 at 2:04 AM, Muhammad Kashif Saeed
<kashifsaee...@gmail.com> wrote:
>
> Hi everyone,
>
> I have posted this question some days ago but could not get any answer. Now
> I am trying to explain it more.
>
> I am using open source software LIGGGHTS, which uses DEM (discrete element
> method), My simulation contains a cylinder and 4 bladed impeller which
> rotates inside the cylinder. I have inserted 3 types of particles in the
> cylinder and rotate the impeller which causes mixing of particles that
> process is done using LIGGGHTS software.
>
> Now for post processing, i am using ParaView. In Paraview, I can see the
> particles mixed each other. but I want to find out the mixing status for
> that purpose I want to use Subdomain based mixing index (SMI).
>
> For SMI calculation, it requires dividing the domain into subdomains like 3D
> mesh and to find the total number of particles and number of particles of
> each type in each cell of mesh/subdomain.
>
> Please let me know how can I create these subdomains in 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
>



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


Re: [Paraview] vtkClipDataSet in a programmable filter

2017-08-30 Thread Cory Quammen
This works for me in 5.4.1:

import vtk

plane = vtk.vtkPlane()
plane.SetOrigin(0, 0, 0)
plane.SetNormal(0, 1, 0)

clip = vtk.vtkClipDataSet()
clip.SetClipFunction(plane)
clip.SetInputData(self.GetInput())
clip.Update()

self.GetOutput().DeepCopy(clip.GetOutput())

Make sure you set the "Output Data Set Type" to "vtkUnstructuredGrid"
before you first hit Apply. I believe there is a bug that does not let
you change the output data set type after you first click Apply.

HTH,
Cory

On Wed, Aug 30, 2017 at 10:27 AM, Xavier Garnaud <xgarn...@gmail.com> wrote:
> Dear all,
>
> I'd like to use the vtkClipDataSet in a programmable filter, but I can't
> find it it paraview.vtk, and the function from vtk does not seem to work. (I
> am using Paraview 5.2 or 5.4 on windows).
> Is the function available, or is there another way to perform the clip?
>
> Best regards,
>
> Xavier
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


Re: [Paraview] problems with cylinder slice

2017-08-24 Thread Cory Quammen
On Thu, Aug 24, 2017 at 3:10 AM, Mathieu Westphal
<mathieu.westp...@kitware.com> wrote:
> Hello
>
> This is a bug in ParaView 5.4 and has been corrected already in the upcoming
> version, 5.4.1, soon to be released.

ParaView 5.4.1 has already been released :-)

>
> Best Regards,
>
> Mathieu Westphal
>
> On Thu, Aug 24, 2017 at 9:02 AM, Bence Somogyi via ParaView
> <paraview@paraview.org> wrote:
>>
>> Dear All,
>>
>> I have found a problem using the cylinder slice. The default axis for the
>> cylinder is the y axis, with this setting the slice works as expected. When
>> the axis is modified (e.g. x axis), the widget is updated correctly, but the
>> slice itself is not. It only works, when "crinkle clip" is enabled.
>> I have found the same behavior with the box slice
>>
>> The version I use is: ParaView-5.4.0-Qt5-OpenGL2-MPI-Windows-64bit
>>
>> BR,
>> Bence Somogyi
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView 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
>



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


Re: [Paraview] paraview.simple

2017-08-23 Thread Cory Quammen
> The problem results when executing the python script from the Ubuntu's
> terminal.

What command are you using to run the Python script?

Thanks,
Cory

> Thank you very much.
>
> ASAP I will try to install the v5.3 and I will let you know if I encounter
> any problem.
>
> Cheers,
>
> Guillermo
>
>
> On 23/08/17 12:58, Cory Quammen wrote:
>
> Guillermo,
>
> I'm sorry that my suggestions didn't work out.
>
> Could you try one last thing? Please run the following commands:
>
> cd /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
> ./paraview
>
> That should work without problem. If it doesn't, we definitely have a
> problem.
>
> Cheers,
> Cory
>
> On Wed, Aug 23, 2017 at 7:32 AM, Guillermo <guillermo180...@gmail.com>
> wrote:
>
> Hi Cory,
>
> I have made a purge of paraview, reinstalled the 5.3 version, as I indicated
> on the first email, but the result is the same,  it does not work and the
> message is the same as in the beginning. Also, the libs you indicated to me
> are not present.
>
> Actually, I really need to use this python script and I do not have too much
> time to spend on it, so I decided to downgrade to 5.0.1 version.
>
> In a near future, 1-1.5 month, I will try it again, as I want to upgrade to
> a newer version. I will let you know if I experiment any issue.
>
> Sorry for the inconveniences,
>
> Really grateful,
>
> Guillermo S.
>
>
> On 22/08/17 13:46, Cory Quammen wrote:
>
> Oops, I failed to change the version number in the line I gave you,
> but caught that and corrected it, just not quite to the right version
> number.
>
> Try
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>
> Basically, you have to set the PYTHONPATH to where the lib*Python.so
> files are located. Make sure
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
> exists and confirm that a file starting with libvtkCommonCorePython27
> is there.
>
> Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
> stuff if you just add
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
>
> to your PATH.
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 1:38 PM, Guillermo <guillermo180...@gmail.com>
> wrote:
>
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>
> Guillermo,
>
> Please CC the mailing list so others can participate and learn from
> the discussion.
>
> That looks like progress. Now try adding to your .bashrc:
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
> <guillermo180...@gmail.com> wrote:
>
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work
> (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>File "./", line XX, in 
> from paraview.simple import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
>  from paraview import servermanager
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
>  from paraview import vtk
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
>  from paraview.vtk.vtkCommonCore import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
>  from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
> your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the
> corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen <co

Re: [Paraview] paraview.simple

2017-08-23 Thread Cory Quammen
Guillermo,

I'm sorry that my suggestions didn't work out.

Could you try one last thing? Please run the following commands:

cd /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
./paraview

That should work without problem. If it doesn't, we definitely have a problem.

Cheers,
Cory

On Wed, Aug 23, 2017 at 7:32 AM, Guillermo <guillermo180...@gmail.com> wrote:
> Hi Cory,
>
> I have made a purge of paraview, reinstalled the 5.3 version, as I indicated
> on the first email, but the result is the same,  it does not work and the
> message is the same as in the beginning. Also, the libs you indicated to me
> are not present.
>
> Actually, I really need to use this python script and I do not have too much
> time to spend on it, so I decided to downgrade to 5.0.1 version.
>
> In a near future, 1-1.5 month, I will try it again, as I want to upgrade to
> a newer version. I will let you know if I experiment any issue.
>
> Sorry for the inconveniences,
>
> Really grateful,
>
> Guillermo S.
>
>
> On 22/08/17 13:46, Cory Quammen wrote:
>
> Oops, I failed to change the version number in the line I gave you,
> but caught that and corrected it, just not quite to the right version
> number.
>
> Try
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>
> Basically, you have to set the PYTHONPATH to where the lib*Python.so
> files are located. Make sure
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
> exists and confirm that a file starting with libvtkCommonCorePython27
> is there.
>
> Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
> stuff if you just add
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
>
> to your PATH.
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 1:38 PM, Guillermo <guillermo180...@gmail.com>
> wrote:
>
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>
> Guillermo,
>
> Please CC the mailing list so others can participate and learn from
> the discussion.
>
> That looks like progress. Now try adding to your .bashrc:
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
> <guillermo180...@gmail.com> wrote:
>
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work
> (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>File "./", line XX, in 
> from paraview.simple import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
>  from paraview import servermanager
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
>  from paraview import vtk
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
>  from paraview.vtk.vtkCommonCore import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
>  from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
> your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the
> corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen <cory.quam...@kitware.com>:
>
> Hi Guillermo,
>
> I think the content in that wiki page is outdated.
>
> Try setting PYTHONPATH to the following in your .bashrc
>
> export
>
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>
> See if that works and let us know,
> Cory
>
> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
> <guillermo180...@gmail.com> wrote:
&g

[Paraview] ParaView superbuild for 5.4.1 tagged

2017-08-22 Thread Cory Quammen
Hi folks,

ParaView's superbuild git repository has now been tagged with v5.4.1.

Thanks,
Cory

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


Re: [Paraview] paraview.simple

2017-08-22 Thread Cory Quammen
Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo <guillermo180...@gmail.com> wrote:
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>>
>> Guillermo,
>>
>> Please CC the mailing list so others can participate and learn from
>> the discussion.
>>
>> That looks like progress. Now try adding to your .bashrc:
>>
>> export
>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>>
>> HTH,
>> Cory
>>
>> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
>> <guillermo180...@gmail.com> wrote:
>>>
>>> Hi Cory,
>>>
>>> Thank you very much for your fast response. Unfortunately it didn't work
>>> (I
>>> just copied and pasted into the .bashrc the sentence you gave to me).
>>> However, the new error message is:
>>>
>>> Error: Could not import vtkCommonComputationalGeometry
>>> Traceback (most recent call last):
>>>File "./", line XX, in 
>>> from paraview.simple import *
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
>>> line 43, in 
>>>  from paraview import servermanager
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
>>> line 53, in 
>>>  from paraview import vtk
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
>>> line 7, in 
>>>  from paraview.vtk.vtkCommonCore import *
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
>>> line 9, in 
>>>  from vtkCommonCorePython import *
>>> ImportError: No module named vtkCommonCorePython
>>>
>>> I have searched around the Internet and I found a thread that I though it
>>> could help:
>>> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>>>
>>> The idea is to use this:
>>>
>>> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>>>
>>> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
>>> your-install
>>> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>>>
>>> I copied and pasted this on my .bashrc file substituting the
>>> corresponding
>>> names, but it didn't work. :(
>>>
>>> Any idea?
>>>
>>> Really grateful,
>>>
>>> Guillermo S.
>>>
>>>
>>>
>>>
>>> 2017-08-22 12:31 GMT-01:00 Cory Quammen <cory.quam...@kitware.com>:
>>>>
>>>> Hi Guillermo,
>>>>
>>>> I think the content in that wiki page is outdated.
>>>>
>>>> Try setting PYTHONPATH to the following in your .bashrc
>>>>
>>>> export
>>>>
>>>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>>>>
>>>> See if that works and let us know,
>>>> Cory
>>>>
>>>> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
>>>> <guillermo180...@gmail.com> wrote:
>>>>>
>>>>> Dear all,
>>>>>
>>>>> Yesterday I installed paraview v5.3 using the binaries from the website
>>>>> on my Linux (ubuntu) OS. The steps followed are (they my influence on
>>>>> the
>>>>> final result):
>>>>>
>>>>> Download the binaries from http://www.paraview.org. For me this results
>>>>> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>&g

Re: [Paraview] paraview.simple

2017-08-22 Thread Cory Quammen
Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
<guillermo180...@gmail.com> wrote:
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>   File "./", line XX, in 
> from paraview.simple import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
> from paraview import servermanager
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
> from paraview import vtk
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
> from paraview.vtk.vtkCommonCore import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
> from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen <cory.quam...@kitware.com>:
>>
>> Hi Guillermo,
>>
>> I think the content in that wiki page is outdated.
>>
>> Try setting PYTHONPATH to the following in your .bashrc
>>
>> export
>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>>
>> See if that works and let us know,
>> Cory
>>
>> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
>> <guillermo180...@gmail.com> wrote:
>>>
>>> Dear all,
>>>
>>> Yesterday I installed paraview v5.3 using the binaries from the website
>>> on my Linux (ubuntu) OS. The steps followed are (they my influence on the
>>> final result):
>>>
>>> Download the binaries from http://www.paraview.org. For me this results
>>> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>>> Extract and copy them:
>>>
>>> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>>> sudo emacs ~/.bashrc
>>>
>>> then insert the following line, save & close
>>>
>>> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
>>>
>>> Then I created a symbolic link:
>>>
>>>  sudo ln -s
>>> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
>>> /usr/bin/paraview
>>>
>>>  sudo ln -s
>>> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
>>> /usr/lib/paraview-5.3
>>>
>>> Before installing paraview from the binaries files I was using the
>>> version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
>>> was using a python script which uses paraview to take some snapshoots and it
>>> worked really well. The problem is that now, when I want to use this python
>>> script, it reports this message:
>>>
>>> "from paraview.simple import *
>>> ImportError: No module named paraview.simple"
>>>
>>> I have made some searches on the Internet and I found a web page about
>>> this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
>>> I have copied and pasted those sentences on my .bashrc file, restarted
>>> the computer but it still does not work.
>>>
>>> Could you please help me?
>>>
>>> Best regards,
>>>
>>> Guillermo S.
>>>
>>>
>>>
>>> 

[Paraview] ParaView 5.4.1 is now available for download

2017-08-21 Thread Cory Quammen
The ParaView development team is pleased to announce that ParaView
5.4.1 is available for download. Binaries and source code are
available from

www.paraview.org/download

Note that the ParaView Download page has been updated with an improved
layout that makes downloading ParaView easier.

The ParaView 5.4.1 bug fix release addresses a number of problems in
5.4.0, including:

* The black render window observed on some systems when FXAA was
enabled or an object's opacity was less than 1 has been fixed.

* Field output for cells with non-straight edges has been corrected.

* Derivatives for quadratic triangles are now computed correctly.

* A bug that occurred when generating a Catalyst script with no images
output has been fixed.

* A problem with writing animations as AVIs was fixed.

* Logic in the CGNS reader was updated to correctly read all solution
nodes for each centering type when FlowSolutionPointers are missing.

* Fixed crash in CGNS reader when moving forward in time.

* Fixed problem with long-running animations not advancing past a
certain number of time steps.

* Resolved issue where changing one file path in the state file loader
"Choose File Names" dialog also changed the file paths of other files
with the same type.

* Addressed problem with enumerated property dependencies in ParaViewWeb.

* Added ability to change the font size in the ParaView user interface.

* Fixed BoxLib3D file reader.

* State files now properly support files with relative paths.

* Removed inappropriate scalar bar scaling when saving large screen shots.

* A bug in the color mapping that in some cases incorrectly mapped
some data values to the above-range color was fixed.

* OSPRay can now be compiled in Cray programming environments and for
the first time has support for Intel Skylake processors.

 * Added lower limit to how small the GUI font size can be.

 * Addressed issue affecting layouts when loading a state file from
the Python console.

Thanks!

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


[Paraview] ParaView 5.4.1-RC4 available for download

2017-08-11 Thread Cory Quammen
On behalf of the ParaView development team, I am pleased to announce
that ParaView 5.4.1-RC4 is available for download. Binaries and source
code are available from

www.paraview.org/download

The 5.4.1-RC4 bug fix release candidate sports a couple of
improvements since 5.4.1-RC3:

 * Added lower limit to how small the GUI font size can be.

 * Addressed issue affecting layouts when loading a state file from
the Python console.

Please report any problems you find with this release candidate on the
mailing list or on the bug tracker at
https://gitlab.kitware.com/paraview/paraview/issues

Note: RC4 is expected to be the last release candidate in the 5.4.1
release cycle.

Thanks!

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


Re: [Paraview] Paraview source and its associated qt version

2017-08-09 Thread Cory Quammen
On Wed, Aug 9, 2017 at 5:34 AM, Andrew Nicholson
<andrew.stormtroo...@gmail.com> wrote:
> Cory,
>
> Thanks for the info. Is there anywhere I can find this out when I download
> the source?

At the point of download? We don't list required versions on the
downloads page I'm afraid. We do list some of the dependent library
versions in the official binaries on this page:
https://www.paraview.org/Wiki/ParaView/Binaries

Qt version requirements are available in the source, though. See
Documentation/dev/build.md.

CMake will also tell you which version of Qt it finds when you
configure the ParaView build, and which Qt version is officially
recommended.

Cory

> Thanks
> Andrew
>
>
> On Tuesday, 8 August 2017, Cory Quammen <cory.quam...@kitware.com> wrote:
>>
>> Andrew,
>>
>> The officially supported version of Qt is 5.9, but you could use down
>> to Qt 5.6 if you wanted.
>>
>> Best,
>> Cory
>>
>> On Tue, Aug 8, 2017 at 4:25 PM, Andrew Nicholson
>> <andrew.stormtroo...@gmail.com> wrote:
>> > Is there anywhere that highlights what version of qt should be used for
>> > building from source? Current version of qt being 5.9 from its website.
>> > Is
>> > paraview on this version yet or an older version.
>> > ___
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the ParaView 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.



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


Re: [Paraview] paraview 5.4.1 rc3, mac os 10.11.6, volume rendering broken

2017-08-08 Thread Cory Quammen
Dan,

This is a known issue [1] with the Projected Tetrahedra volume
rendering algorithm on Mac.

Cory

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

On Tue, Aug 8, 2017 at 5:09 PM, Dan Lipsa <dan.li...@kitware.com> wrote:
> Hi all,
> Volume rendering seems to be broken on my laptop.
> The first version of ParaView this works correctly on is ParaView 5.2.0.
> (it is broken on 5.4.0 and 5.3.0)
>
> Here is the info about my graphics card.
> Thanks,
> Dan
>
>
>
>
> AMD Radeon R9 M370X:
>
>
>   Chipset Model: AMD Radeon R9 M370X
>
>   Type: GPU
>
>   Bus: PCIe
>
>   PCIe Lane Width: x8
>
>   VRAM (Total): 2048 MB
>
>   Vendor: ATI (0x1002)
>
>   Device ID: 0x6821
>
>   Revision ID: 0x0083
>
>   ROM Revision: 113-C5670E-777
>
>   gMux Version: 4.0.20 [3.2.8]
>
>   EFI Driver Version: 01.00.777
>
>   Displays:
>
> Color LCD:
>
>   Display Type: Retina LCD
>
>   Resolution: 2880 x 1800 Retina
>
>   Retina: Yes
>
>   Pixel Depth: 32-Bit Color (ARGB)
>
>   Main Display: Yes
>
>   Mirror: Off
>
>   Online: Yes
>
>   Built-In: Yes
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 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


  1   2   3   4   5   6   7   >