<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">It would be really efficient if the vtkCellArray contained a reverse mapping to the cells; e.g.</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">GetCellsAtPoint(vktIdType index, vtkIdType &ncells, vtkIdType *&cells)</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">This might, however, add too much memory overhead.<br></div><div><br></div><div id="ydp51789431yahoo_quoted_1083339150" class="ydp51789431yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
</div><div>It would be really efficient if vtkCellArray contained a reverse mapping to the cells for a given point; e.g.<br></div><div><a class="ydpd213c141el enhancr_card_1742342531" href="https://www.vtk.org/doc/nightly/html/classvtkCellArray.html#a0f6a2dd3d71233dfea6dbe70a6e1673e" rel="nofollow" target="_blank">GetCellsAtPoint</a> (<a class="ydpd213c141el" href="https://www.vtk.org/doc/nightly/html/vtkType_8h.html#a20bd6b6dedfe1bbb096c50354d52cc7e" rel="nofollow" target="_blank">vtkIdType</a> index, <a class="ydpd213c141el" href="https://www.vtk.org/doc/nightly/html/vtkType_8h.html#a20bd6b6dedfe1bbb096c50354d52cc7e" rel="nofollow" target="_blank">vtkIdType</a> &ncells, <a class="ydpd213c141el" href="https://www.vtk.org/doc/nightly/html/vtkType_8h.html#a20bd6b6dedfe1bbb096c50354d52cc7e" rel="nofollow" target="_blank">vtkIdType</a> *&cells)<br></div><div><br></div><div id="ydp1c87c1a3enhancr_card_1742342531" class="ydp1c87c1a3yahoo-link-enhancr-card ydp1c87c1a3yahoo-link-enhancr-not-allow-cover ydp1c87c1a3ymail-preserve-class ydp1c87c1a3ymail-preserve-style" style="max-width:400px;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;" data-url="https://www.vtk.org/doc/nightly/html/classvtkCellArray.html#a0f6a2dd3d71233dfea6dbe70a6e1673e" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://www.vtk.org/doc/nightly/html/classvtkCellArray.html#a0f6a2dd3d71233dfea6dbe70a6e1673e" style="text-decoration:none !important;color:#000 !important;" class="ydp1c87c1a3yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table class="ydp1c87c1a3card-wrapper ydp1c87c1a3yahoo-ignore-table" style="max-width:400px;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="400"><table class="ydp1c87c1a3card ydp1c87c1a3yahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px;" width="100%" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><table class="ydp1c87c1a3card-info ydp1c87c1a3yahoo-ignore-table" style="background-color: rgb(255, 255, 255); background-image: none; background-repeat: repeat; background-attachment: scroll; background-size: auto auto; position: relative; z-index: 2; width: 100%; max-width: 400px; border-radius: 0px 0px 2px 2px; border-top: 1px solid rgb(224, 228, 233);" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;border-radius:0 0 2px 0;"><h2 class="ydp1c87c1a3card-title" style="font-size:14px;line-height:19px;margin:0 0 6px 0;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;word-break:break-word;color:#26282a;">VTK: vtkCellArray Class Reference</h2><p class="ydp1c87c1a3card-description" style="font-size:12px;line-height:16px;margin:0px;color:#979ba7;word-break:break-word;"></p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div><div><br></div><div>On Thursday, March 15, 2018, 12:56:00 AM GMT+13, PhD Andrea Vitali <andrea.vitali1@unibg.it> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">In this way, we could drastically improve real-time performances with big<br clear="none">polydata.<br clear="none"><br clear="none">Great!!<br clear="none"><br clear="none">I will try it directly on a polydata extracted by an MRI volume.<br clear="none"><br clear="none">I will give you some feedbacks about results.<br clear="none"><br clear="none">Andrea<br clear="none"><br clear="none"><br clear="none"><br clear="none">--<br clear="none">Sent from: <a shape="rect" href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="nofollow" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><div class="ydp51789431yqt6425659638" id="ydp51789431yqtfd46187"><br clear="none">_______________________________________________<br clear="none">Powered by www.kitware.com<br clear="none"><br clear="none">Visit other Kitware open-source projects at <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br clear="none">Search the list archives at: <a shape="rect" href="http://markmail.org/search/?q=vtkusers" rel="nofollow" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a shape="rect" href="https://vtk.org/mailman/listinfo/vtkusers" rel="nofollow" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br clear="none"></div></div></div>
</div>
</div></div></body></html>