MantisBT - ParaView
View Issue Details
0007059ParaViewBugpublic2008-05-20 09:132016-08-12 09:57
Berk Geveci 
Utkarsh Ayachit 
normalminorsometimes
closedmoved 
 
 
0007059: XMLPPolyDataWriter produces bad output when writing in parallel - no cells
When writing out the output of the programmable filter (no cells, just points) in parallel, XMLPPolyDataWriter produces wrong output - some of the vtp files do not have any points. See the script in "Steps To Reproduce"
import paraview
import paraview.vtk

input=self.GetInput()
output=self.GetOutput()
pts=vtk.vtkPoints()
output.SetPoints(pts)
print "testing"
print output
iterator=input.NewIterator()
iterator.VisitOnlyLeavesOn()

usedIds=[]
firstTime=1;
while (not iterator.IsDoneWithTraversal()):
       set=iterator.GetCurrentDataObject()
       iterator.GoToNextItem()

       # copy arrays from input dataset to output dataset
       if (firstTime):
               output.GetPointData().CopyStructure(set.GetPointData())
               firstTime=0;
               print output

       array=set.GetPointData().GetArray("Fragment Id")
       if (array):
               for i in xrange(0,array.GetNumberOfTuples()):
                       id=array.GetComponent(i,0)
                       if usedIds.count(id)==0:
                               usedIds.append(id)
                               # copy point values to output polydaya
                               output.GetPoints().InsertNextPoint(set.GetPoint(i))
                               output.GetPointData().InsertNextTuple(i,set.GetPointData())
No tags attached.
Issue History
2008-05-20 09:13Berk GeveciNew Issue
2009-02-17 16:28Ken MorelandStatusbacklog => tabled
2009-02-17 16:28Ken MorelandAssigned To => Utkarsh Ayachit
2009-05-13 13:46Utkarsh AyachitTarget Version => 3.6
2009-08-25 18:43Utkarsh AyachitCategory => Bug
2009-08-25 18:43Utkarsh AyachitTarget Version3.6 => 3.8
2016-08-12 09:57Kitware RobotNote Added: 0037575
2016-08-12 09:57Kitware RobotStatusexpired => closed
2016-08-12 09:57Kitware RobotResolutionopen => moved

Notes
(0037575)
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.