Re: [Paraview] Losing data when clip multi-block

2009-02-10 Thread Berk Geveci
Eric,

I think we dealt with this problem since 3.4. I can't reproduce the
problem with your first set of instructions on cvs head. Do you mind
trying the cvs version?

-berk

On Fri, Feb 6, 2009 at 2:57 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hey Alan,

 Are you seeing both the point and cell Ids arrays? When I do this I end up
 with only the cell Ids array -- the points one is missing.

 Here's another one that loses a data array consistently:

 Create a Point Source (100 pts, 10 radius)
 Apply Elevation filter to points
 Create a Sphere Source
 Apply Curvature filter to sphere
 Select Elevation then Curvature
 Group
 Clip
 Gauss_Curvature is missing in Clip Information (only see Elevation 
 Normals)
 (or, after deleting clip and group filters)
 Select Curvature then Elevation
 Group
 Clip
 Elevation is missing in Clip Information (only see Gauss_Curvature 
 Normals)

 Any luck with that one? (I'd just like to hear that someone can reproduce
 the problem before I file a bug report...)

 Thanks,
 -Eric


 On Feb 6, 2009, at 1:47 PM, Scott, W Alan wrote:

 Eric,
 I was trying to replicate this bug, and cannot.   Please give me detailed
 instructions on how to replicate it, and I will put it in the bug tracker.
  Better yet would be you putting it in the bug tracker.

 I tried:
 ParaView CVS trunk from late January, XP, non client/server.
 Source/Box
 Source/Wavelet
 (Highlight Box) Filters/ Generate Ids
 (Highlight GenerateId and Wavelet) Filters/ Group Datasets
 Clip
 I then see the Ids points data as follows: Ids (partial)

 alan

 -Original Message-
 From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org]
 On Behalf Of Eric E. Monson
 Sent: Friday, February 06, 2009 7:09 AM
 To: ParaView List
 Subject: Re: [Paraview] Losing data when clip multi-block

 Hey Utkarsh,

 No, I've never seen the clip lose data on one dataset by itself.

 The other interesting thing is that I can't always get this data loss to
 happen if the data was generated as part of a source from the Sources menu.
 It's much more likely to disappear when the data was generated by a filter
 or brought in by a reader.

 For example, if you generate a Box and a Wavelet source, grouping and
 clipping them won't lose any data, but if you run Generate IDs on one of
 them, then select GenerateIds1 second before grouping, then clip, the Ids
 point data disappears...

 Thanks,
 -Eric


 On Feb 6, 2009, at 7:37 AM, Utkarsh Ayachit wrote:

 Eric,

 Does the loss of arrays happen even if you clip the orginal dataset by
 itself (without grouping it using the group filter)?

 Utkarsh

 On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson emon...@cs.duke.edu
 wrote:

 Hello,

 I'm creating a multi-block data set using the group filter and then
 clipping it. The results of the clip are always missing one of the
 scalars associated with the second data set that I highlighted before
 applying the group filter. This only seems to happen if one of the
 data sets has multiple scalars or vectors associated with it -- if
 they each only have one, nothing is lost in the clip. (ParaView 3.4
 and CVS, OS X 10.5.6 and Windows XP 32-bit, no MPI)

 I originally saw this with my own data, but I am able to easily
 replicate this by creating two point sources. I apply the Elevation
 filter to the first. Then, to the second I apply Brownian Vectors,
 plus a Calculator that computes the magnitude of those vectors. If I
 highlight Elevation and then Calculator, then Group and Clip, I lose
 the vector magnitude scalar at the Clip stage. If I highlight the
 Calculator and then the Elevation, then Group and Clip, I lose the
 elevation scalar.

 Please let me know if anyone has any ideas about where this could be
 coming from.

 Thanks a lot,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview

___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Losing data when clip multi-block

2009-02-10 Thread Eric E. Monson
Thanks a lot, Alan. This was driving me nuts that nobody could  
reproduce it! :)


For now I wish I could predict which variable was going to be lost so  
I could at least create a sacrificial array that could disappear and  
leave my real data intact.


I also wish I knew the difference in Berk's build that won't reproduce  
my first example since I still see the data loss on today's CVS. I'm  
trying an MPI build in case there would be a difference in how multi- 
block data sets are handled, but I know that's probably grasping at  
straws...


Anyway, thanks for filing the bug and I'll take a look at it later to  
see if I can add anything.


Talk to you later,
-Eric


On Feb 10, 2009, at 3:33 PM, Scott, W Alan wrote:


Eric,
Sorry for taking time to get back to you - I wanted to verify with  
the developers that this isn't expected behavior.  You have  
correctly found a bug.


