Re: [Paraview] Delaunay 3D filter too slow

2013-09-26 Thread 庞庆源
My points are not Uniform distribution.They take from intersections of 89
wefts and 180 warps.So the points are intensive at poles and sparse at
equator.Is this the problem?


2013/9/25 Moreland, Kenneth kmo...@sandia.gov

   That is strange. I cannot replicate your problem. I used a point source
 to create 16020 random points in a sphere, and the Delaunay triangulation
 took only about 2 seconds. My processor might be a bit better than yours,
 but not anywhere near enough to explain the difference.

  What version of ParaView are you using? Are you a binary downloaded from
 paraview.org or did you build your own?

  -Ken

   From: 庞庆源 pangqingyuan1...@gmail.com
 Date: Tuesday, September 24, 2013 10:29 PM
 To: Kenneth Moreland kmo...@sandia.gov
 Subject: [EXTERNAL] Re: [Paraview] Delaunay 3D filter too slow

   in fact,I have only 16020 points for test.My cpu is AMD Athlon(tm) II
 P320 Dual-Core Processor with 2.1GHz.How long will it take in this case if
 I use one cpu to calculate?I have wait for more than 10 minutes before
 stopping it.


 2013/9/24 Moreland, Kenneth kmo...@sandia.gov

   Your options are probably either to wait or do something else.
 Delaunay triangulation is a pretty heavyweight operation and in general it
 is not trivial to impose a topology on a collection of points.

  You might rethink whether you really need to create a solid sphere in
 the first place. I'm guessing you have at least around 100,000 points (or
 else Delaunay probably would not be that slow). If you just render these
 points as a cloud of points, you should get enough occlusion for it to look
 pretty much like a sphere.

  -Ken

   From: 庞庆源 pangqingyuan1...@gmail.com
 Date: Tuesday, September 24, 2013 5:01 AM
 To: paraview paraview@paraview.org
 Subject: [EXTERNAL] [Paraview] Delaunay 3D filter too slow

   I have a lot of points taking sample from a solid sphere.So I want to
 use Delaunay 3D filter to render the shpere with known scalars of the
 points.But it took me so much time.What should I do?

  --
 庞庆源 pangqingyuan1...@gmail.com




  --
 庞庆源 pangqingyuan1...@gmail.com




-- 
庞庆源 pangqingyuan1...@gmail.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects 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] Paraview Programmable Source 3D Text

2013-09-26 Thread Willi Karel
Dear Utkarsh,

would it be possible to synchronize the transform of the rendered texts
to the transform of the camera, such that the planes in which the texts
lie stay normal to the viewing direction?
I'm aware of vtkFollower, but I'm not sure if it is applicable / how to
make use of it in the context of ParaView / Programmable Source, as it
derives from vtkActor.

Many thanks!
Willi.

On 25.09.2013 22:50, Willi Karel wrote:
 Dear Utkarsh,
 that works nice, thanks a lot!
 Willi.
 
 On 25.09.2013 15:25, Utkarsh Ayachit wrote:
 Willi,

 You can still use the programmable source for 3D text. With
 vtkPolyData as the chosen Output DataSet Type, you can use the
 attached script as the Script.









 On Wed, Sep 25, 2013 at 6:11 AM, Willi Karel w...@ipf.tuwien.ac.at
 mailto:w...@ipf.tuwien.ac.at wrote:

 I'd like to insert various text strings programmatically into the scene
 at various 3D locations in world coordinates. To me, (Python)
 Programmable Source seems to be the appropriate tool for that purpose
 (which I successfully use to insert geometries into the scene). Is that
 possible using Programmable Source? Otherwise, is there any other
 method to do so?

 I am aware of Sources - 3D Text,
 but that means a lot of manual, repetitive work.

 Many thanks!
 Willi.
 --
 _ _ _  Technische Universität Wien
DI Wilfried Karel   /// ___/// Dept. of Geodesy  Geoinform.
   wilfried.karel@ // __ / /__ / // / Research Groups Photogrammetry
  geo.tuwien.ac.at http://geo.tuwien.ac.at//__/// /__ / // /  
  Remote Sensing
 +43 1 58801 12244 tel:%2B43%201%2058801%2012244 
  ////// Gusshausstr. 27-29, A-1040 Wien
 ___
 Powered by www.kitware.com http://www.kitware.com

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


 

