Re: [Paraview] Animating a function of a field

2017-01-04 Thread Cory Quammen
Aleksejs,

The following should work:

* add a Programmable Filter to the source that produces the
unstructured grid with f and g. Set the Script property to

data = self.GetOutput()
data.ShallowCopy(self.GetInput())

and the RequestInformation Script to

timeSteps = range(100)
outInfo = self.GetOutputInformation(0)

timeRange = [timeSteps[0], timeSteps[-1]]
outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_RANGE(), timeRange, 2)
outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS(),
timeSteps, len(timeSteps))

You can change timeSteps to whatever values you want the time variable
to take on.

* Add a Python Calculator to the Programmable Filter, and set the expression to

f * sin(t_value) + g * cos(t_value)

Optionally change the "Array Name" property to "h". You can then
visualize the h field however you wish.

Hope that helps,
Cory

On Tue, Jan 3, 2017 at 10:13 AM, Aleksejs Fomins
 wrote:
> Dear Paraview,
>
> I have a 3d unstructured mesh with two fields defined over it - f(x,y,z) and 
> g(x,y,z)
> I want to create a movie of a following function
>
> h(t) = f * sin(t) + g * cos(t)
>
> where t is time. How would you do it?
>
> Best regards,
> Aleksejs Fomins
>
> PhD Student in Nanophotonics, EPF Lausanne, Switzerland
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] upgrading reader module/plugin

2017-01-04 Thread Utkarsh Ayachit
Mark,

As you can expect, connecting Qt widgets to vtkSMProperty's on proxies
in a two-way-link is common in ParaView panels and hence ParaView
provides quite a few ways for doing that. For your use-case, where
you're connecting a QCheckBox to an IntVectorProperty on the proxy,
your pqPropertyWidget subclass can do something like the following:

Assuming your XML for the group is as follows:

QCheckBox *checkbox = ...
vtkSMProperty* smProperty = smgroup->GetProperty("InterpolateFields");
this->addPropertyLink(checkbox, "checked", SIGNAL(toggled(bool), smProperty);

That should do it.

Utkarsh

On Wed, Jan 4, 2017 at 9:48 AM, Mark Olesen  wrote:
> I'm currently upgrading a reader module from using a 
> pqAutoGeneratedObjectPanel to a using a property group widget (as per 
> http://www.paraview.org/Wiki/Plugin_HowTo#Adding_Customizations_for_Properties_Panel).
>
> I have my bunch of properties in a PropertyGroup and have a panel_widget 
> associated with them. Everything loads up, and using printf() I can verify 
> that the property values are all being updated.
> However, not only does it seems rather clunky, I cannot get the "Apply" 
> button on the property panel to notice when the property values have been 
> updated.
>
> Here's a basic sketch of what I have:
>
> // Get the property from the group (with down-cast):
> interpolateFields_ = group->GetProperty("interpolate");
>
> // Provide a checkbox as widget for it - two-column layout.
>   QCheckBox* b = new QCheckBox(prop->GetXMLLabel(), this);
>   form->addWidget(b, row, col, Qt::AlignLeft);
>
> // Connect to slot:
> connect(b, SIGNAL(toggled(bool)), this, SLOT(interpolateFields(bool)));
>
> // This is ugly, but seems to be needed???
> interpolateFields_->SetImmediateUpdate(true);
>
> // And the slot itself
> void interpolateFields(bool checked)
> {
> interpolateFields_->SetElement(0, checked);
> // this->setModified();
> //^^^ used to work with pqAutoGeneratedObjectPanel
> }
>
> I used to rely on the setModified() method from the 
> pqAutoGeneratedObjectPanel, but now can't seem to get from the SMproxy to the 
> pqProxy or whatever.
>
> Or am I going about this entirely the wrong way?
> FWIW, here are the relevant sub-entries from the XML, in case there is 
> something missing there:
>
>name="InterpolateFields"
>   command="SetInterpolateVolFields"
>   number_of_elements="1"
>   default_values="1"
>   animateable="0">
>   
>   
> 
>
>label="General Controls"
> panel_widget="my_reader_controls">
> 
> ...
>   
>
> Unfortunately, the  Examples/Plugins/PropertyWidgets is a bit scanty here.
>
> Thanks for any advice,
>
> /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


[Paraview] upgrading reader module/plugin

2017-01-04 Thread Mark Olesen
I'm currently upgrading a reader module from using a pqAutoGeneratedObjectPanel 
to a using a property group widget (as per 
http://www.paraview.org/Wiki/Plugin_HowTo#Adding_Customizations_for_Properties_Panel).

I have my bunch of properties in a PropertyGroup and have a panel_widget 
associated with them. Everything loads up, and using printf() I can verify that 
the property values are all being updated.
However, not only does it seems rather clunky, I cannot get the "Apply" button 
on the property panel to notice when the property values have been updated.

Here's a basic sketch of what I have:

// Get the property from the group (with down-cast):
interpolateFields_ = group->GetProperty("interpolate");

// Provide a checkbox as widget for it - two-column layout.
  QCheckBox* b = new QCheckBox(prop->GetXMLLabel(), this);
  form->addWidget(b, row, col, Qt::AlignLeft);

// Connect to slot:
connect(b, SIGNAL(toggled(bool)), this, SLOT(interpolateFields(bool)));

// This is ugly, but seems to be needed???
interpolateFields_->SetImmediateUpdate(true);

// And the slot itself
void interpolateFields(bool checked)
{
interpolateFields_->SetElement(0, checked);
// this->setModified();
//^^^ used to work with pqAutoGeneratedObjectPanel
}

I used to rely on the setModified() method from the pqAutoGeneratedObjectPanel, 
but now can't seem to get from the SMproxy to the pqProxy or whatever.

Or am I going about this entirely the wrong way?
FWIW, here are the relevant sub-entries from the XML, in case there is 
something missing there:


  
  


  

...
  

Unfortunately, the  Examples/Plugins/PropertyWidgets is a bit scanty here.

Thanks for any advice,

/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


Re: [Paraview] [EXTERNAL] Re: Newer object always in front in Render View

2017-01-04 Thread Utkarsh Ayachit
This indeed sounds like Qt 5  + OpenGL2 rendering backend issue. I am
actively working on a fix for that here:

https://gitlab.kitware.com/paraview/paraview/merge_requests/1262
https://gitlab.kitware.com/vtk/vtk/merge_requests/2300

Qt5 support in ParaView is not official yet. We hope it have it sorted
about before the next release.

Utkarsh


On Wed, Jan 4, 2017 at 12:53 PM, Ken Martin  wrote:
> Possibly unrelated, but we did see this odd behavior on some systems with a
> paraview built against Qt5. It seems it lacked a depth buffer in that case.
>
> On Wed, Jan 4, 2017 at 12:51 PM, Robert Sawko  wrote:
>>
>>
>> On this computer I have two PV installed. One from AUR and one compiled
>> from
>> OpenFOAM third party directory. The OpenFOAM works fine. It does say
>> "Legacy
>> Rendering Backend" in the title bar which may or may not be significant.
>> The
>> computer is running NVidia drivers and the card is Quadro. But I am
>> reproducing
>> this problem on another Arch machine with some Intel integrated graphics
>> card.
>>
>> I'll try now Alan's suggestion and download it from Kitware directly.
>>
>> Robert
>> --
>> The finger of icy death
>> https://www.youtube.com/watch?v=WyWn1XJ9kTE
>> http://en.wikipedia.org/wiki/Brinicle
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
> --
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee.  Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message.  Thank you.
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

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

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

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

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


[Paraview] Reconfiguring external project

2017-01-04 Thread Fabian Wein
Hello,

I successfully build my external project via 
cmake ../paraview-superbuild … —DENABLE_paraviewpluginsexternal:BOOL=ON  …
my CMakeLists.txt of my external project ist still work in progress.

How can I make the cmake ../paraview-superbuild to execute by plugin’s 
CMakeLists.txt again?

Removing ./superbuild/paraviewpluginsexternal-prefix

does not help and I found no other stamp file source.

Thanks,

Fabian

___
Powered by www.kitware.com

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

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

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] Custom Glyph

2017-01-04 Thread Bob Flandard
Excellent! Thanks Dave.

Bob

On 4 January 2017 at 20:36, David Lonie  wrote:

> On Wed, Jan 4, 2017 at 2:55 PM, Bob Flandard  wrote:
>
>> Hi Dave,
>>
>> The multi-colored glyph mechanism using using multi-block data is already
>> supported (see attached), but as I mentioned in my original message,
>> there's an error with it if the input point data to the custom glyph has
>> associated results data.
>>
>
> Ah, gotcha -- yes, that will work. I was thinking of the case where not
> only would the colors of the components differ, but the colors would also
> vary from point to point. That was recently requested but no feasible with
> the current glyphing code.
>
> Cheers,
> Dave
>
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] Custom source glyph error

2017-01-04 Thread David Lonie
I dug into the error a bit and at a glance, it seems like it might be an
issue with the vtkCompositeDataPipeline (pinging Berk for this since he
knows more about composite pipelines).

The stack for the error is:

1   vtkDataObjectTree::SetDataSetFrom vtkDataObjectTree.cxx:305
2   vtkDataObjectTree::SetDataSet vtkDataObjectTree.cxx:242
3   vtkCompositeDataPipeline::ExecuteEach vtkCompositeDataPipeline.cxx:310
4   vtkCompositeDataPipeline::ExecuteSimpleAlgorithm
vtkCompositeDataPipeline.cxx:398
5   vtkCompositeDataPipeline::ExecuteData vtkCompositeDataPipeline.cxx:167
...

Since the glyph filter is not equipped to handle composite glyphs, the
pipeline iterates through all of the datasets in the composite glyph source
and executes the filter for each of them, combining the outputs into
another composite dataset. But for some reason, the output composite
dataset doesn't seem to match the input composite dataset's structure.

The odd thing I see is that ExecuteSimpleAlgorithm does call CopyStructure
before iterating through the glyphs at vtkCompositeDataPipeline:369. Not
sure why things are mismatched when the output is updated.

On Wed, Jan 4, 2017 at 12:46 PM, Bob Flandard  wrote:

> Hi Dave,
>
> In the state file, the glyph source is already polyData - created using
> the sphere source (sensibly the gui doesn't allow selection of a non
> polyData glyph source).
>
> The composite dataset feature will be very useful for multi colored glyphs.
>
> Thanks, Bob
>
> On 4 January 2017 at 17:25, David Lonie  wrote:
>
>> I believe the issue here is that the glyph source must be polydata at the
>> moment. Does a dataset surface filter (or similar) help?
>>
>> I mentioned on the other thread that I'm working on improving the glyph
>> representation so you won't need to use the filter to get custom glyphs.
>> This patch will also add the ability to use a composite dataset (with
>> polydata leaves) as the glyph source.
>>
>> Cheers,
>> Dave
>>
>> On Wed, Jan 4, 2017 at 8:02 AM, Bob Flandard  wrote:
>>
>>> Hi,
>>>
>>> I'm getting an error message (see end) using the "glyph with custom
>>> source filter" for the case where the input points have associated results
>>> data sets and the custom glyph source is of multiblock type.
>>>
>>> I've attached two small sample state files that demonstrate the issue.
>>>
>>> The custom glyph should be two hemispheres, one black and one white. One
>>> state file shows the desired result, but the point source data has no
>>> results data sets associated with it. The other state file has point
>>> sources with two associated results data sets (mode1 and mode2) contained
>>> in the attached Ensight *.case files. This second file gives the error
>>> message below when loading.
>>>
>>> Is this a bug or is there a filter that implements "CopyStructure", that
>>> I should use?
>>>
>>> Thanks for any suggestions,
>>>
>>> Bob
>>>
>>>
>>> The error message is:
>>>
>>> ERROR: In 
>>> C:\bbd\df0abce0\source-paraview\VTK\Common\DataModel\vtkDataObjectTree.cxx,
>>> line 306
>>> vtkMultiBlockDataSet (17C45180): Structure does not match. You
>>> must use CopyStructure before calling this method.
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> 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] Custom Glyph

