<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="ES" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">You may use vtkPointSet to achieve most of your needs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&gt;&gt;</span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> able to add individual points at random<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">vtkPointSet::</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a01526.html#f8a9a39d0ff4c56454be8d35a42b7f34"><span lang="EN-US">GetPoints</span></a></span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">()</span><span lang="EN-US" style="font-size:
11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">::InsertNextPoint()</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">
 and call for each point you want to add.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Also, you may
</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">call<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">vtkPointSet::</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a01526.html#f8a9a39d0ff4c56454be8d35a42b7f34"><span lang="EN-US">GetPoints</span></a></span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">()</span><span lang="EN-US" style="font-size:
11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">::SetNumberOfPoints()
 to specify the number of points and then set each point using vtkPointSet::GetPoints()::</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a01524.html#0ca9c77d1efbeb7dff8d15ec34b19192"><span lang="EN-US">SetPoint()</span></a></span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&gt;&gt;want it to be able to detect if the point is already contained<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">vtkPointSet::</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a01526.html#a752212d5f6334f42dfcfd7d5ba10977"><span lang="EN-US">FindPoint</span></a></span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">-- I need access to the underlying data for an external programme<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">vtkPointSet::</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a00485.html#e8406fa1dc144b392ef28111c71a47b0"><span lang="EN-US">GetPoint</span></a></span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">s()::GetPoint(</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">pointid</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">)</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a00485.html#e8406fa1dc144b392ef28111c71a47b0"><span style="color:windowtext;text-decoration:none">--Finally,
 and most importantly, I want to be able to delete points</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">vtkPointSet::</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><a href="file:///E:\DOCUMENTATION\TK\VTK\vtkDocHtml-5.8.0\html\a00485.html#e8406fa1dc144b392ef28111c71a47b0"><span lang="EN-US">GetPoint</span></a></span><span lang="EN-US" style="font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">s()::GetData().RemoveTuple(</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">pointid</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">--</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;So deletion should not re-number the point ids once a point is removed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I owe you that, unfortunately I think vtkIdType is just an index rather than a key.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:
&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org]
<b>On Behalf Of </b>Andrew Parker<br>
<b>Sent:</b> miércoles, 13 de noviembre de 2013 8:27<br>
<b>To:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [vtkusers] Point addition and removal data structure<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">All, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I am looking for a vtk data structure with the following requirements:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">-- I want to be able to add individual points at random, rather than construct the data structure from a point list. &nbsp;When the point is added I want the id of the point added returned<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">-- I want it to be able to detect if the point is already contained, and if so return the id of the contained point, else the newly added id - so strongly enforce no duplication. &nbsp;I would prefer a very tight tolerance for duplicate point
 detection.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">-- I need access to the underlying data for an external programme, so I'm hoping that they're stored as x_y_x for point 0 and then x_y_z for point 1 etc. &nbsp;I can live without this, but would prefer access to contiguous underlying storage.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">-- Finally, and most importantly, I want to be able to delete points, without it invalidating previously returned id's for other points that remain after deletion. &nbsp;So deletion should not re-number the point ids once a point is removed.
 &nbsp;It should also not be an overly costly process to delete, as this is likely to happen just as frequently as addition. &nbsp;I would prefer deletion over contiguous point storage, so if I have to sacrifice one then it would be the above requirement rather than
 this one.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I thought I had most of the above with vtkMergePoints, but I don't think I can remove points with that data structure? &nbsp;Or at least I couldn't figure that out?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Can anybody recommend anything in vtk that can do all of the above? &nbsp;Or indeed as equally valid confirm that the above cannot all be met currently within vtk?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Speed and efficiency of both point addition and removal are vital. &nbsp;I only care about 3D points, so not bothered about connectivity of faces/cells etc.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Andy<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:7.5pt;
font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">La Universidad Central &quot;Marta Abreu&quot; de Las Villas en su 60 Aniversario. Fundada el 30 de noviembre de 1952. Visítenos en: http://www.uclv.edu.cu<br>
Participe en Universidad 2014, del 10 al 14 de febrero de 2014. Habana. Cuba. http://www.congresouniversidad.cu/<br>
<br>
</span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Se certificó que el correo no contiene virus.<br>
Comprobada por AVG - <a href="http://www.avg.es">www.avg.es</a><br>
Versión: 2013.0.3349 / Base de datos de virus: 3204/6513 - Fecha de la versión: 23/07/2013<br>
Las Definiciones de virus internas están desactualizadas.<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">La Universidad Central &quot;Marta Abreu&quot; de Las Villas en su 60 Aniversario. Fundada el 30 de noviembre de 1952. Visítenos en: http://www.uclv.edu.cu<br>
Participe en Universidad 2014, del 10 al 14 de febrero de 2014. Habana. Cuba. http://www.congresouniversidad.cu/<br>
<br>
<br>
</font>
</body>
</html>