[vtkusers] Splitting vtkPolyData using scalars
    Chris Turner 
    cturnercomplex at googlemail.com
       
    Mon Aug  9 11:41:45 EDT 2010
    
    
  
Hi,
I have a surface model whose cells are assigned to scalar integers.
Now I want to split the model accordingly to it's scalar values. So
for every value I want a new vtkPolyData.
basically something like this (pseudo code):
for each c in poly.GetCells()
   newPolyData[c.GetValue()].AddCell(c)
I know you can do this by hand but I was wondering if there is a
filter or a method which can help me with that.
Thanks,
Chris
    
    
More information about the vtkusers
mailing list