Re: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString

2018-02-02 Thread Shawn Waldon
Hi Fabian,

It looks to me like you built against a Python that was configured with
UCS2 unicode objects and are linking to a Python that was configured with
UCS4 unicode objects.  Python is not ABI-compatible with other Pythons that
were built with a different kind of unicode support.

Shawn

On Fri, Feb 2, 2018 at 10:55 AM, Fabian Wein  wrote:

> It get's (for me) strange:
>
> nm /home/fwein/code/cfs_paraview/build_python/build/install/lib
> 64/python2.7/lib-dynload/_struct.so | grep PyUni
>  U PyUnicodeUCS2_AsEncodedString
>
> nm -D /usr/lib64/python2.7/lib-dynload/_struct.so | grep PyUnico
>  U PyUnicodeUCS4_AsEncodedString
>
> This is as I would expect it. So, I don't understand the error message:
>
> ImportError: /home/fwein/code/cfs_paraview/build_python/build/install/lib
> 64/python2.7/lib-dynload/_struct.so: undefined symbol:
> PyUnicodeUCS2_AsEncodedString
>
> Is the error message wrong with the filename?
>
> Mabye the path are set wrong?!
>
>
> Fabian
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://paraview.org/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Exodus multiblock dataset block numbers vs block

2017-11-15 Thread Shawn Waldon
Hi Dennis,

I can answer part of your question.  The block number is the index in a
pre-order traversal of the tree of blocks in the dataset.  The root is
element 0, its first child is 1, that block's first child (or if none, the
root's second child) is 2 and so on.  Your blocks with data are likely two
levels down since your index has that offset (and your code backs this up
since you are asking for the metadata of a child of the root's block 0).

HTH,
Shawn

On Wed, Nov 15, 2017 at 9:51 AM, Dennis Conklin  wrote:

> All,
>
>
>
> Okay, maybe not the clearest email I’ve ever written!
>
>
>
> See the attached image:  Here I have loaded a single block out of a
> multi-block dataset.
>
>
>
> It is the 24th block in the dataset.
>
> It was assigned the block_ID 101 at creation (we separate different blocks
> into different number ranges)
>
> So, it is shown in the Spreadsheet view as Block Number 25 (24+1)
>
>
>
> However, I need the Block_Name of this block.   The block name is stored
> under:
>
> Input.GetBlock(0).GetMetaData(23).Get(vtk.vtkCompositeDataSet.NAME())
> (23=24-1)
>
>
>
> In order to retrieve the name, I need to find the Block Number 25 (and
> subtract 2 from it).
>
>
>
> I have been unable to find this block_number.I can’t count blocks to
> find out the block_number, because my Programmable filter only has this 1
> block in it.
>
>
>
> So, does anyone know where this “Block Number” is stored?I’m wishing
> at this point that the Exodus reader had stored the block names in a
> dictionary with BlockID (ObjectID) as the key – then I could find  the name.
>
>
>
> Any clues on how to determine the Block Number?
>
>
>
> Thanks
>
> Dennis
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Overlapping ParaView windows obscuring each other in ParaViewWeb visualizer server

2017-10-12 Thread Shawn Waldon
Hi Louise,

I have seen something like this before when using VTK render windows on
Linux with NVidia drivers.  There is a bug/feature in the NVidia driver
where it only renders the part of the window that is shown onscreen.  The
workaround I used at the time was to enable offscreen rendering (which I
think ParaView will do by default in the 5.5 when that is released in a few
months).  In ParaView master/5.5 it will be a command line option too
--force-offscreen-rendering, but I think for 5.4 and earlier you would need
to build ParaView with offscreen rendering enabled and then use that
ParaView for Visualizer.

HTH,
Shawn

On Thu, Oct 12, 2017 at 5:54 AM,  wrote:

> Hello all,
>
>
>
> I seem to be observing odd behaviour on my ParaViewWeb server, in that the
> server works and a client can see their visualisation window fine provided
> a window does not overlap the ParaView window that is spawned when the user
> connects to the server. If a new user connects, a new ParaView window is
> spawned in the exact same place as the previous one, and the first user now
> sees the image displayed on the second user’s server – seemingly because
> the first user’s ParaView window is underneath the new user’s window.
>
>
>
> It’s not just overlapping ParaView windows either. If I connect to my
> server via VNC and place any window on top, it also obscures the user’s
> view, although it just blacks out the screen and doesn’t show the actual
> window itself to the user. Attached are some screenshots of what I’m trying
> to describe, showing what is happening on the server desktop and what the
> result is in the Visualizer window.
>
>
>
> Any ideas on what could possibly be going wrong would be greatly
> appreciated.
>
>
>
> Kind regards,
>
>
>
> Louise Davies
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Unable to build paraview in ubuntu

2017-07-27 Thread Shawn Waldon
Hi Jose,

Please keep the list in the conversation so that others can chime in too
(and/or find the solution in the future).  I'm not sure why pvpython is
even linking to Qt.  As far as I know it shouldn't be.  If you want to
re-send your error to the list, someone may be able to help.

HTH,
Shawn

On Thu, Jul 27, 2017 at 9:45 AM, José Luis López López <
jlopezfis...@ciencias.unam.mx> wrote:

> Hi Shawn,
>
> I tried different things but it seems to be a problem with Qt5, I attached
> the error in a file,
> I hope you can help me, ParaView works fine but pvpython does not,
>
> Jose
>
___
Powered by www.kitware.com

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

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

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 build paraview in ubuntu

2017-07-27 Thread Shawn Waldon
Hi Jose,

The real error is higher up in your build log, that is just make's output
that something failed.  It looks like the pvpython executable failed to
link, so you need to scroll back and look for the link error.

HTH,
Shawn

On Thu, Jul 27, 2017 at 8:51 AM, José Luis López López <
jlopezfis...@ciencias.unam.mx> wrote:

> Hi! Guys,
>
> this error was found before, do you remember how to solve it? I am
> building ParaView with CMake and I need to start a trace, but pvpython does
> not work
>
> collect2: error: ld returned 1 exit status
> CommandLineExecutables/CMakeFiles/pvpython.dir/build.make:128: recipe for
> target 'bin/pvpython' failed
> make[2]: *** [bin/pvpython] Error 1
> CMakeFiles/Makefile2:46261: recipe for target 
> 'CommandLineExecutables/CMakeFiles/pvpython.dir/all'
> failed
> make[1]: *** [CommandLineExecutables/CMakeFiles/pvpython.dir/all] Error 2
> Makefile:116: recipe for target 'all' failed
> make: *** [all] Error 2
>
> thanks Jose
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python Scripting

2017-05-29 Thread Shawn Waldon
Hi Richard,

Since you didn't specify the version you are using I'm using 5.4-RC3 for
this answer.  I loaded a dataset and ran the Python Trace (Tools -> Start
Trace) to find out what it is doing.  Here is the python script that was
generated from changing what the dataset was colored by.


# get active source.

canex2 = GetActiveSource()


# get active view

renderView1 = GetActiveViewOrCreate('RenderView')

# uncomment following to set a specific view size

# renderView1.ViewSize = [1330, 670]


# get display properties

canex2Display = GetDisplayProperties(canex2, view=renderView1)


# set scalar coloring

ColorBy(canex2Display, ('POINTS', 'VEL', 'Magnitude'))


# get color transfer function/color map for 'vtkBlockColors'

vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors')


# Hide the scalar bar for this color map if no visible data is colored by it.

HideScalarBarIfNotNeeded(vtkBlockColorsLUT, renderView1)


# rescale color and/or opacity maps used to include current data range

canex2Display.RescaleTransferFunctionToDataRange(True, False)


# show color bar/color legend

canex2Display.SetScalarBarVisibility(renderView1, True)


# get color transfer function/color map for 'VEL'

vELLUT = GetColorTransferFunction('VEL')


It is hiding the scalar bar for vtkBlockColors since that is what the data
used to be colored by.  I think your problem will be solved by using the
GetDisplayProperties and ColorBy functions rather than setting
ColorArrayName.

HTH,
Shawn

On Sat, May 27, 2017 at 1:35 PM, Richard Kalhoefer <
kalhoe...@physik.uni-kiel.de> wrote:

> Hey,
>
> I have a python script that opens a Legacy VTK file that contains two
> scalar arrays of the same length (real and imaginary part of a wave
> function) and then adjusts the camera settings, representation and color.
> My transfer functions seem to be ignored and I just get full opacity and
> black color. Running the script inside the GUI's python shell gives the
> same result, but when I then change the array under Display->Coloring to
> the other one and back again. everything looks as expected. So my question
> is: What is this GUI element doing beyond "GetRepresentation(reader,
> view).ColorArrayName = ['POINTS', arrayname]" and how can I do the same
> within the python script?
>
> Kind regards
> Richard Kalhöfer
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Problem with exporting spreadsheet view

2017-02-09 Thread Shawn Waldon
John,

I just tried the 5.2.0 binaries on Windows 7 and I didn't see this issue,
so it may be some idiosyncrasy of Windows 10 or I'm not following the right
steps to reproduce it.  I'll try to track down a Windows 10 machine
tomorrow, but if you could give me a step-by-step list of how to reproduce
this it would help.  So far I have:

Loaded your state file
export spreadsheet
scroll down to the 1023rd/1024th line -> it is fine


Loaded your state file
scroll down to the 1023rd/1024th line
export spreadsheet -> again it is fine

If I click around on the spreadsheet I sometimes get "..." replacing the
entries above or below the 1023/1024 line as it reloads the data for those
items, but I never see garbage data.

Shawn



On Thu, Feb 9, 2017 at 3:49 PM, John Haase <jhaa...@nd.edu> wrote:

> Shawn,
>
> I'm using 5.2.0 on Windows 10
>
> Regards,
>
> John R. Haase
> jhaa...@nd.edu
>
> On Thu, Feb 9, 2017 at 3:40 PM, Shawn Waldon <shawn.wal...@kitware.com>
> wrote:
>
>> Hi John,
>>
>> I have tried this out with your data on the latest master branch of
>> ParaView and I can't reproduce the bug you are seeing.  So this may already
>> be fixed.  What version of ParaView are you using?  And what OS?
>>
>> Thanks,
>> Shawn
>>
>> On Thu, Feb 9, 2017 at 11:27 AM, John Haase <jhaa...@nd.edu> wrote:
>>
>>> Utkarsh et al.,
>>>
>>> Here are the files. The data file (SteadyState_out.e) is particularly
>>> large ~500 MB.
>>>
>>> https://dl.dropboxusercontent.com/u/9655539/Integration.pvsm
>>>
>>> https://dl.dropboxusercontent.com/u/9655539/SteadyState_out.e
>>>
>>> Regards,
>>>
>>> John R. Haase
>>> jhaa...@nd.edu
>>>
>>> On Thu, Feb 9, 2017 at 11:08 AM, Utkarsh Ayachit <
>>> utkarsh.ayac...@kitware.com> wrote:
>>>
>>>> Sounds like a bug. If can provide example dataset and steps to
>>>> reproduce that will make it easier to track it down.
>>>>
>>>> Thanks,
>>>> Utkarsh
>>>>
>>>> On Thu, Feb 9, 2017 at 9:26 AM, John Haase <jhaa...@nd.edu> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> I am using Paraview to process data from a simulation output in the
>>>>> Exodus II format. I create an IntegrateVariables object, then put it in a
>>>>> PlotSelectionOverTime object so I have the integrated values at each time
>>>>> step. At this point everything seems fine but, when I choose to Export
>>>>> Spreadsheet, the data gets corrupted or something. After the 1023 (2^10-1)
>>>>> entry, the data sudden cuts out.
>>>>>
>>>>> The two images attached show what happens.
>>>>>
>>>>> Regards,
>>>>>
>>>>> John R. Haase
>>>>> jhaa...@nd.edu
>>>>>
>>>>> ___
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>> http://paraview.org/Wiki/ParaView
>>>>>
>>>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/paraview
>>>>>
>>>>>
>>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

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

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

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 with exporting spreadsheet view

