Re: [Paraview] POV Exporter, spheres/geom/colors

2017-10-26 Thread Utkarsh Ayachit
Randy,

That's indeed a bug, I've reported the issue and the cause here:
https://gitlab.kitware.com/paraview/paraview/issues/17802

Utkarsh

On Thu, Oct 26, 2017 at 8:38 PM, Heiland, Randy  wrote:

> 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.
> However, there’s no color associated with the geometry. Thoughts?
>
> The last related thread I saw was at:
> http://markmail.org/search/?q=ParaView+povray#query:
> ParaView%20povray%20order%3Adate-backward+page:1+mid:
> 6xiimz4cus55dwhh+state:results
> 
>
> -Randy
>
> pdo = self.GetPolyDataOutput()
> num_pts = 2
> print "num_pts =",num_pts
> newPts = vtk.vtkPoints()
> cell_color_ID = vtk.vtkFloatArray()
> cell_radius = vtk.vtkFloatArray()
>
> cell_color_ID.SetName('cell_color_ID')
> cell_radius.SetName('cell_radius')
>
> newPts.InsertPoint(0, -1,0,0)
> cell_color_ID.InsertNextValue(1)
> cell_radius.InsertNextValue(0.5)
>
> newPts.InsertPoint(1, 1,0,0)
> cell_color_ID.InsertNextValue(2)
> cell_radius.InsertNextValue(0.7)
>
> pdo.SetPoints(newPts)
> pdo.GetPointData().AddArray(cell_color_ID)
> pdo.GetPointData().AddArray(cell_radius)
>
> verts = vtk.vtkCellArray()
> for idx in range(0, num_pts):
>   verts.InsertNextCell(1)
>   verts.InsertCellPoint(idx)
> pdo.SetVerts(verts)
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Script for exporting multiple scenes

2017-10-26 Thread Utkarsh Ayachit
Claudio,

Attached is an example script with a demo vtu file used for it.

Hope that helps.

Utkarsh

On Mon, Oct 23, 2017 at 8:55 AM, Ing. Claudio Pascarelli <
claudio.pascare...@unisalento.it> wrote:

> Hi,
>
> these are the first times that I'm using Paraview and Python.
>
>
> I would like to create a script that:
>
>
> 1 - Read the number and name of properties (variables/contour plot) that I
> have in my .vtu file (for instance TEMPERATURE and TH_FLUX)
>
> 2 - Export every contour plot (Export Scenes) in vrml format, looping
> among them (like a "for" cycle), with the right name (for instance
> VtuName_TEMPERATURE.vrml and VtuName_TH_FLUX.vrml)
>
>
> A priori I do not know how many and which are these properties so I think
> that I need first lo list them in some way.
>
>
> If I record a trace this is what I obtain
>
>
> 
> ***
>
>  import the simple module from the paraview
> from paraview.simple import *
>  disable automatic camera reset on 'Show'
> paraview.simple._DisableFirstRenderCameraReset()
>
> # get active source.
> valvola_XXX_termicovtu = GetActiveSource()
>
> # get active view
> renderView1 = GetActiveViewOrCreate('RenderView')
> # uncomment following to set a specific view size
> # renderView1.ViewSize = [763, 502]
>
> # get display properties
> valvola_XXX_termicovtuDisplay = GetDisplayProperties(valvola_XXX_termicovtu,
> view=renderView1)
>
> # set scalar coloring
> ColorBy(valvola_XXX_termicovtuDisplay, ('POINTS', 'TEMP'))
>
> # rescale color and/or opacity maps used to include current data range
> valvola_XXX_termicovtuDisplay.RescaleTransferFunctionToDataRange(True,
> False)
>
> # show color bar/color legend
> valvola_XXX_termicovtuDisplay.SetScalarBarVisibility(renderView1, True)
>
> # get color transfer function/color map for 'TEMP'
> tEMPLUT = GetColorTransferFunction('TEMP')
>
> # export view
> ExportView('C:/Users/User/Desktop/TEMP.vrml', view=renderView1)
>
> # set scalar coloring
> ColorBy(valvola_XXX_termicovtuDisplay, ('POINTS', 'TH_FLUX', 'Magnitude'))
>
> # Hide the scalar bar for this color map if no visible data is colored by
> it.
> HideScalarBarIfNotNeeded(tEMPLUT, renderView1)
>
> # rescale color and/or opacity maps used to include current data range
> valvola_XXX_termicovtuDisplay.RescaleTransferFunctionToDataRange(True,
> False)
>
> # show color bar/color legend
> valvola_XXX_termicovtuDisplay.SetScalarBarVisibility(renderView1, True)
>
> # get color transfer function/color map for 'TH_FLUX'
> tH_FLUXLUT = GetColorTransferFunction('TH_FLUX')
>
> # export view
> ExportView('C:/Users/User/Desktop/TH_FLUX.vrml', view=renderView1)
>
>  saving camera placements for all active views
>
> # current camera placement for renderView1
> renderView1.CameraPosition = [-0.091789327, 0.0665,
> 0.7345691646101393]
> renderView1.CameraFocalPoint = [-0.091789327, 0.0665, -0.05375]
> renderView1.CameraParallelScale = 0.2040320134204131
>
>  uncomment the following to render all views
> # RenderAllViews()
> # alternatively, if you want to write images, you can use
> SaveScreenshot(...).
>
> ***
>
>
> Thank you
>
>
> Claudio Pascarelli
>
>
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>


foo.vtu.tar.gz
Description: GNU Zip compressed data
from paraview.simple import *

reader = OpenDataFile('/tmp/foo.vtu')

# load all available point and cell arrays.
reader.PointArrayStatus.SelectAll()
reader.CellArrayStatus.SelectAll()

display = Show()

for (arrayName, arrayInfo) in reader.PointData.items():
# color by array of interest
ColorBy(display, ("POINTS", arrayName))
# in case we want to force LUT range to match data.
display.RescaleTransferFunctionToDataRange()
# render
Render()
fname = "/tmp/points_%s.vrml"
if raw_input("Save as '%s'? (y/n) " %fname) in ['y', 'Y']:
ExportView(fname)

# do the same for cell data, if needed by iterating over items in `reader.CellData.items()`
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Default colorbar style

2017-10-26 Thread Scott, W Alan
Works for me!

Try deleting your configuration files.  You may have some old trash in there.  
https://www.paraview.org/Wiki/ParaView_Settings_Files

Then, in the Color Editor, change your color table.  Down at the bottom, left, 
there is a little cute icon that says "save current color map settings"