I wrote this up as bug number 8494 in the Kitware bug tracker.  I  
used your very simple, excellent Point and Sphere source example  
listed below.  If I missed anything, please feel free to modify the  
bug appropriately.


Alan

-Original Message-
From: Berk Geveci [mailto:berk.gev...@kitware.com]
Sent: Tuesday, February 10, 2009 10:59 AM
To: Eric E. Monson
Cc: Scott, W Alan; ParaView List
Subject: Re: [Paraview] Losing data when clip multi-block

Eric,

I think we dealt with this problem since 3.4. I can't reproduce the  
problem with your first set of instructions on cvs head. Do you mind  
trying the cvs version?


-berk

On Fri, Feb 6, 2009 at 2:57 PM, Eric E. Monson emon...@cs.duke.edu  
wrote:

Hey Alan,

Are you seeing both the point and cell Ids arrays? When I do this I
end up with only the cell Ids array -- the points one is missing.

Here's another one that loses a data array consistently:

Create a Point Source (100 pts, 10 radius) Apply Elevation filter to
points Create a Sphere Source Apply Curvature filter to sphere Select
Elevation then Curvature Group Clip Gauss_Curvature is missing in  
Clip

Information (only see Elevation 
Normals)
(or, after deleting clip and group filters) Select Curvature then
Elevation Group Clip Elevation is missing in Clip Information (only
see Gauss_Curvature 
Normals)

Any luck with that one? (I'd just like to hear that someone can
reproduce the problem before I file a bug report...)

Thanks,
-Eric


On Feb 6, 2009, at 1:47 PM, Scott, W Alan wrote:


Eric,
I was trying to replicate this bug, and cannot.   Please give me  
detailed
instructions on how to replicate it, and I will put it in the bug  
tracker.

Better yet would be you putting it in the bug tracker.

I tried:
ParaView CVS trunk from late January, XP, non client/server.
Source/Box
Source/Wavelet
(Highlight Box) Filters/ Generate Ids (Highlight GenerateId and
Wavelet) Filters/ Group Datasets Clip I then see the Ids points data
as follows: Ids (partial)

alan

-Original Message-
From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org]
On Behalf Of Eric E. Monson
Sent: Friday, February 06, 2009 7:09 AM
To: ParaView List
Subject: Re: [Paraview] Losing data when clip multi-block

Hey Utkarsh,

No, I've never seen the clip lose data on one dataset by itself.

The other interesting thing is that I can't always get this data  
loss
to happen if the data was generated as part of a source from the  
Sources menu.

It's much more likely to disappear when the data was generated by a
filter or brought in by a reader.

For example, if you generate a Box and a Wavelet source, grouping  
and
clipping them won't lose any data, but if you run Generate IDs on  
one
of them, then select GenerateIds1 second before grouping, then  
clip, the Ids

point data disappears...

Thanks,
-Eric


On Feb 6, 2009, at 7:37 AM, Utkarsh Ayachit wrote:


Eric,

Does the loss of arrays happen even if you clip the orginal dataset
by itself (without grouping it using the group filter)?

Utkarsh

On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson  
emon...@cs.duke.edu

wrote:


Hello,

I'm creating a multi-block data set using the group filter and  
then

clipping it. The results of the clip are always missing one of the
scalars associated with the second data set that I highlighted
before applying the group filter. This only seems to happen if one
of the data sets has multiple scalars or vectors associated with  
it
-- if they each only have one, nothing is lost in the clip. 
(ParaView 3.4 and CVS, OS X 10.5.6 and Windows XP 32-bit, no MPI)


I originally saw this with my own data, but I am able to easily
replicate this by creating two point sources. I apply the  
Elevation

filter to the first. Then, to the second I apply Brownian Vectors,
plus a Calculator that computes the magnitude of those vectors. If
I highlight Elevation and then Calculator, then Group and Clip, I
lose the vector magnitude scalar at the Clip stage. If I highlight
the Calculator and then the Elevation, then Group and Clip, I lose
the elevation scalar

Re: [Paraview] Losing data when clip multi-block

2009-02-06 Thread Utkarsh Ayachit
Eric,

Does the loss of arrays happen even if you clip the orginal dataset by
itself (without grouping it using the group filter)?

Utkarsh