2017-02-09 Thread Shawn Waldon
Hi John,

I have tried this out with your data on the latest master branch of
ParaView and I can't reproduce the bug you are seeing.  So this may already
be fixed.  What version of ParaView are you using?  And what OS?

Thanks,
Shawn

On Thu, Feb 9, 2017 at 11:27 AM, John Haase  wrote:

> Utkarsh et al.,
>
> Here are the files. The data file (SteadyState_out.e) is particularly
> large ~500 MB.
>
> https://dl.dropboxusercontent.com/u/9655539/Integration.pvsm
>
> https://dl.dropboxusercontent.com/u/9655539/SteadyState_out.e
>
> Regards,
>
> John R. Haase
> jhaa...@nd.edu
>
> On Thu, Feb 9, 2017 at 11:08 AM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> Sounds like a bug. If can provide example dataset and steps to reproduce
>> that will make it easier to track it down.
>>
>> Thanks,
>> Utkarsh
>>
>> On Thu, Feb 9, 2017 at 9:26 AM, John Haase  wrote:
>>
>>> Hello all,
>>>
>>> I am using Paraview to process data from a simulation output in the
>>> Exodus II format. I create an IntegrateVariables object, then put it in a
>>> PlotSelectionOverTime object so I have the integrated values at each time
>>> step. At this point everything seems fine but, when I choose to Export
>>> Spreadsheet, the data gets corrupted or something. After the 1023 (2^10-1)
>>> entry, the data sudden cuts out.
>>>
>>> The two images attached show what happens.
>>>
>>> Regards,
>>>
>>> John R. Haase
>>> jhaa...@nd.edu
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

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] ruler filter in paraview-git

2017-02-02 Thread Shawn Waldon
Hi Mark,

So the confusion is that there are now two rulers in ParaView.  The one
under the filters menu is the one you are seeing.  It was added so that the
user could measure the dataset in each dimension (and possibly it could be
extended to selecting other measurements).  The older behavior is the Ruler
under the Sources menu (it doesn't take an input dataset, but you can
freely set its end points).  The fact that they are named the same means
that the Ctrl-Space search favors the one in the filters menu.  Perhaps we
could change the name of one of them to make it more clear?

HTH,
Shawn

On Thu, Feb 2, 2017 at 9:51 AM, Mark Olesen 
wrote:

> I don't know if this is a regression or change of feature or what exactly.
> Using paraview 5.2.0-g332666c (64bit, linux) and the 'ruler' filter only
> seems to have the following properties:
> * x/y/z axis enumeration.
>
> That's all. In a previous version (5.0.1) there was also the ability to
> specify the begin/end points and even to select them on an existing mesh
> point. Now the ruler just seems to display the overall length of the object
> in a particular axis.
>
> Is this a feature or bug?
>
> Cheers,
> /mark
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView and Qt 5

2017-01-18 Thread Shawn Waldon
Hi Mark,

CMake uses different variables to find Qt4 vs Qt5.  QT_QMAKE_EXECUTABLE is
the Qt4 variable and is ignored by the code to find Qt5.  The variable you
want is: -DQt5_DIR=/software/path/qt-5.7.1/lib/cmake/Qt5

HTH,
Shawn

On Wed, Jan 18, 2017 at 3:16 PM, Mark Olesen 
wrote:

> I'm trying to compile a paraview using a Qt5 (5.7.1) that I've compiled
> with '-qt-xcb' to avoid too many dependencies. When compiling paraview (git
> version), I supposed that the following would be sufficient to convey which
> qt to use:
>
> cmake -DPARAVIEW_BUILD_QT_GUI=ON -DQT_QMAKE_EXECUTABLE:
> FILEPATH=/software/path/qt-5.7.1/bin/qmake
> -DPARAVIEW_QT_VERSION:STRING=5  ...
>
> However, the find_package(Qt5) locates the system Qt and its cmake file,
> which bombs out:
>
> CMake Error at CMake/ParaViewQt.cmake:65 (find_package):
>   Could not find a configuration file for package "Qt5" that is compatible
>   with requested version "5.6".
>   The following configuration files were considered but not accepted:
> /usr/lib64/cmake/Qt5/Qt5Config.cmake, version: 5.5.1
> /usr/lib64/cmake/Qt5/Qt5Config.cmake, version: 5.5.1
> Call Stack (most recent call first):
>   Qt/Widgets/CMakeLists.txt:200 (pv_find_package_qt)
>
>
> Which config variables am I missing?
>
> Thanks,
> /mark
> 
> From: ParaView  on behalf of Utkarsh
> Ayachit 
> Sent: Monday, January 16, 2017 7:51:36 PM
> To: ParaView Developers
> Cc: ParaView
> Subject: [Paraview] ParaView and Qt 5
>
> Folks,
>
> With upcoming release (5.3), we plan to move to using Qt 5 by default.
> Qt 5 has been out since 2012 and it is well supported on modern
> platforms. ParaView will continue to build with Qt 4 until further
> notice, but we highly recommend custom application developers and
> plugin developers to move to Qt 5 at the earliest since active
> development and testing for ParaView will happen with Qt 5.
>
> Changes [1] that landed in master earlier today update ParaView to now
> use QOpenGLWidget for rendering which creates a frame buffer object to
> do all the rendering in. If you have custom mapper or rendering code
> that assumed it was rendering to the default onscreen frame buffer, it
> will not work correctly and will need to be updated. Please use the
> mailing, if you encounter any such issues. For everything else, the
> changes should be fairly transparent except in exceptions documented
> here [2].
>
> In the upcoming weeks, we will update the superbuild and dashboards to
> build and test using Qt 5.
>
> Thanks,
> Utkarsh
>
>
> [1] https://gitlab.kitware.com/paraview/paraview/merge_requests/1279
> [2] https://gitlab.kitware.com/paraview/paraview/blob/master/
> Utilities/Doxygen/pages/MajorAPIChanges.md#changes-in-53
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Project polygon onto surface

2016-11-29 Thread Shawn Waldon
On Tue, Nov 29, 2016 at 1:37 PM, Adam Dershowitz <adershow...@exponent.com>
wrote:

> I may mess with it some.
>
> FYI, I did convert my polygon to a polyline, and got it to work.  But, if
> I have two polylines (actually two completely separate regions) the slice
> along polyline filter then connects them even though they should not be
> connected.  Perhaps this is just what you mentioned below about having the
> same first and last point?
>

No, that another issue and was done intentionally.  When running ParaView
in client-server mode with multiple MPI server processes, it is possible
the input polyline could be spread across the servers.  So it gathers them
from all the processes and merges all the polylines into one long line
before executing the filter.  I don't think there is a good way (other than
running multiple Slice Along Polyline filters) to get two separate regions
to work.  Also, the math for the implicit function you have to write gets
more complicated with two regions.  The current vtkPolyPlane won't handle
it.

HTH,
Shawn


> I appreciate both the filter and the feedback below.
>
>
>
> Thank you,
>
>
>
>
>
>
>
> -- Adam
>
>
>
>
>
> *From: *Shawn Waldon <shawn.wal...@kitware.com>
> *Date: *Tuesday, November 29, 2016 at 12:28 PM
> *To: *Dershowitz Adam <adershow...@exponent.com>
> *Cc: *"postgu...@web.de" <postgu...@web.de>, "paraview@paraview.org" <
> paraview@paraview.org>
>
> *Subject: *Re: [Paraview] Project polygon onto surface
>
>
>
> Hi Adam,
>
> The Slice Along PolyLine filter looks for a vtkPolyLine type cell.  But
> there is no reason the algorithm itself can't work with a polygon (the
> current implementation just doesn't look for one and may not handle it the
> way you want if you pass a polyline that happens to have a first and last
> point that are the same).  You would have to modify vtkPolyPlane to handle
> a polygon input rather than assuming the first and last segments go off to
> infinity (add an option for this).
>
> If you want to color the inside, you have to get into how the algorithm
> works a bit.  Internally I am using a vtkImplicitFunciton (vtkPolyPlane) to
> compute the distance of each point in the dataset (or its projection into
> the plane of the polyline) from the polyline.  Then I run a Contour filter
> (vtkCutter), contouring where that filter's value is 0 and the output is
> the slice along the polyline.  But if you directly applied the vtkPolyPlane
> implicit function to your dataset and appended that as a data array rather
> than contouring by it and throwing it away, you could get colors for
> distance from the line.  You could then use the Calculator filter to scale
> and color this however you wanted since the distance will be negative for
> one side of the line.
>
> HTH,
>
> Shawn
>
>
>
> On Wed, Nov 23, 2016 at 1:20 PM, Adam Dershowitz <adershow...@exponent.com>
> wrote:
>
> The problem I was having is that I was planning and trying  to use a
> polygon.  It seems that if you try to use that Slice Along Polyline, but
> select a polygon for the input, it crashes paraview (it should probably
> bring up an error, or only allow a polyline!).  I realized that it actually
> wants a polyline, and once I created one for my region, the filter does
> what I had been looking for.
> But, that leads to another question…  If I want a whole region to be
> another color, is there a way to fill the output of SliceAlongPolyLine?
> So, instead of just an outline, I can get the inside to also be a certain
> color?
>
> Thanks for the help.
>
>
> -- Adam
>
>
>
> On 10/26/16, 10:10 AM, "Adam Dershowitz" <adershow...@exponent.com> wrote:
>
> I tried it a few times, and it kept crashing Paraview.  So, then I
> read up on, it and seemed, from the description, that it was not what I
> wanted anyway.  But, if you think it is, I will see if I can get it to work.
>
> -- Adam
>
>
>
>
>
>
>
>
>
> On 10/26/16, 1:01 AM, "postgu...@web.de" <postgu...@web.de> wrote:
>
> >Adam,
> >
> >Have you actually tried the filter? Because I think the output is
> exactly what
> >you're asking for: the "section" of the surface is the part of the
> surface where
> >the polyline is proceted onto it, hence a polyline with the regarding
> topography
> >values for the respective z coordinates.
> >
> >Cheers
> >Venke
> >
> >
> >
> >> Adam Dershowitz <adershow...@exponent.com> hat am 25. Oktober 2016
> u

Re: [Paraview] Project polygon onto surface

2016-11-29 Thread Shawn Waldon
Hi Adam,

The Slice Along PolyLine filter looks for a vtkPolyLine type cell.  But
there is no reason the algorithm itself can't work with a polygon (the
current implementation just doesn't look for one and may not handle it the
way you want if you pass a polyline that happens to have a first and last
point that are the same).  You would have to modify vtkPolyPlane to handle
a polygon input rather than assuming the first and last segments go off to
infinity (add an option for this).

If you want to color the inside, you have to get into how the algorithm
works a bit.  Internally I am using a vtkImplicitFunciton (vtkPolyPlane) to
compute the distance of each point in the dataset (or its projection into
the plane of the polyline) from the polyline.  Then I run a Contour filter
(vtkCutter), contouring where that filter's value is 0 and the output is
the slice along the polyline.  But if you directly applied the vtkPolyPlane
implicit function to your dataset and appended that as a data array rather
than contouring by it and throwing it away, you could get colors for
distance from the line.  You could then use the Calculator filter to scale
and color this however you wanted since the distance will be negative for
one side of the line.

HTH,
Shawn

On Wed, Nov 23, 2016 at 1:20 PM, Adam Dershowitz 
wrote:

