[Paraview] Paraview programmatically plot quantities over line, using only data on nodes

2018-02-19 Thread Santiago Serebrinsky
Hello,

I have a dataset on a 2D domain. I mean to get an XY plot of data along a
line which contains a number of element edges. I would typically do this
with PlotOverLine.

Now I want to obtain a similar plot, but with my data points located only
at the actual locations of nodes in my mesh. In this way, my XY plot (and
its underlying data) would be directly representative of the mesh
resolution in my original data.

*How can this be done programmatically, 1) from the UI as a macro, 2) from
the UI at the python shell, 3) at the CLI (pvpython myscript.py)?*

I couldn't even find how to do this via GUI. I started by *Select Points On*,
but I couldn't go any further. Moreover, if this is the right way to start,
I wouldn't be able to transfer it to python code, since *Start Trace* does
not include *Select Points On* in the output trace, so I wouldn't know how
to add it to code.
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Integrate Variables divide cell data by volume has no effect?

2018-02-19 Thread Shuhao Wu
I suspected so as well but didn't know how to convert the point data to 
cell data until now.


So does that mean integrate variables with point data will not be 
integration weighted by the area?


Thanks,
Shuhao

On 2018-02-20 02:05 AM, Andy Bauer wrote:

The DivideCellDataByVolume only operates on cell data and you're
integrating a point data array so it won't work the way you're expecting it
to. You can use the point data to cell data filter and then try using the
integrate variable filter to see if that gives the result that you want.

On Mon, Feb 19, 2018 at 11:59 PM, Shuhao Wu  wrote:


Hello all,

I've been using the filter IntegrateVariables with the option
DivideCellDataByVolume = on on a 2D surface. I've noticed that turning this
option on and off has no effect on the PointData of the output. No
additional cell data is produced either.

I thought the idea of the the integrate variables filter is (for 2D): it
sums up the values at each point and multiplied by the area associated with
that point (*). If the DivideCellDataByVolume option is on, it will divide
the final result by the total area. If this is the case, why does the
option do nothing, shouldn't the point data be scaled by a constant factor
that's the area?

(*) how does it associate the points with their areas?

Thanks,
Shuhao
___
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensou
rce/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:
https://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Integrate Variables divide cell data by volume has no effect?

2018-02-19 Thread Andy Bauer
The DivideCellDataByVolume only operates on cell data and you're
integrating a point data array so it won't work the way you're expecting it
to. You can use the point data to cell data filter and then try using the
integrate variable filter to see if that gives the result that you want.

On Mon, Feb 19, 2018 at 11:59 PM, Shuhao Wu  wrote:

> Hello all,
>
> I've been using the filter IntegrateVariables with the option
> DivideCellDataByVolume = on on a 2D surface. I've noticed that turning this
> option on and off has no effect on the PointData of the output. No
> additional cell data is produced either.
>
> I thought the idea of the the integrate variables filter is (for 2D): it
> sums up the values at each point and multiplied by the area associated with
> that point (*). If the DivideCellDataByVolume option is on, it will divide
> the final result by the total area. If this is the case, why does the
> option do nothing, shouldn't the point data be scaled by a constant factor
> that's the area?
>
> (*) how does it associate the points with their areas?
>
> Thanks,
> Shuhao
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/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:
> https://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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Integrate Variables divide cell data by volume has no effect?

2018-02-19 Thread Shuhao Wu

Hello all,

I've been using the filter IntegrateVariables with the option 
DivideCellDataByVolume = on on a 2D surface. I've noticed that turning 
this option on and off has no effect on the PointData of the output. No 
additional cell data is produced either.


I thought the idea of the the integrate variables filter is (for 2D): it 
sums up the values at each point and multiplied by the area associated 
with that point (*). If the DivideCellDataByVolume option is on, it will 
divide the final result by the total area. If this is the case, why does 
the option do nothing, shouldn't the point data be scaled by a constant 
factor that's the area?


(*) how does it associate the points with their areas?

Thanks,
Shuhao
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Finding all the points associated with one closed contour line

2018-02-19 Thread kenichiro yoshimi
Hi Shuhao,

