<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Jothy, I get an attribute error when I try that...and I don't see GetInput() on the vtkPolyData() documentation.&nbsp; If GetPointCells() is a subclass of vtkPolyData (and distanceMapper.Surface
 is a vtkPolyData), shouldn't I just be able to run it as a subclass without specifying an input?<br>
<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF199326"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Jothybasu Selvaraj [jothybasu@gmail.com]<br>
<b>Sent:</b> Friday, February 17, 2012 11:08 AM<br>
<b>To:</b> Berkowitz, Benjamin M<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] Accessing vtkPolyData scalars with Python<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">If surface is your input then you should use<br>
<br>
mapper.GetInput().GetPointCells()<br>
<br>
Jothy<br>
<br>
<br>
<br>
<div class="gmail_quote">On Fri, Feb 17, 2012 at 4:54 PM, bberkowi <span dir="ltr">
&lt;<a href="mailto:benjamin-berkowitz@uiowa.edu" target="_blank">benjamin-berkowitz@uiowa.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The error is:<br>
<br>
Traceback (most recent call last):<br>
&nbsp;File &quot;VTK_testing.py&quot;, line 100, in &lt;module&gt;<br>
&nbsp; &nbsp;distanceMapper.Surface.GetPointCells(i, pointCellIds)<br>
ValueError: method requires a VTK object<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Accessing-vtkPolyData-scalars-with-Python-tp5470807p5493180.html" target="_blank">
http://vtk.1045678.n5.nabble.com/Accessing-vtkPolyData-scalars-with-Python-tp5470807p5493180.html</a><br>
</font>
<div>
<div></div>
<div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div dir="ltr">Jothy<br>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>