> The problem I was having is that I was planning and trying  to use a
> polygon.  It seems that if you try to use that Slice Along Polyline, but
> select a polygon for the input, it crashes paraview (it should probably
> bring up an error, or only allow a polyline!).  I realized that it actually
> wants a polyline, and once I created one for my region, the filter does
> what I had been looking for.
> But, that leads to another question…  If I want a whole region to be
> another color, is there a way to fill the output of SliceAlongPolyLine?
> So, instead of just an outline, I can get the inside to also be a certain
> color?
>
> Thanks for the help.
>
>
> -- Adam
>
>
> On 10/26/16, 10:10 AM, "Adam Dershowitz"  wrote:
>
> I tried it a few times, and it kept crashing Paraview.  So, then I
> read up on, it and seemed, from the description, that it was not what I
> wanted anyway.  But, if you think it is, I will see if I can get it to work.
>
> -- Adam
>
>
>
>
>
>
>
>
>
> On 10/26/16, 1:01 AM, "postgu...@web.de"  wrote:
>
> >Adam,
> >
> >Have you actually tried the filter? Because I think the output is
> exactly what
> >you're asking for: the "section" of the surface is the part of the
> surface where
> >the polyline is proceted onto it, hence a polyline with the regarding
> topography
> >values for the respective z coordinates.
> >
> >Cheers
> >Venke
> >
> >
> >
> >> Adam Dershowitz  hat am 25. Oktober 2016
> um 17:29
> >> geschrieben:
> >>
> >>
> >> I don't think that will do it.  Because, I don't want to slice
> anything.
> >> I just want to show the boundaries on the 3D surface.  I want to
> project the
> >> polygon that marks the edges of a region, onto the 3D topography.
> >> It seems that Slice Along Polyline uses a laser to cut a section of
> the
> >> surface, according to the instructions.  Instead I want to see each
> spot where
> >> the laser hits on the surface.
> >>
> >> 
> >> From: postgu...@web.de [postgu...@web.de]
> >> Sent: Tuesday, October 25, 2016 11:13 AM
> >> To: Adam Dershowitz; paraview@paraview.org
> >> Subject: Re: [Paraview] Project polygon onto surface
> >>
> >> Hi Adam
> >>
> >> I think the Slice Along Polyline Filter is what you need. Just
> select the data
> >> set and the poly line in the window popping up and then proceed in
> the
> >> properties section as usual.
> >>
> >> Cheers
> >> Venke
> >>
> >>
> >>
> >> > Adam Dershowitz  hat am 25. Oktober
> 2016 um 16:01
> >> > geschrieben:
> >> >
> >> >
> >> > Is there a way to project a 2D, or 3D polygon onto a surface.
> >> > Specifically I have some elevation data, that is displaying
> fine.  But the
> >> > data has a lot of vertical variation.  I have a polygon that
> represents the
> >> > boundaries of different regions.  So, the polygon is effectively
> 2D.
> >> >  Although, I can give it a 3D values as well.
> >> > The difficulty is that I can know the elevation of the corners,
> but the
> >> > lines
> >> > between those corners often drop "underground".
> >> > So I would like to project the 2D (or 3D) polygon region onto the
> 3D ground
> >> > elevation.
> >> > You can think of this as having a topo map and I want to show the
> lines
> >> > around
> >> > an individual piece of property.
> >> > Is there a filter that can do this?
>   

Re: [Paraview] How to merge .vtk files to visualize the result in Paraview

2016-11-07 Thread Shawn Waldon
Hi Brennen,

ParaView has support for loading multiple files as a time series if you
name them file1.vtk, file2.vtk, etc.  We realize that sometimes these
multiple files are multiple blocks of output rather than multiple timesteps
so I recently implemented a filter that converts the time series into a
multiblock dataset by putting each time step into a block in the dataset.
You can use this with the existing reader to convert the time series that
ParaView thinks your data is into a multiblock dataset with all of the data
in it.  The new filter is called 'Group Time Steps' and is available in
master or the 5.2 release candidates.

HTH,
Shawn

On Sun, Sep 18, 2016 at 4:32 PM, Brennen Taylor 
wrote:

> Dear All,
>
> I am using Paraview in order to visualize the result produced by parallel
> program.
> Each processor currently outputs its own .vtk files , which corresponsd to
> the value of the fields in the domain.
>
> I would like to know if there is a way of merging these .vtk files into
> one .vtk file so that I can visualize using Paraview.
>
> Attaching the required .vtk files for the reference.
>
>
> Thanks in advance !!
>
> Best ,
>
> Brennen
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Compute line between coordinates

2016-11-01 Thread Shawn Waldon
Hi Dorian,

Try applying the clip to the original data before you apply the glyphs.
That should do what you want.  The data will be clipped and then the glyphs
will be applied later and not restricted by the bounds of the clip.

HTH,
Shawn

On Tue, Nov 1, 2016 at 1:25 PM, Dorian Pustina  wrote:

> Thank you Samuel,
>
> The "Clip-> Box" filter is definitely better, but it still cuts out
> portions of arrows. I am ataching a picture for illustration.
>
> [image: Inline image 1]
>
> These issues seem to arise because the arrows are not seen as unitary
> objects, but as a tube and a pointer. Using cones instead of arrows is not
> useful, the cones do not respect the start and end points same as arrows.
>
> Dorian
>
> On Tue, Nov 1, 2016 at 12:03 PM, Samuel Key  wrote:
>
>> Dorian,
>>
>> Try the CLIP filter with a box.
>>
>> Sam Key
>>
>> On 11/1/2016 9:34 AM, Dorian Pustina wrote:
>>
>> Thank you both for the suggestions. I managed to have the arrows via
>> python calculator, but couldn't make the Temporal Particles to Pathlines
>> filter produce arrows.
>>
>> Can I bug you with another question?
>>
>> I want to apply a Slice filter to see the arrows that depart from that
>> slice. But the filter in Paraview just cuts through the objects in that
>> slice, it doesn't show the whole arrows. It also does not have any
>> tolerance (i.e., to pick points 2mm before and after the slice). Is there
>> another way to get a slice with full arrows, and have some tolerance to
>> pick up more points before and after the slice?
>>
>>
>>
>> On Tue, Nov 1, 2016 at 10:20 AM, Moreland, Kenneth 
>> wrote:
>>
>>> If you want to draw a line from point positions at two subsequent time
>>> steps, you can use the Temporal Particles To Pathlines filter, which traces
>>> a line behind particles as they move through space and time. When you use
>>> this filter for your purposes, set Mask Points to 1 and Max Track Length to
>>> 2. (You can increase Max Track Length to lengthen the line to connect more
>>> than 2 timesteps.) Note that you will not see any lines until you step time.
>>>
>>>
>>>
>>> The Temporal Particles to Pathlines filter actually has two outputs. The
>>> first, named Pathlines, contains the lines. The second, named Particles, is
>>> a point at the end position of the line. You can add a glyph to this output
>>> to create arrow-like filters.
>>>
>>>
>>>
>>> -Ken
>>>
>>>
>>>
>>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of 
>>> *Dorian
>>> Pustina
>>> *Sent:* Monday, October 31, 2016 8:09 PM
>>> *To:* paraview@paraview.org
>>> *Subject:* [EXTERNAL] [Paraview] Compute line between coordinates
>>>
>>>
>>>
>>> Hello everyone,
>>>
>>>
>>>
>>> I am working on visualizing some brain imaging data. I have a bunch of
>>> points in 3D space, which have two sets of coordinates: x1/y1/z1 and
>>> x2/y2/z2. All I need is to show arrow glyphs starting from the first
>>> coordinate and ending to the second coordinate. I currently import the data
>>> as csv. I tried using the time series option, and I can loop through the
>>> two time points, but can't find how to model a line or an arrow for each
>>> point between the two times. I also tried to compute what is called
>>> "velocity fields", that is a set of 3 scalar factors that if multiplied
>>> with the original coordinates would yield the second coordinate (using
>>> Calculator):
>>>
>>> iHat*X snapped+jHat*Y snapped+kHat*Z snapped
>>>
>>>
>>>
>>> Still, I don't get reasonable results. The problem looks trivial but I
>>> couldn't find any solution online after hours of search. It is not even
>>> clear to me what does the above formula do exactly.
>>>
>>>
>>>
>>> Can someone help if this is possible?
>>>
>>>
>>>
>>> Dorian
>>>
>>
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at 
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: 
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to 
>> subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView 

Re: [Paraview] ParaView 5.2 Release Candidate 2 available for download

2016-10-21 Thread Shawn Waldon
Hi Fabian,

CMAKE_OSX_SDK needs to be something like `macosx10.9`.  I forget the
command to make XCode list the valid sdk versions available.  For your case
I would guess `macosx10.12` is the correct value.  Qt looks up the path to
the SDK from that string.

HTH,
Shawn

On Fri, Oct 21, 2016 at 7:07 AM, Fabian Wein  wrote:

> I added a lot of the stuff to the issue tracker.
>
> I’m currently lost with building qt5 on macOS 10.12. It’s a qmake issue, I
> tracked it down to
>
> Creating qmake... Running configuration tests... Failed to process
> makespec for platform ‚macx-clang' Info: creating stash file
> /Users/fwein/tmp/pvsb/superbuild/qt5/build/qtbase/.qmake.stash Project
> ERROR: QMAKE_MAC_SDK can only contain short-form SDK names (eg. macosx,
> iphoneos) CMake Error at /Users/fwein/tmp/pvsb/
> superbuild/sb-qt5-configure.cmake:43 (message):
>
> And it has a connection to the CMAKE_OSX_SDK I do not know what to set.
> CMAKE_OSX_SDK=macosx does not help.
>
> Any qt5 configuration expert reading?
>
> > Am 20.10.2016 um 17:18 schrieb Ben Boeckel :
> >
> > On Thu, Oct 20, 2016 at 15:13:51 +0300, Gena Bug via ParaView wrote:
> >> Now, with RC2, fontconfig warns me about blank section:
> >>
> >> Fontconfig warning: line 160: blank doesn't take any effect anymore.
> >> please remove it from your fonts.conf
> >
> > We're now using a newer fontconfig, so the fontconfig may be newer than
> > your system, so this is just fontconfig being more pedantic than your
> > distro. Looking at fontconfig, there's no environment variable to
> > suppress these warnings.
> >
> >> However, that all -- no more new folder "fontconfig" in the running
> >> directory. Thank you, that was really annoying!
> >>
> >> Also, lib-dynload is still missing in the lib/python2.7
> >
> > Ah, the superbuild didn't get bumped for that fix yet. I'll do that
> > today.
> >
> > --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
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Feasibility of and documentation on implementing a Paraview Client.

2016-08-16 Thread Shawn Waldon
Hi Magnus,