In ParaView, the connectivity filter is available to assign a region
id to each of closed loops and generate a RegionId array. And then the
threshold filter can be used to separate them.

Thanks

2018-02-20 6:12 GMT+09:00 Shuhao Wu :
> Hello All,
>
> I'm currently using the Contour filter on a 2D slice. This contour gives me
> a series of closed loops at arbitrary locations of my plot. Does
> Paraview/VTK already expose a way to group the points associated with each
> of these closed loops?
>
> If not, I have two possible strategies to detect these points:
>
> 1. I think the contour filter outputs the points of each closed loops in
> sequential order in the point array. I could compare the geometric distance
> between two sequential points in the array and detect a "large jump"
> followed by a "large decrease" to detect the transition from one loop to the
> next.
>
> 2. I could employ some sort of cluster finding algorithm, although I'm not
> sure which one as I do not know how many of these loops are and likely need
> something that optimizes for boundaries as opposed to centroids.
>
> Are these ideas sane if PV doesn't already expose some functionalities that
> I do not know about?
>
> Thanks,
> Shuhao
> ___
> 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:
> https://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] [Paraview-developers] Rotational Extrude

2018-02-19 Thread Scott, W Alan
Hi Elyas,

OK, I took a deeper look, and consulted with Ken Moreland.  We think what you 
are trying to do can't be done, or if it can, it is very inefficient.  There 
are two filters of interest, the Rotational Extrude filter and the Angular 
Periodic filter.  

The Rotational Extrude filter takes a 2d object and rotates it in space, 
creating a disk or cylinder.  It must be polygonal data.  You can create 
polygonal data with the extract surface filter.  The Rotational Extrude filter 
will rotate your 2d object on the z axis.  If you want to rotate on a different 
axis, use the Transform filter to rotate your data to be lined up with the Z 
axis.  But, here is the kicker.  The output of the Rotational Extrude filter is 
a 2d surface,  In other words, this filter's output is hollow.  It will look 
good if you don't clip or slice it.  You can see that it is hollow with a slice 
filter.

The Angular Periodic filter will also rotate objects (i.e., pie slices) around 
an axis.  However, it won't fill it in if your data was originally 2d.  If it 
is pie slices, you will get a nice cylinder.  But, with your data, you will 
just see a lot of 2d planes, rooted at the center of a cylinder, and fanning 
out to form this sparse cylinder.  I tried the Delauny3d filter, and it hung.  

Ken's advice if this is necessary is to write a custom filter. 

Sorry I couldn't help more,

Alan

On 2/19/18, 3:04 PM, "Goli, Elyas"  wrote:

I could not figure out how to fix it. Suggestions are appreciated and 
welcome.

Best,
Elyas 

From: Scott, W Alan [wasc...@sandia.gov]
Sent: Monday, February 19, 2018 12:55 PM
To: Goli, Elyas
Cc: parav...@paraview.org
Subject: Re: [EXTERNAL] [Paraview-developers] Rotational Extrude

Copying to the paraview users list.

I don't know that filter well.  Try playing with it, and if it doesn't 
cooperate, let me know.  I will then try...

Alan

On 2/19/18, 11:42 AM, "Goli, Elyas"  wrote:

Hi Scott,

Thanks. It worked. Now the filter is active. However, I am not sure 
what normal and origin coordinate I should put for the Slice filter to end up 
with a 3D cylinder rotated about y axis.
Do you have any clue?

 I am OK to move it to the e_mail list.

Best,
Elyas

From: Scott, W Alan [wasc...@sandia.gov]
Sent: Monday, February 19, 2018 12:25 PM
To: Goli, Elyas; paraview-develop...@public.kitware.com
Subject: Re: [EXTERNAL] [Paraview-developers] Rotational Extrude

Just a guess - this filter requires 2d polygonal data.  What I just did 
was Wavelet, then Slice.  Maybe your data is actually 3d?  Try running a slice 
filter on it first?

Mind moving this to the parav...@paraview.org e-mail list, so everyone 
can see the answer?

Thanks,

Alan

On 2/19/18, 11:20 AM, "Paraview-developers on behalf of Goli, Elyas" 
 wrote:

