pratik | 1 May 01:04 2011
Picon

Re: [Xdmf] simple example for ORIGIN_DX_DY_DZ in xdmf

Thanks Andy! It works perfectly :)
On Saturday 30 April 2011 07:48 PM, Smith, Andrew G wrote:
> <?xml version="1.0" ?>
> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
> <Xdmf Version="2.1" xmlns:xi="http://www.w3.org/2003/XInclude">
>      <Domain Name="Your_Domain">
>          <Grid GridType="Uniform" Name="Your_Grid">
>              <Topology TopologyType="3DCoRectMesh" Dimensions="10 10 10"/>
>              <Geometry Type="ORIGIN_DXDYDZ">
>                  <DataItem DataType="Float" Dimensions="3" Format="XML">0.0 0.0 0.0</DataItem>
>                  <DataItem DataType="Float" Dimensions="3" Format="XML">0.1 0.1 0.1</DataItem>
>              </Geometry>
>          </Grid>
>      </Domain>
> </Xdmf>
>    

pratik | 1 May 01:24 2011
Picon

Re: [Xdmf] simple example for ORIGIN_DX_DY_DZ in xdmf

Also, how do i change it so that the volume is completely filled with 
points? In PV it seems that only the bounding box has been created, as 
can be seen by choosing:"Points" as the representation. I was looking 
for a 3-d grid to define my equations on.....

pratik
On Sunday 01 May 2011 04:34 AM, pratik wrote:
> Thanks Andy! It works perfectly :)
> On Saturday 30 April 2011 07:48 PM, Smith, Andrew G wrote:
>> <?xml version="1.0" ?>
>> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
>> <Xdmf Version="2.1" xmlns:xi="http://www.w3.org/2003/XInclude">
>> <Domain Name="Your_Domain">
>> <Grid GridType="Uniform" Name="Your_Grid">
>> <Topology TopologyType="3DCoRectMesh" Dimensions="10 10 10"/>
>> <Geometry Type="ORIGIN_DXDYDZ">
>> <DataItem DataType="Float" Dimensions="3" Format="XML">0.0 0.0 
>> 0.0</DataItem>
>> <DataItem DataType="Float" Dimensions="3" Format="XML">0.1 0.1 
>> 0.1</DataItem>
>> </Geometry>
>> </Grid>
>> </Domain>
>> </Xdmf>
>

Ula Popov | 1 May 07:52 2011
Picon

ellipsoids

Hello all,

I have a vtkImageData file, that
I want to visualize. Each point
on the grid is a 3x3 tensor (matrix).
-> for each point I have 3 eigenvalues,
that I would like to map to the radiuses
of an ellipsoid.

What filter should I apply,
or maybe it is under glyphs,
but I just can't find it.

Thank you,
uliana

<div><p>Hello all,<br><br>I have a vtkImageData file, that<br>I want to visualize. Each point<br>on the grid is a 3x3 tensor (matrix).<br>-&gt; for each point I have 3 eigenvalues,<br>that I would like to map to the radiuses<br>of an ellipsoid.<br><br>What filter should I apply,<br>or maybe it is under glyphs,<br>but I just can't find it.<br><br>Thank you,<br>uliana<br></p></div>
pratik | 1 May 19:00 2011
Picon

ellipsoids

Hi,
Try the Tensor glyph filter OR the superquadric Tensor Glyph filter. 
These are user-created plugins and can be found here:
http://www.itk.org/Wiki/User_Created_Plugins

pratik
Biddiscombe, John A. | 2 May 09:31 2011
Picon

Re: [Xdmf] simple example for ORIGIN_DX_DY_DZ in xdmf

paraview uses a geometry filter to display datasets - this filter extracts the visible surface of your
data, hence you only see the points on the outer surface.

you can see the points themselves by using the point sprite renderer plugin, or use the cell centre filter
with vertexcells enabled to see the centres of each cell (not the original edge points)

