[Paraview] reading MATLAB file

2017-10-10 Thread Heiland, Randy
Hello, I have some matlab files I’d like to get into PV. Initially, the data is quite simple: sphere centers, radii, color attribute (a few 100K spheres). In the past, I’ve manually converted the files into .vtk formats using Python w/ scipy to load/parse the .mat files. But I’d like to avoid

[Paraview] vtkCutter

2017-10-17 Thread Heiland, Randy
Is vtkCutter not directly accessible in PV (from the menus)? I’d like to do something similar to: https://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/VisualizationAlgorithms/Python/ClipCow.py

Re: [Paraview] simple Programmable Source

2017-10-12 Thread Heiland, Randy
ay as the color array in ParaView. > > - Cory > > On Wed, Oct 11, 2017 at 9:48 PM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > I create the following in the Pgmable Source in PV, but cannot figure out how > to color the resulting points or

[Paraview] simple Programmable Source

2017-10-11 Thread Heiland, Randy
I create the following in the Pgmable Source in PV, but cannot figure out how to color the resulting points or 3D glyphs using the scalar values. What am I missing? -Randy # Get a vtk.PolyData object for the output pdo = self.GetPolyDataOutput() # Create points num_pts = 3 newPts =

Re: [Paraview] reading MATLAB file

2017-10-11 Thread Heiland, Randy
certainly works; just asking) Thanks! > On Oct 11, 2017, at 1:24 PM, Berk Geveci <berk.gev...@kitware.com> wrote: > > Is there a Python API to read .mat files? What is the underlying structure? I > kind of remember them using HDF5 for some stuff... > > On Tue, Oct 10,

Re: [Paraview] vtkCutter

2017-10-18 Thread Heiland, Randy
Silly me. I see now that it’s just a matter of using multiple Clip filters, using planes with orthogonal normals, resulting in the desired boolean set of points. Still need to figure out how to cap the clipped glyphs though… > On Oct 17, 2017, at 3:55 PM, Heiland, Randy <heil...@iu.edu&

Re: [Paraview] vtkCutter

2017-10-17 Thread Heiland, Randy
thieu Westphal <mathieu.westp...@kitware.com> > wrote: > > Hello > > It is called Slice, and is available in the Filters and in the Common Filters > toolbar. > > Best, > > Mathieu Westphal > > On Tue, Oct 17, 2017 at 2:30 PM, Heiland, Randy <heil.

Re: [Paraview] installing additional Python modules

2017-12-18 Thread Heiland, Randy
simple… Comments very much welcome. -Randy [1] https://groups.google.com/a/continuum.io/forum/#!topic/conda/ozG_nTuQQYk On Dec 12, 2017, at 10:37 PM, Heiland, Randy <heil...@iu.edu<mailto:heil...@iu.edu>> wrote: Any good advice for installing additional 3rd party modules for pvpython?

[Paraview] installing additional Python modules

2017-12-12 Thread Heiland, Randy
Any good advice for installing additional 3rd party modules for pvpython? In a Programmable Source I’d written to read in MATLAB (.mat) data files, I was using the scipy module (scipy.io.loadmat). When I wrote that, I naively thought to myself - WOW, it sure was convenient that they included

Re: [Paraview] background color not saved in state

2017-12-05 Thread Heiland, Randy
n the issue tracker, the original > Mantis issue has been copied to GitLab: > https://gitlab.kitware.com/paraview/paraview/issues/8722 > > Thanks, > Cory > > On Tue, Dec 5, 2017 at 6:52 AM, Heiland, Randy <heil...@iu.edu> wrote: >> Is this the expected behavior?

Re: [Paraview] animation: files, pgmable source

2017-12-08 Thread Heiland, Randy
h Ayachit <utkarsh.ayac...@kitware.com> > wrote: > > Oops. I meant to say -- "I am a little confused here" :). > > On Fri, Dec 8, 2017 at 10:10 AM, Utkarsh Ayachit > <utkarsh.ayac...@kitware.com> wrote: >> Hmm, little confused here? Why not keep t

Re: [Paraview] animation: files, pgmable source