-- 
_ _ _  Technische Universität Wien
   DI Wilfried Karel   /// ___/// Dept. of Geodesy  Geoinform.
  wilfried.karel@ // __ / /__ / // / Research Groups Photogrammetry
 geo.tuwien.ac.at//__/// /__ / // /Remote Sensing
+43 1 58801 12244   ////// Gusshausstr. 27-29, A-1040 Wien
___
Powered by www.kitware.com

Visit other Kitware open-source projects 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] Export image without background

2013-09-26 Thread David Lonie
Hi Roberto,

To remove the background, uncheck the Draw background and Rasterize 3D
geometry checkboxes in the Export Options dialog that appears after
setting the filename.

Dave


On Thu, Sep 26, 2013 at 6:53 AM, Roberto Di remigio 
roberto.diremi...@gmail.com wrote:

 Dear all,
 is there a way to export an image without the background?
 For example, in the attached svg file I would like to export only the
 contour map
 and not the map+background. Is that possible?
 With best regards.

 --
 Roberto Di Remigio


 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects 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] How to indicate the pressure data in paraview ( I use LS-DYNA)

2013-09-26 Thread Samuel Key

Yusuke-san,

I am very sorry; I am not a LS-Dyna user and therefore not so familiar 
with how one directs LS-Dyna to write the stress component array 
[Sigma_ij] to the d3plot-file.


[Sigma_ij] is the 3x3 symmetric array

| Sigma_xx Sigma_xy Sigma_xz |
| Sigma_xy Sigma_yy Sigma_yz |
| Sigma_xz Sigma_yz Sigma_zz |



You noted that resultant components were in the d3plot-file. This 
suggests to me at least two possibilities:


Case(1). Your model is using 3D solid finite elements that are 
internally configured to behave as shell elements (the word resultant 
is commonly used to describe the stress components in shell 
formulations), or


Case(2). Your model is using 3D solid finite elements that use a 
multiple-point volume integration rule and, therefore, has multiple 
stress-strain evaluations within each element. Post-processors like 
ParaView typically use only a single set of stress components per 
element and, thus, some form of volume averaging is required to provide 
a set of 'mean' stress values.


Be aware that Resultant can have different definitions in Case(1) and 
Case(2). Only someone very familiar with LS-Dyna can tell you what is 
done internally in LS-Dyna to get these values.


You may be able to see in ParaView a single interior pressure value by 
doing the following replacement:


Sigma_XX == NormalResultant_X

Sigma_YY == NormalResultant_Y

Sigma_ZZ == NormalResultant_Z

In either Case(1) or Case(2) above, you will be examining an average 
pressure in each element, however, this pressure will not be at the 
surface of the finite element.


To get surface pressure values, the components listed as 
BendingResultant_X,Y,Z must be combined with NormalResultant_X,Y,Z 
values in a very particular way. Please find a colleague that 
understands shell formulations to explain the process.


Best regards,

Sam Key



On 9/25/2013 7:43 PM, Yusuke wrote:

Samuel Key samuelkey at bresnan.net writes:



 Yusuke-san,
 If the components of the stress tensor supplied by the LS-DYNS
 d3plot file have the following names: Sigma_XX, Sigma_XY, Sigma_XZ,
 Sigma_YY, ...
 then one can use the Calculator filter with the formula
 Pressure = (Sigma_XX + Sigma_YY + Sigma_ZZ)/3.0
 Note: (1) Pressure replaces the temporary Results name, (2)
 just the formula (Sigma_XX + Sigma_YY + Sigma_ZZ)/3.0
 is used in the blank line above the key-pad, and (3) be sure to
 use the stress component names supplied by  d3plot in place of my
 guessed names above.
 Hope this helps,
 SamOn 9/23/2013 7:47 PM,
   uverworld_1016 at yahoo.co.jp wrote:


Hi Mr. Samuel
Thank you to answer my question!
I found BendingResultant_X,Y,Z , NormalResultant_X,Y,Z , ShearResultant_X,Y.
However I can't find Sigma_XX,XY,XZ...and Results.
Maybe these are not Sigma and results.
Should I set calculation files to output sigma and results??
But I don't know  how to do 

