[vtkusers] FW: passing point data through vtkCutter

Vines, John (Civ,ARL/CISD) jvines at arl.army.mil
Mon Sep 8 08:17:39 EDT 2003


 
-----Original Message-----
From: Vines, John (Civ,ARL/CISD) 
Sent: Friday, September 05, 2003 3:08 PM
To: vtkusers at vtk.org
Subject: passing point data through vtkCutter


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/20030908/1b4edf60/attachment.htm>


More information about the vtkusers mailing list