Then, open your color legend editor.  Tiny icon, top right.  Change what you 
want.  Be sure to Apply.  Now, little arrow at the bottom, green arrow saving 
stuff on disk.

This held the state after killing and reopening ParaView.

The variable I tested on is a vector.  File/ Open/ Examples/ disk_out_ref.exo/ 
all variables on/ Apply.  Now, color by V.

Alan

From: Riccardo Rossi [mailto:rro...@red-fluid.com]
Sent: Thursday, October 26, 2017 1:41 PM
To: Scott, W Alan ; paraview@paraview.org
Subject: RE: [EXTERNAL] [Paraview] Default colorbar style

Hey Alan.

Yes, I've tried the 5.4.1. on Windows and seems to work fine with scalar 
variables, but the font size/color are restored to defauls values for vector 
data.

Also, saving settings as default does not apply to colormap size and location 
which is also very annoying.

R

From: Scott, W Alan [mailto:wasc...@sandia.gov]
Sent: Thursday, October 26, 2017 9:21 PM
To: Riccardo Rossi >; 
paraview@paraview.org
Subject: RE: [EXTERNAL] [Paraview] Default colorbar style

I remember some weirdnesses with the colormap for PV 4.*.  Kitware has 
rewritten this code, and it really is working nice.  Would it be possible to 
install the latest version of PV?  5.4.1 is being a reliable workhorse.

Alan

From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Riccardo 
Rossi
Sent: Thursday, October 26, 2017 12:49 PM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] Default colorbar style

Hi All.

I'm using Paraview 4.3.1 64bit on Linux (the system can't digest the 5.4 
release for now) and I'm struggling to get the same colorbar style for any 
variable on any render view and layout, i.e. once for all.

As I understand, using "Save current colormap settings as default" in the 
"Color Map Editor" Panel and "Save current settings value as default" in the 
"Edit Color Legend Parameter" panel should do the trick but changing the 
variable resets the font size of both title and text/annotations.

Also, rescaling the colorbar changes the font size to make them fit below a 
certain length or width of the bar which is also very annoying.

I was thus wondering if I'm doing anything/expecting something wrong or if 
there is anybody experiencing the same issue.

Thanks,

R

[Image removed by 
sender.]

Virus-free. 
www.avast.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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[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. However, 
there’s no color associated with the geometry. Thoughts?

The last related thread I saw was at:
http://markmail.org/search/?q=ParaView+povray#query:ParaView%20povray%20order%3Adate-backward+page:1+mid:6xiimz4cus55dwhh+state:results
 

-Randy

pdo = self.GetPolyDataOutput()
num_pts = 2
print "num_pts =",num_pts
newPts = vtk.vtkPoints()
cell_color_ID = vtk.vtkFloatArray()
cell_radius = vtk.vtkFloatArray()

cell_color_ID.SetName('cell_color_ID')
cell_radius.SetName('cell_radius')

newPts.InsertPoint(0, -1,0,0)
cell_color_ID.InsertNextValue(1)
cell_radius.InsertNextValue(0.5)

newPts.InsertPoint(1, 1,0,0)
cell_color_ID.InsertNextValue(2)
cell_radius.InsertNextValue(0.7)

pdo.SetPoints(newPts)
pdo.GetPointData().AddArray(cell_color_ID)
pdo.GetPointData().AddArray(cell_radius)

verts = vtk.vtkCellArray()
for idx in range(0, num_pts):
  verts.InsertNextCell(1)
  verts.InsertCellPoint(idx)
pdo.SetVerts(verts)



smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
Thanks very much, Cory! It did indeed (mostly) work for me. Wow, I continue to 
be amazed at PV. That was a super simple solution, thanks to the XML plugin 
option (and vtkContourTriangulator). 

I say “mostly” because I had some intersecting spheres in my test case and the 
filter got a bit confused, but overall it was quite robust.

-Randy


> On Oct 26, 2017, at 11:18 AM, Cory Quammen  wrote:
> 
> On Thu, Oct 26, 2017 at 11:15 AM, Heiland, Randy  > wrote:
> Thanks! Before I start down that path, will this handle multiple, disjoint 
> polylines? E.g., a plane slicing through 2 spheres; I just want to cap the 
> sliced spheres.
> 
> I'm about 95% sure it will. It is fairly robust IIRC.
> 
> Cory
>> On Oct 26, 2017, at 11:10 AM, Cory Quammen > > wrote:
>> 
>> There isn't a filter exposed in ParaView to do this. You could expose 
>> vtkContourTriangulator in an XML plugin [1] and apply that to the polyline 
>> created by the planar Slice through your polygonal geometry.
>> 
>> Cory
>> 
>> [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only 
>> 
>> 
>> On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy > > wrote:
>> Yes, sorry I wasn’t clear.
>> 
>>> On Oct 26, 2017, at 10:33 AM, Cory Quammen >> > wrote:
>>> 
>>> I'm not sure what you mean. Are you trying to clip some polygonal geometry 
>>> with a plane and want to fill in the hole created with a polygon?
>>> 
>>> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy >> > wrote:
>>> Is there a property that lets me cap the results?
>>> 
 On Oct 26, 2017, at 10:18 AM, Cory Quammen > wrote:
 
 Sounds like you want the Slice filter.
 
 On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy > wrote:
 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!
 
 ___
 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 
 
 Search the list archives at: http://markmail.org/search/?q=ParaView 
 
 
 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview 
 
 
 
 
 
 -- 
 Cory Quammen
 Staff R Engineer
 Kitware, Inc.
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> Cory Quammen
>>> Staff R Engineer
>>> Kitware, Inc.
>> 
>> 
>> 
>> 
>> -- 
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
> 
> 
> 
> 
> -- 
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.



smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Error with plot selection over time

2017-10-26 Thread Jairaj Mathur
Hey all

I have unstructured grid vtu/vtk type data. When I select some cells and
try "plot selection over time", it gives me error Type mismatch: source:
double dest: idtype. This error has never occurred before, when I tried to
use this.

Thank you all!

-- 
Jairaj Mathur,
Mechanical Engineering
Washington University in St Louis
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Default colorbar style

2017-10-26 Thread Riccardo Rossi
Hey Alan.

 

Yes, I've tried the 5.4.1. on Windows and seems to work fine with scalar
variables, but the font size/color are restored to defauls values for vector
data.

 

Also, saving settings as default does not apply to colormap size and
location which is also very annoying.

 

R

 

From: Scott, W Alan [mailto:wasc...@sandia.gov] 
Sent: Thursday, October 26, 2017 9:21 PM
To: Riccardo Rossi ; paraview@paraview.org
Subject: RE: [EXTERNAL] [Paraview] Default colorbar style

 

I remember some weirdnesses with the colormap for PV 4.*.  Kitware has
rewritten this code, and it really is working nice.  Would it be possible to
install the latest version of PV?  5.4.1 is being a reliable workhorse.

 

Alan

 

From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Riccardo
Rossi
Sent: Thursday, October 26, 2017 12:49 PM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] Default colorbar style

 

Hi All.

 

I'm using Paraview 4.3.1 64bit on Linux (the system can't digest the 5.4
release for now) and I'm struggling to get the same colorbar style for any
variable on any render view and layout, i.e. once for all.

 