I don't know much about getting ParaView to work in the client-server mode
you describe and less about the Unreal engine, but if you are willing to
sacrifice a little bit of rendering speed would be to build VTK with OSMesa
and let it do software rendering rather than requiring a hardware context
(which it can't seem to get due to some interference with Unreal).  I just
thought I would point out the option, you can try it and decide if you
think the rendering speed hit is too much.

HTH,
Shawn

On Tue, Aug 16, 2016 at 8:49 AM, corinna reuter 
wrote:

> Sorry, my Paraview experience is too limited and my Unreal knowledge is
> zero, so that I won't be able to give you anything else than some ideas.
> First of all, Paraview cannot compete with game engines in terms of
> rendering speed, because the data structures are more complicated.
> Still, if you write your own "Paraview client", you'll end up with the
> original paraview application reduced to only the 3d view widget. You could
> suppress its output and grab the image data.
> I guess you have already considered fixing the OpenGL setup. If you are
> running on a headless cluster, you could install the osmesa implementation.
> But without a thorough understanding of how you are interfacing with the
> Unreal engine in detail and what data type and sizes and frame rates you
> expect, I cannot suggest anything else than following the wiki on custom
> Paraview applications. I am sure, others on this list will help.
>
> Corinna
>
> On Tue, Aug 16, 2016 at 2:02 PM, Magnus Elden 
> wrote:
>
>> Hi,
>>
>>
>>
>> I think you should explain why you don't want to use the paraview
>> application as your client.
>>
>>
>>
>> I am using the Unreal Engine 4 for my project and I want to use the power
>> of Paraview to read and render scientific volume data. I tried writing a
>> small program using the VTK library, but I was unable to get it to work due
>> to the program complaining about not being able to find/create an OpenGL
>> context. As such I am forced to separate the rendering and the Unreal
>> program. Having the client and the servers separated is something that
>> Paraview supports natively and as such I do not imagine that it should be
>> more difficult than to implement a code only client that my UE4 program
>> uses to interface with the Paraview servers.
>>
>>
>>
>> As you can see, I am unable to use the paraview application because I
>> will be using another application. Since UE4 has no real support for volume
>> data or scientific visualization I am left between a choice of implementing
>> everything that Paraview already has or writing a new client that handles
>> the translation between my UE4 program and the Paraview server.
>>
>> The former option will force me to spend a lot of time implementing an
>> inferior version of parts of Paraview and the latter require me to create a
>> client that is able to communicate properly with the servers. I would argue
>> that the latter is less work if good documentation and specifications are
>> to be found. Further, I would think that the project can scale much more
>> effectively if I am able to utilize the Paraview servers.
>>
>>
>>
>> I hope to feed the paraview servers with user made updates and then feed
>> the resulting render back to the UE4 application in order to present it to
>> the user.
>>
>>
>>
>> Yours,
>>
>> Magnus Elden
>>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview with osmesa cmake issue

2016-08-15 Thread Shawn Waldon
Hi Chris,

What are you passing in for $*?  CMake, when run in a directory without a
CMakeCache file interprets the current directory as the build directory and
its last (non -ed) argument as the source directory.

HTH,
Shawn

On Mon, Aug 15, 2016 at 4:34 PM, Christopher Neal 
wrote:

> Hi,
>
> I’m trying to compile a version of Paraview that uses osmesa. I downloaded
> the ParaView soruce, and I’m following the directions from:
> http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D
>
>
>
> The tutorial gives a sample bash script for compiling with mesa. The only
> trouble that I’m having is that I don’t quite understand how to write a
> cmake shell script. I gave it a shot and it thinks my build directory is my
> source directory. I thought I passed the correct cmake variable to tell
> cmake where my source is and where my build directory are, but it can’t
> understand what I have provided. Below is the shell script that I’m trying
> to execute. Things above the space are my usual build options and things
> below are for Mesa. It can’t seem to understand those first 2 lines under
> ‘cmake’.
>
> Any thoughts on what could be causing this issue?
>
> Shell file:
>
>
> #!/bin/bash
>
>
>
> cmake \
>
>   -DCMAKE_SOURCE_DIR=/home/neal/software/ParaView_osMesa/Source \
>
>   -DCMAKE_INSTALL_PREFIX=/home/neal/software/ParaView_osMesa/build \
>
>   -DCMAKE_BUILD_TYPE:STRING=Release \
>
>   -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
>
>   -DBUILD_TESTING:BOOL=OFF \
>
>   -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF \
>
>   -DVTK_RENDERING_BACKEND=OpenGL2 \
>
>   -DPARAVIEW_USE_MPI:BOOL=ON \
>
>   -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
>
>   -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
>
>   -DPARAVIEW_BUILD_CATALYST_ADAPTERS:BOOL=ON \
>
>   -DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_ArrowGlyph:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_CDIReader:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_GeodesicMeasurement:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_InSituExodus:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_MantaView:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_NonOrthogonalSource:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_RGBZView:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_StreamingParticles:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SurfaceLIC:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_UncertaintyRendering:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_AcceleratedAlgorithms:BOOL=OFF \
>
>   -DVTK_USE_CXX11_FEATURES:BOOL=ON \
>
>
>
>   -DPARAVIEW_BUILD_QT_GUI=OFF \
>
>   -DVTK_USE_X=OFF \
>
>   -DOPENGL_INCLUDE_DIR=/home/neal/software/Mesa/build/include \
>
>   -DOPENGL_gl_LIBRARY=/home/neal/software/Mesa/build/lib64/libOSMesa.so \
>
>   -DOPENGL_glu_LIBRARY=/home/neal/software/Mesa/build/lib64/libGLU.so \
>
>   -DVTK_OPENGL_HAS_OSMESA=ON \
>
>   -DOSMESA_INCLUDE_DIR=/home/neal/software/Mesa/build/include \
>
>   -DOSMESA_LIBRARY=/home/neal/software/Mesa/build/lib64/libOSMesa.so \
>
>   $*
>
>
>
> make -j20
>
> make -j20 install
>
>
>
> Thank you,
>
> Chris Neal
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [Non-DoD Source] Re: Qt version support update 2016

2016-08-15 Thread Shawn Waldon
Mega Mind,

I have a project that is using ParaView with Qt 5.7 on Windows.  Of course
we use VS 2013 still, so that may be the difference.  It still sounds like
you forgot to set the PARAVIEW_QT_VERSION to 5.  If this is 4 (the
default), the CMake scripts will ignore Qt5.  I think it may be smart
enough to default to 5 when there is no Qt4 preset which may be why that
build worked.  Our build machine has both Qt4 and Qt5 installed and it
works fine.  Still, I don't know if anyone has tried Qt5 + VS 2015
Anyway, your runtime error with the dll not found?  That is a Windows
thing.  Not found means it is not in the PATH environment variable's list
of folders.  Windows doesn't bake into the executable the paths to its
runtime dependencies.  Linux and OSX do, which is why you can typically run
things from a build tree there without any problems.  But to run it from
Windows, you will need to add the Qt5 dll's directory to your PATH or move
it to the same directory as the executable which needs it.

Simon,

The ParaView Superbuild uses a precompiled python 2.7 that was built with
VS 2008.  Python 2.x doesn't support any newer versions (maybe 2010, but
we've never used that version of python).  Since the API we link against is
pure C, there are no ABI issues with using this prebuilt version.  You
should be able to look in the superbuild and find the path for the zip file
with the prebuilt python and download/use that one.  I know Python 3 is
supported in VTK, but I'm not sure it is fully supported in ParaView yet.

HTH,
Shawn

On Sat, Aug 13, 2016 at 6:30 PM, Su, Simon M CIV USARMY RDECOM ARL (US) <
simon.m.su@mail.mil> wrote:

> you need python in the path for QT 5 to build for windows. specifically
> python with bz2 module both running configure and nmake
>
> the next problem you will encounter after getting past the QT 5 which I am
> still stuck is to build python. Python 3 will compile with vs2015 express,
> python 2.x will not. c++ time zone related variables changes. But I am not
> able to compile pv with python 3.  I even tried to fix the time zone
> related compile but end up with linking error at the very end.
>
> because of this, i think win7 or win10 pv will only work with vs2013
> express.
>
> hth
> -s
>
> --
> *From:* ParaView [paraview-boun...@paraview.org] on behalf of Mega Mind [
> 123megam...@gmail.com]
> *Sent:* Saturday, August 13, 2016 5:00 PM
> *To:* Shawn Waldon
> *Cc:* ParaView list
> *Subject:* [Non-DoD Source] Re: [Paraview] Qt version support update 2016
>
> All active links contained in this email were disabled. Please verify the
> identity of the sender, and confirm the authenticity of all links contained
> within the message prior to copying and pasting the address to a Web
> browser.
>
> --
>
>
> Have you or anyone successfully built and installed on Win7 64 with Visual
> Studio 2015? I always get errors when building or opening the paraview.exe.
> For Qt the 4.x versions seem to have only x86 installs but I installed 4.8
> anyway. When trying Qt 5.7 I get a failed build with 3 errors and over 350
> warnings. Also noted that in Cmake configure it would still reference Qt 4
> even after setting Qt5_DIR Qt5Core_DIR Qt5Widgets_DIR  etc and changing all
> paths to proper reference directories. The only fix was to uninstall Qt 4
> but I was able to get a build with no errors when it was using both Qt 4 &
> 5 strangely but when opening paraview,exe the 'system error' message was
> Qt5Widgets.dll does not exist. It does though and is in "C:\Program Files
> (x86)\Qt\5.7\msvc2015_64\bin\" so I tried to manually change that in any
> Cmake config file I could find but nothing worked out. I've tried hundreds
> of things over the past three days and read and followed the wiki many
> times and I'm coming to the conclusion no one is using Win 64 which seems
> strange to me but I guess everyone is using Unix.
>
> On Fri, Aug 12, 2016 at 5:18 AM, Shawn Waldon <shawn.wal...@kitware.com <
> Caution-mailto:shawn.wal...@kitware.com > > wrote:
>
>> To use Qt5, you have to set the PARAVIEW_QT_VERSION variable to 5 (it
>> still defaults to 4, which is why cmake is complaining).  Note that some
>> things may be buggy when building against Qt5, I don't know the full list
>> of current issues, just that there are some.  Also note that you have to
>> specify the location of Qt5 differently to CMake.  CMake doesn't use the
>> QT_QMAKE_EXECUTABLE variable for Qt5, instead it uses Qt5_DIR.  This should
>> point to .../lib/cmake/Qt5 inside your Qt5 install.
>>
>> HTH,
>> Shawn
>>
>> On Fri, Aug 12, 2016 at 5:09 AM, Mega Mind <123megam...@gmail.com <
>> Caution-mailto:123megam...

Re: [Paraview] Qt version support update 2016

2016-08-12 Thread Shawn Waldon
To use Qt5, you have to set the PARAVIEW_QT_VERSION variable to 5 (it still
defaults to 4, which is why cmake is complaining).  Note that some things
may be buggy when building against Qt5, I don't know the full list of
current issues, just that there are some.  Also note that you have to
specify the location of Qt5 differently to CMake.  CMake doesn't use the
QT_QMAKE_EXECUTABLE variable for Qt5, instead it uses Qt5_DIR.  This should
point to .../lib/cmake/Qt5 inside your Qt5 install.

HTH,
Shawn

On Fri, Aug 12, 2016 at 5:09 AM, Mega Mind <123megam...@gmail.com> wrote:

> Has the Qt version support advanced close to 5.7 yet?
> Cmake throws error that Qt 4.x required but read on mailing list some guys
> are using Qt 5.x.
> I'm installing Qt 4.8.1 but the only option seems to be x86 and for Visual
> Studio 2010. Trying to build on Win7 64bit with MSVisual Studio 2015
> install.
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Procedure for compiling Catalyst

2016-07-25 Thread Shawn Waldon
He doesn't need to delete and re-clone.  The recursive flag just does a
normal clone followed by a git submodule update --init.  So run that
command in your paraview source tree and you should be fine.

HTH,
Shawn

On Mon, Jul 25, 2016 at 4:00 PM, Adam Lyon  wrote:

> Well, reading that page again, it doesn't mention VTK, but adding
> "--recursive" to git clone will get the submodule. You should probably
> delete your repository and clone it again following the instructions at
> https://gitlab.kitware.com/paraview/paraview/blob/master/CONTRIBUTING.md.
> -- A
>
> *--*
>
> *Adam L. Lyon*
> *Scientist; Associate Division Head for Systems for Scientific
> Applications*
>
> Scientific Computing Division & Muon g-2 Experiment
> Fermi National Accelerator Laboratory
> 630 840 5522 office
> www.fnal.gov
> l...@fnal.gov
>
> Connect with us!
> News   |  Facebook
>   |  Twitter
> 
>
> On Mon, Jul 25, 2016 at 2:58 PM, Adam Lyon  wrote:
>
>> You need to follow the instructions at
>> https://gitlab.kitware.com/paraview/paraview/blob/master/CONTRIBUTING.md
>> . That will tell you how to checkout the VTK submodule. -- Adam
>>
>> *--*
>>
>> *Adam L. Lyon*
>> *Scientist; Associate Division Head for Systems for Scientific
>> Applications*
>>
>> Scientific Computing Division & Muon g-2 Experiment
>> Fermi National Accelerator Laboratory
>> 630 840 5522 office
>> www.fnal.gov
>> l...@fnal.gov
>>
>> Connect with us!
>> News   |  Facebook
>>   |  Twitter
>> 
>>
>> On Mon, Jul 25, 2016 at 2:43 PM, Christopher Neal <
>> chrisn...@snumerics.com> wrote:
>>
>>> Hey guys,
>>>
>>>
>>>
>>> Have you ever had an issue with cmake concerning some missing VTK files?
>>> I typed Adam’s command exactly after cloning the Paraview repo(git clone
>>> https://github.com/Kitware/ParaView.git). I made a ParaView_build
>>> directory and executed Adam’s command in the build directory. I’m seeing
>>> the error shown below. The VTK folder in the cloned source directory is
>>> completely empty.
>>>
>>>
>>> CMake Error at CMakeLists.txt:615 (include):
>>>
>>>   include could not find load file:
>>>
>>>
>>>
>>> vtkModuleAPI
>>>
>>>
>>>
>>>
>>>
>>> CMake Error at CMakeLists.txt:616 (include):
>>>
>>>   include could not find load file:
>>>
>>>
>>>
>>> vtkModuleMacros
>>>
>>>
>>>
>>>
>>>
>>> CMake Error at CMakeLists.txt:621 (include):
>>>
>>>   include could not find load file:
>>>
>>>
>>>
>>> vtkDetermineCompilerFlags
>>>
>>>
>>>
>>>
>>>
>>> CMake Error at CMake/ParaViewModuleTop.cmake:44
>>> (vtk_add_to_module_search_path):
>>>
>>>   Unknown CMake command "vtk_add_to_module_search_path".
>>>
>>> Call Stack (most recent call first):
>>>
>>>   CMakeLists.txt:652 (include)
>>>
>>>
>>>
>>> Thank you,
>>>
>>> Chris Neal
>>>
>>>
>>>
>>> *From: *Adam Lyon 
>>> *Date: *Monday, July 25, 2016 at 1:50 PM
>>> *To: *Andy Bauer 
>>> *Cc: *Christopher Neal , jeff wright <
>>> jeffwrigh...@gmail.com>, "paraview@paraview.org" 
>>>
>>> *Subject: *Re: [Paraview] Procedure for compiling Catalyst
>>>
>>>
>>>
>>> Hi - I build the ParaView package with Catalyst turned on (but the
>>> ParaView GUI turned off). My cmake command is (sorry for the poor
>>> formatting, some of these options may not be useful for you)...
>>>
>>>
>>>
>>> cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES 
>>> -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF 
>>> -DVTK_RENDERING_BACKEND=OpenGL2 -DPARAVIEW_USE_MPI:BOOL=ON 
>>> -DPARAVIEW_ENABLE_PYTHON:BOOL=ON 
>>> -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON 
>>> -DPARAVIEW_BUILD_CATALYST_ADAPTERS:BOOL=ON 
>>> -DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_ArrowGlyph:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_CDIReader:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_GeodesicMeasurement:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_InSituExodus:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_MantaView:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_NonOrthogonalSource:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_RGBZView:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_StreamingParticles:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_SurfaceLIC:BOOL=FALSE 
>>> -DPARAVIEW_BUILD_PLUGIN_ThickenLayeredCells:BOOL=FALSE 
>>> 

Re: [Paraview] (no subject)

2016-06-14 Thread Shawn Waldon
Hi Vince,

This is expected.  Essentially ParaViewWeb allows you to remotely view the
ParaView output with your browser.  If you launched the Visualizer without
pointing a browser at it and then went to another computer and pointed a
browser at the first computer, you would see the ParaViewWeb output.  The
window would still pop up on the computer running ParaViewWeb.  Essentially
the problem is that ParaView needs an OpenGL context to do its rendering
and on most operating systems this requires a window.  So it creates a
window to get the OpenGL context and uses onscreen OpenGL.

You can change it to use offscreen rendering by finding where it creates
its render view and setting view.UseOffscreenRendering = 1.  But you still
get a window that pops up (it is just a blank window now).  I'll let you
know if I figure out how to get rid of the window altogether.

Shawn

On Tue, Jun 14, 2016 at 4:26 PM, Vincent Perry  wrote:

> Hello,
>
> When running ParaViewWeb on a Mac, a pvpython window entitled
> 'Visualization Toolkit - Cocoa #1' pops up on start-up. This window
> displays the exact same output as the Visualizer in the browser, but there
> is no way to interact with it directly.  If I quit out of this window, the
> entire application fails. I am wondering what launches this window, and why
> is it necessary? Is there any way to launch ParaViewWeb without having this
> extra window pop up?
>
> Thanks,
> Vince
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview compile download timeout

2016-05-10 Thread Shawn Waldon
Looks like it is working again now.

Shawn

On Tue, May 10, 2016 at 10:09 AM, Shawn Waldon <shawn.wal...@kitware.com>
wrote:

> Update: So I just tried to do a clean build of ParaView master I get
> this error consistently and I know my CMake is built with SSL.  I'll look
> into it.
>
> Shawn
>
> On Tue, May 10, 2016 at 9:48 AM, Shawn Waldon <shawn.wal...@kitware.com>
> wrote:
>
>> Which version of CMake are you running?  We have had problems in the past
>> when using a CMake not built with SSL support pulling new data from midas.
>> The error messages from that generally look like this:
>>
>>
>> CMake Error at /apps/pkg/paraview-5.0/src/paraview-5.0/CMake
>> /ExternalData.cmake:749 (message):
>>   Object MD5=6c0dd882aa361431b95d7e2feb87fece not found at:
>>
>>
>> http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=6c0dd882aa361431b95d7e2feb87fece=MD5
>> ("Unsupported protocol")
>>
>> http://www.paraview.org/files/ExternalData/MD5/6c0dd882aa361431b95d7e2feb87fece
>> ("HTTP response code said error")
>> Call Stack (most recent call first):
>>   /apps/pkg/paraview-5.0/src/paraview-5.0/CMake/ExternalData.cmake:771
>> (_ExternalData_download_object)
>>
>> If this is the problem you will need to download a new CMake that is
>> built with SSL support or build one yourself.
>>
>> HTH,
>> Shawn
>>
>> On Tue, May 10, 2016 at 9:13 AM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> there are still problems?
>>>
>>>
>>> Am 10.05.2016 um 11:14 schrieb Mathieu Westphal:
>>>
>>> We are experiencing timeout with midas currently.
>>> Please recompile, it should work.
>>>
>>>
>>>
>>> Mathieu Westphal
>>>
>>> On Tue, May 10, 2016 at 10:56 AM, Daniel Zuidinga <i...@seoaachen.de>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> when compiling paraview I get the error:
>>>>
>>>>
>>>> http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=534871355b0e4de0d6b727c8ed317027=MD5
>>>> ("Timeout was reached")
>>>>
>>>> http://www.paraview.org/files/ExternalData/MD5/534871355b0e4de0d6b727c8ed317027
>>>> ("HTTP response code said error")
>>>>
>>>> any ideas?
>>>>
>>>>
>>>> ___
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> <http://www.kitware.com/opensource/opensource.html>
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>> http://paraview.org/Wiki/ParaView
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/paraview
>>>>
>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview compile download timeout

2016-05-10 Thread Shawn Waldon
Update: So I just tried to do a clean build of ParaView master I get
this error consistently and I know my CMake is built with SSL.  I'll look
into it.

Shawn

On Tue, May 10, 2016 at 9:48 AM, Shawn Waldon <shawn.wal...@kitware.com>
wrote:

> Which version of CMake are you running?  We have had problems in the past
> when using a CMake not built with SSL support pulling new data from midas.
> The error messages from that generally look like this:
>
>
> CMake Error at /apps/pkg/paraview-5.0/src/paraview-5.0/CMake/ExternalData.
> cmake:749 (message):
>   Object MD5=6c0dd882aa361431b95d7e2feb87fece not found at:
>
>
> http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=6c0dd882aa361431b95d7e2feb87fece=MD5
> ("Unsupported protocol")
>
> http://www.paraview.org/files/ExternalData/MD5/6c0dd882aa361431b95d7e2feb87fece
> ("HTTP response code said error")
> Call Stack (most recent call first):
>   /apps/pkg/paraview-5.0/src/paraview-5.0/CMake/ExternalData.cmake:771
> (_ExternalData_download_object)
>
> If this is the problem you will need to download a new CMake that is built
> with SSL support or build one yourself.
>
> HTH,
> Shawn
>
> On Tue, May 10, 2016 at 9:13 AM, Daniel Zuidinga <i...@seoaachen.de>
> wrote:
>
>> there are still problems?
>>
>>
>> Am 10.05.2016 um 11:14 schrieb Mathieu Westphal:
>>
>> We are experiencing timeout with midas currently.
>> Please recompile, it should work.
>>
>>
>>
>> Mathieu Westphal
>>
>> On Tue, May 10, 2016 at 10:56 AM, Daniel Zuidinga <i...@seoaachen.de>
>> wrote:
>>
>>> Hello,
>>>
>>> when compiling paraview I get the error:
>>>
>>>
>>> http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=534871355b0e4de0d6b727c8ed317027=MD5
>>> ("Timeout was reached")
>>>
>>> http://www.paraview.org/files/ExternalData/MD5/534871355b0e4de0d6b727c8ed317027
>>> ("HTTP response code said error")
>>>
>>> any ideas?
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> <http://www.kitware.com/opensource/opensource.html>
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview compile download timeout

2016-05-10 Thread Shawn Waldon
Which version of CMake are you running?  We have had problems in the past
when using a CMake not built with SSL support pulling new data from midas.
The error messages from that generally look like this:


CMake Error at /apps/pkg/paraview-5.0/src/paraview-5.0/CMake/ExternalData.
cmake:749 (message):
  Object MD5=6c0dd882aa361431b95d7e2feb87fece not found at:


http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=6c0dd882aa361431b95d7e2feb87fece=MD5
("Unsupported protocol")

http://www.paraview.org/files/ExternalData/MD5/6c0dd882aa361431b95d7e2feb87fece
("HTTP response code said error")
Call Stack (most recent call first):
  /apps/pkg/paraview-5.0/src/paraview-5.0/CMake/ExternalData.cmake:771
(_ExternalData_download_object)

If this is the problem you will need to download a new CMake that is built
with SSL support or build one yourself.

HTH,
Shawn

On Tue, May 10, 2016 at 9:13 AM, Daniel Zuidinga  wrote:

> there are still problems?
>
>
> Am 10.05.2016 um 11:14 schrieb Mathieu Westphal:
>
> We are experiencing timeout with midas currently.
> Please recompile, it should work.
>
>
>
> Mathieu Westphal
>
> On Tue, May 10, 2016 at 10:56 AM, Daniel Zuidinga 
> wrote:
>
>> Hello,
>>
>> when compiling paraview I get the error:
>>
>>
>> http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=534871355b0e4de0d6b727c8ed317027=MD5
>> ("Timeout was reached")
>>
>> http://www.paraview.org/files/ExternalData/MD5/534871355b0e4de0d6b727c8ed317027
>> ("HTTP response code said error")
>>
>> any ideas?
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> 
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Scipy installation9814651912

2016-03-14 Thread Shawn Waldon
You would need to either build scipy against ParaView's python or build
ParaView against system python and install scipy in that system python.
Otherwise you are likely to get strange behaviors if the python versions
don't match.  I would recommend building ParaView against the system python
since Scipy's build system is difficult.

HTH,
Shawn

On Mon, Mar 14, 2016 at 11:05 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> I don't think it works that way. I'd guess scipy has compiled code
> that needs to built. It's be easiest to just build ParaView from
> source and make it use the system python. That way you can then
> install Python packages locally using your linux distribution and
> those will be available within pypython.
>
> Utkarsh
>
> On Mon, Mar 14, 2016 at 9:15 AM, Arshpreet Singh 
> wrote:
> > I am using Paraview 5.0.0 64-bit, I want to install scipy and for that
> > I have copied scipy source in
> >
> > "Paraview/lib/paraview-5.0/lib/python2.7/site-packages/scipy" but I am
> > still not able to use scipy from paraview Python shell.
> >
> > Do I need to install any specific version of scipy?
> >
> > --
> >
> > Thanks
> > Arshpreet Singh
> >
> > I am Sikh boy, Learning by doing and Learning by teaching is my religion.
> >
> --
> > Slashdot TV.
> > Video for Nerds.  Stuff that matters.
> > http://tv.slashdot.org/
> > ___
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/paraview
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] OpenGL Backend Identification

2015-12-09 Thread Shawn Waldon
There *is* a global VTK configuration header.  vtkConfigure.h has many of
these definitions and is included in vtkObjectBase.h (so pretty much
everywhere).  But you may be right that this should go somewhere in the
rendering code rather than in there.  I am not sure that vtkRenderWindow is
the best location for it, but I am not as familiar with the code that uses
the compiler definition.  Does everywhere that #ifdefs VTK_OPENGL2 include
vtkRenderWindow.h?  Or would we have to pull in that header just for that
macro?

Shawn

On Wed, Dec 9, 2015 at 11:54 AM, Tim Thirion 
wrote:

> Yes, that was my original question. :) Is the vtkRenderWindow the best
> place for this? I'm happy to add it.
>
> On Wed, Dec 9, 2015 at 11:12 AM, Joachim Pouderoux <
> joachim.pouder...@kitware.com> wrote:
>
>> BTW, I took a look but I do not see any way for a third party VTK or PV
>> application that would not use CMake machinery (and use VTK_OPENGL_BACKEND)
>> to know if the VTK it uses is based on OpenGL backend 1 or 2.
>> VTK_OPENGL2 is a compiler definition provided to build VTK or PV but, as
>> there is no global VTK configuration header, shouldn't we add a function in
>> vtkRenderWindow to return the version of the backend it is based on?
>>
>> *Joachim Pouderoux*
>>
>> *PhD, Technical Expert*
>> *Kitware SAS *
>>
>>
>> 2015-12-08 19:58 GMT+01:00 Ben Boeckel :
>>
>>> On Mon, Dec 07, 2015 at 14:49:51 -0500, Tim Thirion wrote:
>>> > I'm looking to provide run-time identification of the current OpenGL
>>> > backend in use. Some questions:
>>> >
>>> > 1. VTK #defines VTK_OPENGL2, but ParaView #defines VTKGL2. Is there a
>>> > particular reason we have both?
>>>
>>> VTK used to have both. VTKGL2 should be migrated to VTK_OPENGL2 (as VTK
>>> did).
>>>
>>> > 2. Is there an ideal place to define such a constant? Perhaps on the
>>> render
>>> > window?
>>>
>>> The About dialog has a list of information already (versions of Python,
>>> matplotlib, numpy, Qt, etc.).
>>>
>>> --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
>>>
>>
>>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview and Python related question