2017-01-04 Thread Cory Quammen
This might be obvious, but I'll chime in anyway. You could glyph the
data twice, one with the part of the glyph that should be white and
one with the part of the glyph that should be black. Then, just color
the two glyphed geometries white and black as needed.

- Cory

On Wed, Jan 4, 2017 at 2:15 PM, David Lonie  wrote:
> cc'ing this reply to the list.
>
> On Wed, Jan 4, 2017 at 12:36 PM, Bob Flandard  wrote:
>>
>> Hi Dave,
>>
>> That sounds like an exciting feature. Will it be able to use a multiblock
>> source from the pipeline?
>
>
> Yes -- there will be a drop-down menu on the property panel that lets you
> select arbitrary inputs from the pipeline browser the produce the supported
> data types.
>
>>
>> That would be useful because then a single glyph can easily be made to
>> have regions of different colors - easily edited using the excellent
>> multiblock inspector - without the need for something hacky, like multiple
>> glyph filters (one for each color part).
>
>
> Unfortunately, it looks like there will still be some hoop-jumping needed
> for multicolored glyphs. The glyph mapping engine doesn't support
> multicolored glyphs at the moment, since it doesn't fit well with the
> current coloring logic in vtk/paraview's glyphing.
>
> Cheers,
> Dave
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] Custom Glyph

2017-01-04 Thread David Lonie
cc'ing this reply to the list.

On Wed, Jan 4, 2017 at 12:36 PM, Bob Flandard  wrote:

> Hi Dave,
>
> That sounds like an exciting feature. Will it be able to use a multiblock
> source from the pipeline?
>

Yes -- there will be a drop-down menu on the property panel that lets you
select arbitrary inputs from the pipeline browser the produce the supported
data types.


> That would be useful because then a single glyph can easily be made to
> have regions of different colors - easily edited using the excellent
> multiblock inspector - without the need for something hacky, like multiple
> glyph filters (one for each color part).
>

Unfortunately, it looks like there will still be some hoop-jumping needed
for multicolored glyphs. The glyph mapping engine doesn't support
multicolored glyphs at the moment, since it doesn't fit well with the
current coloring logic in vtk/paraview's glyphing.

Cheers,
Dave
___
Powered by www.kitware.com

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

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

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

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


[Paraview] Opening VTK data exported with CompositeDataWriter

2017-01-04 Thread Patricio Palma C.
Dear all

I am exporting  vtkUnstructuredGrid and vtkPolyData wrapping them into a
vtkMultiblockDataSet and then written using vtkCompositeDataWriter to
create a data file in legacy format.
Trying to open this file in Paraview 5.2 64bit cause the application to
display the "Select Reader" dialog.