As I understand, using "Save current colormap settings as default" in the
"Color Map Editor" Panel and "Save current settings value as default" in the
"Edit Color Legend Parameter" panel should do the trick but changing the
variable resets the font size of both title and text/annotations.

 

Also, rescaling the colorbar changes the font size to make them fit below a
certain length or width of the bar which is also very annoying.

 

I was thus wondering if I'm doing anything/expecting something wrong or if
there is anybody experiencing the same issue.

 

Thanks,

 

R

 


 
 

Virus-free.
 www.avast.com 

 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Default colorbar style

2017-10-26 Thread Scott, W Alan
I remember some weirdnesses with the colormap for PV 4.*.  Kitware has 
rewritten this code, and it really is working nice.  Would it be possible to 
install the latest version of PV?  5.4.1 is being a reliable workhorse.

Alan

From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Riccardo 
Rossi
Sent: Thursday, October 26, 2017 12:49 PM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] Default colorbar style

Hi All.

I'm using Paraview 4.3.1 64bit on Linux (the system can't digest the 5.4 
release for now) and I'm struggling to get the same colorbar style for any 
variable on any render view and layout, i.e. once for all.

As I understand, using "Save current colormap settings as default" in the 
"Color Map Editor" Panel and "Save current settings value as default" in the 
"Edit Color Legend Parameter" panel should do the trick but changing the 
variable resets the font size of both title and text/annotations.

Also, rescaling the colorbar changes the font size to make them fit below a 
certain length or width of the bar which is also very annoying.

I was thus wondering if I'm doing anything/expecting something wrong or if 
there is anybody experiencing the same issue.

Thanks,

R

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]

Virus-free. 
www.avast.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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Default colorbar style

2017-10-26 Thread Riccardo Rossi
Hi All.

 

I'm using Paraview 4.3.1 64bit on Linux (the system can't digest the 5.4
release for now) and I'm struggling to get the same colorbar style for any
variable on any render view and layout, i.e. once for all.

 

As I understand, using "Save current colormap settings as default" in the
"Color Map Editor" Panel and "Save current settings value as default" in the
"Edit Color Legend Parameter" panel should do the trick but changing the
variable resets the font size of both title and text/annotations.

 

Also, rescaling the colorbar changes the font size to make them fit below a
certain length or width of the bar which is also very annoying.

 

I was thus wondering if I'm doing anything/expecting something wrong or if
there is anybody experiencing the same issue.

 

Thanks,

 

R



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread Sebastien Jourdain
Another easy approach (not great but easy), is to check that plugin in
ParaView Qt ui as auto load and then make sure Visualizer is not started
with the "-dr" argument.
That way, the plugin will load at start time.

On Thu, Oct 26, 2017 at 10:06 AM,  wrote:

> Hi Scott,
>
>
>
> Yes, the ui item is there but all that happens is that the logo flickers
> for like a second then nothing.
>
>
>
> 1.   I have no log output other than the regular output I get via
> starting the server
>
> 2.   Running 5.4.1, compiled from source
>
> 3.   It’s an .mha file, looking at the file info gives “Image
> (Uniform Rectilinear Grid)”. Note that I’m using the flying edges filter as
> an example since it’s a standard plugin and I can get it to apply to this
> dataset in ParaView desktop, so I don’t think it is the datatype. It also
> doesn’t work if I use a Wavelet like specified in this blog post:
> https://blog.kitware.com/accelerated-filters-in-paraview-5/
>
>
>
> Louise
>
>
>
> *From:* Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
> *Sent:* 26 October 2017 16:53
>
> *To:* Davies, Louise (STFC,RAL,SC) 
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Specifying filters from plugins in ParaViewWeb
> Visualizer proxy file
>
>
>
> I see, I read your first email a bit too quickly.  So you do see the
> filter appear in the web ui, but it just doesn't have any effect you can
> see.  A few more questions then: 1) Is there any log output you can
> share? 2) what version of paraview are you running?  3) what filter or
> dataset type are you giving as input to the flying edges filter?
>
>
>
> Scott
>
>
>
> On Thu, Oct 26, 2017 at 9:37 AM,  wrote:
>
> Hi Scott,
>
>
>
> I am using the default pvw-visualizer.py server file, which does register
> ParaViewWebStartupPluginLoader before ParaViewWebProxyManager.
>
>
>
> For clarification, this is what I’m adding to my json file (using the
> Flying Edges 3D example):
>
>
>
> In the “filters” section:
>
> { "name": "FlyingEdges3D", "label": "Flying Edges 3D"}
>
>
>
> Louise
>
>
>
> *From:* Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
> *Sent:* 26 October 2017 16:30
> *To:* Davies, Louise (STFC,RAL,SC) 
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Specifying filters from plugins in ParaViewWeb
> Visualizer proxy file
>
>
>
> Hi Louise,
>
>
>
>Off the top of my head, I would think that what you are doing should
> work, but maybe Seb can chime in otherwise.  In your application server
> code, do you register the "ParaViewWebStartupPluginLoader" before the
> "ParaViewWebProxyManager"?
>
>
>
> Scott
>
>
>
> On Thu, Oct 26, 2017 at 9:24 AM,  wrote:
>
> Hello all,
>
>
>
> I’m specifying some plugins to load with Visualizer, and I want to be able
> to apply filters from these plugins in Visualizer. I’ve copied the
> defaultProxies.json
> 
> file from the ParaView source code and I don’t know how to get ParaView to
> recognise my plugin filter name.
>
>
>
> For example, I specify on the command line I want to load the default
> AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter
> in Visualizer. However, all of the names I can find related to the Flying
> Edges 3D filter in its .xml file
> 
> (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter.
> When I click on the item in the filters pane it does nothing.
>
>
>
> Am I understanding this incorrectly? Does it work differently for filters
> loaded from plugins than from default ParaView filters?
>
>
>
> Kind Regards,
>
>
>
> Louise
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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 

Re: [Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread louise.davies
Hi Scott,

Yes, the ui item is there but all that happens is that the logo flickers for 
like a second then nothing.


1.   I have no log output other than the regular output I get via starting 
the server

2.   Running 5.4.1, compiled from source

3.   It’s an .mha file, looking at the file info gives “Image (Uniform 
Rectilinear Grid)”. Note that I’m using the flying edges filter as an example 
since it’s a standard plugin and I can get it to apply to this dataset in 
ParaView desktop, so I don’t think it is the datatype. It also doesn’t work if 
I use a Wavelet like specified in this blog post: 
https://blog.kitware.com/accelerated-filters-in-paraview-5/

Louise

From: Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
Sent: 26 October 2017 16:53
To: Davies, Louise (STFC,RAL,SC) 
Cc: paraview@paraview.org
Subject: Re: [Paraview] Specifying filters from plugins in ParaViewWeb 
Visualizer proxy file

I see, I read your first email a bit too quickly.  So you do see the filter 
appear in the web ui, but it just doesn't have any effect you can see.  A few 
more questions then: 1) Is there any log output you can share? 2) what version 
of paraview are you running?  3) what filter or dataset type are you giving as 
input to the flying edges filter?