On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hello,

 I'm creating a multi-block data set using the group filter and then clipping
 it. The results of the clip are always missing one of the scalars associated
 with the second data set that I highlighted before applying the group
 filter. This only seems to happen if one of the data sets has multiple
 scalars or vectors associated with it -- if they each only have one, nothing
 is lost in the clip. (ParaView 3.4 and CVS, OS X 10.5.6 and Windows XP
 32-bit, no MPI)

 I originally saw this with my own data, but I am able to easily replicate
 this by creating two point sources. I apply the Elevation filter to the
 first. Then, to the second I apply Brownian Vectors, plus a Calculator that
 computes the magnitude of those vectors. If I highlight Elevation and then
 Calculator, then Group and Clip, I lose the vector magnitude scalar at the
 Clip stage. If I highlight the Calculator and then the Elevation, then Group
 and Clip, I lose the elevation scalar.

 Please let me know if anyone has any ideas about where this could be coming
 from.

 Thanks a lot,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Losing data when clip multi-block

2009-02-06 Thread Eric E. Monson

Hey Utkarsh,

No, I've never seen the clip lose data on one dataset by itself.

The other interesting thing is that I can't always get this data loss  
to happen if the data was generated as part of a source from the  
Sources menu. It's much more likely to disappear when the data was  
generated by a filter or brought in by a reader.


For example, if you generate a Box and a Wavelet source, grouping and  
clipping them won't lose any data, but if you run Generate IDs on one  
of them, then select GenerateIds1 second before grouping, then clip,  
the Ids point data disappears...


Thanks,
-Eric


On Feb 6, 2009, at 7:37 AM, Utkarsh Ayachit wrote:


Eric,

Does the loss of arrays happen even if you clip the orginal dataset by
itself (without grouping it using the group filter)?

Utkarsh

On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson emon...@cs.duke.edu  
wrote:

Hello,

I'm creating a multi-block data set using the group filter and then  
clipping
it. The results of the clip are always missing one of the scalars  
associated

with the second data set that I highlighted before applying the group
filter. This only seems to happen if one of the data sets has  
multiple
scalars or vectors associated with it -- if they each only have  
one, nothing
is lost in the clip. (ParaView 3.4 and CVS, OS X 10.5.6 and Windows  
XP

32-bit, no MPI)

I originally saw this with my own data, but I am able to easily  
replicate
this by creating two point sources. I apply the Elevation filter to  
the
first. Then, to the second I apply Brownian Vectors, plus a  
Calculator that
computes the magnitude of those vectors. If I highlight Elevation  
and then
Calculator, then Group and Clip, I lose the vector magnitude scalar  
at the
Clip stage. If I highlight the Calculator and then the Elevation,  
then Group

and Clip, I lose the elevation scalar.

Please let me know if anyone has any ideas about where this could  
be coming

from.

Thanks a lot,
-Eric

--
Eric E Monson
Duke Visualization Technology Group


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview



___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Losing data when clip multi-block

2009-02-06 Thread John Biddiscombe

Eric et al,

I recently had a problem where a filter opreated normally when used 
normally, but when someone put a calculator in front of it, it stopped 
working. The filter in question instantiated other filters internally.


I tracked to the problem down to this.

Calculator calls SetActiveScalars(New data)
another filter later does a PointData()-PassData(blah)
-SetActiveScalars(More New data)

And the New data from before was lost. I do not like this 
SetActiveScalars function because it replaces (not adds) whatever scalar 
was there before. I cnaged the offending filter (in this case 
vtkSurfaceVectors) on my copy to do

PointData()-PassData(blah)
PointData()-AddArray(newData);
PointData()-SetActiveScalars(newData-GetName())

or something like that (from memory).

I have no idea if this is related to your problem, but I just thought 
I'd vent my spleen and start a campaigh to remove this 
SetActiveScalars(...) call as it is just rubbish. (At least it should be 
modified internally to not remove the old active slalars if they are are 
about to be wiped)


JB



Hey Utkarsh,

No, I've never seen the clip lose data on one dataset by itself.

The other interesting thing is that I can't always get this data loss 
to happen if the data was generated as part of a source from the 
Sources menu. It's much more likely to disappear when the data was 
generated by a filter or brought in by a reader.


For example, if you generate a Box and a Wavelet source, grouping and 
clipping them won't lose any data, but if you run Generate IDs on one 
of them, then select GenerateIds1 second before grouping, then clip, 
the Ids point data disappears...


Thanks,
-Eric


On Feb 6, 2009, at 7:37 AM, Utkarsh Ayachit wrote:


Eric,

Does the loss of arrays happen even if you clip the orginal dataset by
itself (without grouping it using the group filter)?

Utkarsh

On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson emon...@cs.duke.edu 
wrote:

Hello,

I'm creating a multi-block data set using the group filter and then 
clipping
it. The results of the clip are always missing one of the scalars 
associated

with the second data set that I highlighted before applying the group
filter. This only seems to happen if one of the data sets has multiple
scalars or vectors associated with it -- if they each only have one, 
nothing