Should I use a different extension (.vtk/.vtmb) so Paraview can load and
display the data?

Regards

-- 
--
Patricio Palma Contreras
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-04 Thread Sebastien Jourdain
Still in the same protocol.py file around line 141:

def getAbsolutePath(self, relativePath):
absolutePath = None

if self.multiRoot == True:
relPathParts = relativePath.replace('\\', '/').split('/')
realBasePath = self.baseDirectoryMap[relPathParts[0]]
absolutePath = os.path.join(realBasePath, *relPathParts[1:])
else:
print 'baseDirectory', self.baseDirectory
 # ADD DEBUG OUTPUT
absolutePath = os.path.join(self.baseDirectory, relativePath)
print 'absolutePath', absolutePath
# ADD DEBUG OUTPUT

cleanedPath = os.path.normpath(absolutePath)
print 'cleanedPath', cleanedPath
   # ADD DEBUG OUTPUT

# Make sure the cleanedPath is part of the allowed ones
if self.multiRoot:
for key, value in self.baseDirectoryMap.iteritems():
if cleanedPath.startswith(value):
return cleanedPath
elif cleanedPath.startswith(self.baseDirectory):
return cleanedPath

print 'cleanedPath does not start with baseDirectory', cleanedPath,
self.baseDirectory # ADD DEBUG OUTPUT

return None


But looking at the code, I can see why it may not work on windows

Next you can try to replace

elif cleanedPath.startswith(self.baseDirectory):

by

elif cleanedPath.startswith(os.path.normpath(self.baseDirectory)):

On Wed, Jan 4, 2017 at 10:40 AM, Debopam Ghoshal  wrote:

> Hi Seb,
>
> We did print them, and found:
>
> relativePath: can.ex2
> self.getAbsolutePath(relativePath): []
>
> I do not have access to the machine right now. But will try out anything
> else you might need shortly. So just let me known what else we need to
> debug.
>
>
> On Wed, Jan 4, 2017 at 22:52 Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Do you mind printing relativePath so we can understand what you are
>> getting...
>>
>> Then, you most likely will have to debug self.getAbsolutePath(relativeP
>> ath) call...
>>
>> On Wed, Jan 4, 2017 at 9:55 AM, Debopam Ghoshal 
>> wrote:
>>
>> Hi Seb,
>>
>> We made the changes in the protocols.py file (highlighted)
>>
>> @exportRpc("pv.proxy.manager.create.reader")
>> def open(self, relativePath):
>> """
>> Open relative file paths, attempting to use the file extension to
>> select
>> from the configured readers.
>> """
>> fileToLoad = []
>> if type(relativePath) == list:
>> for file in relativePath:
>> validPath = self.getAbsolutePath(file)
>> if validPath:
>> fileToLoad.append(validPath)
>> else:
>> validPath = self.getAbsolutePath(relativePath)
>> if validPath:
>> fileToLoad.append(validPath)
>> if len(fileToLoad) == 0:
>> print "=" * 80
>> print "file not found"
>> print "fileToLoad: ", fileToLoad
>> print "=" * 80
>> return {
>> 'success': False,
>> 'reason': 'No valid path name' }
>>
>>
>>
>> The output in the console is a follows:
>>
>> C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit>.\bin\pvpython.exe
>> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
>> share\\paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py"
>> --content "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
>> share\\paraview-5.2\\web\\visualizer\\www" --data
>> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data" --port 8080
>> 2017-01-04 11:06:38+0530 [-] Log opened.
>> 2017-01-04 11:06:39+0530 [-] Site starting on 8080
>> 2017-01-04 11:06:39+0530 [-] Starting factory > instance at 0x022A9C7BAF48>
>> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
>> 04/Jan/2017:05:36:43 +] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0
>> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/55.0.2883.87 Safari/537.36"
>> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
>> 04/Jan/2017:05:36:43 +] "POST /paraview/ HTTP/1.1" 404 145 "
>> http://localhost:8080/; "Mozilla/5.0 (Windows NT 10.0; Win64; x64)
>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Client has
>> reconnected, cancelling reaper
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] on_connect: connection
>> count = 1
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
>> BeginValueCapture has no GetData() method, skipping
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
>> CaptureValuesFloat has no GetData() method, skipping
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
>> CaptureZBuffer has no GetData() method, skipping
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
>> EndValueCapture has no GetData() method, skipping
>> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
>> 

Re: [Paraview] [EXTERNAL] Re: Newer object always in front in Render View

2017-01-04 Thread Ken Martin
Possibly unrelated, but we did see this odd behavior on some systems with a
paraview built against Qt5. It seems it lacked a depth buffer in that case.

On Wed, Jan 4, 2017 at 12:51 PM, Robert Sawko  wrote:

>
> On this computer I have two PV installed. One from AUR and one compiled
> from
> OpenFOAM third party directory. The OpenFOAM works fine. It does say
> "Legacy
> Rendering Backend" in the title bar which may or may not be significant.
> The
> computer is running NVidia drivers and the card is Quadro. But I am
> reproducing
> this problem on another Arch machine with some Intel integrated graphics
> card.
>
> I'll try now Alan's suggestion and download it from Kitware directly.
>
> Robert
> --
> The finger of icy death
> https://www.youtube.com/watch?v=WyWn1XJ9kTE
> http://en.wikipedia.org/wiki/Brinicle
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] [EXTERNAL] Re: Newer object always in front in Render View

2017-01-04 Thread Robert Sawko

On this computer I have two PV installed. One from AUR and one compiled from
OpenFOAM third party directory. The OpenFOAM works fine. It does say "Legacy
Rendering Backend" in the title bar which may or may not be significant. The
computer is running NVidia drivers and the card is Quadro. But I am reproducing
this problem on another Arch machine with some Intel integrated graphics card.

I'll try now Alan's suggestion and download it from Kitware directly.

Robert
-- 
The finger of icy death
https://www.youtube.com/watch?v=WyWn1XJ9kTE
http://en.wikipedia.org/wiki/Brinicle
___
Powered by www.kitware.com

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

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

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] Custom source glyph error

2017-01-04 Thread Bob Flandard
Hi Dave,

In the state file, the glyph source is already polyData - created using the
sphere source (sensibly the gui doesn't allow selection of a non polyData
glyph source).

The composite dataset feature will be very useful for multi colored glyphs.

Thanks, Bob

On 4 January 2017 at 17:25, David Lonie  wrote:

> I believe the issue here is that the glyph source must be polydata at the
> moment. Does a dataset surface filter (or similar) help?
>
> I mentioned on the other thread that I'm working on improving the glyph
> representation so you won't need to use the filter to get custom glyphs.
> This patch will also add the ability to use a composite dataset (with
> polydata leaves) as the glyph source.
>
> Cheers,
> Dave
>
> On Wed, Jan 4, 2017 at 8:02 AM, Bob Flandard  wrote:
>
>> Hi,
>>
>> I'm getting an error message (see end) using the "glyph with custom
>> source filter" for the case where the input points have associated results
>> data sets and the custom glyph source is of multiblock type.
>>
>> I've attached two small sample state files that demonstrate the issue.
>>
>> The custom glyph should be two hemispheres, one black and one white. One
>> state file shows the desired result, but the point source data has no
>> results data sets associated with it. The other state file has point
>> sources with two associated results data sets (mode1 and mode2) contained
>> in the attached Ensight *.case files. This second file gives the error
>> message below when loading.
>>
>> Is this a bug or is there a filter that implements "CopyStructure", that
>> I should use?
>>
>> Thanks for any suggestions,
>>
>> Bob
>>
>>
>> The error message is:
>>
>> ERROR: In 
>> C:\bbd\df0abce0\source-paraview\VTK\Common\DataModel\vtkDataObjectTree.cxx,
>> line 306
>> vtkMultiBlockDataSet (17C45180): Structure does not match. You
>> must use CopyStructure before calling this method.
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-04 Thread Debopam Ghoshal
Hi Seb,