Scott

On Thu, Oct 26, 2017 at 9:37 AM, 
> wrote:
Hi Scott,

I am using the default pvw-visualizer.py server file, which does register 
ParaViewWebStartupPluginLoader before ParaViewWebProxyManager.

For clarification, this is what I’m adding to my json file (using the Flying 
Edges 3D example):

In the “filters” section:
{ "name": "FlyingEdges3D", "label": "Flying Edges 3D"}

Louise

From: Scott Wittenburg 
[mailto:scott.wittenb...@kitware.com]
Sent: 26 October 2017 16:30
To: Davies, Louise (STFC,RAL,SC) 
>
Cc: paraview@paraview.org
Subject: Re: [Paraview] Specifying filters from plugins in ParaViewWeb 
Visualizer proxy file

Hi Louise,

   Off the top of my head, I would think that what you are doing should work, 
but maybe Seb can chime in otherwise.  In your application server code, do you 
register the "ParaViewWebStartupPluginLoader" before the 
"ParaViewWebProxyManager"?

Scott

On Thu, Oct 26, 2017 at 9:24 AM, 
> wrote:
Hello all,

I’m specifying some plugins to load with Visualizer, and I want to be able to 
apply filters from these plugins in Visualizer. I’ve copied the 
defaultProxies.json
 file from the ParaView source code and I don’t know how to get ParaView to 
recognise my plugin filter name.

For example, I specify on the command line I want to load the default 
AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter in 
Visualizer. However, all of the names I can find related to the Flying Edges 3D 
filter in its .xml 
file
 (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter. When 
I click on the item in the filters pane it does nothing.

Am I understanding this incorrectly? Does it work differently for filters 
loaded from plugins than from default ParaView filters?

Kind Regards,

Louise

___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Tube around a center line

2017-10-26 Thread Sebastien Jourdain
The Tube filter is made for that.

On Thu, Oct 26, 2017 at 9:56 AM, Doina Gumeniuc (224252 MAHS) <224...@via.dk
> wrote:

> Hi all,
>
>
> I have got a tube with various diameters along its height. I have the
> coordinates of the points which form the center line and the scalar value
> of the diameters. IS there a way to generate the tube shape arounda centre
> line using diameter, in a vtk input file without having to show the
> point coordinates around the tube?
>
>
> Thank you!
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Tube around a center line

2017-10-26 Thread Doina Gumeniuc (224252 MAHS)
Hi all,


I have got a tube with various diameters along its height. I have the 
coordinates of the points which form the center line and the scalar value of 
the diameters. IS there a way to generate the tube shape arounda centre line 
using diameter, in a vtk input file without having to show the point 
coordinates around the tube?


Thank you!
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] LiveInsituLink proxy in pvpython client

2017-10-26 Thread Andy Bauer
I inlined some answers below...

On Wed, Oct 25, 2017 at 1:42 PM, Kolja Petersen 
wrote:

> Thank you, Andy,
> unfortunately your answer has shown me how little I understand about
> Catalyst. But maybe it leads in the right direction after some work from my
> side.
>
> Just to make sure that we are talking about the same thing: My pvpython
> client is supposed to automate some of the visualization functionality of
> the paraview GUI. The coprocessing.py is in charge of the other side of the
> link, namely to provide data to the visualization side, if I understand
> correctly? I rather followed what happens in the constructor
> pqLiveInsituVisualizationManager::pqLiveInsituVisualizationManager(int
> connection_port, pqServer* server), which creates a
> vtkSMLiveInsituLinkProxy, not a vtkLiveInsituLink as coprocessing.py.
>

Yes, coprocessing.py should only be used on the simulation side.


>
> Now I saw that the vtkLiveInsituLink class can have ProcessType LIVE (for
> the visualization side? as server side object of the proxy created by
> paraview?) or INSITU (for the simulation side?). So apparently the same
> class can take both roles? If yes, that'd clarify some of my confusion. But
> still I don't see how coprocessing.py helps me to implement a python
> visualization client?
>
>
Yes, the same class does work in both roles with the LIVE ProcessType being
the visualization side and the INSITU being the simulation side. Things get
a little murkier when there is a separate pvserver from the client that
connects to the simulation.


> Then, following the creation of a vtkSMLiveInsituLinkProxy in the
> pqLiveInsituVisualizationManager constructor, this proxy's server side
> vtkLiveInsituLink calls 
> "parallelController->TriggerRMIOnAllChildren(INITIALIZE_CONNECTION);"
> inside vtkLiveInsituLink::InsituConnect(vtkMultiProcessController*
> proc0NodesController). This seems to be the first RMI sent over the link.
> Is there any possibility to log the transmission or reception of this RMI?
> I don't find it in the cslogs.
> I think I could make some progress if I am able to debug where those
> messages are sent to, and why the python client doesn't react to them.
>

I believe the cslogs are only between the client and server. You may be
able to print the cslogs on the simulation side as well but I haven't tried
that to verify that it works.


