Re: [Paraview] Creating Append Attributes filter using python
Thanks for the prompt answer, Eric. That seems to work nicely. tpk From: Eric E. Monson emon...@cs.duke.edu Subject: Re: [Paraview] Creating Append Attributes filter using python To: tpk stream.ga...@yahoo.co.uk Cc: paraview@paraview.org Date: Wednesday, 25 March, 2009, 5:41 PM Hello, It looks like you can just give the AppendAttributes filter a list of inputs: ==from paraview import servermanager servermanager.Connect() sph1 = servermanager.sources.SphereSource() elev = servermanager.filters.ElevationFilter(Input=sph1) sph2 = servermanager.sources.SphereSource() ids = servermanager.filters.GenerateIdScalars(Input=sph2) app = servermanager.filters.AppendAttributes()app.Input = [elev,ids] view = servermanager.CreateRenderView() rep = servermanager.CreateRepresentation(app, view) rep.ColorAttributeType = 0 # point data rep.ColorArrayName = 'Ids' # color by Ids view.ResetCamera()view.StillRender() == -Eric --Eric E MonsonDuke Visualization Technology Group On Mar 25, 2009, at 8:19 AM, tpk wrote: Hi all, Could anyone advise me how to create an Append Attributes filter using pvpython? Paraview documentation refers to Group Parts filter which, I believe, is obsolete in version 3.4.0. My purpose is to merge multiple scalar/vector data sets sharing the same geometry. The data sets are loaded using PVDReader. Thanks, tpk ___ 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
[Paraview] [xdmf] read in H5T_COMPOUND
Hello, I try to read in hdf5 files with the xdmf reader. The read in of the mesh works. But I have some problems with the attributes. I have the following two hdf datasets: DATASET Displacements { DATATYPE H5T_COMPOUND { H5T_STD_I32LE Node; H5T_ARRAY { [3] H5T_IEEE_F64LE } Ux Uy Uz; } DATASPACE SIMPLE { ( 2609611, 1 ) / ( 2609611, 1 ) } DATASET Stress { DATATYPE H5T_IEEE_F64LEH5T_COMPOUND DATASPACE SIMPLE { ( 1633014, 7 ) / ( 1633014, 7 ) } How do I read in the three floats from the Displacements. The problem is, that the floats are in a H5T_COMPOUND. From the second data set I want read in only the 7th column. I'm not sure, if I do it in the right way. Attribute Name=Stress AttributeType=Scalar Center=Cell DataItem ItemType=HyperSlab Dimensions=1633014 1 Type=HyperSlab DataItem Dimensions=3 2 Format=XML 0 6 1 1 1633014 1 /DataItem DataItem Dimensions=1633014 7 Format=HDF NumberType=Float Precision=8 cube.h5:/Stress /DataItem /DataItem /Attribute Thanks for your help Regards Cyril Flaig ___ 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] pvpython, pvbatch error loading module?
Jean, I've just committed a fix for this issue. Let me know if it does not work. The new charting representations/views have Qt dependencies. Those needed to be disabled from the server manager XML as well when Qt support was not enabled. /cvsroot/ParaView3/ParaView3/vtkPVConfig.h.in,v -- vtkPVConfig.h.in new revision: 1.5; previous revision: 1.4 /cvsroot/ParaView3/ParaView3/Servers/ServerManager/Resources/rendering.xml,v -- Servers/ServerManager/Resources/rendering.xml new revision: 1.336; previous revision: 1.335 Utkarsh On Thu, Mar 26, 2009 at 6:52 AM, Jean Favre jfa...@cscs.ch wrote: CVS users, I have PV cvs compiled in full (i.e. PARAVIEW_BUILD_QT_GUI = ON) on one cluster. No problem anywhere. if I do another compilation (same cluster, same tools, same compiler) but with PARAVIEW_BUILD_QT_GUI = OFF, I get these errors. Is the representations stuff somehow missing if we compile without GUI?: ./bin/pvpython Python 2.3.4 (#1, May 26 2007, 19:27:46) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2 Type help, copyright, credits or license for more information. from paraview.simple import * Traceback (most recent call last): File stdin, line 1, in ? File /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/simple.py, line 19, in ? import servermanager File /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py, line 2816, in ? _createModules() File /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py, line 2394, in _createModules rendering = createModule('representations') File /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py, line 2435, in createModule iter = PropertyIterator(proto) File /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py, line 1595, in __init__ self.SMIterator = aProxy.NewPropertyIterator() AttributeError: 'NoneType' object has no attribute 'NewPropertyIterator' -- Jean -- Swiss National Supercomputing Center ___ 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
[Paraview] Two follow-up questions on readers
Hello, I've got two more questions on reader plugins in ParaView. 1) How do I populate GUI-Elements with data read from a file. The ParaView book mentions InformationHelpers but does not explain their usage. 2) Can I use custom files - which I provide a reader for - in pvd-Collection-type XML-files. If yes, how do I do that, the naive idea of simply supplying the filename ends in a SEG-Fault. If anyone could point me in the right direction or provide an example? Thorsten ___ 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] Select Points on and nearest point ...
Hi Stefan, Try this: - load dataset - apply probe location - create spreadsheet - go to settings and turn on 'Auto Apply' - change the probe location using 'p' Does that work? What is the performance like? -berk On Fri, Mar 20, 2009 at 2:00 AM, Stefan Melber stefan.mel...@dlr.de wrote: Hi David, tried this way: theoretically it works, but its a bit laborious: -) Activate the filter -) p + mouse -) Apply -) Spreadsheet + select source And: i found no possibility to select a new point with the current filter - so i have to start a new one. Further on, i clicking apply i have an update of PointerPolyDataMapper, which takes a (short) time. So overall, it would be nice if i can use it that way: -) Activate new Probe-Filter + Spreadsheet -) p + Mouse - every time clicking, automatic update of the spreadsheet Best regards, Stefan Select points find vertices, select cells find cells, I believe you are trying to find data at a specific location within a cell, which is not necessarily on a vertex. Try the probe location filter. Activate it, then press p with the mouse on the point you are interested in, then click accept. This filter does not need additional render passes like selection does, so it should be fast. If you need to process the data you've identified further, you can manually make a location type selection out of the selected coordinate (there may be automatic ways to convert that I am not aware of) in the selection view. On Thu, Mar 19, 2009 at 1:46 AM, Stefan Melber stefan.mel...@dlr.de wrote: Hi Berk, using the button select points on i can drag up a rectangle to select some. But sometimes it would be nice by clicking on e.g. a surface to find the nearest point around - in fieldview for example i have to press to cntl-key to do this. Using the point selection mode, you should be able to click to select 1 point. Doesn't this work? This works if the point is nearby. If i click e.g. in the middle of a triangle of medium size (unstructured mesh) it does not select a point. The problem is: exploring a solution i am not interested in the points but in the flow field and so normally i do not show the points but a e.g. a cut with a scalar. There i would like to get information about this scalar ... And: every time selection points the update of the graphic window takes some time. Is there a speed up? How slow? How big is the geometry that is being rendered? The case has about 20e6 points and there is only a cut visible. Rendering the clicked point it takes about 5 secs ... Regards, Stefan -berk ___ 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] Multiple views with different timesteps
Renato, Currently there's no way to plot different timesteps in different views directly. An round-about way is to use the Temporal Shift Scale filter to shift the time for showing data in the second view such that the same global time maps to different timesteps in different views. Utkarsh 2009/3/26 Renato Elias rnel...@gmail.com: Is there anyway to plot different time steps when using multiple views? I tried to load the dataset twice assigning each dataset loaded to the different views but I think that ParaView uses the same time step for all of its views. Regards Renato. ___ 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
[Paraview] How to add scalar data in a custom reader?
Hi, everyone! I am writing a custom reader to read my own file which VTK does not support! The output type of my file is vtkImageData, and each point has 3~5 type of scalar. Now I have written the reader like below, I just do not know how to add the scalar value to the output object! Please check my code and point what's wrong with my code! 1. set the extent using WHOLE_EXTENT in RequestInformation() like below: outInfo-Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), 0,dim[0]-1,0,dim[1]-1,0,dim[2]-1); 2.set the origin and the extent and spacing in RequestData() like below: vtkInformation *outInfo = outputVector-GetInformationObject(0); vtkImageData *output = vtkImageData::GetDateFormat(outInfo); int *extent = output-GetUpdateExtent(); output-SetExtent(extent); output-SetOrigin(origin); output-SetSpacing(ar); And now, I want to add some scalar data to the output object. I wrote my code like this: vtkIntArray *castkey = vtkIntArray::New(); castkey-SetName(casting_type); for (int i=0; idim[0]; i++) { for (int j=0;jdim[1]; j++) { for (int k=0; kdim[2]; k++) { int idx = i*dim[2]*dim[1]+j*dim[2]+k; castkey-InsertNextValue(sgnfile.GetData()[idx]); } } } output-AddArray(castkey); note:GetData() returns the scalar value of the point idx. So I was wonder what I did is right or wrong ! Please give me some suggestion! Thank you so much! -- shenyan...@gmail.com Mobile Phone:13476177952 Tel: 027-87558144 ___ 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] using netcdf in paraview
Martha Build paraview as usual, ignore all the guff about PARAVIEW_EXTRA_EXTERNAL_MODULES, remove this from your paraview build, remove any CSCS addons you might have specified from paraview 'core' build. Then build a new new project which will be plugins, using the cmakelists from the root of CSCS stuff. Enter the paraview build dir, enable CSCSCommon and netcdf, (netcdf will pick up common when it needs it - fingers crossed). then try making it all. Of course it won't actually work, but that's what I've been trying to say all week! When it fails, ask Burlen for his netCDF adaptor stuff from visit and we can all get on with other stuff... JB John, I must be missing something. I did as you specified below, then went to the ParaView directory, Ran ccmake several times, enabling the correct options per the CSCS web site(PARAVIEW_EXTRA_EXTERNAL_MODULES, PARAVIEW_USE_CSCSNetCDF, and the source directory variable) , and ran make, but again, the same include file was not located, even though I see it is there in the vtkCSCS directory tree. Was I supposed to run ccmake under the vtkCSCS trunk before running ccmake for ParaView? I did try to do this, Only to get an error concering "Policy" and the directions for resolving the error were unclear. I am a novice concerning ccmake, as the first time I have used it was last week. Thanks. Martha Tonkin -Original Message- From: John Biddiscombe [mailto:biddi...@cscs.ch] Sent: Wednesday, March 25, 2009 10:21 AM To: Tonkin, Martha E (IS) Cc: Carbonari, Katie (IS); Paraview Mailing List Subject: Re: [Paraview] using netcdf in paraview Martha (+put back on paraview list for reference and google) My Bad. One of the changes I made to the netCDF code was to handle series of files (one file per process, or one per timestep) using another class in vtkCSCSCommon Best thing is check out all of it from here... https://svn.cscs.ch/vtkContrib/trunk/vtkCSCS/ and use the cmakelists in the root pv3-plugins folder. you need CSCSCommomn and netCDF enabled. Fix the netCDF reader and send me the patches please :) JB Katie, I was able to check out vtkNetCDF from the SVN server; I had tried before using the web site's instructions, but it wouldn't work, I suppose because of our firewall; however the "https" in the URL that Mr. Biddiscome gave us did make a difference. However, when I attempted to build ParaView 3.4 with that vtkNetCDF module, I got an error once again, this time when for vtkNetCDFReader.cxx; what is missing is FileSeriesFinder.h. I cannot find that include file anywhere, in ParaView3.4, ParaView3.3, etc, so I don't know if it was inadvertently left out of the vtkNetCDF distribution or what. Martha -Original Message- From: Carbonari, Katie (IS) Sent: Tuesday, March 24, 2009 5:15 PM To: Tonkin, Martha E (IS) Subject: FW: [Paraview] using netcdf in paraview -Original Message- From: John Biddiscombe [mailto:biddi...@cscs.ch] Sent: Tue 3/24/2009 5:09 PM To: Berk Geveci Cc: Carbonari, Katie (IS); paraview@paraview.org Subject: Re: [Paraview] using netcdf in paraview Katie Just looking again at the error messages makes me realize thet you're using a very old vtkCSCSnetCDF the version in here https://svn.cscs.ch/vtkContrib/trunk/vtkCSCS/vtkNetCDF/ is much more recent and will at least compile without errors. It ewas intended for meteo data (ocean/atmosphere) and so you should get something out of it but the changes I made a few months back will have broken the core load of data depending on which convention you are using. My intention was to create subclasses for each supported convention, rather than try to support all of them with aton of options - which is what the current reader does. If you're familiar with vtk code, you'll son work out how to fix it. I'll take a look at again it in a few weeks. JB Hmmm. It sounds like there is version mismatch between ParaView and the plugin. We deprecated those classes not long ago. Are you using cvs ParaView? -berk 2009/3/23 Carbonari, Katie (IS) katie.carbon...@ngc.com mailto:katie.carbon...@ngc.com : Hi there. I'm trying to read netcdf data into paraview, but am having lots of issues. I was following these directions (from here: http://www.cscs.ch/index.php?option=com_contenttask=viewid=96Itemid =1 32): Please build ParaView using the CMake advanced option PARAVIEW_EXTRA_EXTERNAL_MODULES set to CSCSNetCDF rerun configure and set PARAVIEW_USE_CSCSNetCDF to ON, then rerun configure and enter the name of the directory where the source has been extracted. Build paraview and the netCDF reader should be embedded. Building as a vtk module is supported, documentation will be provided as soon as possible. (Some
Re: [Paraview] using netcdf in paraview
I will commit the work next week, along with a Wiki describing how to build/configure the dependencies. For planning purposes plan on late next week. John Biddiscombe wrote: Martha Build paraview as usual, ignore all the guff about PARAVIEW_EXTRA_EXTERNAL_MODULES, remove this from your paraview build, remove any CSCS addons you might have specified from paraview 'core' build. Then build a new new project which will be plugins, using the cmakelists from the root of CSCS stuff. Enter the paraview build dir, enable CSCSCommon and netcdf, (netcdf will pick up common when it needs it - fingers crossed). then try making it all. Of course it won't actually work, but that's what I've been trying to say all week! When it fails, ask Burlen for his netCDF adaptor stuff from visit and we can all get on with other stuff... JB John, I must be missing something. I did as you specified below, then went to the ParaView directory, Ran ccmake several times, enabling the correct options per the CSCS web site(PARAVIEW_EXTRA_EXTERNAL_MODULES, PARAVIEW_USE_CSCSNetCDF, and the source directory variable) , and ran make, but again, the same include file was not located, even though I see it is there in the vtkCSCS directory tree. Was I supposed to run ccmake under the vtkCSCS trunk before running ccmake for ParaView? I did try to do this, Only to get an error concering Policy and the directions for resolving the error were unclear. I am a novice concerning ccmake, as the first time I have used it was last week. Thanks. Martha Tonkin -Original Message- From: John Biddiscombe [mailto:biddi...@cscs.ch] Sent: Wednesday, March 25, 2009 10:21 AM To: Tonkin, Martha E (IS) Cc: Carbonari, Katie (IS); Paraview Mailing List Subject: Re: [Paraview] using netcdf in paraview Martha (+put back on paraview list for reference and google) My Bad. One of the changes I made to the netCDF code was to handle series of files (one file per process, or one per timestep) using another class in vtkCSCSCommon Best thing is check out all of it from here... https://svn.cscs.ch/vtkContrib/trunk/vtkCSCS/ and use the cmakelists in the root pv3-plugins folder. you need CSCSCommomn and netCDF enabled. Fix the netCDF reader and send me the patches please :) JB Katie, I was able to check out vtkNetCDF from the SVN server; I had tried before using the web site's instructions, but it wouldn't work, I suppose because of our firewall; however the https in the URL that Mr. Biddiscome gave us did make a difference. However, when I attempted to build ParaView 3.4 with that vtkNetCDF module, I got an error once again, this time when for vtkNetCDFReader.cxx; what is missing is FileSeriesFinder.h. I cannot find that include file anywhere, in ParaView3.4, ParaView3.3, etc, so I don't know if it was inadvertently left out of the vtkNetCDF distribution or what. Martha -Original Message- From: Carbonari, Katie (IS) Sent: Tuesday, March 24, 2009 5:15 PM To: Tonkin, Martha E (IS) Subject: FW: [Paraview] using netcdf in paraview -Original Message- From: John Biddiscombe [mailto:biddi...@cscs.ch] Sent: Tue 3/24/2009 5:09 PM To: Berk Geveci Cc: Carbonari, Katie (IS); paraview@paraview.org Subject: Re: [Paraview] using netcdf in paraview Katie Just looking again at the error messages makes me realize thet you're using a very old vtkCSCSnetCDF the version in here https://svn.cscs.ch/vtkContrib/trunk/vtkCSCS/vtkNetCDF/ is much more recent and will at least compile without errors. It ewas intended for meteo data (ocean/atmosphere) and so you should get something out of it but the changes I made a few months back will have broken the core load of data depending on which convention you are using. My intention was to create subclasses for each supported convention, rather than try to support all of them with aton of options - which is what the current reader does. If you're familiar with vtk code, you'll son work out how to fix it. I'll take a look at again it in a few weeks. JB Hmmm. It sounds like there is version mismatch between ParaView and the plugin. We deprecated those classes not long ago. Are you using cvs ParaView? -berk 2009/3/23 Carbonari, Katie (IS) katie.carbon...@ngc.com mailto:katie.carbon...@ngc.com : Hi there. I'm trying to read netcdf data into paraview, but am having lots of issues. I was following these directions (from here: http://www.cscs.ch/index.php?option=com_contenttask=viewid=96Itemid =1 32): Please build ParaView using the CMake advanced option PARAVIEW_EXTRA_EXTERNAL_MODULES set to CSCSNetCDF rerun configure and set PARAVIEW_USE_CSCSNetCDF to ON, then rerun configure and enter the name of the
Re: [Paraview] Question about writing custom reader for paraview
You can add more fields by simply adding them to the point data of the output data object. output-GetPointData()-AddArray(pressure); Make sure that you set a name for the arrays (using the SetName method of vtkDataArray). That is how ParaView/VTK differentiates the fields. -Ken On 3/23/09 12:40 AM, shenyanwen shenyan...@gmail.com wrote: Hi, thanks so much for your help! I have changed my code just like what you said. Now, I should add more than one type scalar like pressure, vol1, vol2, vol3 and so on. So, how can I add these scalars into my output Data? I have already read these scalars into some variables like m_pressure[numPts], m_vol1[numPts],m_vol[numPts] and m_vol3[numPts], and how can I add these variables into my output Data? Thanks so much! --Seven 2009/3/20 Moreland, Kenneth kmo...@sandia.gov What you are using is not quite right. First, it sounds like you really want to create a vtkImageData. This data holds a 1D, 2D, or 3D grid of points with origin and uniform spacing on each axis. Thus, you would inherit from vtkImageAlgorithm and cast your output to vtkImageData. Second, the only thing you directly set in the output information is the WHOLE_EXTENT(). You do this in RequestInformation so that the downstream pipeline can make decisions about what to load before the data is actually loaded. So, the first line you have below is correct, assuming you put it in RequestInformation. Now, you don't set UPDATE_EXTENT, you get it. Someone downstream will set this the region of data in which it wants you to load. You don't actually have to get this directly from the output information; you can get it from the output object. So in RequestData, you would have code like this: vtkImageData *output = vtkImageData::GetData(outInfo); int *extent = output-GetUpdateExtent(); Now you can set the actual extent, spacing, origin, and data itself directly into the data object. output-SetExtent(extent); output-SetOrigin(origin); output-SetSpacing(ar); You can then set the data either by allocating and getting scalar data through the vtkImageData or by adding data to the image data's point data structure (retrieved with GetPointData()). More details are in The VTK User's Guide. -Ken On 3/19/09 1:08 AM, shenyanwen shenyan...@gmail.com http://shenyan...@gmail.com wrote: Hi, I am writing a custom reader for paraview to read my own data file which paraview hasn't have. I have known that the most important method is RequestInformation and RequestData, and I just want to write a reader that can output the data type of StructuredPoints with Scalar and some vectors.I have already use : outInfo-Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), 0,dim[1]-1,0,dim[1]-1,0,dim[2]-1); outInfo-Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), 0,dim[1]-1,0,dim[1]-1,0,dim[2]-1); and:outInfo-Set(vtkDataObject::SPACING(), ar, 3); outInfo-Set(vtkDataObject::ORIGIN(), origin, 3); and how can I read the scalar data just like the file-format describes: SCALAR dataName dataType numComp LOOKUP_TABLE tableName s0 s1 s2 ... s(n-1) which method or function can I use to read the s0,s1,...,s(n-1) into the variable and set to the outInfo. Thanks so much! Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov http://kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel http://www.cs.unm.edu/%7Ekmorel Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ 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] material properities
I think this is one of the features that never got re-implemented after the major overhaul for the 3.0 release. There is not a lot of call for this feature, so it has been a low priority. http://www.paraview.org/Bug/view.php?id=4885 -Ken On 3/23/09 9:21 AM, N O twentypoundtr...@yahoo.com wrote: I'm trying to change the diffusive and specular properties of the material in Paraview (3.4.0). I have one of the .xml files from the wiki (SmoothPlastic for example), but when I am unable to browse for the material in the display-style-Material section of the object inspector. Is there another way to apply material properties? Thanks, Nate Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ 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] Weird cellNormals
Hey David, You can do it if you apply the Generate Surface Normals filter. That gives you point data Normals that can be glyphed. Maybe someone else that is more well versed in VTK data structures can chime in on why cellNormals shows up in the color combo-box but is not really considered to be a real point or cell data attribute (i.e. doesn't show up in the Information pane as a Data Array). -Eric -- Eric E Monson Duke Visualization Technology Group On Mar 26, 2009, at 11:35 AM, David Doria wrote: With this file ( http://engineeringnotes.net/BunnyBlend.vtp), I can color the cells by cellNormals, but I cannot apply glyph arrows using cellNormals. Why is that / how can I change it so that I can glyph the normals? Thanks, David ___ 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
[Paraview] Thresholding a RectilinearGrid
folks, hopefully i missed something that's already out there; but this has me scraatching my head. what i'm doing is simple enough. took a Rectilinear Grid (aaa.vtr) and did a Threshold using one of the cell arrays. then since i'm gonna use this later i save it out as a vtu. when i try to read this file back into pv i get the following error: ERROR: In /viz/home/stephens/Kitware/ParaView/ParaView_cvs_350/ParaView3/VTK/IO/vtkXMLU nstructuredDataReader.cxx, line 653 vtkXMLUnstructuredGridReader (0x1a0dd20): Cannot read cell connectivity from Cells in piece 0 because the connectivity array is not long enough. ERROR: In /viz/home/stephens/Kitware/ParaView/ParaView_cvs_350/ParaView3/VTK/IO/vtkXMLU nstructuredDataReader.cxx, line 653 vtkXMLUnstructuredGridReader (0x2274930): Cannot read cell connectivity from Cells in piece 0 because the connectivity array is not long enough. using a pv checked out a few weeks ago. i replicated the process (read, threshold, write) in a vtkpython script using vtk checked out yesterday (v5.5), te outpt vtu file still has the same problem. any one ever see this before? -m ___ 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] The errer about building plugin
Canot open file: D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml This looks like the CMakeLists.txt is wrong such that the ADD_PARAVIEW_PLUGIN Macro thinks that this is all one long filename: error is here somewhere-- SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml GUI_RESOURCE_FILES ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml -- My guess is that / is confusing cmake on windows. Try using \ instead of using quotes. SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml GUI_RESOURCE_FILES ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml David E DeMarle Kitware, Inc. RD Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 2009/3/24 binbin0406 binbin0...@163.com: Canot open file: D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml ___ 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] Weird cellNormals
I believe the issue is that the glyph by cell data because the glyphs are placed on the points rather than the cells. Thus, all cell data is removed from the vectors list. Try running the cell centers filter and then apply the glyphs to that. Alternatively you can run the point to cell data filter, but that will modify the data. -Ken On 3/26/09 1:06 PM, Eric E. Monson emon...@cs.duke.edu wrote: Hey David, You can do it if you apply the Generate Surface Normals filter. That gives you point data Normals that can be glyphed. Maybe someone else that is more well versed in VTK data structures can chime in on why cellNormals shows up in the color combo-box but is not really considered to be a real point or cell data attribute (i.e. doesn't show up in the Information pane as a Data Array). -Eric -- Eric E Monson Duke Visualization Technology Group On Mar 26, 2009, at 11:35 AM, David Doria wrote: With this file ( http://engineeringnotes.net/BunnyBlend.vtp), I can color the cells by cellNormals, but I cannot apply glyph arrows using cellNormals. Why is that / how can I change it so that I can glyph the normals? Thanks, David ___ 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 Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ 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] vtkXMLPRectilinearGridWriter
Hi I have a vtkRectilinearGrid - I would like to use the vtkXMLPRectilinearGridWriter to write the output of data into several pieces. In order to do this, I do the following writer-SetInput(grid); writer-SetNumberOfPieces(5); writer-Write(); What this seems to be doing is writing a myfile.pvtr correctly and defines extents of 5 files and even writes out the names of all pieces, for example myfile_0.vtr ... myfile_4.vtr. Howerver, there is only one vtr file actually gets written out (myfile_0.vtr) which contains the other 4 files as piece extents within this file, rather than in 5 separate files as specified in the .pvtr file. Do I need to use MPI to write the 5 files? or am I doing this incorrectly? Regards, ___ 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] Thresholding a RectilinearGrid
I have not. Sounds like a bug. Can you provide a dataset to reproduce it? On Thu, Mar 26, 2009 at 3:09 PM, Stephens, Michael M ERDC-ITL-MS michael.m.steph...@usace.army.mil wrote: folks, hopefully i missed something that's already out there; but this has me scraatching my head. what i'm doing is simple enough. took a Rectilinear Grid (aaa.vtr) and did a Threshold using one of the cell arrays. then since i'm gonna use this later i save it out as a vtu. when i try to read this file back into pv i get the following error: ERROR: In /viz/home/stephens/Kitware/ParaView/ParaView_cvs_350/ParaView3/VTK/IO/vtkXMLU nstructuredDataReader.cxx, line 653 vtkXMLUnstructuredGridReader (0x1a0dd20): Cannot read cell connectivity from Cells in piece 0 because the connectivity array is not long enough. ERROR: In /viz/home/stephens/Kitware/ParaView/ParaView_cvs_350/ParaView3/VTK/IO/vtkXMLU nstructuredDataReader.cxx, line 653 vtkXMLUnstructuredGridReader (0x2274930): Cannot read cell connectivity from Cells in piece 0 because the connectivity array is not long enough. using a pv checked out a few weeks ago. i replicated the process (read, threshold, write) in a vtkpython script using vtk checked out yesterday (v5.5), te outpt vtu file still has the same problem. any one ever see this before? -m ___ 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] paraview as a mesh editor?
Hi, I was wondering whether there are any options that allow some interactive editing of mesh objects in paraview? Is this a capability that can be included in the existing pipeline structure or is it completely outside the design. My reason for thinking about paraview for this application is that the meshes represent objects in 3D images, and seeing the image while editing the mesh helps a lot. Paraview can display a mesh and the image together, which seems like a reasonable starting point. Any other suggestions? So far the tools with the right mesh manipulation facilities seem to be animation based (blender) or CAD oriented (meshlab). Thanks ___ 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] Mapper Plugin?
Hi everyone. I want to use a new mapper which isn't exist in Paraview. I saw the wiki page at http://www.paraview.org/Wiki/Plugin_HowTo;. It seems to me that adding a new mapper requires to add a new representation. Considering that adding a new representation to paraview is complex and still in progress, before I dig into it, I just wanna make sure if there is any other easier way to add a new mapper. Thanks. Biao ___ 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