We did print them, and found:

relativePath: can.ex2
self.getAbsolutePath(relativePath): []

I do not have access to the machine right now. But will try out anything
else you might need shortly. So just let me known what else we need to
debug.


On Wed, Jan 4, 2017 at 22:52 Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> Do you mind printing relativePath so we can understand what you are
> getting...
>
> Then, you most likely will have to debug self.getAbsolutePath(relativeP
> ath) call...
>
> On Wed, Jan 4, 2017 at 9:55 AM, Debopam Ghoshal 
> wrote:
>
> Hi Seb,
>
> We made the changes in the protocols.py file (highlighted)
>
> @exportRpc("pv.proxy.manager.create.reader")
> def open(self, relativePath):
> """
> Open relative file paths, attempting to use the file extension to
> select
> from the configured readers.
> """
> fileToLoad = []
> if type(relativePath) == list:
> for file in relativePath:
> validPath = self.getAbsolutePath(file)
> if validPath:
> fileToLoad.append(validPath)
> else:
> validPath = self.getAbsolutePath(relativePath)
> if validPath:
> fileToLoad.append(validPath)
> if len(fileToLoad) == 0:
> print "=" * 80
> print "file not found"
> print "fileToLoad: ", fileToLoad
> print "=" * 80
> return {
> 'success': False,
> 'reason': 'No valid path name' }
>
>
>
> The output in the console is a follows:
>
> C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit>.\bin\pvpython.exe
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\share\\paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py"
> --content
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\share\\paraview-5.2\\web\\visualizer\\www"
> --data "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data" --port 8080
> 2017-01-04 11:06:38+0530 [-] Log opened.
> 2017-01-04 11:06:39+0530 [-] Site starting on 8080
> 2017-01-04 11:06:39+0530 [-] Starting factory  instance at 0x022A9C7BAF48>
> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
> 04/Jan/2017:05:36:43 +] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0
> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/55.0.2883.87 Safari/537.36"
> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
> 04/Jan/2017:05:36:43 +] "POST /paraview/ HTTP/1.1" 404 145 "
> http://localhost:8080/; "Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Client has reconnected,
> cancelling reaper
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] on_connect: connection
> count = 1
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> BeginValueCapture has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> CaptureValuesFloat has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property CaptureZBuffer
> has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> EndValueCapture has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> StartCaptureLuminance has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> StopCaptureLuminance has no GetData() method, skipping
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
> *
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] file not found*
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] fileToLoad:  []*
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
> *
> 2017-01-04 11:06:56+0530 [-] Received SIGINT, shutting down.
>
>
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
>
>
> On Tue, Jan 3, 2017 at 9:05 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
> Ok that mean there is still a path issue when loading a file within
> ParaViewWeb on Windows.
>
> Did you look at the log of that given session to see if any error is
> printed?
>
> You can try to edit the file [lib/site-packages]/paraview/web/protocols.py
> within the ParaView application (The [...] part is for the path section
> that I'm not sure of).
>
> In the function
>
> @exportRpc("pv.proxy.manager.create.reader")
> def open(self, relativePath):
> """
> Open relative file paths, attempting to use the file extension to
> select
> from the configured readers.
> """
> fileToLoad = []
> if type(relativePath) == list:
> for file in relativePath:
> validPath = 

Re: [Paraview] [EXTERNAL] Re: Newer object always in front in Render View

2017-01-04 Thread Scott, W Alan
Can you replicate this bug with one of the downloads from Kitware (i.e., 
paraview.org)?  The Kitware binaries work correctly for me...  Then, we will 
have a better idea if it’s the OS/graphics/hardware or ParaView...

Alan

From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of David Lonie
Sent: Wednesday, January 4, 2017 10:34 AM
To: Robert Sawko 
Cc: paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] Newer object always in front in Render View

The cmake config looks ok to me.

What sort of graphics set up are you using? Is this mesa, or on a GPU? It 
sounds like a driver bug or something may be causing the depth test to break, 
or maybe there's a misconfigured framebuffer. Does an earlier version of 
ParaView work on the same system?

Dave

On Wed, Jan 4, 2017 at 10:41 AM, Robert Sawko 
> wrote:
David,

Thanks for a quick reply. Tried with -dr and it's the same. I am attaching my
state file for spheres. It may help someone to reproduce.

I am running it on Arch Linux and paraview is taken from AUR. I am just
looking at the way the binary was generated and I see these options in
cmake

  cmake \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpicxx \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
-DOSPRAY_INSTALL_DIR:PATH=/usr \
-DPARAVIEW_ENABLE_CGNS:BOOL=OFF \
-DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
-DPARAVIEW_PYTHON_VERSION=2 \
-DPARAVIEW_QT_VERSION=5 \
-DPARAVIEW_USE_MPI:BOOL=ON \
-DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \
-DPARAVIEW_USE_OSPRAY:BOOL=ON \
-DVISIT_BUILD_READER_CGNS:BOOL=OFF \
-DVTK_PYTHON_VERSION=2 \
-DVTK_QT_VERSION=5 \
-DVTK_RENDERING_BACKEND:STRING=OpenGL2 \
-DVTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \
-DVTK_USE_SYSTEM_HDF5:BOOL=OFF \
${VTK_USE_SYSTEM_LIB} \
../ParaView-v${_pkgver}

Does any of this look suspicious?

Robert
--
Newton's bucket
http://en.wikipedia.org/wiki/Bucket_argument
___
Powered by www.kitware.com

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

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

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] Newer object always in front in Render View

2017-01-04 Thread David Lonie
The cmake config looks ok to me.

What sort of graphics set up are you using? Is this mesa, or on a GPU? It
sounds like a driver bug or something may be causing the depth test to
break, or maybe there's a misconfigured framebuffer. Does an earlier
version of ParaView work on the same system?

Dave

On Wed, Jan 4, 2017 at 10:41 AM, Robert Sawko  wrote:

> David,
>
> Thanks for a quick reply. Tried with -dr and it's the same. I am attaching
> my
> state file for spheres. It may help someone to reproduce.
>
> I am running it on Arch Linux and paraview is taken from AUR. I am just
> looking at the way the binary was generated and I see these options in
> cmake
>
>   cmake \
> -DBUILD_SHARED_LIBS:BOOL=ON \
> -DBUILD_TESTING:BOOL=OFF \
> -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_C_COMPILER=mpicc \
> -DCMAKE_CXX_COMPILER=mpicxx \
> -DCMAKE_INSTALL_PREFIX:PATH=/usr \
> -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
> -DOSPRAY_INSTALL_DIR:PATH=/usr \
> -DPARAVIEW_ENABLE_CGNS:BOOL=OFF \
> -DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \
> -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
> -DPARAVIEW_PYTHON_VERSION=2 \
> -DPARAVIEW_QT_VERSION=5 \
> -DPARAVIEW_USE_MPI:BOOL=ON \
> -DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \
> -DPARAVIEW_USE_OSPRAY:BOOL=ON \
> -DVISIT_BUILD_READER_CGNS:BOOL=OFF \
> -DVTK_PYTHON_VERSION=2 \
> -DVTK_QT_VERSION=5 \
> -DVTK_RENDERING_BACKEND:STRING=OpenGL2 \
> -DVTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \
> -DVTK_USE_SYSTEM_HDF5:BOOL=OFF \
> ${VTK_USE_SYSTEM_LIB} \
> ../ParaView-v${_pkgver}
>
> Does any of this look suspicious?
>
> Robert
> --
> Newton's bucket
> http://en.wikipedia.org/wiki/Bucket_argument
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> 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] Custom source glyph error