2017-12-07 Thread Heiland, Randy
gt; You can then mix in camera animations too. You can always use the > Python tracing in UI to figure out how to save images and/or animation > in the batch scripting environment. > > Hope that helps. > Utkarsh > > [i] > https://blog.kitware.com/defining-time-varying-so

[Paraview] animation: files, pgmable source

2017-12-06 Thread Heiland, Randy
I’m probably missing a basic concept and hoping someone can enlighten me. I have a pipeline with a Programmable Source that reads in a (non-VTK formatted) file, I process it and then I have filters in my pipeline that act on that data. I want to be able to feed multiple files to the pipeline,

[Paraview] background color not saved in state

2017-12-05 Thread Heiland, Randy
Is this the expected behavior? Related: https://www.paraview.org/Bug/bug_relationship_graph.php?bug_id=8722=relation thanks, Randy ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [Paraview] animation: files, pgmable source

2017-12-08 Thread Heiland, Randy
n using > pvpython to save out screenshots or animations based on command line > arguments. > > Which one are you aiming for? Or is it something else? > > Utkarsh > > > > On Fri, Dec 8, 2017 at 11:22 AM, Heiland, Randy <heil...@iu.edu> wrote: >> No, no,

Re: [Paraview] C++ client, PV server

2017-10-30 Thread Heiland, Randy
you will need to > build your client againt a builded ParaView. > However in the binaries you can find paraview executable wich is our main c++ > client and can be used with pvserver. > > Best regards, > > Mathieu Westphal > > On Mon, Oct 30, 2017 at 3:02 AM, Heiland

Re: [Paraview] OSPRay, scaled spheres

2017-10-25 Thread Heiland, Randy
le > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Wed, Oct 25, 2017 at 5:11 PM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > You lost me - in the Glyph

Re: [Paraview] OSPRay, scaled spheres

2017-10-25 Thread Heiland, Randy
pal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Wed, Oct 25, 2017 at 4:29 PM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > I only see the “OSPRay Use Scale Array” on the Properties for Glyph, n

[Paraview] multiple scalar fields

2017-10-25 Thread Heiland, Randy
How does one use 2 (or more) scalar fields in a dataset, e.g. one for a colormap, one to scale glyphs? E.g., Pgmable Source: pdo = self.GetPolyDataOutput() num_pts = 2 newPts = vtk.vtkPoints() cell_color_ID = vtk.vtkFloatArray() cell_radius = vtk.vtkFloatArray()

Re: [Paraview] OSPRay, scaled spheres

2017-10-25 Thread Heiland, Randy
> David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Wed, Oct 25, 2017 at 3:16 PM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > Just want t

[Paraview] OSPRay, scaled spheres

2017-10-25 Thread Heiland, Randy
Just want to make sure I’m not missing something. In my Pgmable Source PolyData, I render Points and love the OSPRay-rendered spheres. However, is there any mechanism for (independently) scaling these, i.e., other than the fixed Point Size? Or is the only way to get scalar-value scaled spheres

Re: [Paraview] OSPRay, scaled spheres

2017-10-26 Thread Heiland, Randy
ing? (irrelevant bit, I think… I’m Masking: Every Nth Point) I’ll experiment with my simple 2 cell example later… > On Oct 25, 2017, at 5:19 PM, Heiland, Randy <heil...@iu.edu> wrote: > > Beauty. Thanks!! (I really need to take time to read the entire PV Guide) > >>

[Paraview] C++ client, PV server

2017-10-29 Thread Heiland, Randy
Using just the binary PV download, can I render results from a C++ client? No parallelism. Everything’s local. thanks, Randy smime.p7s Description: S/MIME cryptographic signature ___ Powered by www.kitware.com Visit other Kitware open-source projects

[Paraview] getting Client Info

2017-12-20 Thread Heiland, Randy
On the “About ParaView” popup window, there’s a “Client Information” tab, but I can’t seem to copy/paste that info. Is there a way to easily get it? I happen to be on OS X, but interested for all OSes. thanks, Randy ___ Powered by www.kitware.com

Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
confused, but overall it was quite robust. -Randy > On Oct 26, 2017, at 11:18 AM, Cory Quammen <cory.quam...@kitware.com> wrote: > > On Thu, Oct 26, 2017 at 11:15 AM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > Thanks! Before I start down tha