Thank you
Best regards
Yusuke


   
   ___

Powered by www.kitware.com

Visit other Kitware open-source projects 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
 Yusuke-san,brbrbr
 If the components of the stress tensor supplied by the LS-DYNS
 d3plot file have the following names: Sigma_XX, Sigma_XY, Sigma_XZ,
 Sigma_YY, ...brbr
 then one can use the Calculator filter with the formula brbr
 Pressure = (Sigma_XX + Sigma_YY + Sigma_ZZ)/3.0brbr
 Note: (1) Pressure replaces the temporary Results name, (2)br
 just the formula (Sigma_XX + Sigma_YY + Sigma_ZZ)/3.0br
 is used in the blank line above the key-pad, and (3) be sure to
 use the stress component names supplied by  d3plot in place of my
 guessed names above.brbr
 Hope this helps,brbr
 Sambrbrdiv class=moz-cite-prefixOn 9/23/2013 7:47 PM,
   a class=moz-txt-link-abbreviated href=mailto:uverworld_1016 at

yahoo.co.jpuverworld_1016 at yahoo.co.jp/a wrote:br

/div
 blockquote cite=mid:340485.43466.qm at

web100905.mail.kks.yahoo.co.jp type=cite

   div
 divHi! All! /div
 divI'm sorry to ask a lot of questions./div
 divbr/div
 divI use LS-DYNA and I input d3plot file to paraview./div
 divIf I use ls-prepost, I can indicate pressure but there is
   not pressure data in paraview./div
 divSo, I can't indicate pressure  in paraview./div
 divbr/div
 divShould I use some filters?? /div
 divbr/div
 divThank you a lot. /div
 divBest regards/div
 divYusuke/div
   /div
   brbr___
Powered by a class=moz-txt-link-abbreviated

href=http://www.kitware.com;www.kitware.com/a

Visit other Kitware open-source 

Re: [Paraview] My own filter as part of pipeline for coprocessing raises name not defined error

2013-09-26 Thread David E DeMarle
I think that information is out of date. I believe that is done
automatically now.

Otherwise Andy is right. Putting the filter inside a plugin a good way to
go. The plugin infrastructure will make it so that when you provide the XML
that describes your vtk class, ParaView's build system will automatically
wrap it into a proxy and python class so that ParaView will be able to use
it.

Also, I recommend trying it on a local static build first. That way the
build time will be less and development will be quicker. Once you can load
you plugin locally, then you should only have to compile on titan once.


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


On Wed, Sep 25, 2013 at 10:34 PM, Andy Bauer andy.ba...@kitware.com wrote:

 Did you use a plugin to add in your custom filter when creating the Python
 co-processing script? I'm not sure how plugins are loaded for static
 builds but you may want to look at
 http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Plugins_in_Static_Applications.
 If that doesn't work, we'll have to figure out some other way to do it.

 Andy






 On Wed, Sep 25, 2013 at 9:16 PM, Hong Yi hon...@renci.org wrote:

  Hello,

 I set up a pipeline that used a custom filter I developed and exported it
 as a python script for coprocessing. I have made sure the static library
 for my custom filter is built and available in paraview-build/lib
 directory, and I have also linked this custom filter static library along
 with Catalyst libs to the simulation code for coprocessing. However, when I
 run the simulation linked with ParaView coprocessing for in-situ
 visualization, I got NameError: name 'MyCustomizedFilterName' is not
 defined error when the line of my customized filter in my python
 coprocessing script is read in for pipeline coprocessing. What should I do
 to get my custom filter wrapped in python so that it can be recognized and
 used as part of the python pipeline script for coprocessing? Any advice and
 suggestions are very much appreciated.

 Thanks,

 Hong



 ___
 Powered by www.kitware.com

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


Re: [Paraview] Delaunay 3D filter too slow

2013-09-26 Thread Moreland, Kenneth
I doubt that would make a difference. I just tried a bimodal distribution using 
two point sources, and the filter still executed in about the same amount of 
time.

So what version of ParaView are you using? Are you using a binary downloaded 
from paraview.org or did you build your own?

-Ken