is lost in the clip. (ParaView 3.4 and CVS, OS X 10.5.6 and Windows XP
32-bit, no MPI)

I originally saw this with my own data, but I am able to easily 
replicate

this by creating two point sources. I apply the Elevation filter to the
first. Then, to the second I apply Brownian Vectors, plus a 
Calculator that
computes the magnitude of those vectors. If I highlight Elevation 
and then
Calculator, then Group and Clip, I lose the vector magnitude scalar 
at the
Clip stage. If I highlight the Calculator and then the Elevation, 
then Group

and Clip, I lose the elevation scalar.

Please let me know if anyone has any ideas about where this could be 
coming

from.

Thanks a lot,
-Eric

--
Eric E Monson
Duke Visualization Technology Group


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview



___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview



--
John Biddiscombe,email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland  | Fax:  +41 (91) 610.82.82


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Losing data when clip multi-block

2009-02-06 Thread Scott, W Alan
Eric,
I was trying to replicate this bug, and cannot.   Please give me detailed 
instructions on how to replicate it, and I will put it in the bug tracker.  
Better yet would be you putting it in the bug tracker.

I tried:
ParaView CVS trunk from late January, XP, non client/server.
Source/Box
Source/Wavelet
(Highlight Box) Filters/ Generate Ids  
(Highlight GenerateId and Wavelet) Filters/ Group Datasets
Clip
I then see the Ids points data as follows: Ids (partial)

alan

-Original Message-
From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Eric E. Monson
Sent: Friday, February 06, 2009 7:09 AM
To: ParaView List
Subject: Re: [Paraview] Losing data when clip multi-block

Hey Utkarsh,

No, I've never seen the clip lose data on one dataset by itself.

The other interesting thing is that I can't always get this data loss to happen 
if the data was generated as part of a source from the Sources menu. It's much 
more likely to disappear when the data was generated by a filter or brought in 
by a reader.

For example, if you generate a Box and a Wavelet source, grouping and clipping 
them won't lose any data, but if you run Generate IDs on one of them, then 
select GenerateIds1 second before grouping, then clip, the Ids point data 
disappears...

Thanks,
-Eric


On Feb 6, 2009, at 7:37 AM, Utkarsh Ayachit wrote:

 Eric,

 Does the loss of arrays happen even if you clip the orginal dataset by 
 itself (without grouping it using the group filter)?

 Utkarsh

 On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson emon...@cs.duke.edu
 wrote:
 Hello,

 I'm creating a multi-block data set using the group filter and then 
 clipping it. The results of the clip are always missing one of the 
 scalars associated with the second data set that I highlighted before 
 applying the group filter. This only seems to happen if one of the 
 data sets has multiple scalars or vectors associated with it -- if 
 they each only have one, nothing is lost in the clip. (ParaView 3.4 
 and CVS, OS X 10.5.6 and Windows XP 32-bit, no MPI)

 I originally saw this with my own data, but I am able to easily 
 replicate this by creating two point sources. I apply the Elevation 
 filter to the first. Then, to the second I apply Brownian Vectors, 
 plus a Calculator that computes the magnitude of those vectors. If I 
 highlight Elevation and then Calculator, then Group and Clip, I lose 
 the vector magnitude scalar at the Clip stage. If I highlight the 
 Calculator and then the Elevation, then Group and Clip, I lose the 
 elevation scalar.

 Please let me know if anyone has any ideas about where this could be 
 coming from.

 Thanks a lot,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Losing data when clip multi-block

2009-02-04 Thread Eric E. Monson

Hello,

I'm creating a multi-block data set using the group filter and then  
clipping it. The results of the clip are always missing one of the  
scalars associated with the second data set that I highlighted before  
applying the group filter. This only seems to happen if one of the  
data sets has multiple scalars or vectors associated with it -- if  
they each only have one, nothing is lost in the clip. (ParaView 3.4  
and CVS, OS X 10.5.6 and Windows XP 32-bit, no MPI)


I originally saw this with my own data, but I am able to easily  
replicate this by creating two point sources. I apply the Elevation  
filter to the first. Then, to the second I apply Brownian Vectors,  
plus a Calculator that computes the magnitude of those vectors. If I  
highlight Elevation and then Calculator, then Group and Clip, I lose  
the vector magnitude scalar at the Clip stage. If I highlight the  
Calculator and then the Elevation, then Group and Clip, I lose the  
elevation scalar.


Please let me know if anyone has any ideas about where this could be  
coming from.


Thanks a lot,
-Eric

--
Eric E Monson
Duke Visualization Technology Group


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview