[vtkusers] How to extract Scalar and Point Data from ProbeFilter?

FUJII Kenji kenji.fujii at noe.co.jp
Wed Jan 26 03:23:14 EST 2011


Hi there,

I want to extract Point and Scalar Data from ProbeFilter that was Probing or 
Cutting from Polydata.

To extract them, I was trying to call some function (GetOutput, 
GetPointData, GetScalars etc...)
But It doesn't work well. What I tried in Python is as follows.

// ----------------------------
probe = vtk.vtkProbeFilter()  # or  cutter = vtk.ctkCutter()
...
data = vtk.vtkDoubleArray()
data.SetNumberOfComponents(1)
data.SetNumberOfTuples(20*20)
data = probe.GetOutput().GetPointData().GetScalars()
print data
// ----------------------------

The result of  "print data" was (None).
I think vtkProbeFilter and vtkCutter may not have Point and Scalar data.

Please reply if someone knows how to extract their data.

Regards,











################################################
日東紡音響エンジニアリング株式会社
システム事業部 藤井 健司 

〒130-0021 東京都墨田区緑1-21-10 BR両国2ビル 4F
TEL:03-3634-5300 FAX:03-3634-5350
Email:kenji.fujii at noe.co.jp
################################################





More information about the vtkusers mailing list