2015-09-22 Thread Shawn Waldon
Hi Amit,

Since you appear to be using OSX, the environment variable you want is
DYLD_LIBRARY_PATH, not LD_LIBRARY_PATH.

HTH,
Shawn

On Tue, Sep 22, 2015 at 1:32 PM, Amit Goel  wrote:

> Hi
>
> I downloaded the Paraview app and put it in a folder. Then I tried
> following instructions on this page:
> http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/quick-start.html
>
> export
> PYTHONPATH=/Applications/ArmandoApps/paraview.app/Contents/Python:$PYTHONPATH
> export
> LD_LIBRARY_PATH=/Applications/ArmandoApps/paraview.app/Contents/Libraries/:$LD_LIBRARY_PATH
>
> and I get this error:
>
> Python 2.7.10 (default, Sep 14 2015, 23:52:44)
> [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
> Type "copyright", "credits" or "license()" for more information.
> >>> from paraview.simple import *
> Error: Could not import vtkCommonComputationalGeometryPython
>
> Traceback (most recent call last):
>   File "", line 1, in 
> from paraview.simple import *
>   File
> "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/simple.py",
> line 39, in 
> import servermanager
>   File
> "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/servermanager.py",
> line 48, in 
> import paraview, re, os, os.path, new, sys, atexit, vtk
>   File
> "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/vtk/__init__.py",
> line 7, in 
> from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
> >>>
>
> When i add vtk subfolder also to PYTHONPATH, I get this error:
>
> ImportError:
> dlopen(/Applications/ArmandoApps/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so,
> 2): Library not loaded:
> @executable_path/../Libraries/libvtkCommonCorePython27D-pv4.3.1.dylib
>   Referenced from:
> /Applications/ArmandoApps/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so
>   Reason: image not found
>
> vtkCommonCorePython.so is present in LD_LIBRARY_PATH set earlier.
>
> So question is: Am I following correct instructions ?
>
> I guess there are three scenarios I would be working with in coming days:
>
> 1. python code to run default python.app on my local MacOS, read H5Part
> file and visualize it.
> 2. python code to run compiled python on my cluster
> 3. python code to run compiled python server on my cluster
>
> I dont know yet what would the difference in 2nd and 3rd point but for now
> I am trying to write a python script that would start python and open a
> file and visualize it.
>
> Any help would be highly appreciated.
>
> Regards
>
> Amit
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Possible bug in recent SuperBuild?

2015-09-16 Thread Shawn Waldon
Hi Giovanni,

kwgitlab is the kitware-internal instance of gitlab.  We were hosting the
genericio project there while it was not open sourced.  The base code has
now been open sourced by ANL at the address Utkarsh linked to, but I
haven't had time to get the changes that kitware has made to the library
upstreamed to the version hosted at ANL yet.  Unfortunately ParaView needs
these changes.  It is on my todo list...

Shawn
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Exodus Block Names

2015-08-31 Thread Shawn Waldon
Dennis,

Given those block names, I think I know what you are missing.  It is
possible for a block to be a vtkMultiBlockDataSet itself, in which case you
would need to get the block with mbi.GetBlock(0) and then do another loop
over the blocks in that one to look at the block names.  A quick way to
check this is to look at the Information panel in ParaView.  The tree there
reflects the tree in the data and each node you can expand is a
vtkMultiBlockDataSet (or other composite dataset type, but that one is the
most common).

Shawn

On Mon, Aug 31, 2015 at 10:40 AM, Dennis Conklin <
dennis_conk...@goodyear.com> wrote:

> Shawn,
>
>
>
> Ok, I’m dense.
>
>
>
> When I run your code inside the Programmable Filter, I see some confusing
> things:
>
> mbi.GetNumberOfBlocks returns 8, which is NOT the number of blocks in my
> model but IS the number of MetaData blocks.
>
>
>
> The mbi.GetMetaData[i].Get(vtk.vtkCompositeDataSet.NAME()) then is
>
> Value of i Name
>
> 0Element Blocks
>
> 1Face Blocks
>
> 2Edge Blocks
>
> 3Element Sets
>
> 4Side Sets
>
> 5Face Sets
>
> 6Edge Sets
>
> 7Node Sets
>
> 8
>
>
>
> I am poking around mbi.GetMetaData[0] (Element Blocks) but I still haven’t
> found any Block Names there.I feel like I am completely missing
> something here, but I have no idea what it is.
>
>
>
> Dennis
>
>
>
>
>
> *From:* Shawn Waldon [mailto:shawn.wal...@kitware.com]
> *Sent:* Monday, August 31, 2015 9:46 AM
> *To:* Dennis Conklin
> *Cc:* Paraview (paraview@paraview.org)
> *Subject:* Re: [EXT] Re: [Paraview] Exodus Block Names
>
>
>
> Hi Dennis,
>
> The metadata is on the reader's output, which is a vtkMultiBlockDataSet.
> reader.GetOutput() should get you the dataset in your python script.
> Inside the programmable filter you will need to get the input dataset
> (self.GetInput() should get you the input dataset and self.GetOutput()
> should get you the output dataset).  So something like the following for
> your programmable filter:
>
> mbi = self.GetInput()
>
> mbo = self.GetOutput()
>
> mbo.ShallowCopy(mbi)
>
> for i in range(mbo.GetNumberOfBlocks()):
>   metadata = mbo.GetMetaData(i)
>   name = metadata.Get(vtk.vtkCompositeDataSet.NAME())
>
>   # do something with the name
>
>
>
>
>
> HTH,
>
> Shawn
>
>
>
> On Mon, Aug 31, 2015 at 8:31 AM, Dennis Conklin <
> dennis_conk...@goodyear.com> wrote:
>
> Shawn,
>
>
>
> Thanks for that tip but I can’t seem to access this structure.   Really, I
> need it within the Programmable Filter, but even when I run a Python script
> and try to find it directly in an Exodus reader, I can’t seem to locate
> this metadata.
>
>
>
> If I print dir(ExodusReader), there doesn’t seem to be anything about
> metadata.
>
> Dennis
>
>
>
> *From:* Shawn Waldon [mailto:shawn.wal...@kitware.com]
> *Sent:* Friday, August 28, 2015 4:44 PM
> *To:* Dennis Conklin
> *Cc:* Paraview (paraview@paraview.org)
> *Subject:* [EXT] Re: [Paraview] Exodus Block Names
>
>
>
> Hi Dennis,
>
> The block name is in the block metadata, which is not where I looked the
> first time either.  Here is a code snippet that shows how to access it.
>
> mb = vtk.vtkMultiBlockDataSet()
> ...
>
> for i in range(mb.GetNumberOfBlocks):
>
>   metadata = mb.GetMetaData(i)
>
>   name = metadata.Get(vtk.vtkCompositeDataSet.NAME())
>
> HTH,
>
> Shawn
>
>
>
> On Fri, Aug 28, 2015 at 4:13 PM, Dennis Conklin <
> dennis_conk...@goodyear.com> wrote:
>
> All,
>
>
>
> Once again, I need help.  We are starting to assign names to our Exodus
> blocks (outside of Paraview).   This is very useful for ease and clarity of
> post processing and allows convenient reference to actual components.   The
> good news is that Paraview seems perfectly happy to read in the Block Names
> and use them in the Properties Panel and the Multi-block Inspector and the
> Find Data screen if they exist (no action or programming required for
> this).  So, for instance, instead of Paraview generating the non-useful
> name of “Unnamed block ID: 13 Type: hex” when the blockname is empty, it
> will automagically use the more useful Blockname of “Tread”  if that is in
> the Exodus file.
>
>
>
> However, there has been an unintended consequence of this change.   If I
> select some elements and examine them in 

Re: [Paraview] [EXT] Re: Exodus Block Names

2015-08-31 Thread Shawn Waldon
Hi Dennis,

The metadata is on the reader's output, which is a vtkMultiBlockDataSet.
reader.GetOutput() should get you the dataset in your python script.
Inside the programmable filter you will need to get the input dataset
(self.GetInput() should get you the input dataset and self.GetOutput()
should get you the output dataset).  So something like the following for
your programmable filter:

mbi = self.GetInput()
mbo = self.GetOutput()

mbo.ShallowCopy(mbi)

for i in range(mbo.GetNumberOfBlocks()):
  metadata = mbo.GetMetaData(i)
  name = metadata.Get(vtk.vtkCompositeDataSet.NAME())
  # do something with the name


HTH,
Shawn

On Mon, Aug 31, 2015 at 8:31 AM, Dennis Conklin <dennis_conk...@goodyear.com
> wrote:

> Shawn,
>
>
>
> Thanks for that tip but I can’t seem to access this structure.   Really, I
> need it within the Programmable Filter, but even when I run a Python script
> and try to find it directly in an Exodus reader, I can’t seem to locate
> this metadata.
>
>
>
> If I print dir(ExodusReader), there doesn’t seem to be anything about
> metadata.
>
> Dennis
>
>
>
> *From:* Shawn Waldon [mailto:shawn.wal...@kitware.com]
> *Sent:* Friday, August 28, 2015 4:44 PM
> *To:* Dennis Conklin
> *Cc:* Paraview (paraview@paraview.org)
> *Subject:* [EXT] Re: [Paraview] Exodus Block Names
>
>
>
> Hi Dennis,
>
> The block name is in the block metadata, which is not where I looked the
> first time either.  Here is a code snippet that shows how to access it.
>
> mb = vtk.vtkMultiBlockDataSet()
> ...
>
> for i in range(mb.GetNumberOfBlocks):
>
>   metadata = mb.GetMetaData(i)
>
>   name = metadata.Get(vtk.vtkCompositeDataSet.NAME())
>
> HTH,
>
> Shawn
>
>
>
> On Fri, Aug 28, 2015 at 4:13 PM, Dennis Conklin <
> dennis_conk...@goodyear.com> wrote:
>
> All,
>
>
>
> Once again, I need help.  We are starting to assign names to our Exodus
> blocks (outside of Paraview).   This is very useful for ease and clarity of
> post processing and allows convenient reference to actual components.   The
> good news is that Paraview seems perfectly happy to read in the Block Names
> and use them in the Properties Panel and the Multi-block Inspector and the
> Find Data screen if they exist (no action or programming required for
> this).  So, for instance, instead of Paraview generating the non-useful
> name of “Unnamed block ID: 13 Type: hex” when the blockname is empty, it
> will automagically use the more useful Blockname of “Tread”  if that is in
> the Exodus file.
>
>
>
> However, there has been an unintended consequence of this change.   If I
> select some elements and examine them in Spreadsheet View, I see Block
> Number 14( the +1 offset from Block_ID and Block Number is NOT the
> problem!).   And now I can no longer associate the element (Block Number
> 14) with it’s block in the Properties Panel or the Multi-block Inspector or
> the Find Data panel – where the same block is called “Tread”.
>
>
>
> So, to remedy this situation I would like to add an element variable of
> BlockName, which would contain “Tread” for all the elements in BlockID 13,
> etc., etc. for all the blocks.
>
>
>
> My only problem is I can’t seem to find the list of Block Names.   I’m
> pretty weak at vtk, so it must be available but I surrender – I can’t seem
> to find it.   If someone can help me find the list of Block Names from
> inside the Programmable Filter, I’ll be happy to add the element variable
> myself.
>
>
>
> Thanks for any help, again!
>
>
>
> Dennis
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Exodus Block Names

2015-08-28 Thread Shawn Waldon
Hi Dennis,

The block name is in the block metadata, which is not where I looked the
first time either.  Here is a code snippet that shows how to access it.

mb = vtk.vtkMultiBlockDataSet()
...
for i in range(mb.GetNumberOfBlocks):
  metadata = mb.GetMetaData(i)
  name = metadata.Get(vtk.vtkCompositeDataSet.NAME())

HTH,
Shawn

On Fri, Aug 28, 2015 at 4:13 PM, Dennis Conklin dennis_conk...@goodyear.com
 wrote:

 All,



 Once again, I need help.  We are starting to assign names to our Exodus
 blocks (outside of Paraview).   This is very useful for ease and clarity of
 post processing and allows convenient reference to actual components.   The
 good news is that Paraview seems perfectly happy to read in the Block Names
 and use them in the Properties Panel and the Multi-block Inspector and the
 Find Data screen if they exist (no action or programming required for
 this).  So, for instance, instead of Paraview generating the non-useful
 name of “Unnamed block ID: 13 Type: hex” when the blockname is empty, it
 will automagically use the more useful Blockname of “Tread”  if that is in
 the Exodus file.



 However, there has been an unintended consequence of this change.   If I
 select some elements and examine them in Spreadsheet View, I see Block
 Number 14( the +1 offset from Block_ID and Block Number is NOT the
 problem!).   And now I can no longer associate the element (Block Number
 14) with it’s block in the Properties Panel or the Multi-block Inspector or
 the Find Data panel – where the same block is called “Tread”.



 So, to remedy this situation I would like to add an element variable of
 BlockName, which would contain “Tread” for all the elements in BlockID 13,
 etc., etc. for all the blocks.



 My only problem is I can’t seem to find the list of Block Names.   I’m
 pretty weak at vtk, so it must be available but I surrender – I can’t seem
 to find it.   If someone can help me find the list of Block Names from
 inside the Programmable Filter, I’ll be happy to add the element variable
 myself.



 Thanks for any help, again!



 Dennis

 ___
 Powered by www.kitware.com

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

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

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview


___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Integrate globe view into custom application

2015-08-17 Thread Shawn Waldon
Hi Tobias,

I'll let others answer your first few questions since they have more
experience there.  But I can answer your question about updating based on
camera position.

On Mon, Aug 17, 2015 at 11:58 AM, Tobias Beeh tobias.b...@t-online.de
wrote:

 Hello,


 our team (11 students from the university of Stuttgart) is trying to
 build a geovisualization environment on top of paraview.
 Right now we're planning the architecture, which is quite difficult as
 no one of us has any previous experience with paraview.

 We discovered the class vtkGeoView and wondered if we could integrate
 this view into the paraview UI.
 If possible we would like to combine this view with other data loaded
 into the paraview pipeline.
 Otherwise we would need to re-write the whole vtkGeoView with LoD and
 dynamic loading because the whole globe hi-res texture is probably too
 big to load it into the RAM at once - even if not some other large data
 sets need to fit in there as well.
 We would like to avoid this of course.


 Another approach we discussed was to tile the globe for different zoom
 levels and load only those currently displayed, but we could not find an
 automated way to reload geometry based on the camera position.


To do this you'll want to use the mutliresolution streaming support.  There
are some details here:
http://www.paraview.org/ParaView/index.php/Multi-Resolution_Rendering_with_Overlapping_AMR
The best example code is probably in the Streaming Particles plugin.  This
can be found in the ParaView source tree under Plugins/StreamingParticles.
There should be an example data source that produces streamable data as
well as the ParaView representation to support streaming.  You'll probably
have to customize your own versions of both since these were designed to
work with sets of points rather than geometry.

HTH,
--Shawn



 Pointers to useful development resources (other than the official
 paraview guide, documentation, wiki and examples) are appreciated as well.
 Thank you for your time,

 Tobias Beeh

 ___
 Powered by www.kitware.com

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

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

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview

___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] how to build 4.3.1 with CosmoTools