> Thank you
> Kolja
>
> On Wed, Oct 25, 2017 at 4:05 PM, Andy Bauer 
> wrote:
>
>> Hi Kolja,
>>
>> I can't recall if anyone tried the Catalyst Live connection through
>> pvpython but I don't think anyone has done that yet. The design was meant
>> to go through the GUI. My suggestion would be to start looking at the
>> DoLiveVisualization() method in coprocessing.py.
>>
>> Cheers,
>> Andy
>>
>> On Tue, Oct 24, 2017 at 12:49 PM, Kolja Petersen > > wrote:
>>
>>> Hello,
>>> Are there any examples how to receive extracts from Catalyst simulations
>>> in a batch pvpython script?
>>>
>>> My first attempt looks as attached. I connect to a pvserver running on
>>> localhost. Then I create a LiveInsituLink proxy, set the insitu port to
>>> 2 and initialize the proxy. Finally, I repeat ProcessEvents(), which I
>>> hoped would allow me to interact with the Catalyst simulation.
>>>
>>> However, when I first start pvserver, then the "coproc.py" script
>>> (attached), and finally a Catalyst example (e.g.
>>> Examples/Catalyst/CFullExample/FEDriver.c), nothing useful happens. The
>>> callback, which should react to any LiveInsituLink events, is only called
>>> during initialization (UpdatePropertyEvent and ModifiedEvent), then never
>>> again. lil.GetTimeStep() in the endless loop shows always the same
>>> (uninitialized?) value, there are no Debug messages from the LiveInsituLink
>>> proxy.
>>>
>>> How can I receive a notification, when a Catalyst simulation connects?
>>> How can I get a list of available extracts?
>>> Thank you
>>> Kolja
>>>
>>> ___
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread Scott Wittenburg
I see, I read your first email a bit too quickly.  So you do see the filter
appear in the web ui, but it just doesn't have any effect you can see.  A
few more questions then: 1) Is there any log output you can share? 2) what
version of paraview are you running?  3) what filter or dataset type are
you giving as input to the flying edges filter?

Scott

On Thu, Oct 26, 2017 at 9:37 AM,  wrote:

