<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey&nbsp;Aurélien,<div><br></div><div>(Someone with more detailed knowledge can correct me if I'm wrong...) pdi and inputs[0] refer to the same input to the programmable filter, but pdi is the VTK object and inputs[0] is a more Python-friendly wrapper for the VTK object which makes access to the object properties more pythonic, and allows easy creation of numpy arrays behind the scenes for shorter code. Maybe there is a way to prove that they refer to the same object, but I don't know offhand how to do that. :)</div><div><br></div><div>I end up using both methods for object access depending on what I'm doing. If I'm doing more "pure VTK" manipulations then I use pdi, but if I'm doing calculations (and sometimes assignments) with the attribute and point arrays, then I like using the new API with numpy.</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br></div><div><br><div><div>On Aug 23, 2010, at 3:38 AM, Aurélien Marsan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello Eric, <br><br>In the solution you propose, what is the inputs[0] for ?<br>Is there a connection between the line : <br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">

pdi = self.GetInputDataObject(0,0)<br></blockquote><div>and inputs[0] ? <br><br>Or does inputs[0] picks on something else ? <br><br>Thanks,<br><br>Aurélien<br></div>
</blockquote></div><br></div></body></html>