<br><div class="gmail_quote">On Thu, Aug 6, 2009 at 12:41 PM, Dirk VanBruggen <span dir="ltr"><<a href="mailto:dirk.c.vanbruggen@gmail.com">dirk.c.vanbruggen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
How do I go about finding a mapping between this string name and the vertex id? I see that vtkGraph.FindVertex may be of some help but it does not seem to be a valid function when I use it. I am using the Python Binding. Would that cause this issue?</blockquote>
</div><div><br></div>This should work:<br><span class="Apple-style-span" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">SetOriginVertexString("label", "the-label-of-the-vertex")</span><br clear="all">
<br><div>FindVertex will find a vertex by its pedigree id, which may not be what you want since you are using the "label" array which may not be pedigree ids. FindVertex takes a vtkVariant as an argument, and currently any methods with a vtkVariant in the signature are not wrapped.</div>
<div><br></div><div>Jeff</div><div><br>-- <br>Jeff Baumes, Ph.D.<br>R&D Engineer, Kitware Inc.<br>(518) 881-4932<br><a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a><br>
</div>