From: 庞庆源 pangqingyuan1...@gmail.commailto:pangqingyuan1...@gmail.com
Date: Thursday, September 26, 2013 3:05 AM
To: Kenneth Moreland kmo...@sandia.govmailto:kmo...@sandia.gov
Cc: paraview@paraview.orgmailto:paraview@paraview.org 
paraview@paraview.orgmailto:paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] Delaunay 3D filter too slow

My points are not Uniform distribution.They take from intersections of 89 wefts 
and 180 warps.So the points are intensive at poles and sparse at equator.Is 
this the problem?


2013/9/25 Moreland, Kenneth kmo...@sandia.govmailto:kmo...@sandia.gov
That is strange. I cannot replicate your problem. I used a point source to 
create 16020 random points in a sphere, and the Delaunay triangulation took 
only about 2 seconds. My processor might be a bit better than yours, but not 
anywhere near enough to explain the difference.

What version of ParaView are you using? Are you a binary downloaded from 
paraview.orghttp://paraview.org or did you build your own?

-Ken

From: 庞庆源 pangqingyuan1...@gmail.commailto:pangqingyuan1...@gmail.com
Date: Tuesday, September 24, 2013 10:29 PM
To: Kenneth Moreland kmo...@sandia.govmailto:kmo...@sandia.gov
Subject: [EXTERNAL] Re: [Paraview] Delaunay 3D filter too slow

in fact,I have only 16020 points for test.My cpu is AMD Athlon(tm) II P320 
Dual-Core Processor with 2.1GHz.How long will it take in this case if I use one 
cpu to calculate?I have wait for more than 10 minutes before stopping it.


2013/9/24 Moreland, Kenneth kmo...@sandia.govmailto:kmo...@sandia.gov
Your options are probably either to wait or do something else. Delaunay 
triangulation is a pretty heavyweight operation and in general it is not 
trivial to impose a topology on a collection of points.

You might rethink whether you really need to create a solid sphere in the first 
place. I'm guessing you have at least around 100,000 points (or else Delaunay 
probably would not be that slow). If you just render these points as a cloud of 
points, you should get enough occlusion for it to look pretty much like a 
sphere.

-Ken

From: 庞庆源 pangqingyuan1...@gmail.commailto:pangqingyuan1...@gmail.com
Date: Tuesday, September 24, 2013 5:01 AM
To: paraview paraview@paraview.orgmailto:paraview@paraview.org
Subject: [EXTERNAL] [Paraview] Delaunay 3D filter too slow

I have a lot of points taking sample from a solid sphere.So I want to use 
Delaunay 3D filter to render the shpere with known scalars of the points.But it 
took me so much time.What should I do?

--
庞庆源mailto:pangqingyuan1...@gmail.com



--
庞庆源mailto:pangqingyuan1...@gmail.com



--
庞庆源mailto:pangqingyuan1...@gmail.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects 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] My own filter as part of pipeline for coprocessing raises name not defined error

2013-09-26 Thread David E DeMarle
Utkarsh pointed out that you still need to follow
http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Plugins_in_Static_Applications
when the plugin is external to ParaView. If you put your plugin inside
ParaView/Plugins, then it is done automatically.

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


On Thu, Sep 26, 2013 at 12:23 PM, David E DeMarle
dave.dema...@kitware.comwrote:

 I think that information is out of date. I believe that is done
 automatically now.

 Otherwise Andy is right. Putting the filter inside a plugin a good way to
 go. The plugin infrastructure will make it so that when you provide the XML
 that describes your vtk class, ParaView's build system will automatically
 wrap it into a proxy and python class so that ParaView will be able to use
 it.

 Also, I recommend trying it on a local static build first. That way the
 build time will be less and development will be quicker. Once you can load
 you plugin locally, then you should only have to compile on titan once.


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


 On Wed, Sep 25, 2013 at 10:34 PM, Andy Bauer andy.ba...@kitware.comwrote:

 Did you use a plugin to add in your custom filter when creating the
 Python co-processing script? I'm not sure how plugins are loaded for
 static builds but you may want to look at
 http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Plugins_in_Static_Applications.
 If that doesn't work, we'll have to figure out some other way to do it.

 Andy






 On Wed, Sep 25, 2013 at 9:16 PM, Hong Yi hon...@renci.org wrote:

  Hello,

 I set up a pipeline that used a custom filter I developed and exported
 it as a python script for coprocessing. I have made sure the static library
 for my custom filter is built and available in paraview-build/lib
 directory, and I have also linked this custom filter static library along
 with Catalyst libs to the simulation code for coprocessing. However, when I
 run the simulation linked with ParaView coprocessing for in-situ
 visualization, I got NameError: name 'MyCustomizedFilterName' is not
 defined error when the line of my customized filter in my python
 coprocessing script is read in for pipeline coprocessing. What should I do
 to get my custom filter wrapped in python so that it can be recognized and
 used as part of the python pipeline script for coprocessing? Any advice and
 suggestions are very much appreciated.

 Thanks,

 Hong



 ___
 Powered by www.kitware.com

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