2017-01-04 Thread David Lonie
I believe the issue here is that the glyph source must be polydata at the
moment. Does a dataset surface filter (or similar) help?

I mentioned on the other thread that I'm working on improving the glyph
representation so you won't need to use the filter to get custom glyphs.
This patch will also add the ability to use a composite dataset (with
polydata leaves) as the glyph source.

Cheers,
Dave

On Wed, Jan 4, 2017 at 8:02 AM, Bob Flandard  wrote:

> Hi,
>
> I'm getting an error message (see end) using the "glyph with custom source
> filter" for the case where the input points have associated results data
> sets and the custom glyph source is of multiblock type.
>
> I've attached two small sample state files that demonstrate the issue.
>
> The custom glyph should be two hemispheres, one black and one white. One
> state file shows the desired result, but the point source data has no
> results data sets associated with it. The other state file has point
> sources with two associated results data sets (mode1 and mode2) contained
> in the attached Ensight *.case files. This second file gives the error
> message below when loading.
>
> Is this a bug or is there a filter that implements "CopyStructure", that I
> should use?
>
> Thanks for any suggestions,
>
> Bob
>
>
> The error message is:
>
> ERROR: In 
> C:\bbd\df0abce0\source-paraview\VTK\Common\DataModel\vtkDataObjectTree.cxx,
> line 306
> vtkMultiBlockDataSet (17C45180): Structure does not match. You
> must use CopyStructure before calling this method.
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

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

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


Re: [Paraview] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-04 Thread Sebastien Jourdain
Do you mind printing relativePath so we can understand what you are
getting...

Then, you most likely will have to debug self.getAbsolutePath(relativePath)
 call...

On Wed, Jan 4, 2017 at 9:55 AM, Debopam Ghoshal  wrote:

> Hi Seb,
>
> We made the changes in the protocols.py file (highlighted)
>
> @exportRpc("pv.proxy.manager.create.reader")
> def open(self, relativePath):
> """
> Open relative file paths, attempting to use the file extension to
> select
> from the configured readers.
> """
> fileToLoad = []
> if type(relativePath) == list:
> for file in relativePath:
> validPath = self.getAbsolutePath(file)
> if validPath:
> fileToLoad.append(validPath)
> else:
> validPath = self.getAbsolutePath(relativePath)
> if validPath:
> fileToLoad.append(validPath)
> if len(fileToLoad) == 0:
> print "=" * 80
> print "file not found"
> print "fileToLoad: ", fileToLoad
> print "=" * 80
> return {
> 'success': False,
> 'reason': 'No valid path name' }
>
>
>
> The output in the console is a follows:
>
> C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit>.\bin\pvpython.exe
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\share\\
> paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py" --content
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\share\\
> paraview-5.2\\web\\visualizer\\www" --data 
> "C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\data"
> --port 8080
> 2017-01-04 11:06:38+0530 [-] Log opened.
> 2017-01-04 11:06:39+0530 [-] Site starting on 8080
> 2017-01-04 11:06:39+0530 [-] Starting factory  instance at 0x022A9C7BAF48>
> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
> 04/Jan/2017:05:36:43 +] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0
> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/55.0.2883.87 Safari/537.36"
> 2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
> 04/Jan/2017:05:36:43 +] "POST /paraview/ HTTP/1.1" 404 145 "
> http://localhost:8080/; "Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Client has reconnected,
> cancelling reaper
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] on_connect: connection
> count = 1
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> BeginValueCapture has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> CaptureValuesFloat has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property CaptureZBuffer
> has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> EndValueCapture has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> StartCaptureLuminance has no GetData() method, skipping
> 2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
> StopCaptureLuminance has no GetData() method, skipping
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
> *
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] file not found*
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] fileToLoad:  []*
> *2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
> *
> 2017-01-04 11:06:56+0530 [-] Received SIGINT, shutting down.
>
>
>
> Cheers & Best Wishes,
> Debopam
> ---
> Cell: +91 98304 10041 <+91%2098304%2010041>
>
> On Tue, Jan 3, 2017 at 9:05 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Ok that mean there is still a path issue when loading a file within
>> ParaViewWeb on Windows.
>>
>> Did you look at the log of that given session to see if any error is
>> printed?
>>
>> You can try to edit the file [lib/site-packages]/paraview/web/protocols.py
>> within the ParaView application (The [...] part is for the path section
>> that I'm not sure of).
>>
>> In the function
>>
>> @exportRpc("pv.proxy.manager.create.reader")
>> def open(self, relativePath):
>> """
>> Open relative file paths, attempting to use the file extension to
>> select
>> from the configured readers.
>> """
>> fileToLoad = []
>> if type(relativePath) == list:
>> for file in relativePath:
>> validPath = self.getAbsolutePath(file)
>> if validPath:
>> fileToLoad.append(validPath)
>> else:
>> validPath = self.getAbsolutePath(relativePath)
>> if validPath:
>> fileToLoad.append(validPath)
>>
>> if len(fileToLoad) == 0:
>> return { 'success': False, 

Re: [Paraview] Custom Glyph

2017-01-04 Thread David Lonie
I'm currently working on adding the ability to use custom glyphs with
ParaView's glyph mapper. It will allow you to select a pipeline connection
for the glyph type (rather than the static list of arrow, sphere, etc).

Should be available in the next few weeks.

Dave

On Tue, Jan 3, 2017 at 4:41 AM, Bob Flandard  wrote:

> Thanks David,
>
> I did try that first and was unable to select the "Glyph Type" and gave
> up. Luckily your post encouraged me to RTM where it states that vtkPolyData
> should be used for the glyph. A quick extract surface filter fixed that, so
> thanks very much for your help.
>
> Bob
>
> On 2 January 2017 at 19:49, David E DeMarle 
> wrote:
>
>> Glyph with Custom source filter can do it. Note that it works in CPU/RAM
>> instead of in a GPU shader so memory can be an issue for all the replicated
>> geometry.
>>
>> To use it, manufacture a mesh that appears the way you want it and save
>> it in a common mesh format. Load that into the pipeline and hide it, select
>> the object you want to apply glyphs to and apply the Glyph with Custom
>> Source filter. Choose the shape you read in as the "Glyph Type" input.
>>
>>
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> R Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Mon, Jan 2, 2017 at 2:35 PM, Bob Flandard  wrote:
>>
>>> Hi,
>>>
>>> Any links or advice on how to create a custom glyph?
>>>
>>> I'd like a sphere divided into 8 equal sized/shaped patches and colored
>>> alternate black and white, to represent the centroid of a point mass. I
>>> have lots of these, so a glyph would be best.
>>>
>>> Thanks, Bob
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> 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] Error while launching Paraview (and Paraview Web) in Window 10

2017-01-04 Thread Debopam Ghoshal
Hi Seb,

We made the changes in the protocols.py file (highlighted)

@exportRpc("pv.proxy.manager.create.reader")
def open(self, relativePath):
"""
Open relative file paths, attempting to use the file extension to
select
from the configured readers.
"""
fileToLoad = []
if type(relativePath) == list:
for file in relativePath:
validPath = self.getAbsolutePath(file)
if validPath:
fileToLoad.append(validPath)
else:
validPath = self.getAbsolutePath(relativePath)
if validPath:
fileToLoad.append(validPath)
if len(fileToLoad) == 0:
print "=" * 80
print "file not found"
print "fileToLoad: ", fileToLoad
print "=" * 80
return {
'success': False,
'reason': 'No valid path name' }



The output in the console is a follows:

C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit>.\bin\pvpython.exe
"C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
share\\paraview-5.2\\web\\visualizer\\server\\pvw-visualizer.py" --content
"C:\\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\\
share\\paraview-5.2\\web\\visualizer\\www" --data "C:\\ParaView-5.2.0-Qt4-
OpenGL2-MPI-Windows-64bit\\data" --port 8080
2017-01-04 11:06:38+0530 [-] Log opened.
2017-01-04 11:06:39+0530 [-] Site starting on 8080
2017-01-04 11:06:39+0530 [-] Starting factory 
2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
04/Jan/2017:05:36:43 +] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0
(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/55.0.2883.87 Safari/537.36"
2017-01-04 11:06:43+0530 [HTTPChannel,0,127.0.0.1] "127.0.0.1" - - [
04/Jan/2017:05:36:43 +] "POST /paraview/ HTTP/1.1" 404 145 "
http://localhost:8080/; "Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Client has reconnected,
cancelling reaper
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] on_connect: connection
count = 1
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
BeginValueCapture has no GetData() method, skipping
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
CaptureValuesFloat has no GetData() method, skipping
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property CaptureZBuffer
has no GetData() method, skipping
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property EndValueCapture
has no GetData() method, skipping
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
StartCaptureLuminance has no GetData() method, skipping
2017-01-04 11:06:44+0530 [HTTPChannel,2,127.0.0.1] Property
StopCaptureLuminance has no GetData() method, skipping
*2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
*
*2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] file not found*
*2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1] fileToLoad:  []*
*2017-01-04 11:06:47+0530 [HTTPChannel,2,127.0.0.1]
*
2017-01-04 11:06:56+0530 [-] Received SIGINT, shutting down.



