MantisBT - ParaView
View Issue Details
0009958ParaViewBugpublic2009-11-23 17:042016-08-12 09:57
Ken Moreland 
Yumin Yuan 
normalminorhave not tried
closedmoved 
 
 
Sandia
incorrect functionality
0009958: Clip filter not updating when ClipType changed in Python
When creating and editing a clip filter in Python, the filter does not update properly after the ClipType is changed. To replicate, enter the following script in the Python shell.

wavelet = Wavelet()
clip = Clip()
clip.InsideOut = 1
clip.ClipType = "Box"
clip.ClipType.Scale = [0.5,0.5,0.5]
Show()
Render()

At this point the filters should all be executed and updated. However, the output of the clip filter is empty.
No tags attached.
Issue History
2009-11-23 17:04Ken MorelandNew Issue
2010-04-16 02:09Utkarsh AyachitTarget Version3.8 => 3.10
2011-04-27 16:27Utkarsh AyachitNote Added: 0026271
2011-04-27 16:27Utkarsh AyachitStatusbacklog => @80@
2011-04-27 16:27Utkarsh AyachitFixed in Version => 3.12
2011-04-27 16:27Utkarsh AyachitResolutionopen => unable to reproduce
2011-04-27 16:27Utkarsh AyachitAssigned To => Utkarsh Ayachit
2011-05-02 21:39Ken MorelandNote Added: 0026415
2011-05-02 21:39Ken MorelandStatus@80@ => @20@
2011-05-02 21:39Ken MorelandResolutionunable to reproduce => reopened
2013-01-08 21:30Alan ScottProject => Sandia
2013-01-08 21:30Alan ScottType => incorrect functionality
2013-05-03 14:01Utkarsh AyachitAssigned ToUtkarsh Ayachit => Yumin Yuan
2013-05-07 17:04Yumin YuanStatusbacklog => todo
2013-05-07 17:04Yumin YuanStatustodo => active development
2013-05-09 15:41Yumin YuanNote Added: 0030739
2013-05-13 11:44Yumin YuanNote Added: 0030756
2013-05-13 11:44Yumin YuanStatusactive development => todo
2016-08-12 09:57Kitware RobotNote Added: 0037750
2016-08-12 09:57Kitware RobotStatustodo => closed
2016-08-12 09:57Kitware RobotFixed in Version3.12 =>
2016-08-12 09:57Kitware RobotResolutionreopened => moved

Notes
(0026271)
Utkarsh Ayachit   
2011-04-27 16:27   
Seems to work now.
(0026415)
Ken Moreland   
2011-05-02 21:39   
I just pulled the latest on Mac and still have the same problem.
(0030739)
Yumin Yuan   
2013-05-09 15:41   
Ok, I figured out the problem. By default the clip box's bounds is set to (0,1,0,1,01), which you may notice after clip.ClipType = "Box", and "clip.ClipType.Scale = [0.5,0.5,0.5]" will make the bounds become (0,0.5,0,0.5,0, 0.5), therefore the output of clip is empty as expected, because it only considers point (0,0,0) is inside. If you add "clip.Crinkleclip = 1", you can see some cells.

If you do "clip.ClipType.Bounds = [-5.0, 5.0, -5.0, 5.0, -5.0, 5.0]", instead of "clip.ClipType.Scale = [0.5,0.5,0.5]", the output will be correct. In summary, when running from python, the clip box's bounds needs to be explicitly set currently, just like the radius of clip-with-sphere, in this case we can say this bug is a user error. However, the other (ideal) option will be using the bounds of input data for the clip-box's bounds or clip-sphere's radius (just like doing it from GUI). I will let you guys decide how I should proceed from here.
(0030756)
Yumin Yuan   
2013-05-13 11:44   
To really fix this, more work needs to be planned. For now, put it in to-do list.
(0037750)
Kitware Robot   
2016-08-12 09:57   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.