Re: [Paraview] quadratic elements (hex20 and tetra10)

2013-09-26 Thread Berk Geveci
ParaView supports both. See http://www.vtk.org/VTK/img/file-formats.pdf

The file format that you are using may not support it however.

-berk


On Wed, Sep 25, 2013 at 11:54 AM, Hsieh, Kuo T k.hs...@cem.utexas.eduwrote:

  Currently I am using paraview version 3.98.1 on window environment and
 use ensight gold format for import data.  It seems to me that the paraview
 doesn’t support quadratic elements nor tetrahedral elements.  Is it true?
 Thanks,

 Kuota

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects 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] Paraview Programmable Source 3D Text

2013-09-26 Thread Utkarsh Ayachit
Alas, that's not easy to do, if at all possible, with Python source.


On Thu, Sep 26, 2013 at 5:48 AM, Willi Karel w...@ipf.tuwien.ac.at wrote:

 Dear Utkarsh,

 would it be possible to synchronize the transform of the rendered texts
 to the transform of the camera, such that the planes in which the texts
 lie stay normal to the viewing direction?
 I'm aware of vtkFollower, but I'm not sure if it is applicable / how to
 make use of it in the context of ParaView / Programmable Source, as it
 derives from vtkActor.

 Many thanks!
 Willi.

 On 25.09.2013 22:50, Willi Karel wrote:
  Dear Utkarsh,
  that works nice, thanks a lot!
  Willi.
 
  On 25.09.2013 15:25, Utkarsh Ayachit wrote:
  Willi,
 
  You can still use the programmable source for 3D text. With
  vtkPolyData as the chosen Output DataSet Type, you can use the
  attached script as the Script.
 
 
 
 
 
 
 
 
 
  On Wed, Sep 25, 2013 at 6:11 AM, Willi Karel w...@ipf.tuwien.ac.at
  mailto:w...@ipf.tuwien.ac.at wrote:
 
  I'd like to insert various text strings programmatically into the
 scene
  at various 3D locations in world coordinates. To me, (Python)
  Programmable Source seems to be the appropriate tool for that
 purpose
  (which I successfully use to insert geometries into the scene). Is
 that
  possible using Programmable Source? Otherwise, is there any other
  method to do so?
 
  I am aware of Sources - 3D Text,
  but that means a lot of manual, repetitive work.
 
  Many thanks!
  Willi.
  --
  _ _ _  Technische Universität
 Wien
 DI Wilfried Karel   /// ___/// Dept. of Geodesy 
 Geoinform.
wilfried.karel@ // __ / /__ / // / Research Groups
 Photogrammetry
   geo.tuwien.ac.at http://geo.tuwien.ac.at//__/// /__ / // /
   Remote Sensing
  +43 1 58801 12244 tel:%2B43%201%2058801%2012244
   ////// Gusshausstr. 27-29, A-1040 Wien
  ___
  Powered by www.kitware.com http://www.kitware.com
 
  Visit other Kitware open-source projects 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
 
 
 

 --
 _ _ _  Technische Universität Wien
DI Wilfried Karel   /// ___/// Dept. of Geodesy  Geoinform.
   wilfried.karel@ // __ / /__ / // / Research Groups Photogrammetry
  geo.tuwien.ac.at//__/// /__ / // /Remote Sensing
 +43 1 58801 12244   ////// Gusshausstr. 27-29, A-1040 Wien