Cheers & Best Wishes,
Debopam
---
Cell: +91 98304 10041

On Tue, Jan 3, 2017 at 9:05 PM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> Ok that mean there is still a path issue when loading a file within
> ParaViewWeb on Windows.
>
> Did you look at the log of that given session to see if any error is
> printed?
>
> You can try to edit the file [lib/site-packages]/paraview/web/protocols.py
> within the ParaView application (The [...] part is for the path section
> that I'm not sure of).
>
> In the function
>
> @exportRpc("pv.proxy.manager.create.reader")
> def open(self, relativePath):
> """
> Open relative file paths, attempting to use the file extension to
> select
> from the configured readers.
> """
> fileToLoad = []
> if type(relativePath) == list:
> for file in relativePath:
> validPath = self.getAbsolutePath(file)
> if validPath:
> fileToLoad.append(validPath)
> else:
> validPath = self.getAbsolutePath(relativePath)
> if validPath:
> fileToLoad.append(validPath)
>
> if len(fileToLoad) == 0:
> return { 'success': False, 'reason': 'No valid path name' }
>
> print "=" * 80# <-- ADD THAT LINE TO SEE THE PATH YOU
> TRY TO LOAD
> print fileToLoad   # <-- ADD THAT LINE TO SEE THE PATH YOU TRY
> TO LOAD
> print "=" * 80   # <-- ADD THAT LINE TO SEE THE PATH YOU
> TRY TO LOAD
>
> [...]
>
> Then look at the log to see which path is used to load that file.
>
> Seb
>
> On Tue, Jan 3, 2017 at 6:36 AM, Debopam Ghoshal 
> wrote:
>
>> Hi 

Re: [Paraview] plugins with 5.2

2017-01-04 Thread Utkarsh Ayachit
Burlen,

Looking at the code, the problem is not with the plugin (or
add_paraview_plugin), which indeed add the dependency as appropriate,
the issue is in io/CMakeLists.txt [1]. When you use VTK_LIBRARIES,
you're linking against all VTK modules and its dependencies, which is
really an over kill. Instead, change to using COMPONENTS for the
find_package(VTK ..) or find_package(ParaView...) calls e.g. [2].

Utkarsh


[1] https://github.com/LBL-EESA/TECA/blob/master/io/CMakeLists.txt#L34-L42
[2] 
https://gitlab.kitware.com/sensei/sensei-pub/blob/master/sensei/CMakeLists.txt#L78-86

On Tue, Jan 3, 2017 at 5:38 PM, Burlen Loring  wrote:
> sure, although I hope this isn't asking too much, as the build has a few
> dependencies, I think for this only NetCDF is needed.
>
> here is the repo
> https://github.com/LBL-EESA/TECA
> plugin is in the ParaView dir.
>
>
> On 01/03/2017 01:35 PM, Utkarsh Ayachit wrote:
>>
>> Burlen,
>>
>> Happy new year to you too!
>>
>> Hmm, that's odd. Can you share the plugin code with me? Let's see if I
>> can reproduce the issue.
>>
>> Utkarsh
>>
>> On Tue, Jan 3, 2017 at 2:13 PM, Burlen Loring  wrote:
>>>
>>> Hi Utkarsh, Happy new year!
>>>
>>> I have a couple of questions about the new way.
>>>
>>> Shouldn't this be automatically added by ADD_PARAVIEW_PLUGIN macro like
>>> the
>>> rest of the PV related link dependencies?
>>> Should you really need to link Qt to all plugins?
>>>
>>> My plugin is a number of simple server side only classes, for ex a
>>> reader.
>>> It has no need of Qt. I'd rather not have Qt as a dependency of my
>>> project.
>>>
>>> Burlen
>>>
>>>
>>> On 12/22/2016 12:17 PM, Utkarsh Ayachit wrote:
>>>
>>> Burlen,
>>>
>>> See Qt dependencies changes documented here:
>>>
>>> http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/MajorAPIChanges.html
>>>
>>> include(ParaViewQt) # generally not needed, since auto-included
>>> pv_find_package_qt(qt_targets
>>>QT4_COMPONENTS QtGui
>>>QT5_COMPONENTS Widgets)
>>>
>>> pv_qt_wrap_cpp(moc_files ${headers})
>>> pv_qt_wrap_ui(ui_files ${uis})
>>>
>>> ...
>>> target_link_libraries(${target} LINK_PRIVATE ${qt_targets})
>>>
>>>
>>> Utkarsh
>>>
>>> On Wed, Dec 21, 2016 at 1:25 PM, Burlen Loring 
>>> wrote:

 After upgrading to 5.2 my plugin is not compiling. When I configure the
 plugin I see a few pages of the following:

 CMake Warning (dev) at io/CMakeLists.txt:54 (add_library):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target.  Run "cmake --help-policy CMP0028" for policy
 details.
Use the cmake_policy command to set the policy and suppress this
 warning.

Target "teca_io" links to target "Qt4::QtCore" but the target was not
found.  Perhaps a find_package() call is missing for an IMPORTED
 target,
 or
an ALIAS target is missing?
 This warning is for project developers.  Use -Wno-dev to suppress it.

 then linker errors

 [ 32%] Linking CXX shared library ../lib/libteca_io.so
 /bin/ld: cannot find -lQt4::QtCore
 /bin/ld: cannot find -lQt4::QtGui
 collect2: error: ld returned 1 exit status
 io/CMakeFiles/teca_io.dir/build.make:402: recipe for target
 'lib/libteca_io.so' failed
 make[2]: *** [lib/libteca_io.so] Error 1
 CMakeFiles/Makefile2:196: recipe for target
 'io/CMakeFiles/teca_io.dir/all' failed
 make[1]: *** [io/CMakeFiles/teca_io.dir/all] Error 2
 Makefile:127: recipe for target 'all' failed
 make: *** [all] Error 2

 It's not a library so I set  the policy to new,  and the cmake configure
 errors out. Any idea what's missing?


 ___
 Powered by www.kitware.com

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

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

 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: 

Re: [Paraview] Newer object always in front in Render View

2017-01-04 Thread Robert Sawko
David,

Thanks for a quick reply. Tried with -dr and it's the same. I am attaching my
state file for spheres. It may help someone to reproduce.

I am running it on Arch Linux and paraview is taken from AUR. I am just
looking at the way the binary was generated and I see these options in
cmake

  cmake \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpicxx \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
-DOSPRAY_INSTALL_DIR:PATH=/usr \
-DPARAVIEW_ENABLE_CGNS:BOOL=OFF \
-DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
-DPARAVIEW_PYTHON_VERSION=2 \
-DPARAVIEW_QT_VERSION=5 \
-DPARAVIEW_USE_MPI:BOOL=ON \
-DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \
-DPARAVIEW_USE_OSPRAY:BOOL=ON \
-DVISIT_BUILD_READER_CGNS:BOOL=OFF \
-DVTK_PYTHON_VERSION=2 \
-DVTK_QT_VERSION=5 \
-DVTK_RENDERING_BACKEND:STRING=OpenGL2 \
-DVTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \
-DVTK_USE_SYSTEM_HDF5:BOOL=OFF \
${VTK_USE_SYSTEM_LIB} \
../ParaView-v${_pkgver}

Does any of this look suspicious?

Robert
-- 
Newton's bucket
http://en.wikipedia.org/wiki/Bucket_argument
___
Powered by www.kitware.com

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

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

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] Newer object always in front in Render View