> Hi Scott,
>
>
>
> I am using the default pvw-visualizer.py server file, which does register 
> ParaViewWebStartupPluginLoader
> before ParaViewWebProxyManager.
>
>
>
> For clarification, this is what I’m adding to my json file (using the
> Flying Edges 3D example):
>
>
>
> In the “filters” section:
>
> { "name": "FlyingEdges3D", "label": "Flying Edges 3D"}
>
>
>
> Louise
>
>
>
> *From:* Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
> *Sent:* 26 October 2017 16:30
> *To:* Davies, Louise (STFC,RAL,SC) 
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Specifying filters from plugins in ParaViewWeb
> Visualizer proxy file
>
>
>
> Hi Louise,
>
>
>
>Off the top of my head, I would think that what you are doing should
> work, but maybe Seb can chime in otherwise.  In your application server
> code, do you register the "ParaViewWebStartupPluginLoader" before the
> "ParaViewWebProxyManager"?
>
>
>
> Scott
>
>
>
> On Thu, Oct 26, 2017 at 9:24 AM,  wrote:
>
> Hello all,
>
>
>
> I’m specifying some plugins to load with Visualizer, and I want to be able
> to apply filters from these plugins in Visualizer. I’ve copied the
> defaultProxies.json
> 
> file from the ParaView source code and I don’t know how to get ParaView to
> recognise my plugin filter name.
>
>
>
> For example, I specify on the command line I want to load the default
> AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter
> in Visualizer. However, all of the names I can find related to the Flying
> Edges 3D filter in its .xml file
> 
> (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter.
> When I click on the item in the filters pane it does nothing.
>
>
>
> Am I understanding this incorrectly? Does it work differently for filters
> loaded from plugins than from default ParaView filters?
>
>
>
> Kind Regards,
>
>
>
> Louise
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread louise.davies
Hi Scott,

I am using the default pvw-visualizer.py server file, which does register 
ParaViewWebStartupPluginLoader before ParaViewWebProxyManager.

For clarification, this is what I’m adding to my json file (using the Flying 
Edges 3D example):

In the “filters” section:
{ "name": "FlyingEdges3D", "label": "Flying Edges 3D"}

Louise

From: Scott Wittenburg [mailto:scott.wittenb...@kitware.com]
Sent: 26 October 2017 16:30
To: Davies, Louise (STFC,RAL,SC) 
Cc: paraview@paraview.org
Subject: Re: [Paraview] Specifying filters from plugins in ParaViewWeb 
Visualizer proxy file

Hi Louise,

   Off the top of my head, I would think that what you are doing should work, 
but maybe Seb can chime in otherwise.  In your application server code, do you 
register the "ParaViewWebStartupPluginLoader" before the 
"ParaViewWebProxyManager"?

Scott

On Thu, Oct 26, 2017 at 9:24 AM, 
> wrote:
Hello all,

I’m specifying some plugins to load with Visualizer, and I want to be able to 
apply filters from these plugins in Visualizer. I’ve copied the 
defaultProxies.json
 file from the ParaView source code and I don’t know how to get ParaView to 
recognise my plugin filter name.

For example, I specify on the command line I want to load the default 
AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter in 
Visualizer. However, all of the names I can find related to the Flying Edges 3D 
filter in its .xml 
file
 (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter. When 
I click on the item in the filters pane it does nothing.

Am I understanding this incorrectly? Does it work differently for filters 
loaded from plugins than from default ParaView filters?

Kind Regards,

Louise

___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread Scott Wittenburg
Hi Louise,

   Off the top of my head, I would think that what you are doing should
work, but maybe Seb can chime in otherwise.  In your application server
code, do you register the "ParaViewWebStartupPluginLoader" before the
"ParaViewWebProxyManager"?

Scott

On Thu, Oct 26, 2017 at 9:24 AM,  wrote:

> Hello all,
>
>
>
> I’m specifying some plugins to load with Visualizer, and I want to be able
> to apply filters from these plugins in Visualizer. I’ve copied the
> defaultProxies.json
> 
> file from the ParaView source code and I don’t know how to get ParaView to
> recognise my plugin filter name.
>
>
>
> For example, I specify on the command line I want to load the default
> AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter
> in Visualizer. However, all of the names I can find related to the Flying
> Edges 3D filter in its .xml file
> 
> (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter.
> When I click on the item in the filters pane it does nothing.
>
>
>
> Am I understanding this incorrectly? Does it work differently for filters
> loaded from plugins than from default ParaView filters?
>
>
>
> Kind Regards,
>
>
>
> Louise
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Specifying filters from plugins in ParaViewWeb Visualizer proxy file

2017-10-26 Thread louise.davies
Hello all,

I'm specifying some plugins to load with Visualizer, and I want to be able to 
apply filters from these plugins in Visualizer. I've copied the 
defaultProxies.json
 file from the ParaView source code and I don't know how to get ParaView to 
recognise my plugin filter name.

For example, I specify on the command line I want to load the default 
AcceleratedAlgorithms plugin. I want to expose the Flying Edges 3D filter in 
Visualizer. However, all of the names I can find related to the Flying Edges 3D 
filter in its .xml 
file
 (e.g. FlyingEdges3D, vtkFlyingEdges3D) do not allow me to use the filter. When 
I click on the item in the filters pane it does nothing.

Am I understanding this incorrectly? Does it work differently for filters 
loaded from plugins than from default ParaView filters?

Kind Regards,

Louise
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
On Thu, Oct 26, 2017 at 11:15 AM, Heiland, Randy  wrote:

> Thanks! Before I start down that path, will this handle multiple, disjoint
> polylines? E.g., a plane slicing through 2 spheres; I just want to cap the
> sliced spheres.
>

I'm about 95% sure it will. It is fairly robust IIRC.

Cory

> On Oct 26, 2017, at 11:10 AM, Cory Quammen 
> wrote:
>
> There isn't a filter exposed in ParaView to do this. You could expose
> vtkContourTriangulator in an XML plugin [1] and apply that to the polyline
> created by the planar Slice through your polygonal geometry.
>
> Cory
>
> [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only
>
> On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy  wrote:
>
>> Yes, sorry I wasn’t clear.
>>
>> On Oct 26, 2017, at 10:33 AM, Cory Quammen 
>> wrote:
>>
>> I'm not sure what you mean. Are you trying to clip some polygonal
>> geometry with a plane and want to fill in the hole created with a polygon?
>>
>> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy  wrote:
>>
>>> Is there a property that lets me cap the results?
>>>
>>> On Oct 26, 2017, at 10:18 AM, Cory Quammen 
>>> wrote:
>>>
>>> Sounds like you want the Slice filter.
>>>
>>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy  wrote:
>>>
 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!

 ___
 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

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview


>>>
>>>
>>> --
>>> Cory Quammen
>>> Staff R Engineer
>>> Kitware, Inc.
>>>
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>>
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
Thanks! Before I start down that path, will this handle multiple, disjoint 
polylines? E.g., a plane slicing through 2 spheres; I just want to cap the 
sliced spheres.

> On Oct 26, 2017, at 11:10 AM, Cory Quammen  wrote:
> 
> There isn't a filter exposed in ParaView to do this. You could expose 
> vtkContourTriangulator in an XML plugin [1] and apply that to the polyline 
> created by the planar Slice through your polygonal geometry.
> 
> Cory
> 
> [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only 
> 
> 
> On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy  > wrote:
> Yes, sorry I wasn’t clear.
> 
>> On Oct 26, 2017, at 10:33 AM, Cory Quammen > > wrote:
>> 
>> I'm not sure what you mean. Are you trying to clip some polygonal geometry 
>> with a plane and want to fill in the hole created with a polygon?
>> 
>> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy > > wrote:
>> Is there a property that lets me cap the results?
>> 
>>> On Oct 26, 2017, at 10:18 AM, Cory Quammen >> > wrote:
>>> 
>>> Sounds like you want the Slice filter.
>>> 
>>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy >> > wrote:
>>> 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!
>>> 
>>> ___
>>> 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 
>>> 
>>> Search the list archives at: http://markmail.org/search/?q=ParaView 
>>> 
>>> 
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> Cory Quammen
>>> Staff R Engineer
>>> Kitware, Inc.
>> 
>> 
>> 
>> 
>> -- 
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
> 
> 
> 
> 
> -- 
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.



smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
There isn't a filter exposed in ParaView to do this. You could expose
vtkContourTriangulator in an XML plugin [1] and apply that to the polyline
created by the planar Slice through your polygonal geometry.

Cory

[1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#XML_Only

On Thu, Oct 26, 2017 at 10:35 AM, Heiland, Randy  wrote:

> Yes, sorry I wasn’t clear.
>
> On Oct 26, 2017, at 10:33 AM, Cory Quammen 
> wrote:
>
> I'm not sure what you mean. Are you trying to clip some polygonal geometry
> with a plane and want to fill in the hole created with a polygon?
>
> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy  wrote:
>
>> Is there a property that lets me cap the results?
>>
>> On Oct 26, 2017, at 10:18 AM, Cory Quammen 
>> wrote:
>>
>> Sounds like you want the Slice filter.
>>
>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy  wrote:
>>
>>> 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!
>>>
>>> ___
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>>
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


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 in ParaView and hence
> no way to know what state file was loaded in the current instance.



smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


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

2017-10-26 Thread Utkarsh Ayachit
> Is the current State filename hiding somewhere in the GUI?

Alas no. There's no notion of current state file in ParaView and hence
no way to know what state file was loaded in the current instance.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


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

2017-10-26 Thread Mathieu Westphal
Hello

It should be visible in the File->Recent Files menu

Best,

On 26 Oct 2017 4:58 pm, "Heiland, Randy"  wrote:

> 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?
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[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?

smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Heiland, Randy
Yes, sorry I wasn’t clear.

> On Oct 26, 2017, at 10:33 AM, Cory Quammen  wrote:
> 
> I'm not sure what you mean. Are you trying to clip some polygonal geometry 
> with a plane and want to fill in the hole created with a polygon?
> 
> On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy  > wrote:
> Is there a property that lets me cap the results?
> 
>> On Oct 26, 2017, at 10:18 AM, Cory Quammen > > wrote:
>> 
>> Sounds like you want the Slice filter.
>> 
>> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy > > wrote:
>> 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!
>> 
>> ___
>> 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 
>> 
>> Search the list archives at: http://markmail.org/search/?q=ParaView 
>> 
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview 
>> 
>> 
>> 
>> 
>> 
>> -- 
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
> 
> 
> 
> 
> -- 
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.



smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
I'm not sure what you mean. Are you trying to clip some polygonal geometry
with a plane and want to fill in the hole created with a polygon?

On Thu, Oct 26, 2017 at 10:24 AM, Heiland, Randy  wrote:

> Is there a property that lets me cap the results?
>
> On Oct 26, 2017, at 10:18 AM, Cory Quammen 
> wrote:
>
> Sounds like you want the Slice filter.
>
> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy  wrote:
>
>> 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!
>>
>> ___
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
>
>


-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


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  wrote:
> 
> Sounds like you want the Slice filter.
> 
> On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy  > wrote:
> 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!
> 
> ___
> 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 
> 
> Search the list archives at: http://markmail.org/search/?q=ParaView 
> 
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview 
> 
> 
> 
> 
> 
> -- 
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.



smime.p7s
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtkCutter

2017-10-26 Thread Cory Quammen
Sounds like you want the Slice filter.

On Thu, Oct 26, 2017 at 10:14 AM, Heiland, Randy  wrote:

> 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!
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>


-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[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
Description: S/MIME cryptographic signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] OSPRay, scaled spheres

2017-10-26 Thread David E DeMarle
A patch to factor in point size control can be found here:
https://gitlab.kitware.com/vtk/vtk/merge_requests/3499

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

On Thu, Oct 26, 2017 at 9:04 AM, David E DeMarle 
wrote:

> Looks like:
>
> 1) I was wrong, you don't need to scale and bias the input array into
> 0..1. The transfer function editor widget's piecewise range controls let
> you specify what the input domain extent.
>
> 2) You are correct that there isn't currently a way to get the radii to be
> > 1.0 when applying the transfer function. Without the transfer function,
> the point size control sets the radii for all points. With it the transfer
> function's output (which is defined to be 0..1) controls the radii of each
> point. Please file a bug report.
>
> Notes: With Point Gaussian representation there is an extra "point
> gaussian radius" control that gets factored in. We could do that with
> ospray, or factor in the existing point size, or possible extend the
> transfer function editor widget to change the range extent to something
> other than 0..1.
>
>
> David E DeMarle
> Kitware, Inc.
> Principal Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909 <(518)%20881-4909>
>
> On Thu, Oct 26, 2017 at 6:16 AM, Heiland, Randy  wrote:
>
>> Recapping, hopefully the relevant bits:
>>
>> Pipeline: PgmableSource -> Glyph (only show Glyph)
>>
>> Glyph Properties:
>>  Source: 2D Glyph
>>  Type: Vertex
>>  Active Attrs: Scalars: cell_radius
>>  Scaling:  Mode: scalar
>>Factor: 1
>>
>> OSPRay Use Scale Array - yes
>>Scale Array: cell_radius
>> Enable OSPRay - yes
>>
>> Let’s say my cell_radius has a range [5,10]
>>
>> I cannot figure out how to scale up my cells to be large enough. I’ve
>> dabbled with the OSPRay Scale Function editor, with no success.
>>
>> The Scaling Factor above seems to have no effect. Is there a global
>> scaling factor I’m missing?
>>
>> (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  wrote:
>>
>> Beauty. Thanks!! (I really need to take time to read the entire PV Guide)
>>
>> On Oct 25, 2017, at 5:14 PM, David E DeMarle 
>> wrote:
>>
>> click the gear to show advanced properties, or use search field for glyph
>> type.
>>
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> Principal Engineer
>> 21 Corporate Drive
>> 
>> Clifton Park, NY 12065
>> 
>> -8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Wed, Oct 25, 2017 at 5:11 PM, Heiland, Randy  wrote:
>>
>>> You lost me - in the Glyph Source block,I select Glyph Type = 2D Glyph.
>>> Then where is VERTEX? In the Display block, I choose Representation =
>>> Points which produces a blobby mess. But a very *smooth* blobby mess :)
>>>
>>> On Oct 25, 2017, at 4:46 PM, David E DeMarle 
>>> wrote:
>>>
>>> That control is only available if the representation type is surface,
>>> this could explain why you don't see it on the ProgrammableSource.
>>>
>>> In the glyph filter, use 2D glyph, VERTEX.
>>>
>>>
>>>
>>>
>>>
>>> David E DeMarle
>>> Kitware, Inc.
>>> Principal Engineer
>>> 21 Corporate Drive
>>> 
>>> Clifton Park, NY 12065
>>> 
>>> -8662
>>> Phone: 518-881-4909 <(518)%20881-4909>
>>>
>>> On Wed, Oct 25, 2017 at 4:29 PM, Heiland, Randy  wrote:
>>>
 I only see the “OSPRay Use Scale Array” on the Properties for Glyph,
 not the Props for the ProgrammableSource. Expected? And so, OSPRay is
 rendering the chunky polygonalized spherical glyphs (Representation =
 Surface).

 If I could independently scale the implicit spheres and use OSPRay, I’d
 prefer that until I do the vtkCutter. (thanks for confirming, Note 2)



 On Oct 25, 2017, at 3:35 PM, David E DeMarle 
 wrote:

 To change the size based on values:
 check "OSPRay Use Scale Array" on "Display" section or "Properties" Tab
 Choose the array name you want to scale by with "OSPRay Scale Array"
 pulldown.
 Define your value to radius transfer function via the "OSPRay Scale
 Function" popup editor.

 Note 1: the transfer function is defined to map between 0.0 and 1.0 and
 clamp outside of that range. Use a calculator to scale and bias into that
 range. If you don't like having to do this, file a feature request to
 remind the developers to implement it one of these days such that 

Re: [Paraview] OSPRay, scaled spheres

2017-10-26 Thread David E DeMarle
Looks like:

1) I was wrong, you don't need to scale and bias the input array into 0..1.
The transfer function editor widget's piecewise range controls let you
specify what the input domain extent.

2) You are correct that there isn't currently a way to get the radii to be
> 1.0 when applying the transfer function. Without the transfer function,
the point size control sets the radii for all points. With it the transfer
function's output (which is defined to be 0..1) controls the radii of each
point. Please file a bug report.

Notes: With Point Gaussian representation there is an extra "point gaussian
radius" control that gets factored in. We could do that with ospray, or
factor in the existing point size, or possible extend the transfer function
editor widget to change the range extent to something other than 0..1.


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

On Thu, Oct 26, 2017 at 6:16 AM, Heiland, Randy  wrote:

> Recapping, hopefully the relevant bits:
>
> Pipeline: PgmableSource -> Glyph (only show Glyph)
>
> Glyph Properties:
>  Source: 2D Glyph
>  Type: Vertex
>  Active Attrs: Scalars: cell_radius
>  Scaling:  Mode: scalar
>Factor: 1
>
> OSPRay Use Scale Array - yes
>Scale Array: cell_radius
> Enable OSPRay - yes
>
> Let’s say my cell_radius has a range [5,10]
>
> I cannot figure out how to scale up my cells to be large enough. I’ve
> dabbled with the OSPRay Scale Function editor, with no success.
>
> The Scaling Factor above seems to have no effect. Is there a global
> scaling factor I’m missing?
>
> (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  wrote:
>
> Beauty. Thanks!! (I really need to take time to read the entire PV Guide)
>
> On Oct 25, 2017, at 5:14 PM, David E DeMarle 
> wrote:
>
> click the gear to show advanced properties, or use search field for glyph
> type.
>
>
>
> David E DeMarle
> Kitware, Inc.
> Principal Engineer
> 21 Corporate Drive
> 
> Clifton Park, NY 12065
> 
> -8662
> Phone: 518-881-4909 <(518)%20881-4909>
>
> On Wed, Oct 25, 2017 at 5:11 PM, Heiland, Randy  wrote:
>
>> You lost me - in the Glyph Source block,I select Glyph Type = 2D Glyph.
>> Then where is VERTEX? In the Display block, I choose Representation =
>> Points which produces a blobby mess. But a very *smooth* blobby mess :)
>>
>> On Oct 25, 2017, at 4:46 PM, David E DeMarle 
>> wrote:
>>
>> That control is only available if the representation type is surface,
>> this could explain why you don't see it on the ProgrammableSource.
>>
>> In the glyph filter, use 2D glyph, VERTEX.
>>
>>
>>
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> Principal Engineer
>> 21 Corporate Drive
>> 
>> Clifton Park, NY 12065
>> 
>> -8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Wed, Oct 25, 2017 at 4:29 PM, Heiland, Randy  wrote:
>>
>>> I only see the “OSPRay Use Scale Array” on the Properties for Glyph, not
>>> the Props for the ProgrammableSource. Expected? And so, OSPRay is rendering
>>> the chunky polygonalized spherical glyphs (Representation = Surface).
>>>
>>> If I could independently scale the implicit spheres and use OSPRay, I’d
>>> prefer that until I do the vtkCutter. (thanks for confirming, Note 2)
>>>
>>>
>>>
>>> On Oct 25, 2017, at 3:35 PM, David E DeMarle 
>>> wrote:
>>>
>>> To change the size based on values:
>>> check "OSPRay Use Scale Array" on "Display" section or "Properties" Tab
>>> Choose the array name you want to scale by with "OSPRay Scale Array"
>>> pulldown.
>>> Define your value to radius transfer function via the "OSPRay Scale
>>> Function" popup editor.
>>>
>>> Note 1: the transfer function is defined to map between 0.0 and 1.0 and
>>> clamp outside of that range. Use a calculator to scale and bias into that
>>> range. If you don't like having to do this, file a feature request to
>>> remind the developers to implement it one of these days such that min is
>>> defined to be array min and max.
>>>
>>> Note 2:Cutter will not cut through the implicit spheres.
>>>
>>> Note 3: Point Gaussian representation's Use Scalar Array, Guassian Scale
>>> Array and Scale Transfer Function (which I riffed off of) are similar. I'm
>>> not sure about scale and bias and cut with this GL shader based side.
>>>
>>>
>>> David E DeMarle
>>> Kitware, Inc.
>>> Principal Engineer
>>> 21 Corporate Drive
>>> 

Re: [Paraview] OSPRay, scaled spheres

2017-10-26 Thread Heiland, Randy
Recapping, hopefully the relevant bits:

Pipeline: PgmableSource -> Glyph (only show Glyph)

Glyph Properties: 
 Source: 2D Glyph
 Type: Vertex
 Active Attrs: Scalars: cell_radius
 Scaling:  Mode: scalar
   Factor: 1

OSPRay Use Scale Array - yes
   Scale Array: cell_radius
Enable OSPRay - yes

Let’s say my cell_radius has a range [5,10]

I cannot figure out how to scale up my cells to be large enough. I’ve dabbled 
with the OSPRay Scale Function editor, with no success.

The Scaling Factor above seems to have no effect. Is there a global scaling 
factor I’m missing?

(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  wrote:
> 
> Beauty. Thanks!! (I really need to take time to read the entire PV Guide)
> 
>> On Oct 25, 2017, at 5:14 PM, David E DeMarle > > wrote:
>> 
>> click the gear to show advanced properties, or use search field for glyph 
>> type.
>> 
>> 
>> 
>> 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 5:11 PM, Heiland, Randy > > wrote:
>> You lost me - in the Glyph Source block,I select Glyph Type = 2D Glyph.  
>> Then where is VERTEX? In the Display block, I choose Representation = Points 
>> which produces a blobby mess. But a very *smooth* blobby mess :)
>> 
>>> On Oct 25, 2017, at 4:46 PM, David E DeMarle >> > wrote:
>>> 
>>> That control is only available if the representation type is surface, this 
>>> could explain why you don't see it on the ProgrammableSource.
>>> 
>>> In the glyph filter, use 2D glyph, VERTEX.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 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 4:29 PM, Heiland, Randy >> > wrote:
>>> I only see the “OSPRay Use Scale Array” on the Properties for Glyph, not 
>>> the Props for the ProgrammableSource. Expected? And so, OSPRay is rendering 
>>> the chunky polygonalized spherical glyphs (Representation = Surface).
>>> 
>>> If I could independently scale the implicit spheres and use OSPRay, I’d 
>>> prefer that until I do the vtkCutter. (thanks for confirming, Note 2)
>>> 
>>> 
>>> 
 On Oct 25, 2017, at 3:35 PM, David E DeMarle > wrote:
 
 To change the size based on values:
 check "OSPRay Use Scale Array" on "Display" section or "Properties" Tab
 Choose the array name you want to scale by with "OSPRay Scale Array" 
 pulldown.
 Define your value to radius transfer function via the "OSPRay Scale 
 Function" popup editor.
 
 Note 1: the transfer function is defined to map between 0.0 and 1.0 and 
 clamp outside of that range. Use a calculator to scale and bias into that 
 range. If you don't like having to do this, file a feature request to 
 remind the developers to implement it one of these days such that min is 
 defined to be array min and max.
 
 Note 2:Cutter will not cut through the implicit spheres.
 
 Note 3: Point Gaussian representation's Use Scalar Array, Guassian Scale 
 Array and Scale Transfer Function (which I riffed off of) are similar. I'm 
 not sure about scale and bias and cut with this GL shader based side.
 
 
 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 > wrote:
 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 via the Glyph filter? If so, is it possible to control the 
 resolution/triangulation of that glyph? Basically, I’m looking for ways of 
 getting high-res spheres, but will also want to use vtkCutter on them 
 later.
 
 thanks, Randy
 ___
 Powered by www.kitware.com