2015-07-28 Thread Shawn Waldon
CosmoTools is part of a closed-source project at ANL.  The
COSMOTOOLS_INCLUDE_DIR is incorrect and you need to provide the
COSMOTOOLS_LIBRARIES variable with the external library to link against.
The small part of it that the ParaView module depends on was added to
ParaView so that we wouldn't have the closed-source dependency.
Unfortunately, that change didn't make it into 4.3.1, but if you build
against ParaView's master branch, you will no longer need the closed source
cosmotools package and will still have most of the features in the
CosmoTools module.

HTH,
Shawn

On Tue, Jul 28, 2015 at 4:55 PM, Kashiwa, Bucky b...@lanl.gov wrote:

 I¹m trying to build the ParaView-v4.3.1-source standard release, with
 cosmotools enabled.  The directory is present at

 ParaView-v4.3.1/ParaViewCore/VTKExtensions/CosmoTools

 and useful looking source code, but it seems to be unrecognized.  Below is
 pasted my ccmake command, and after that is the ccmake error message.  Any
 help would be very welcome.  Thanks much, b.


 ccmake2.8 \
 -D BUILD_SHARED_LIBS:BOOL=ON \
 -D BUILD_TESTING:BOOL=OFF \
 -D CMAKE_BUILD_TYPE:STRING=Release \
 -D
 CMAKE_C_COMPILER:FILEPATH=/usr/projects/hpcsoft/toss2/common/gcc/4.7.2/bin/
 gcc \
 -D
 CMAKE_CXX_COMPILER:FILEPATH=/usr/projects/hpcsoft/toss2/common/gcc/4.7.2/bi
 n/g++ \
 -D CMAKE_C_FLAGS:STRING=-fPIC \
 -D CMAKE_CXX_FLAGS:STRING=-fPIC \
 -D
 CMAKE_Fortran_COMPILER:FILEPATH=/usr/projects/hpcsoft/toss2/common/gcc/4.7.
 2/bin/gfortran \
 -D
 COSMOTOOLS_INCLUDE_DIR:PATH=../ParaView-v4.3.1-source/ParaViewCore/VTKExten
 sions/CosmoTools \
 -D FFMPEG_INCLUDE_DIR:PATH=/usr/projects/pv_dev/FFmpeg-1.2/include \
 -D
 FFMPEG_avcodec_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libavco
 dec.so \
 -D
 FFMPEG_avformat_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libavf
 ormat.so \
 -D
 FFMPEG_avutil_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libavuti
 l.so \
 -D
 FFMPEG_dc1394_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libavdev
 ice.so \
 -D
 FFMPEG_dts_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libavformat
 .so \
 -D
 FFMPEG_gsm_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libavcodec.
 so \
 -D
 FFMPEG_swscale_LIBRARY:FILEPATH=/usr/projects/pv_dev/FFmpeg-1.2/lib/libswsc
 ale.so \
 -D GENERIC_IO_INCLUDE_DIR:PATH=/usr/include/gio-unix-2.0 \
 -D GENERIC_IO_LIBRARIES:FILEPATH=/usr/lib64/libgio-2.0.so \
 -D
 OPENGL_gl_LIBRARY:FILEPATH=/usr/projects/pv_dev/OSMesa-9.0.1/lib/libGL.so \
 -D OPENGL_glu_LIBRARY:FILEPATH= \
 -D OPENGL_INCLUDE_DIR:PATH=/usr/projects/pv_dev/OSMesa-9.0.1/include \
 -D OSMESA_INCLUDE_DIR:PATH=/usr/projects/pv_dev/OSMesa-9.0.1/include \
 -D
 OSMESA_LIBRARY:FILEPATH=/usr/projects/pv_dev/OSMesa-9.0.1/lib/libOSMesa.so
 \
 -D PARAVIEW_BUILD_QT_GUI:BOOL=ON \
 -D PARAVIEW_BUILD_CATALYST_ADAPTORS:BOOL=ON \
 -D PARAVIEW_ENABLE_COPROCESSING:BOOL=ON \
 -D PARAVIEW_ENABLE_COSMOTOOLS:BOOL=ON \
 -D PARAVIEW_ENABLE_FFMPEG:BOOL=ON \
 -D PARAVIEW_ENABLE_PYTHON:BOOL=ON \
 -D PARAVIEW_USE_MPI:BOOL=ON \
 -D PYTHON_EXECUTABLE:FILEPATH=/usr/projects/pv_dev/Python-2.7.4/bin/python
 \
 -D
 PYTHON_INCLUDE_DIR:PATH=/usr/projects/pv_dev/Python-2.7.4/include/python2.7
  \
 -D
 PYTHON_LIBRARY:FILEPATH=/usr/projects/pv_dev/Python-2.7.4/lib/libpython2.7.
 so \
 -D QT_QMAKE_EXECUTABLE:FILEPATH=/usr/projects/pv_dev/Qt-4.8.4/bin/qmake \
 -D
 VTK_MPIRUN_EXE:FILEPATH=/usr/projects/hpcsoft/lightshow/openmpi/1.6.5-gcc-4
 .7/bin/mpiexec \
 -D VTK_OPENGL_HAS_OSMESA:BOOL=ON \
 -D VTK_USE_X:BOOL=ON \
 -D CMAKE_INSTALL_PREFIX:PATH=/usr/projects/pv_dev/PV-4.3.1-FX \
  ../ParaView-v4.3.1-source







  CMake Error at VTK/CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find CosmoTools (missing: COSMOTOOLS_LIBRARIES)
  Call Stack (most recent call first):