2017-01-04 Thread David E DeMarle
That's pretty crazy. You typically have to do some coding to get the
layering effect.

Try running with -dr to disable your preferences and settings. Also, please
share more information about your binary and OS as well as passing along a
state file to see if anyone can reproduce it.




David E DeMarle
Kitware, Inc.
R Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Wed, Jan 4, 2017 at 10:12 AM, Robert Sawko  wrote:

> Hi,
>
> I am playing with a 5.1 version of ParaView and I came across a bug or
> feature
> which makes me a little dizzy. Basically, it seems that objects that appear
> lower in the Pipeline Browser are always on top in Render View. That
> behaviour
> was definitely not a default in earlier versions.
>
> Is there a way to switch to a behaviour when objects culling based on the
> spatial position? Please let me know.
>
> I've taken a few pictures of radius 0.5 spheres displaced by 1 in the X
> direction. Funnily enough the perspective is calculated properly so even
> though
> the blue sphere appears behind it's actually bigger.
>
>
> Kind Regards,
> Robert
> --
> The Awkward Case of "His or Her" (MW-series)
> http://www.merriam-webster.com/video/the-awkward-case-of-his-or-her
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> 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] slicing a large VTK_POLYHEDRON

2017-01-04 Thread Pierre Van Hauwaert

Hi,

As requested I attached with that email a list of 8 segfaulting 
polyhedrons. It happens with a centre of (0,0,0) and an oZ normal.


Regards,

Pierre
On 01/04/2017 10:11 AM, Mathieu Westphal wrote:

Hi

It may be a different issue than the one i'm fixing. If you can share 
the segfaulting polyhedron, please do so i can take a look when i get 
back on this issue ( which my not be soon, feel free to find other 
solutions)


Regards,

Mathieu Westphal

On Tue, Jan 3, 2017 at 10:46 PM, Pierre Van Hauwaert 
> wrote:


Hi Mathieu and Thomas,

Thank you for the suggestions.

1) I tried the tetrahedralize filter on my data but I did not get
the results I was expecting. I have a polyhedron which is not
convex (https://postimg.org/image/9s3egl8rz/
) and the filter fill the
gap as you can see here (https://postimg.org/image/5u1nt6d2h/
) and it is not what I was
expecting. Indeed, the initial purpose of the slice was to
visualize the hole.

2) I tried this fix:
https://gitlab.kitware.com/vtk/vtk/merge_requests/2088

only modifying the 2 files (*Common/DataModel/vtkPolyhedron.cxx*


*Common/Core/vtkSetGet.h) *


And compile VTK alone. I used a python script (activating the
python VTK wrapping) to do the test with the vtkCutter function
but I ended having the same exact issue (segfault, no error
message) with only the polyhedron that have more than 1024 faces.
I am not sure I should get the same results if I manage to compile
paraview. When I will manage I will get back to you.

Thanks,

Pierre



On 03-01-17 16:51, Mathieu Westphal wrote:

Hi

Indeed, incorrect copy paste. thanks for pointing it out.

Mathieu Westphal

On Tue, Jan 3, 2017 at 4:46 PM, T.J. Corona
> wrote:

Hi Mathieu and Pierre,

Perhaps you meant to point to this “work in progress” branch?

https://gitlab.kitware.com/vtk/vtk/merge_requests/2088


Sincerely,
T.J.

Thomas J. Corona, Ph.D.
Kitware, Inc.
R Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4443 


On Jan 3, 2017, at 10:18 AM, Mathieu Westphal
> wrote:

Hello

for your information there is a bug in the slicing of
vtkPolyHedron that can cause a segfault.
It looks very much like your error. It has yet to be corrected.
https://gitlab.kitware.com/vtk/vtk/issues/16877


You can already test this "work in progress" branch to see
if this fixes your issue :
https://gitlab.kitware.com/vtk/vtk/merge_requests/2304


You could of course modify your data to tetrahedron with
tetrahedralize filter.

Regards,

Mathieu Westphal

On Tue, Jan 3, 2017 at 4:10 PM, Pierre Van Hauwaert
> wrote:

Hi,