Hi All,

I have an axisymmetric 2D model in Paraview in x-y plane. I am 
trying to use the Rotational Extrude filter to rotate the model about the 
y-axis and make it a 3D model. However, the filter is iactive. Does any one 
have an idea of how to solve the issue?

Best,
Elyas
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Search the list archives at: 
http://markmail.org/search/?q=Paraview-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview-developers






___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sgouros, Thomas
Hi Sebastien:

I suspected that and also tried downgrading to webpack 1, but then loading
paraviewweb won't work because lots of its dependencies require webpack
versions up to 2.2.0. (babel-loader, expose-loader, schema-utils,
worker-loader, several others) It tells you to load the peer dependencies
by hand, but that seems not to work for paraviewweb, though I'm probably
misunderstanding something.

I will forget the examples and try building up a webpack from scratch, but
there are a few things in the webpack config that make me nervous about the
prospects:

 1. The alias PVWStyle.

 2. The "postcss: [require('autoprefixer')... ]

 3. 'loader: "expose?MyWebApp"'.

All of these seem like maybe they are going to be required for some parts
of paraviewweb. The current version of webpack seems to choke on them all,
and I won't know what to replace them with. Any advice?

Thank you.

 -Tom

On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> Hi Tom,
>
> The documentation was written when we were still using Webpack 1 and
> unfortunately it is outdated.
> I'll try to update it so it will be easier to follow for users that don't
> know any of those web tools.
>
> For normalize, you can find some information directly on their web site
> https://necolas.github.io/normalize.css/
>
> Seb
>
> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas  > wrote:
>
>> I tried that page twice and get errors about missing fix-autobahn, and
>> when I removed that from the package.json, webpack complained about missing
>> eslint (I installed eslint, but it doesn't change), and then errors saying
>> "Webpack has been initialised using a configuration object that does not
>> match the API schema" and errors about the output directory needing to be
>> an "**absolute path** (required)". I'm sure there's something simple I'm
>> missing, but not sure what.
>>
>> Thank you,
>>
>>  -Tom
>>
>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser 
>> wrote:
>>
>>> I think you're looking for the setup doc: https://kitware.github.io
>>> /paraviewweb/docs/setup.html
>>> It gives you a sample webpack config. Nearly all the paraviewweb
>>> dependencies are contained in kw-websuite, as documented on that page.
>>>
>>> The examples as they stand use a bit of magic, you are right, so they
>>> can be embedded in the documentation pages. AFAIK, we don't have an install
>>> option to make a stand-alone example.
>>> Regards,
>>> Aron
>>>
>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
 Thank you. it would be great also to have pointers to normalize.css,
 and the webpack and package configs for these examples. They are more like
 puzzles than examples in their current state, with the challenge to find
 all the missing pieces and guess how to put them together. Am I missing
 some intro that steps me through those parts? Or is there a way to see the
 whole example laid out with those other pieces? Maybe an npm install option
 that will give me these examples on my disk?

 I see fragments of examples on this page: https://kitware.github.i
 o/paraviewweb/docs/import.html , but apparently it is not enough for
 me.

 Thank you,

  -Tom

 On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser 
 wrote:

> Hi Tom,
> The ParaviewWeb examples always live in a sub-directory of the
> component they illustrate - so here, this is the Composite example, so 
> '..'
> just refers to 'Composite'.
> If you look in the left menu, you can see that 'Composite' is grouped
> into ' Component/Native'. That's the directory it's in.  
> '../../BackgroundColor'
> is a sibling directory to 'Composite', so it will also be in '
> Component/Native'
>
> Generally you can follow the '..' out from the example sub-directory
> and figure out where you are.
>
> Hope that helps,
> Aron
>
> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas <
> thomas_sgou...@brown.edu> wrote:
>
>> Hello all:
>>
>> When I see a Paraviewweb example like this (from Composite.html):
>>
>> import CompositeComponent from '..';
>> import BGColorComponent from '../../BackgroundColor';
>>
>> Where should I look for BackgroundColor and CompositeComponent? I
>> feel sure I could find them eventually, but is there another search
>> algorithm besides brute force?
>>
>> Thank you,
>>
>>  -Tom
>>
>> ___
>> 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: 

Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sebastien Jourdain
Hi Tom,

The documentation was written when we were still using Webpack 1 and
unfortunately it is outdated.
I'll try to update it so it will be easier to follow for users that don't
know any of those web tools.

For normalize, you can find some information directly on their web site
https://necolas.github.io/normalize.css/

Seb

On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas 
wrote:

> I tried that page twice and get errors about missing fix-autobahn, and
> when I removed that from the package.json, webpack complained about missing
> eslint (I installed eslint, but it doesn't change), and then errors saying
> "Webpack has been initialised using a configuration object that does not
> match the API schema" and errors about the output directory needing to be
> an "**absolute path** (required)". I'm sure there's something simple I'm
> missing, but not sure what.
>
> Thank you,
>
>  -Tom
>
> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser 
> wrote:
>
>> I think you're looking for the setup doc: https://kitware.github.io
>> /paraviewweb/docs/setup.html
>> It gives you a sample webpack config. Nearly all the paraviewweb
>> dependencies are contained in kw-websuite, as documented on that page.
>>
>> The examples as they stand use a bit of magic, you are right, so they can
>> be embedded in the documentation pages. AFAIK, we don't have an install
>> option to make a stand-alone example.
>> Regards,
>> Aron
>>
>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Thank you. it would be great also to have pointers to normalize.css, and
>>> the webpack and package configs for these examples. They are more like
>>> puzzles than examples in their current state, with the challenge to find
>>> all the missing pieces and guess how to put them together. Am I missing
>>> some intro that steps me through those parts? Or is there a way to see the
>>> whole example laid out with those other pieces? Maybe an npm install option
>>> that will give me these examples on my disk?
>>>
>>> I see fragments of examples on this page: https://kitware.github.i
>>> o/paraviewweb/docs/import.html , but apparently it is not enough for me.
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser 
>>> wrote:
>>>
 Hi Tom,
 The ParaviewWeb examples always live in a sub-directory of the
 component they illustrate - so here, this is the Composite example, so '..'
 just refers to 'Composite'.
 If you look in the left menu, you can see that 'Composite' is grouped
 into ' Component/Native'. That's the directory it's in.  
 '../../BackgroundColor'
 is a sibling directory to 'Composite', so it will also be in '
 Component/Native'

 Generally you can follow the '..' out from the example sub-directory
 and figure out where you are.

 Hope that helps,
 Aron

 On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas <
 thomas_sgou...@brown.edu> wrote:

> Hello all:
>
> When I see a Paraviewweb example like this (from Composite.html):
>
> import CompositeComponent from '..';
> import BGColorComponent from '../../BackgroundColor';
>
> Where should I look for BackgroundColor and CompositeComponent? I feel
> sure I could find them eventually, but is there another search algorithm
> besides brute force?
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://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:
> https://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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sgouros, Thomas
I tried that page twice and get errors about missing fix-autobahn, and when
I removed that from the package.json, webpack complained about missing
eslint (I installed eslint, but it doesn't change), and then errors saying
"Webpack has been initialised using a configuration object that does not
match the API schema" and errors about the output directory needing to be
an "**absolute path** (required)". I'm sure there's something simple I'm
missing, but not sure what.

Thank you,

 -Tom

On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser 
wrote:

> I think you're looking for the setup doc: https://kitware.github.
> io/paraviewweb/docs/setup.html
> It gives you a sample webpack config. Nearly all the paraviewweb
> dependencies are contained in kw-websuite, as documented on that page.
>
> The examples as they stand use a bit of magic, you are right, so they can
> be embedded in the documentation pages. AFAIK, we don't have an install
> option to make a stand-alone example.
> Regards,
> Aron
>
> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas  > wrote:
>
>> Thank you. it would be great also to have pointers to normalize.css, and
>> the webpack and package configs for these examples. They are more like
>> puzzles than examples in their current state, with the challenge to find
>> all the missing pieces and guess how to put them together. Am I missing
>> some intro that steps me through those parts? Or is there a way to see the
>> whole example laid out with those other pieces? Maybe an npm install option
>> that will give me these examples on my disk?
>>
>> I see fragments of examples on this page: https://kitware.github.i
>> o/paraviewweb/docs/import.html , but apparently it is not enough for me.
>>
>> Thank you,
>>
>>  -Tom
>>
>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser 
>> wrote:
>>
>>> Hi Tom,
>>> The ParaviewWeb examples always live in a sub-directory of the component
>>> they illustrate - so here, this is the Composite example, so '..' just
>>> refers to 'Composite'.
>>> If you look in the left menu, you can see that 'Composite' is grouped
>>> into ' Component/Native'. That's the directory it's in.  
>>> '../../BackgroundColor'
>>> is a sibling directory to 'Composite', so it will also be in '
>>> Component/Native'
>>>
>>> Generally you can follow the '..' out from the example sub-directory and
>>> figure out where you are.
>>>
>>> Hope that helps,
>>> Aron
>>>
>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
 Hello all:

 When I see a Paraviewweb example like this (from Composite.html):

 import CompositeComponent from '..';
 import BGColorComponent from '../../BackgroundColor';

 Where should I look for BackgroundColor and CompositeComponent? I feel
 sure I could find them eventually, but is there another search algorithm
 besides brute force?

 Thank you,

  -Tom

 ___
 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:
 https://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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Finding all the points associated with one closed contour line

2018-02-19 Thread Shuhao Wu

Hello All,

I'm currently using the Contour filter on a 2D slice. This contour gives 
me a series of closed loops at arbitrary locations of my plot. Does 
Paraview/VTK already expose a way to group the points associated with 
each of these closed loops?


If not, I have two possible strategies to detect these points:

1. I think the contour filter outputs the points of each closed loops in 
sequential order in the point array. I could compare the geometric 
distance between two sequential points in the array and detect a "large 
jump" followed by a "large decrease" to detect the transition from one 
loop to the next.


2. I could employ some sort of cluster finding algorithm, although I'm 
not sure which one as I do not know how many of these loops are and 
likely need something that optimizes for boundaries as opposed to centroids.


Are these ideas sane if PV doesn't already expose some functionalities 
that I do not know about?


Thanks,
Shuhao
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Aron Helser
Hi Tom,
The ParaviewWeb examples always live in a sub-directory of the component
they illustrate - so here, this is the Composite example, so '..' just
refers to 'Composite'.
If you look in the left menu, you can see that 'Composite' is grouped into
' Component/Native'. That's the directory it's in.  '../../BackgroundColor'
is a sibling directory to 'Composite', so it will also be in '
Component/Native'

Generally you can follow the '..' out from the example sub-directory and
figure out where you are.

Hope that helps,
Aron

On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas 
wrote:

> Hello all:
>
> When I see a Paraviewweb example like this (from Composite.html):
>
> import CompositeComponent from '..';
> import BGColorComponent from '../../BackgroundColor';
>
> Where should I look for BackgroundColor and CompositeComponent? I feel
> sure I could find them eventually, but is there another search algorithm
> besides brute force?
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sgouros, Thomas
Hello all:

When I see a Paraviewweb example like this (from Composite.html):

import CompositeComponent from '..';
import BGColorComponent from '../../BackgroundColor';

Where should I look for BackgroundColor and CompositeComponent? I feel sure
I could find them eventually, but is there another search algorithm besides
brute force?

Thank you,

 -Tom
___
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:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Embedding paraview in PyQt application

2018-02-19 Thread Rustem Khabetdinov
Hello,

I am trying to embed paraview into my PyQt application but I have some
problems with python threading. For example, in my application I use my own
interactor style in which when user clicks left mouse button it executes
import time;time.sleep(2). But because of that there is a segfault.

This is what I tried so far:
I tried to build paraview changing these variables:
VTK_PYTHON_FULL_THREADSAFE
VTK_NO_PYTHON_THREAD
But there was no effect. Even when I disabled python threads time.sleep
caused segfault.

is there anything else I can try to do?

Thanks,
Rustem
___
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:
https://public.kitware.com/mailman/listinfo/paraview