[vtkusers] FW: passing point data through vtkCutter
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Mon Sep 8 08:06:34 EDT 2003
cutEdges.Update() #important
print cutEdges.GetOutput()
Vines, John (Civ,ARL/CISD) wrote:
>
> -----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
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/
More information about the vtkusers
mailing list