I am using paraview to visualise my data. I generate my
data using a combination of the 2 following types
(http://www.vtk.org/doc/nightly/html/vtkCellType_8h_source.html)
VTK_VOXEL

=
11
VTK_POLYHEDRON = 42 I can visualize that data with
parview without a problem. But, because I ended up
having a segfault without any error message when slicing
(Z=0) the data. I decomposed my data in separate files
for each VTK_POLYHEDRON in order to investigate the problem.

I found out that only the polyhedrons with the largest
size were having the problem. The limit is somewhere
between the 2 files:
- poly-F1000-2395.vtu : working: 466 points, 928 faces
- poly-F1000-2987.vtu : segfault when slicing: 546
points, 1088 faces

So my guess is that there is a limit for the number of
points or the number of faces that can have the
polyhedron (1024 ?) if I want to be able to use the
slice function.


[Paraview] Problem reading a numpy NPZ file in ParaView 5.2.0 on Windows

2017-01-04 Thread Guillaume Jacquenot
Hello everyone,

I want to report a possible bug.

I have a Python script that creates data, exports data in a numpy NPZ file,
and reads it later in a ProgrammableFilter.

With ParaView 5.1.2, everything works fine.

However, when I try it with ParaView 5.2.0, I have a weird reading error.

I have checked the 'About ParaView' window, but see no real difference
between
the two versions.

If I try to import the PV 5.2.0 npz generated file in another Python
interpreter with anoter numpy version (1.11.3), I have no problem.

So I guess, the PV 5.2.0 npz generated files are correct, but there is a
problem accessing its content from PV 5.2.0

Here is a script that reproduces the bug. It is to be run from the PV
interpreter.

import os
import tempfile
import numpy as np
outputFilename = os.path.join(tempfile.mkdtemp(), 'dummy.npz')
varName='Time'
np.savez(outputFilename, **{varName:np.random.rand(3,4)})
d = np.load(outputFilename)
time = d[varName]
d.close()
os.remove(outputFilename)
print('Success PV can create a NPZ file and read its content : ' +
outputFilename)

Here is the message error on Windows with PV 5.2.0

>>> Traceback (most recent call last):
  File "", line 8, in 
  File
"D:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\npyio.py",
line 250, in __getitem__
return format.read_array(bytes)
  File
"D:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\format.py",
line 437, in read_array
shape, fortran_order, dtype = read_array_header_1_0(fp)
  File
"D:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\format.py",
line 334, in read_array_header_1_0
d = safe_eval(header)
  File
"D:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\utils.py",
line 1132, in safe_eval
return walker.visit(ast)
  File
"D:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\utils.py",
line 980, in visit
return meth(node, **kw)
  File
"D:\ParaView-5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\numpy\lib\utils.py",
line 987, in visitExpression
for child in node.getChildNodes():
AttributeError: 'Expression' object has no attribute 'getChildNodes'

Guillaume Jacquenot
___
Powered by www.kitware.com

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

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

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] slicing a large VTK_POLYHEDRON

2017-01-04 Thread Mathieu Westphal
Hi

It may be a different issue than the one i'm fixing. If you can share the
segfaulting polyhedron, please do so i can take a look when i get back on
this issue ( which my not be soon, feel free to find other solutions)

Regards,

Mathieu Westphal

On Tue, Jan 3, 2017 at 10:46 PM, Pierre Van Hauwaert <
pie...@rtech-engineering.nl> wrote:

> Hi Mathieu and Thomas,
>
> Thank you for the suggestions.
>
> 1) I tried the tetrahedralize filter on my data but I did not get the
> results I was expecting. I have a polyhedron which is not convex (
> https://postimg.org/image/9s3egl8rz/) and the filter fill the gap as you
> can see here (https://postimg.org/image/5u1nt6d2h/) and it is not what I
> was expecting. Indeed, the initial purpose of the slice was to visualize
> the hole.
> 2) I tried this fix: https://gitlab.kitware.com/vtk
> /vtk/merge_requests/2088
> only modifying the 2 files (*Common/DataModel/vtkPolyhedron.cxx *
> 
>  *Common/Core/vtkSetGet.h)  *
> 
> And compile VTK alone. I used a python script (activating the python VTK
> wrapping) to do the test with the vtkCutter function but I ended having the
> same exact issue (segfault, no error message) with only the polyhedron that
> have more than 1024 faces. I am not sure I should get the same results if I
> manage to compile paraview. When I will manage I will get back to you.
>
> Thanks,
>
> Pierre
>
>
>
> On 03-01-17 16:51, Mathieu Westphal wrote:
>
> Hi
>
> Indeed, incorrect copy paste. thanks for pointing it out.
>
> Mathieu Westphal
>
> On Tue, Jan 3, 2017 at 4:46 PM, T.J. Corona  wrote:
>
>> Hi Mathieu and Pierre,
>>
>> Perhaps you meant to point to this “work in progress” branch?
>>
>> https://gitlab.kitware.com/vtk/vtk/merge_requests/2088
>>
>> Sincerely,
>> T.J.
>>
>> Thomas J. Corona, Ph.D.
>> Kitware, Inc.
>> R Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4443 <%28518%29%20881-4443>
>>
>> On Jan 3, 2017, at 10:18 AM, Mathieu Westphal <
>> mathieu.westp...@kitware.com> wrote:
>>
>> Hello
>>
>> for your information there is a bug in the slicing of vtkPolyHedron that
>> can cause a segfault.
>> It looks very much like your error. It has yet to be corrected.
>> https://gitlab.kitware.com/vtk/vtk/issues/16877
>>
>> You can already test this "work in progress" branch to see if this fixes
>> your issue  :
>> https://gitlab.kitware.com/vtk/vtk/merge_requests/2304
>>
>> You could of course modify your data to tetrahedron with tetrahedralize
>> filter.
>>
>> Regards,
>>
>> Mathieu Westphal
>>
>> On Tue, Jan 3, 2017 at 4:10 PM, Pierre Van Hauwaert <
>> pie...@rtech-engineering.nl> wrote:
>>
>>> Hi,
>>>
>>> I am using paraview to visualise my data. I generate my data using a
>>> combination of the 2 following types (
>>> 
>>> http://www.vtk.org/doc/nightly/html/vtkCellType_8h_source.html)
>>> VTK_VOXEL
>>> 
>>> = 11
>>> VTK_POLYHEDRON = 42 I can visualize that data with parview without a
>>> problem. But, because I ended up having a segfault without any error
>>> message when slicing (Z=0) the data. I decomposed my data in separate files
>>> for each VTK_POLYHEDRON in order to investigate the problem.
>>>
>>> I found out that only the polyhedrons with the largest size were having
>>> the problem. The limit is somewhere between the 2 files:
>>> - poly-F1000-2395.vtu : working: 466 points, 928 faces
>>> - poly-F1000-2987.vtu : segfault when slicing: 546 points, 1088 faces
>>>
>>> So my guess is that there is a limit for the number of points or the
>>> number of faces that can have the polyhedron (1024 ?) if I want to be able
>>> to use the slice function.
>>>
>>> My questions are :
>>> 1) Is there actually a limitation in Paraview (VTK?) regarding the
>>> number of faces or the number of the point that the slice function can
>>> handle for a polyhedron ?
>>> 2) If there is this limitation, is there an option to remove it in
>>> Paraview ? (specific version, compilation option, etc)
>>> 3) If there is this limitation, is there any work around that exist so I
>>> am able to slice my data ? For example a different format ?
>>>
>>>
>>> I attached the data to be able to back up my statement:
>>>
>>> poly-F1000-*.vtu : files describing a polyhedron each:
>>> poly-F1000.pvd : load all those files
>>>
>>> Biggest file for which the slicing works (size, name):
>>> 34K poly-F1000-2395.vtu
>>>
>>> The 8 biggest files triggering the crash when doing a slice: (size, name)
>>> 38K poly-F1000-2987.vtu
>>> 39K poly-F1000-2983.vtu
>>> 39K poly-F1000-2935.vtu
>>> 39K poly-F1000-2988.vtu
>>> 39K poly-F1000-2931.vtu
>>> 40K