-----Original Message-----
From: xdmf-bounces <at> lists.kitware.com [mailto:xdmf-bounces <at> lists.kitware.com] On Behalf Of pratik
Sent: 01 May 2011 01:25
To: Smith, Andrew G
Cc: xdmf <at> lists.kitware.com; paraview <at> paraview.org
Subject: Re: [Xdmf] simple example for ORIGIN_DX_DY_DZ in xdmf

Also, how do i change it so that the volume is completely filled with 
points? In PV it seems that only the bounding box has been created, as 
can be seen by choosing:"Points" as the representation. I was looking 
for a 3-d grid to define my equations on.....

pratik
On Sunday 01 May 2011 04:34 AM, pratik wrote:
> Thanks Andy! It works perfectly :)
> On Saturday 30 April 2011 07:48 PM, Smith, Andrew G wrote:
>> <?xml version="1.0" ?>
>> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
>> <Xdmf Version="2.1" xmlns:xi="http://www.w3.org/2003/XInclude">
>> <Domain Name="Your_Domain">
>> <Grid GridType="Uniform" Name="Your_Grid">
>> <Topology TopologyType="3DCoRectMesh" Dimensions="10 10 10"/>
>> <Geometry Type="ORIGIN_DXDYDZ">
>> <DataItem DataType="Float" Dimensions="3" Format="XML">0.0 0.0 
>> 0.0</DataItem>
>> <DataItem DataType="Float" Dimensions="3" Format="XML">0.1 0.1 
>> 0.1</DataItem>
>> </Geometry>
>> </Grid>
>> </Domain>
>> </Xdmf>
>

_______________________________________________
Xdmf mailing list
Xdmf <at> lists.kitware.com
http://www.kitware.com/cgi-bin/mailman/listinfo/xdmf
Stéphane Backaert | 2 May 11:40 2011
Picon

Extract Data on a time range

Hi,

I would like to ignore my X first data (transient time): currently, my data is vti slices. 
Until now, I create a new directory with the only needed slices... but I like scripting tasks, so...
The best will be to write a script to create new source without some time steps. A kind of time extract
filter...Any idea of python function?

Best regards,

Stephane
David E DeMarle | 2 May 14:49 2011

Re: export to vectorial image format

Please keep discussions on the mailing list so everyone can contribute
and benefit.

Sorry I assumed git clone would obtain a particular branch from a url
directly, so my instructions were not detailed enough.
Try this command instead:
git clone --recursive -b vector-graphics-export
https://github.com/demarle/ParaView

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109