[Paraview] POV Exporter, spheres/geom/colors

2017-10-26 Thread Heiland, Randy
I have a simple 2-point Pgmable Source (below) and render it 1) as 2D Glyphs/Vertex (with the nice OSPRay, and scaled spheres), and 2) as various 3D/geometric glyphs. Then I Export the scenes as POV files. Only the geometric (non 2D/Vertex) glyphs generate partially-meaningful POV output.

[Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
I’m not seeing the vtkCutter in the list of filters (well, perhaps the AMR CutPlane). If not, any advice on how to accomplish it for some polydata? https://www.paraview.org/Wiki/Python_Programmable_Filter ? Thanks! smime.p7s

Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
Is there a property that lets me cap the results? > On Oct 26, 2017, at 10:18 AM, Cory Quammen <cory.quam...@kitware.com> wrote: > > Sounds like you want the Slice filter. > > On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu

Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
Oct 26, 2017 at 10:24 AM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > Is there a property that lets me cap the results? > >> On Oct 26, 2017, at 10:18 AM, Cory Quammen <cory.quam...@kitware.com >> <mailto:cory.quam...@kitware.com>> wr

[Paraview] my current State/.pvsm ?

2017-10-26 Thread Heiland, Randy
I sometimes have multiple PVs running and don’t remember the names of the .pvsm State files I've loaded into each. Then I want to Save State and it pops up the file dialog to have me choose/enter the filename, but I don’t remember :) Is the current State filename hiding somewhere in the GUI?

Re: [Paraview] my current State/.pvsm ?

2017-10-26 Thread Heiland, Randy
No worries, Mathieu’s solution works - look at the most recent in File->Recent. Thanks! > On Oct 26, 2017, at 11:06 AM, Utkarsh Ayachit > wrote: > >> Is the current State filename hiding somewhere in the GUI? > > Alas no. There's no notion of current state file

Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
;https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only> > > On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > Yes, sorry I wasn’t clear. > >> On Oct 26, 2017, at 10:33 AM, Cory Quammen <cory.quam...@kitware.

Re: [Paraview] Extract Cells by Region, glyphs

2017-10-27 Thread Heiland, Randy
egies, via the gui. Click the > gear too see all controls if necessary. > > On Oct 27, 2017 6:16 AM, "Heiland, Randy" <heil...@iu.edu > <mailto:heil...@iu.edu>> wrote: > I’m using this filter on my polydata (points) and it extracts them as > expected (u

Re: [Paraview] Python shell, os.environ

2017-12-21 Thread Heiland, Randy
p bundles on macOS and what > environment variables they see based on how you launch them. I can't > remember that of the top of my head, but that's where I'd start > looking. > > Utkarsh > > > On Wed, Dec 20, 2017 at 5:50 PM, Heiland, Randy <heil...@iu.edu&

Re: [Paraview] Python shell, os.environ

2017-12-21 Thread Heiland, Randy
> On Dec 21, 2017, at 9:34 AM, Ben Boeckel <ben.boec...@kitware.com> wrote: > > On Wed, Dec 20, 2017 at 22:50:50 +, Heiland, Randy wrote: >> Ah, I see ‘os’ has been hijacked by PV. But something like this seems >> to accomplish what I want, maybe… >&g

[Paraview] Python shell, os.environ

2017-12-20 Thread Heiland, Randy
I noticed the Python shell has a very limited os.environ, e.g.: >>> os.environ {'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.y86uYmHWFV/Listeners', 'XPC_FLAGS': '0x0', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'Apple_PubSub_Socket_Render':

Re: [Paraview] Python shell, os.environ

2017-12-20 Thread Heiland, Randy
, the os.environ will indeed contain this new env var. > On Dec 20, 2017, at 4:30 PM, Heiland, Randy <heil...@iu.edu> wrote: > > I noticed the Python shell has a very limited os.environ, e.g.: >>>> os.environ > {'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': > '/private/tmp/com.a