[vtkusers] passing point data through vtkCutter

Vines, John (Civ,ARL/CISD) jvines at arl.army.mil
Fri Sep 5 15:08:21 EDT 2003


Would someone send me in the right direction to get point data through the
vtkCutter filter?
 
 # Here I have scalar values ( point arrays )
 print CellToPointForCutter.GetOutput()
 
 cutEdges = vtkCutter()
 cutEdges.SetInput( CellToPointForCutter.GetOutput() )
 cutEdges.SetCutFunction( pvPlane1 )
 cutEdges.GenerateCutScalarsOn()
 cutEdges.SetValue(0, 0.5)
 
 # Here I do not have any scalar values ( point arrays )
 print cutEdges.GetOutput()

At present my input
"CellToPointForCutter.GetOutput()" has point data: 
 
  Point Data:
    Debug: Off
    Modified Time: 521
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 9
    Array 0 name = Energy for block
    Array 1 name = Pressure
    Array 2 name = Void Volume Fraction
    Array 3 name = X Velocity
    Array 4 name = Y Velocity
    Array 5 name = Z Velocity
    Array 6 name = Temperature
    Array 7 name = Temperature for block
    Array 8 name = Mass for block
    Number Of Components: 9
    Number Of Tuples: 35763
 
but after I process the cutter I do not have my point data:
"cutEdges.GetOutput()"

  Point Data:
    Debug: Off
    Modified Time: 1711
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Flags: ( 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
 
Thanks in advance!!
 
John    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030905/0eb8fcff/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4678 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030905/0eb8fcff/attachment.bin>


More information about the vtkusers mailing list