Re: [Paraview] VTK embedded models in JSP

2013-07-24 Thread Sebastien Jourdain
1) pvserver is not a web server. It is meant to run on a cluster for very
large visualization. Which is definitely not what you are looking for.

2) The html page is the only file needed for you. The other files were used
for development of custom web page when streaming could be involved.

Regarding your question about the scripting part, it is definitely doable
but I don't know the step on the top of my head.

You can try to use the trace and see if that give you the proper python
command for pvpython. Otherwise, you should be able to use vtkpython
without ParaView.

Seb


On Wed, Jul 24, 2013 at 4:24 AM, Dani Mora wrote:

> Hello everybody,
>
> I just started to use Paraview and I got a bit stuck. We have some JSP
> pages where we want to embed and visualize some .vtk models. I considered
> two options at first:
>
> 1- Deploy a server that will render the models. I tried to do that but I
> found that I should compile again Paraview to start the pvserver (to enable
> the MPI). I followed the steps here:
> http://paraview.org/Wiki/ParaView:Build_And_Install but I got some
> compiler errors that I have not been to solve.
>
> 2- Export the .vtk models into webgl (using the Paraview GUI) and embed
> the resulting .html documents as JSP pages . This is the simple approach
> and works so far. Regarding this option, I have two questions:
>
> - When exporting from vtk to webgl, we get one HTML file, one WebGL
> file and around 20 tiny files with unknown information. Since it works
> using only the HTML one, what are the rest of the files for?
>
> - I need this task (to export) to be automatized because it is
> possible that we will have many models in the future. I tried to use Python
> scripting but I could not find how to do it.  Any idea about how to do
> it? Is there any documentation I could read? I was thinking of extracting
> this functionality from the source code but I am looking for a 'smarter'
> solution.
>
> Thanks a lot in advance, and sorry if some of the questions are very basic.
>
> Daniel.
>
> PS: I am working under Windows as a constraint of the project.
> PS2: I recently found the X Toolkit WebGL (https://github.com/xtk/X#readme)
> that is currently working, but I would like to have other options anyway.
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

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

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

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


Re: [Paraview] FIND DATA deosn´t give back any results.

2013-07-24 Thread Hedieh Ebrahimi
unfortunately it is more than 16 G and I can´t share it.
The filetype is h5 and its a PFlotran filetype. When I work with small
datasets of same type. everything is fine . but once I am working with big
datasets,
the problems that I mentioned occure. Could size be a problem?

Thanks


On 24 July 2013 14:42, Utkarsh Ayachit  wrote:

> Can you share the dataset?
>
> On Wed, Jul 24, 2013 at 3:44 AM, Hedieh Ebrahimi
>  wrote:
> > Hi Utkarsh,
> >
> > I created the wavelet, it was already point data, so I didn´t need to
> apply
> > the "cell data to point data" filter. and then I looked for RTDATA>100
> and
> > it works and gives back results.
> >
> > On my dataset though things are different.
> >
> > 1. If i look for cells , looking for cells with certain ID i get results.
> > 2. if i look for cells, looking for cells with certain values or values
> > higher or lower than a certain value , i don´t get any results.
> >
> > 3. If I select Query is and then type for example  (temperature > 100)
> >
> > then although just 5 cells in 100 million should be selected ( Threshold
> > filters shows these 5 cells correctly and although analyzing my dataset
> > using direct python script gives back just 5 cells, but using the queries
> > such as (temperature > 100)  will select all cells which is wrong.
> >
> > Is there anyway to fix this? as this is very useful when you want to
> take a
> > first look at your dataset after a simulation.
> >
> > Thanks in Advance
> >
>
___
Powered by www.kitware.com

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

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

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


[Paraview] VTK embedded models in JSP

2013-07-24 Thread Dani Mora
Hello everybody,

I just started to use Paraview and I got a bit stuck. We have some JSP
pages where we want to embed and visualize some .vtk models. I considered
two options at first:

1- Deploy a server that will render the models. I tried to do that but I
found that I should compile again Paraview to start the pvserver (to enable
the MPI). I followed the steps here:
http://paraview.org/Wiki/ParaView:Build_And_Install but I got some compiler
errors that I have not been to solve.

2- Export the .vtk models into webgl (using the Paraview GUI) and embed the
resulting .html documents as JSP pages . This is the simple approach and
works so far. Regarding this option, I have two questions:

- When exporting from vtk to webgl, we get one HTML file, one WebGL
file and around 20 tiny files with unknown information. Since it works
using only the HTML one, what are the rest of the files for?

- I need this task (to export) to be automatized because it is possible
that we will have many models in the future. I tried to use Python
scripting but I could not find how to do it.  Any idea about how to do
it? Is there any documentation I could read? I was thinking of extracting
this functionality from the source code but I am looking for a 'smarter'
solution.

Thanks a lot in advance, and sorry if some of the questions are very basic.

Daniel.

PS: I am working under Windows as a constraint of the project.
PS2: I recently found the X Toolkit WebGL (https://github.com/xtk/X#readme)
that is currently working, but I would like to have other options anyway.
___
Powered by www.kitware.com

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

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

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


Re: [Paraview] FIND DATA deosn´t give back any results.

2013-07-24 Thread Hedieh Ebrahimi
Hi Utkarsh,

I created the wavelet, it was already point data, so I didn´t need to apply
the "cell data to point data" filter. and then I looked for RTDATA>100 and
it works and gives back results.

On my dataset though things are different.

1. If i look for cells , looking for cells with certain ID i get results.
2. if i look for cells, looking for cells with certain values or values
higher or lower than a certain value , i don´t get any results.

3. If I select Query is and then type for example  *(temperature > 100)
*
**
then although just 5 cells in 100 million should be selected ( Threshold
filters shows these 5 cells correctly and although analyzing my dataset
using direct python script gives back just 5 cells, but using the queries
such as *(temperature > 100)  *will select all cells which is wrong.

Is there anyway to fix this? as this is very useful when you want to take a
first look at your dataset after a simulation.

Thanks in Advance
___
Powered by www.kitware.com

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

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

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