___
Powered by www.kitware.com

Visit other Kitware open-source projects 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] My own filter as part of pipeline for coprocessing raises name not defined error

2013-09-26 Thread Hong Yi
Thanks! I did put my plugin inside ParaView/Plugins in the same way as other 
Plugins, and enabled it when building ParaView superbuild on Titan. I can see 
the static lib for the Plugin is built in paraview-build/lib directory. And 
yes, I did use a plugin and load it via Tools|Manage Plugins when creating 
python coprocessing script. However, it looks like my plugin is not loaded 
automatically even though it is built by ParaView superbuild. Perhaps I should 
still follow the link 
http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Plugins_in_Static_Applications
 but I am having some difficulty in following the info in the link to do what 
is suggested. Specifically, to what file should I insert two macros? It does 
not sound right to insert them into my custom plugin cxx file. Where should I 
add two macros to get my custom filter plugin to be loaded and wrapper into 
python module? I see LoadPlugin function defined in simple.py to call 
servermanager.LoadPlugin(filename, remote) which I am thinking perhaps should 
be called to load my plugin before my python coprocessing script is executed, 
but not sure whether this is the case or not.

Thanks for any suggestions!

Hong


From: David E DeMarle [mailto:dave.dema...@kitware.com]
Sent: Thursday, September 26, 2013 1:28 PM
To: Andy Bauer
Cc: Hong Yi; paraview@paraview.org
Subject: Re: [Paraview] My own filter as part of pipeline for coprocessing 
raises name not defined error

Utkarsh pointed out that you still need to follow 
http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Plugins_in_Static_Applications
when the plugin is external to ParaView. If you put your plugin inside 
ParaView/Plugins, then it is done automatically.

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

On Thu, Sep 26, 2013 at 12:23 PM, David E DeMarle 
dave.dema...@kitware.commailto:dave.dema...@kitware.com wrote:
I think that information is out of date. I believe that is done automatically 
now.

Otherwise Andy is right. Putting the filter inside a plugin a good way to go. 
The plugin infrastructure will make it so that when you provide the XML that 
describes your vtk class, ParaView's build system will automatically wrap it 
into a proxy and python class so that ParaView will be able to use it.

Also, I recommend trying it on a local static build first. That way the build 
time will be less and development will be quicker. Once you can load you plugin 
locally, then you should only have to compile on titan once.


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

On Wed, Sep 25, 2013 at 10:34 PM, Andy Bauer 
andy.ba...@kitware.commailto:andy.ba...@kitware.com wrote:
Did you use a plugin to add in your custom filter when creating the Python 
co-processing script? I'm not sure how plugins are loaded for static builds 
but you may want to look at 
http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Plugins_in_Static_Applications.
 If that doesn't work, we'll have to figure out some other way to do it.
Andy




On Wed, Sep 25, 2013 at 9:16 PM, Hong Yi 
hon...@renci.orgmailto:hon...@renci.org wrote:
Hello,

I set up a pipeline that used a custom filter I developed and exported it as a 
python script for coprocessing. I have made sure the static library for my 
custom filter is built and available in paraview-build/lib directory, and I 
have also linked this custom filter static library along with Catalyst libs to 
the simulation code for coprocessing. However, when I run the simulation linked 
with ParaView coprocessing for in-situ visualization, I got NameError: name 
'MyCustomizedFilterName' is not defined error when the line of my customized 
filter in my python coprocessing script is read in for pipeline coprocessing. 
What should I do to get my custom filter wrapped in python so that it can be 
recognized and used as part of the python pipeline script for coprocessing? Any 
advice and suggestions are very much appreciated.

Thanks,

Hong


___
Powered by www.kitware.comhttp://www.kitware.com

Visit other Kitware open-source projects 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.comhttp://www.kitware.com

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

[Paraview] xml file parsing

2013-09-26 Thread Mike Johnson
Hi, I'm a hopeless programing novice.  I have been provided some numerical
data in a .xml file and don't know the correct reader to use.  Trial and
error has not been successful.  The data is in a lattice framework with
axis and vectors.

Any advice?

Mike Johnson, USAF
___
Powered by www.kitware.com

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