On Sat, Apr 30, 2011 at 6:07 PM, Nima Emadi <deeepsky <at> gmail.com> wrote:
> Thanks David,
> I've a problem when I do git clone. the error message is:
> fatal:
> https://github.com/demarle/ParaView/branches/vector-graphics-export/info/refs
> not found: did you run git update-server-info on the server?
>
> Am I doing something wrong?
>
> Best,
> Nima
>
>
> On Fri, Apr 29, 2011 at 8:49 PM, David E DeMarle <dave.demarle <at> kitware.com>
> wrote:
>>
>> I've just pushed Sven's patches to github.
>>
>> You can git clone from:
>> https://github.com/demarle/ParaView/branches/vector-graphics-export
>> To get it.
>>
>> And then build from source.
>> When you do, turn on VTK_USE_GL2PS in cmake.
>>
>> Once built, save screen shot will have new ps, eps and svg vector
>> graphic formats.
>>
>> Thanks for the patch Sven!
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 28 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-371-3971 x109
>>
>>
>>
>> On Fri, Apr 29, 2011 at 1:00 PM, Nima Emadi <deeepsky <at> gmail.com> wrote:
>> > Sven,
>> > Could you please give me instruction on how to use of your patch in
>> > order to
>> > export vector images?
>> >
>> > Thanks,
>> > Nima
>> >
>> > On Wed, Apr 13, 2011 at 5:57 PM, Nima Emadi <deeepsky <at> gmail.com> wrote:
>> >>
>> >> Apparently Paraview does not generate vectorial images at the moment.
>> >>
>> >> Would it be possible to generate such an image by first exporting to a
>> >> 3D format (like POV or X3D) and then converting the scene to a
>> >> vectorial format using another application? any suggestion ...?
>> >>
>> >> Best,
>> >> Nima
>> >>
>> >> On Thu, Mar 31, 2011 at 3:51 PM, David E DeMarle
>> >> <dave.demarle <at> kitware.com> wrote:
>> >> > Sven,
>> >> >
>> >> > Despite the limitations, would you please push that patch to github?
>> >> > Once there distribution, upkeep and maintenance will be easier.
>> >> >
>> >> > thanks,
>> >> >
>> >> > David E DeMarle
>> >> > Kitware, Inc.
>> >> > R&D Engineer
>> >> > 28 Corporate Drive
>> >> > Clifton Park, NY 12065-8662
>> >> > Phone: 518-371-3971 x109
>> >> >
>> >> >
>> >> >
>> >> > On Thu, Mar 31, 2011 at 8:23 AM, Sven Buijssen
>> >> > <sven.buijssen <at> tu-dortmund.de> wrote:
>> >> >> Hi,
>> >> >>
>> >> >> I happen to have a small patch for the git master branch that adds
>> >> >> vector
>> >> >> graphics output (EPS, PS and SVG) to the Save Screenshot dialog and
>> >> >> uses
>> >> >> vtkGL2PSExporter as a backend, too. Actually, it's just an updated
>> >> >> version of
>> >> >> the patch for this matter I posted on this list back in 2007. But as
>> >> >> holds for
>> >> >> the Python approach it has a few drawbacks:
>> >> >>
>> >> >> * Only 3D View support
>> >> >> * Builtin mode and client/server mode support (but using merely 1
>> >> >> server
>> >> >> process, empty file when using more)
>> >> >> * No support for Manta/EyeDom/other views
>> >> >> * No multi-view support
>> >> >> * No support for mandelbrot source
>> >> >> * No support for text/annotate time source (a rectangular box is
>> >> >> drawn
>> >> >> instead),
>> >> >> one can resort to a 3D Text source, though
>> >> >> * No support for Volume rendering
>> >> >> * No support for Slice representation (try Surface representation of
>> >> >> a
>> >> >> slice
>> >> >> filter output)
>> >> >> * No support for PointSprite representation
>> >> >> * No support for SurfaceLIC representation, even crashes ParaView on
>> >> >> export
>> >> >> * In display tab of object inspector, "Interpolate scalars" needs to
>> >> >> be
>> >> >> ticked
>> >> >> off for every visible object; otherwise object is rendered gray
>> >> >> (see http://www.vtk.org/Bug/view.php?id=1630)
>> >> >> * Requires an old version of the colorbar implementation or colorbar
>> >> >> will be
>> >> >> rendered gray
>> >> >>
>> >> >> So, don't get your hopes up too much about vtkGL2PSExporter.
>> >> >>
>> >> >> Sven
>> >> >>
>> >> >>
>> >> >> Hom Nath Gharti wrote, On 03/31/11 14:05:
>> >> >>> You might try to run the script below to see if your image quality
>> >> >>> is
>> >> >>> good
>> >> >>> enough to use vtkGL2PSExporter
>> >> >>>
>> >> >>> rw=GetActiveView().GetRenderWindow()
>> >> >>> exp=paraview.vtk.vtkInstantiator.CreateInstance('vtkGL2PSExporter')
>> >> >>> exp.SetRenderWindow(rw)
>> >> >>> exp.SetDrawBackground(0)
>> >> >>> exp.SetSortToSimple()
>> >> >>> exp.SetFileFormatToEPS()
>> >> >>> exp.SetFilePrefix("test")
>> >> >>> #exp.Write3DPropsAsRasterImageOn()
>> >> >>> exp.Write()
>> >> >>>
>> >> >>> On Wed, Mar 30, 2011 at 6:41 PM, David E DeMarle
>> >> >>> <dave.demarle <at> kitware.com
>> >> >>> <mailto:dave.demarle <at> kitware.com>> wrote:
>> >> >>>
>> >> >>>     Sorry, ParaView doesn't have true vector graphics output.
>> >> >>> Please
>> >> >>> add
>> >> >>>     your vote to the existing user voice request for it.
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> (http://paraview.uservoice.com/forums/11350-general/suggestions/313565-add-vector-graphics-output-i-e-postscript-?ref=title)
>> >> >>>
>> >> >>>     The pdf writer in ParaView uses Qt to write a raster image.
>> >> >>> VTK's
>> >> >>>     vtkGL2PSExporter is not exercised by ParaView at all and it is
>> >> >>> likely
>> >> >>>     not to support many of our rendering techniques if it was added
>> >> >>> as
>> >> >>> an
>> >> >>>     new exporter option. 2D views are more likely to be supported,
>> >> >>> but
>> >> >>> we
>> >> >>>     haven't yet had the time to do so.
>> >> >>>
>> >> >>>     David E DeMarle
>> >> >>>     Kitware, Inc.
>> >> >>>     R&D Engineer
>> >> >>>     28 Corporate Drive
>> >> >>>     Clifton Park, NY 12065-8662
>> >> >>>     Phone: 518-371-3971 <tel:518-371-3971> x109
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>     On Fri, Mar 25, 2011 at 10:00 AM, Nima Emadi
>> >> >>> <deeepsky <at> gmail.com
>> >> >>>     <mailto:deeepsky <at> gmail.com>> wrote:
>> >> >>>     > Dear all,
>> >> >>>     > I'd like to export a paraview vector field plot into a
>> >> >>> vectorial
>> >> >>> image
>> >> >>>     > format (e.g. eps) to generate high quality images which are
>> >> >>> not
>> >> >>> huge
>> >> >>>     > in size for publication purposes.
>> >> >>>     > I already compiled paraview 3.10 with gl2ps=on. So according
>> >> >>> to
>> >> >>> old
>> >> >>>     > messages in the email list I should be able to save vectorial
>> >> >>> images.
>> >> >>>     > Could anybody give me instructions how to do that?
>> >> >>>     >
>> >> >>>     > Thanks,
>> >> >>>     > Nima.
>> >> >>
>> >> >> _______________________________________________
>> >> >> Powered by www.kitware.com
>> >> >>
>> >> >> Visit other Kitware open-source projects 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
>> >> >
>> >
>> >
>
>
Sven Buijssen | 2 May 14:55 2011
Picon

Re: export to vectorial image format

In case you prefer using ParaView 3.10.1 and not the development version, here's
a recipe to backport the patches (which are intended for the development version
after the Collaboration branch merge) to 3.10.1. (To avoid confusion w.r.t.
mail-induced line breaks the recipe as an attachment, not inline.)

Sven

David E DeMarle wrote, On 05/02/11 14:49:
> Please keep discussions on the mailing list so everyone can contribute
> and benefit.
> 
> Sorry I assumed git clone would obtain a particular branch from a url
> directly, so my instructions were not detailed enough.
> Try this command instead:
> git clone --recursive -b vector-graphics-export
> https://github.com/demarle/ParaView
> 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
> 
> 
> 
> On Sat, Apr 30, 2011 at 6:07 PM, Nima Emadi <deeepsky <at> gmail.com> wrote:
>> Thanks David,
>> I've a problem when I do git clone. the error message is:
>> fatal:
>> https://github.com/demarle/ParaView/branches/vector-graphics-export/info/refs
>> not found: did you run git update-server-info on the server?
>>
>> Am I doing something wrong?
>>
>> Best,
>> Nima
>>
>>
>> On Fri, Apr 29, 2011 at 8:49 PM, David E DeMarle <dave.demarle <at> kitware.com>
>> wrote:
>>>
>>> I've just pushed Sven's patches to github.
>>>
>>> You can git clone from:
>>> https://github.com/demarle/ParaView/branches/vector-graphics-export
>>> To get it.
>>>
>>> And then build from source.
>>> When you do, turn on VTK_USE_GL2PS in cmake.
>>>
>>> Once built, save screen shot will have new ps, eps and svg vector
>>> graphic formats.
>>>
>>> Thanks for the patch Sven!
>>>
>>> David E DeMarle
>>> Kitware, Inc.
>>> R&D Engineer
>>> 28 Corporate Drive
>>> Clifton Park, NY 12065-8662
>>> Phone: 518-371-3971 x109
>>>
>>>
>>>
>>> On Fri, Apr 29, 2011 at 1:00 PM, Nima Emadi <deeepsky <at> gmail.com> wrote:
>>>> Sven,
>>>> Could you please give me instruction on how to use of your patch in
>>>> order to
>>>> export vector images?
>>>>
>>>> Thanks,
>>>> Nima
>>>>
>>>> On Wed, Apr 13, 2011 at 5:57 PM, Nima Emadi <deeepsky <at> gmail.com> wrote:
>>>>>
>>>>> Apparently Paraview does not generate vectorial images at the moment.
>>>>>
>>>>> Would it be possible to generate such an image by first exporting to a
>>>>> 3D format (like POV or X3D) and then converting the scene to a
>>>>> vectorial format using another application? any suggestion ...?
>>>>>
>>>>> Best,
>>>>> Nima
>>>>>
>>>>> On Thu, Mar 31, 2011 at 3:51 PM, David E DeMarle
>>>>> <dave.demarle <at> kitware.com> wrote:
>>>>>> Sven,
>>>>>>
>>>>>> Despite the limitations, would you please push that patch to github?
>>>>>> Once there distribution, upkeep and maintenance will be easier.
>>>>>>
>>>>>> thanks,
>>>>>>
>>>>>> David E DeMarle
>>>>>> Kitware, Inc.
>>>>>> R&D Engineer
>>>>>> 28 Corporate Drive
>>>>>> Clifton Park, NY 12065-8662
>>>>>> Phone: 518-371-3971 x109
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Mar 31, 2011 at 8:23 AM, Sven Buijssen
>>>>>> <sven.buijssen <at> tu-dortmund.de> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I happen to have a small patch for the git master branch that adds
>>>>>>> vector
>>>>>>> graphics output (EPS, PS and SVG) to the Save Screenshot dialog and
>>>>>>> uses
>>>>>>> vtkGL2PSExporter as a backend, too. Actually, it's just an updated
>>>>>>> version of
>>>>>>> the patch for this matter I posted on this list back in 2007. But as
>>>>>>> holds for
>>>>>>> the Python approach it has a few drawbacks:
>>>>>>>
>>>>>>> * Only 3D View support
>>>>>>> * Builtin mode and client/server mode support (but using merely 1
>>>>>>> server
>>>>>>> process, empty file when using more)
>>>>>>> * No support for Manta/EyeDom/other views
>>>>>>> * No multi-view support
>>>>>>> * No support for mandelbrot source
>>>>>>> * No support for text/annotate time source (a rectangular box is
>>>>>>> drawn
>>>>>>> instead),
>>>>>>> one can resort to a 3D Text source, though
>>>>>>> * No support for Volume rendering
>>>>>>> * No support for Slice representation (try Surface representation of
>>>>>>> a
>>>>>>> slice
>>>>>>> filter output)
>>>>>>> * No support for PointSprite representation
>>>>>>> * No support for SurfaceLIC representation, even crashes ParaView on
>>>>>>> export
>>>>>>> * In display tab of object inspector, "Interpolate scalars" needs to
>>>>>>> be
>>>>>>> ticked
>>>>>>> off for every visible object; otherwise object is rendered gray
>>>>>>> (see http://www.vtk.org/Bug/view.php?id=1630)
>>>>>>> * Requires an old version of the colorbar implementation or colorbar
>>>>>>> will be
>>>>>>> rendered gray
>>>>>>>
>>>>>>> So, don't get your hopes up too much about vtkGL2PSExporter.
>>>>>>>
>>>>>>> Sven
>>>>>>>
>>>>>>>
>>>>>>> Hom Nath Gharti wrote, On 03/31/11 14:05:
>>>>>>>> You might try to run the script below to see if your image quality
>>>>>>>> is
>>>>>>>> good
>>>>>>>> enough to use vtkGL2PSExporter
>>>>>>>>
>>>>>>>> rw=GetActiveView().GetRenderWindow()
>>>>>>>> exp=paraview.vtk.vtkInstantiator.CreateInstance('vtkGL2PSExporter')
>>>>>>>> exp.SetRenderWindow(rw)
>>>>>>>> exp.SetDrawBackground(0)
>>>>>>>> exp.SetSortToSimple()
>>>>>>>> exp.SetFileFormatToEPS()
>>>>>>>> exp.SetFilePrefix("test")
>>>>>>>> #exp.Write3DPropsAsRasterImageOn()
>>>>>>>> exp.Write()
>>>>>>>>
>>>>>>>> On Wed, Mar 30, 2011 at 6:41 PM, David E DeMarle
>>>>>>>> <dave.demarle <at> kitware.com
>>>>>>>> <mailto:dave.demarle <at> kitware.com>> wrote:
>>>>>>>>
>>>>>>>>     Sorry, ParaView doesn't have true vector graphics output.
>>>>>>>> Please
>>>>>>>> add
>>>>>>>>     your vote to the existing user voice request for it.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> (http://paraview.uservoice.com/forums/11350-general/suggestions/313565-add-vector-graphics-output-i-e-postscript-?ref=title)
>>>>>>>>
>>>>>>>>     The pdf writer in ParaView uses Qt to write a raster image.
>>>>>>>> VTK's
>>>>>>>>     vtkGL2PSExporter is not exercised by ParaView at all and it is
>>>>>>>> likely
>>>>>>>>     not to support many of our rendering techniques if it was added
>>>>>>>> as
>>>>>>>> an
>>>>>>>>     new exporter option. 2D views are more likely to be supported,
>>>>>>>> but
>>>>>>>> we
>>>>>>>>     haven't yet had the time to do so.
>>>>>>>>
>>>>>>>>     David E DeMarle
>>>>>>>>     Kitware, Inc.
>>>>>>>>     R&D Engineer
>>>>>>>>     28 Corporate Drive
>>>>>>>>     Clifton Park, NY 12065-8662
>>>>>>>>     Phone: 518-371-3971 <tel:518-371-3971> x109
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>     On Fri, Mar 25, 2011 at 10:00 AM, Nima Emadi
>>>>>>>> <deeepsky <at> gmail.com
>>>>>>>>     <mailto:deeepsky <at> gmail.com>> wrote:
>>>>>>>>     > Dear all,
>>>>>>>>     > I'd like to export a paraview vector field plot into a
>>>>>>>> vectorial
>>>>>>>> image
>>>>>>>>     > format (e.g. eps) to generate high quality images which are
>>>>>>>> not
>>>>>>>> huge
>>>>>>>>     > in size for publication purposes.
>>>>>>>>     > I already compiled paraview 3.10 with gl2ps=on. So according
>>>>>>>> to
>>>>>>>> old
>>>>>>>>     > messages in the email list I should be able to save vectorial
>>>>>>>> images.
>>>>>>>>     > Could anybody give me instructions how to do that?
>>>>>>>>     >
>>>>>>>>     > Thanks,
>>>>>>>>     > Nima.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Powered by www.kitware.com
>>>>>>>
>>>>>>> Visit other Kitware open-source projects at
>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>>>> http://paraview.org/Wiki/ParaView
>>>>>>>
>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>>> http://paraview.org/Wiki/ParaView
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>
>>>>
>>>>
>>
>>
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
wget http://www.paraview.org/files/v3.10/ParaView-3.10.1.tar.gz
tar -xzf ParaView-3.10.1.tar.gz 
wget --no-check-certificate
https://github.com/demarle/ParaView/commit/de96b0eac2b38b6f44872a91a7f8a836762a47a1.patch
-O 0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch
sed -i -e '10s/applicable to the ParaView Collaboration branch as of/applicable to ParaView 3.10.1 and PV
git until/' 0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch
wget --no-check-certificate
https://github.com/demarle/ParaView/commit/8b498fde544e3dde5061d83d5bc90edf95776371.patch
-O 0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch
sed -i -e 's,ParaViewCore/VTKExtensions/,Servers/Filters/,g' 0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch
cd ParaView-3.10.1
patch -p1 < ../0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch
patch -p1 < ../0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch
cd ..
mkdir build && cd build
cmake ../ParaView-3.10.1 -DVTK_USE_GL2PS:BOOL=ON
make
wget http://www.paraview.org/files/v3.10/ParaView-3.10.1.tar.gz
tar -xzf ParaView-3.10.1.tar.gz 
wget --no-check-certificate
https://github.com/demarle/ParaView/commit/de96b0eac2b38b6f44872a91a7f8a836762a47a1.patch
-O 0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch
sed -i -e '10s/applicable to the ParaView Collaboration branch as of/applicable to ParaView 3.10.1 and PV
git until/' 0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch
wget --no-check-certificate
https://github.com/demarle/ParaView/commit/8b498fde544e3dde5061d83d5bc90edf95776371.patch
-O 0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch
sed -i -e 's,ParaViewCore/VTKExtensions/,Servers/Filters/,g' 0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch
cd ParaView-3.10.1
patch -p1 < ../0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch
patch -p1 < ../0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch
cd ..
mkdir build && cd build
cmake ../ParaView-3.10.1 -DVTK_USE_GL2PS:BOOL=ON
make
Sebastien Jourdain | 2 May 14:59 2011

Re: ParaviewWeb : Adding interactive slice filter to pipeline

Hi Raj,


You are not getting the propers bounds when you directly access them like that:

> reader.Bounds

In fact, if you validate each line that you wrote inside the JavaScript console of your browser, you could have seen that Bounds was not part of the reader proxy. Moreover, it goes against the idea that Proxy do not have methods/fields but only properties that can be set/get based on their name. So eventually, it could have been reader.getBounds(). Although, bounds is not a property of the reader.
In order to get the right informations, you do need to do call a method on ParaView:

> var dataInfo = pv.GetDataInformation({proxy:reader});

The returned value is not a proxy, it's just a data structure with all the data informations of the given proxy. (Fields name, Time, scalar range, bounds, memory consumption on the server...)

Then you can do :
> sr.setPlaceWidget(dataInfo.Bounds);

I do believe that you  look at the file ParaWebFunctions.js inside the PWApp to get that close. If not, it could provide you some help on how to handle some common actions.

Thanks,

Seb

On Fri, Apr 29, 2011 at 7:25 PM, Rajvikram Singh <rajvikrams <at> yahoo.com> wrote:
Hi
   I am trying to add a simple slice filter to a ParaviewWeb client that users could use interact with a volume. The bundled PWApp application does this already and so I tried to go through the code and looked at some Python examples. I was able to get an interactive widget to render but it shows a blank slice. Also the bounds are not correct since the volume is 'flat' and what I see is a cube.

Here's the code I'm using :

var reader = pv.OpenDataFile({filename : "test.vtk"});   
    var view1 = pv.CreateIfNeededRenderView();
    pv.Render();
   
    var sliceFilter = pv.Slice({Input : reader});
    sliceFilter.SetSliceNormal = [0,0,1]; // sliec along Z
    sliceFilter.SetSliceOrigin = [0,0,0];
    sliceFilter.SetSliceType = 'Plane';
//    sliceFilter.SetInputBounds = pv.GetDataInformation.Bounds;

    var sr = pv.CreateBindedWidget({proxy : sliceFilter.getSliceType(), view : view1});
    sr.setPlaceWidget(reader.Bounds);
    sr.setEnabled(1);
    sr.setVisibility(1);

    var dataRep1 = pv.Show({proxy : sliceFilter});
   

    pv.SetDisplayProperties( {
    proxy : sliceFilter,
    view  : view1,
    Representation : 'Surface',
    } );

I'm attaching a screenshot of what's rendered in my browser. I'm obviously not setting some property correctly .. I just can't tell which one.

Thanks in advance
Raj


_______________________________________________
Powered by www.kitware.com

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


<div>
<p>Hi Raj,</p>
<div><br></div>
<div>You are not getting the propers bounds when you directly access them like that:</div>
<div><br></div>
<div>
<span class="Apple-style-span">&gt; reader.Bounds</span><br><br>
</div>
<div>In fact, if you validate each line that you wrote inside the JavaScript console of your browser, you could have seen that Bounds was not part of the reader proxy. Moreover, it goes against the idea that Proxy do not have methods/fields but only properties that can be set/get based on their name. So eventually, it could have been reader.getBounds(). Although, bounds is not a property of the reader.</div>
<div>In order to get the right informations, you do need to do call a method on ParaView:</div>
<div><br></div>
<div>&gt; var dataInfo = pv.GetDataInformation({proxy:reader});</div>
<div><br></div>
<div>The returned value is not a proxy, it's just a data structure with all the data informations of the given proxy. (Fields name, Time, scalar range, bounds, memory consumption on the server...)</div>
<div><br></div>
<div>Then you can do :</div>
<div>&gt;&nbsp;sr.setPlaceWidget(dataInfo.Bounds);</div>
<div><br></div>
<div>I do believe that you &nbsp;look at the file ParaWebFunctions.js inside the PWApp to get that close. If not, it could provide you some help on how to handle some common actions.</div>
<div><br></div>
<div>Thanks,</div>
<div><br></div>
<div>Seb</div>
<div>
<br><div class="gmail_quote">On Fri, Apr 29, 2011 at 7:25 PM, Rajvikram Singh <span dir="ltr">&lt;<a href="mailto:rajvikrams <at> yahoo.com">rajvikrams <at> yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">Hi<br>&nbsp;&nbsp; I am trying to add a simple slice filter to a ParaviewWeb client that users could use interact with a volume. The bundled PWApp application does this already and so I tried to go through the code and looked at some Python examples. I was able to get an interactive widget to render but it shows a blank slice. Also the bounds are not correct since the volume is 'flat' and what I see is a cube. <br><br>Here's the code I'm using :<br><br><div>var reader = pv.OpenDataFile({filename : "test.vtk"});&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; var view1 = pv.CreateIfNeededRenderView();<br>&nbsp;&nbsp;&nbsp; pv.Render();<br>
&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; var sliceFilter = pv.Slice({Input : reader});<br>&nbsp;&nbsp;&nbsp; sliceFilter.SetSliceNormal = [0,0,1]; // sliec along Z<br>&nbsp;&nbsp;&nbsp;
 sliceFilter.SetSliceOrigin = [0,0,0];<br>&nbsp;&nbsp;&nbsp; sliceFilter.SetSliceType = 'Plane';<br>//&nbsp;&nbsp;&nbsp; sliceFilter.SetInputBounds = pv.GetDataInformation.Bounds;<br><br>&nbsp;&nbsp;&nbsp; var sr = pv.CreateBindedWidget({proxy : sliceFilter.getSliceType(), view : view1});<br>
&nbsp;&nbsp;&nbsp; sr.setPlaceWidget(reader.Bounds);<br>&nbsp;&nbsp;&nbsp; sr.setEnabled(1);<br>&nbsp;&nbsp;&nbsp; sr.setVisibility(1);<br><br>&nbsp;&nbsp;&nbsp; var dataRep1 = pv.Show({proxy : sliceFilter});<br>&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; pv.SetDisplayProperties( {<br>&nbsp;&nbsp;&nbsp; proxy : sliceFilter,<br>
&nbsp;&nbsp;&nbsp; view&nbsp; : view1,<br>&nbsp;&nbsp;&nbsp; Representation : 'Surface',<br>&nbsp;&nbsp;&nbsp; } );<br><br>
</div>I'm attaching a screenshot of what's rendered in my browser. I'm obviously not setting some property correctly .. I just can't tell which one.<br><br>Thanks in advance<br>Raj<br><div><br></div>
</td></tr></table>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br><br>
</blockquote>
</div>
<br>
</div>
</div>
Jade Mackay | 2 May 16:01 2011
Picon

python script for plot-over-line filter

Hello,

I frequently perform the procedure below, and would prefer to put it in
a python script. Can anyone give me a some assistance in doing this?

* read a vtu file
* apply the plot-over-line filter, specifying the start and end points,
and number of points
* write the result to a csv file.

Many thanks,
Jade


Gmane