Here is the list of methods in vtkCellLocatorInterpolatedVelocityField on my computer:<div><br></div><div><div>>>> import vtk</div><div>>>> vtk.vtkCellLocatorInterpolatedVelocityField.__dict__</div><div>{'<font class="Apple-style-span" color="#ff0000">GetCellLocatorPrototype</font>': <built-in method GetCellLocatorPrototype of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">NewInstance'</font>: <built-in method NewInstance of vtkclass object at 0x110e53a70>, <font class="Apple-style-span" color="#ff0000">'AddDataSet'</font>: <built-in method AddDataSet of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">SafeDownCast'</font>: <built-in method SafeDownCast of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">GetLastCellLocator</font>': <built-in method GetLastCellLocator of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">CopyParameters</font>': <built-in method CopyParameters of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">SetLastCellId</font>': <built-in method SetLastCellId of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">GetClassName</font>': <built-in method GetClassName of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">IsA</font>': <built-in method IsA of vtkclass object at 0x110e53a70>, '<font class="Apple-style-span" color="#ff0000">SetCellLocatorPrototype</font>': <built-in method SetCellLocatorPrototype of vtkclass object at 0x110e53a70>}</div>
<div><br></div><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 10:55 PM, Yifei Li <span dir="ltr"><<a href="mailto:yifli82@gmail.com">yifli82@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
FYI: I turned the program into C++ and it compiled successfully on the SAME machine.<div><br></div><div>Dear VTK developers, can you look into this problem? It's really annoying.</div><div><br></div><div>BTW, my development machine is a MacBook Pro running Lion. If you need more information, let me know.</div>
<div><br></div><div><font color="#888888">Yifei</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 8:44 PM, Yifei Li <span dir="ltr"><<a href="mailto:yifli82@gmail.com" target="_blank">yifli82@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<div><br></div><div>I got <span style="color:rgb(255, 18, 19);font-family:Monaco;font-size:11px">AttributeError: FunctionValues </span><font face="arial, helvetica, sans-serif">when I run the following code:</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">func = vtkCellLocatorInterpolatedVelocityField()</font></div>
<div><font face="arial, helvetica, sans-serif">func.AddDataSet(structured_grid)</font></div><div><font face="arial, helvetica, sans-serif">func.FunctionValues(point, tangent)</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Is this a bug? Any help is appreciated.</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><font color="#888888"><div><font face="arial, helvetica, sans-serif">Yifei</font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>
</font></blockquote></div><br></div></div></div>
</blockquote></div><br></div>