What do you mean by points in common? Do you mean that they come from the same vtkPoints or that they just share the same coordinate values (to within tolerance at least)?<br><br>If you mean that they share the same coordinate values you can use the vtkIncrementalOctreePointLocator to avoid duplicates.<br>
<br>If you mean that they come from the same vtkPointSet how about iterating through the blocks and if the block is not a vtkPointSet then create their global ids. If the block is derived from vtkPointSet, then get the vtkPoints. If you've already gone through this set of points then skip it (you can store the pointer in a set to mark it as being examine), otherwise go through and create your global ids for each point in vtkPoints and add vtkPoints to the set. Of course this assumes that you do a shallow copy/reference counting on the vtkPoints so that the pointer to multiple copies of them are the same.<br>
<br><div class="gmail_quote">On Thu, Aug 6, 2009 at 1:27 AM, Rafael March <span dir="ltr"><<a href="mailto:rafaelmarch3@yahoo.com">rafaelmarch3@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Hi,<br><br>how to correctly generate a Points Global IDs to a vtkMultiBlockDataSet ? The IDs must, of course, be unique. I tried to iterate through the blocks and attribute to each part a vtkIntArray with the IDs, but of course this does not work when the parts have points in common. <br>
<br>Also, I'm specially interested in MultiBlock comming from Ensight files, and I discovered recently that the Ensight Reader does not associate the "true" number of points to each part. So the GetNumberOfPoints() method doesn't work in these cases.<br>
<br>How to achieve this ? I really need these Global IDs in order to uniquely identify each node of my model, to create a finite element preprocessor.<br><br>Regards,<br>Rafael March.<br><br><br></td></tr></tbody></table>
<br>
<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>