VTK/CMake/FindPackageHandleStandardArgs.cmake:288
 (_FPHSA_FAILURE_MESSAGE)
CMake/FindCosmoTools.cmake:21 (find_package_handle_standard_args)
ParaViewCore/VTKExtensions/CosmoTools/CMakeLists.txt:6 (find_package)









 ===73
 Bucky Kashiwa PhD, PE   Post: MS B216, Los Alamos, NM  87545   
   Ofc: TA3-SM123-RM276 Email: b...@lanl.gov, kash...@qwest.net  
 Voice: 505-667-8812  Fax: 505-665-5926  
   Home: 505-988-7332   Cell: 505-795-5581  
 ===73


 ___
 Powered by www.kitware.com

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

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

 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 

Re: [Paraview] vtkDoubleArray with 3 components

2015-07-22 Thread Shawn Waldon
Hi Bruce,

SetNumberOfTuples reallocates the internal datastructure of the data array
to be the new required size based on the new number of components and
number of tuples.  This (combined with trying to clean up the old data from
SetArray) may be causing the heap corruption you are seeing.  Try setting
the number of components and number of tuples before adding the data to the
array.

HTH,
Shawn

On Tue, Jul 21, 2015 at 1:37 PM, Bruce Jones bruce.david.jo...@gmail.com
wrote:

 Hi Cory,

 Sorry for the delayed response, I've hit another more serious bug which
 has been diverting my attention from this.

 Thanks for the state file, I haven't got it to work as I don't have numpy
 set up, but I have also got this working with 9 component arrays in
 paraview using a python script. However, I am now trying to port my python
 plugin to c++ which is where I am seeing the error.

 In my plugin I want to output a vtkarray for each vtkarray in the input
 dataset. The values in the output vtkarrays are interpolated from those in
 the input vtkarrays. Rather than working directly on vtkarray objects, I am
 allocating c++ arrays for each vtkarray, performing the interpolation, then
 creating vtkDoubleArrays and using SetArray to pass a pointer to my
 allocated c++ arrays to the output vtkarrays. The code for setting up the
 output vtkarrays is roughly as follows

 vtkPointData *pointData = input-GetPointData();
 vtkDataArray *dArray = pointData-GetArray(i);
 vtkDoubleArray *vtkDArrayAve = vtkDoubleArray::New();
 vtkDArrayAve-SetName(dArray-GetName());
 vtkDArrayAve-SetArray(dArraysAve[i],hgrid-GetTotalCells(),0);
 vtkDArrayAve-SetNumberOfComponents(numComponents[i]);
 vtkDArrayAve-SetNumberOfTuples(hgrid-GetTotalCells());
 output-GetPointData()-AddArray(vtkDArrayAve);

 dArraysAve is an array of pointers pointing to my c++ arrays
 hgrid-GetTotalCells() returns the number of data points for my output

 I also have another mode of operation for this plugin, where I perform the
 interpolation differently, in that function, if I make the call to
 SetNumberOfComponents() some heap corruption occurs and I get a segfault
 when I try to subsequently free my c++ arrays. Commenting out the call to
 SetNumberOfComponents avoids the segfault, but then I am limited to single
 component arrays. This is the more serious bug I mentioned, initially I
 figured they were unrelated, but I can't deny the number of components
 coincidence.

 Cheers,
 Bruce

 On Thu, 16 Jul 2015 at 14:41 Cory Quammen cory.quam...@kitware.com
 wrote:

 Hi Bruce,

 I have attached a ParaView state file with a Programmable Source that
 produces a vtkPolyData with 100 random points and a point data array with 9
 components. It seems to display the various component ranges just fine.

 Best,
 Cory

 On Thu, Jul 16, 2015 at 11:14 AM, Cory Quammen cory.quam...@kitware.com
 wrote:

 Hi Bruce,

 I haven't seen this, but ParaView may be interpreting this array as a
 tensor field. Do you have a smallish test data file that you can share that
 shows the problem?

 Thanks,
 Cory

 On Sat, Jul 11, 2015 at 11:14 AM, Bruce Jones 
 bruce.david.jo...@gmail.com wrote:

 I am creating vtkDoubleArrays based on averaging some input data to a
 reduced set of points. The input data includes various vtk arrays which
 have 1, 3 and 9 components.

 After averaging, I am writing the data to c++ arrays, and creating a
 new vtkDoubleArray using the SetArray() function to pass the c++ arrays.
 This works fine for 1 and 3 component arrays, however for the 9 component
 arrays paraview shows that every element is set to 0.

 If I hardcode it so that 9 component arrays become 3 component arrays
 (reading only the first 3 components from the input array), then I get the
 correct data for the first 3 components, though I obviously need the other
 6 components in the end.

 Has anyone encountered this before?

 Cheers,
 Bruce

 ___
 Powered by www.kitware.com

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

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

 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
 RD Engineer
 Kitware, Inc.




 --
 Cory Quammen
 RD Engineer
 Kitware, Inc.


 ___
 Powered by www.kitware.com

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

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

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview


___
Powered by 

Re: [Paraview] problem in installing Paraview from source in MacOS

2015-04-08 Thread Shawn Waldon
It looks like the error is happening when building the examples.  You might
be able to get around it by rerunning CMake and turning the examples off
unless you need the examples in your build.

cd /path/to/build/dir
cmake -DBUILD_EXAMPLES:BOOL=OFF .

HTH,
Shawn

On Wed, Apr 8, 2015 at 5:09 AM, Ufuk Utku Turuncoglu (BE) 
u.utku.turunco...@be.itu.edu.tr wrote:

 Hi,

 I had a problem in the installation of Paraview fro the source. The make
 command gives error (at the end of the message) related with QSQLITE
 driver. The code compiles without any problem until this step (63%) and i
 just wonder about the solution. I also found couple of threads related with
 this issue but i could not solve it. I also tried to install
 libqt4-sql-sqlite using macport but it did not help. By the way, i am using
 paraview version 4.3.1 along with Enthought Canopy (1.4.1) and MacOS
 10.10.2.

 Regards,

 --ufuk

 -
 This warning is for project developers.  Use -Wno-dev to suppress it.

 Generating done
 Build files have been written to: /Users/turuncu/Qsync/progs/
 paraview-4.3.1/Examples/All
  End CMake output ==
 Change Dir: /Users/turuncu/Qsync/progs/paraview-4.3.1/Examples/All

 Run Build Command:/usr/bin/make
 [  1%] Compiling Qt help project SMMyElevation.qhp
 QSqlDatabase: QSQLITE driver not loaded
 QSqlDatabase: available drivers:
 Cannot open data base file /Users/turuncu/Qsync/progs/
 paraview-4.3.1/Examples/All/Plugins/Filter/doc/SMMyElevation.qch!
 Building up file structure...
 make[5]: *** [Plugins/Filter/doc/SMMyElevation.qch] Error 255
 make[4]: *** [Plugins/Filter/CMakeFiles/SMMyElevation.dir/all] Error 2
 make[3]: *** [all] Error 2
 make[2]: *** [ParaViewExamples.done] Error 1
 make[1]: *** [CMakeFiles/ParaViewExamples.dir/all] Error 2
 make: *** [all] Error 2
 -
 ___
 Powered by www.kitware.com

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

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

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview

___
Powered by www.kitware.com

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

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] seg.fault when reading VRML files twice

2014-09-19 Thread Shawn Waldon
Hi Kazuyoshi,

The fix has been merged into the main branch of ParaView and should be
available in nightly builds as of today.

-Shawn

On Fri, Sep 5, 2014 at 9:37 AM, Shawn Waldon shawn.wal...@kitware.com
wrote:

 Hi Kazuyoshi,

 I've tracked down the segfault, which results from a bug in the VTK VRML
 importer class.  You will get the same thing if you delete a VRML Reader
 and re-create it.  It will affect any current build of ParaView.  Fixing it
 is going to require restructuring that class somewhat and will take a day
 or two.  For now, just try to avoid this particular use case if possible
 and I'll let you know as soon as it is fixed and merged into ParaView.

 -Shawn

 On Thu, Sep 4, 2014 at 6:27 PM, Kazuyoshi Furutaka 
 furutaka.kazuyo...@jaea.go.jp wrote:

 Updates:

   (v) also occurs w/ ParaView-4.2.0-RC1-Windows-32bit.exe as well
   as a 4.2.0-RC1 binary compiled on Fedora 20 (i386).

 Any suggestions?

 Thanks.
 Kazuyoshi

 From: Kazuyoshi Furutaka furutaka.kazuyo...@jaea.go.jp
 Subject: [Paraview] seg.fault when reading VRML files twice
 Date: Wed, 03 Sep 2014 11:50:11 +0900 (JST)

  Dear ParaView experts...
 
  As the subject says, I'm suffering from the segmentation faluts
  when reading VRML files.
 
  It occurs:
(i)  File-Open a VRML file, display the content,
 (File-Disconnect) then File-Open a VRML file and display it,
 
(ii) on linux (Fedora 20, binary package: paraview-4.1.0-1.fc20.i686)
 as well as on windows (Vista Business SP2, 4.1.0 32-bit,
 ParaView-4.1.0-Windows-32bit.exe, downloaded from
 http://www.paraview.org/download/
 
(iii) regardless of whether the second VRML file is the same as
 or different from the first one,
 
(iV) even with a simple VRML file as the attached one...
 
  It DOES NOT occur when loading/displaying multiple VRML files
  in the same session (w/o disconnecting)...
 
  How can I avoid/fix this?
 
  I'll attach a trimmed backtrace obtained on linux with gdb...
 
  Thanks in advance.
 
  Kazuyoshi
  --
  Kazuyoshi Furutaka
  furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
 --
 Kazuyoshi Furutaka
 furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects 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://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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] seg.fault when reading VRML files twice

2014-09-05 Thread Shawn Waldon
Hi Kazuyoshi,

I've tracked down the segfault, which results from a bug in the VTK VRML
importer class.  You will get the same thing if you delete a VRML Reader
and re-create it.  It will affect any current build of ParaView.  Fixing it
is going to require restructuring that class somewhat and will take a day
or two.  For now, just try to avoid this particular use case if possible
and I'll let you know as soon as it is fixed and merged into ParaView.

-Shawn

On Thu, Sep 4, 2014 at 6:27 PM, Kazuyoshi Furutaka 
furutaka.kazuyo...@jaea.go.jp wrote:

 Updates:

   (v) also occurs w/ ParaView-4.2.0-RC1-Windows-32bit.exe as well
   as a 4.2.0-RC1 binary compiled on Fedora 20 (i386).

 Any suggestions?

 Thanks.
 Kazuyoshi

 From: Kazuyoshi Furutaka furutaka.kazuyo...@jaea.go.jp
 Subject: [Paraview] seg.fault when reading VRML files twice
 Date: Wed, 03 Sep 2014 11:50:11 +0900 (JST)

  Dear ParaView experts...
 
  As the subject says, I'm suffering from the segmentation faluts
  when reading VRML files.
 
  It occurs:
(i)  File-Open a VRML file, display the content,
 (File-Disconnect) then File-Open a VRML file and display it,
 
(ii) on linux (Fedora 20, binary package: paraview-4.1.0-1.fc20.i686)
 as well as on windows (Vista Business SP2, 4.1.0 32-bit,
 ParaView-4.1.0-Windows-32bit.exe, downloaded from
 http://www.paraview.org/download/
 
(iii) regardless of whether the second VRML file is the same as
 or different from the first one,
 
(iV) even with a simple VRML file as the attached one...
 
  It DOES NOT occur when loading/displaying multiple VRML files
  in the same session (w/o disconnecting)...
 
  How can I avoid/fix this?
 
  I'll attach a trimmed backtrace obtained on linux with gdb...
 
  Thanks in advance.
 
  Kazuyoshi
  --
  Kazuyoshi Furutaka
  furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
 --
 Kazuyoshi Furutaka
 furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects 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://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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview