<div dir="ltr">Nich: a filter that could be used for skinning: <a href="http://www.vtk.org/doc/nightly/html/classvtkWeightedTransformFilter.html#details">http://www.vtk.org/doc/nightly/html/classvtkWeightedTransformFilter.html#details</a><div>Also, another way to apply transforms in vtk is to apply it to the data structures, and not to the actor: <a href="http://www.vtk.org/doc/nightly/html/classvtkTransformPolyDataFilter.html">http://www.vtk.org/doc/nightly/html/classvtkTransformPolyDataFilter.html</a></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8000001907349px">Alexis Girault</span><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="color:rgb(136,136,136);font-size:12.8000001907349px">R&D Engineer in Medical Computing</span><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="color:rgb(136,136,136);font-size:12.8000001907349px">Kitware, Inc.</span><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><a href="http://www.kitware.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">http://www.kitware.com</a><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><font color="#999999"><a href="tel:(919)+969-6990+x325" target="_blank"><span style="font-size:12.8000001907349px">(919) 969-6990 x3</span>25</a></font><br></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Oct 21, 2016 at 11:03 AM, Alexis Girault <span dir="ltr"><<a href="mailto:alexis.girault@kitware.com" target="_blank">alexis.girault@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here is how VTK offered to improve mapping volumetric meshes or just data arrays: <a href="http://www.vtk.org/Wiki/VTK/InSituDataStructures" target="_blank">http://www.vtk.org/Wiki/VTK/<wbr>InSituDataStructures</a><div><br></div><div>The MappedDataArray (that we tried to use and that Nich got rid of because of huge overhead cost when calling getVoidPointer in the VBO creation) is actually deprecated and will be removed in the future. T<span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.7px;line-height:19.05px">he next iteration of this functionality which focuses on performance improvements is presented in this article </span><font color="#000000" face="sans-serif"><span style="font-size:12.7px;line-height:19.05px"><a href="https://blog.kitware.com/new-data-array-layouts-in-vtk-7-1/" target="_blank">https://blog.kitware.<wbr>com/new-data-array-layouts-in-<wbr>vtk-7-1/</a> and detailed on this wiki page: <a href="http://www.vtk.org/Wiki/VTK/Tutorials/DataArrays" target="_blank">http://www.vtk.org/Wiki/<wbr>VTK/Tutorials/DataArrays</a></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px;line-height:19.05px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px;line-height:19.05px">If we can improve the renderer and mapper to do what's needed, I believe we'll be able to use this new data array layouts to reduce data structure conversion overhead.</span></font></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-6296628020333787981gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8000001907349px">Alexis Girault</span><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="color:rgb(136,136,136);font-size:12.8000001907349px">R&D Engineer in Medical Computing</span><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="color:rgb(136,136,136);font-size:12.8000001907349px">Kitware, Inc.</span><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><a href="http://www.kitware.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">http://www.kitware.com</a><br style="color:rgb(136,136,136);font-size:12.8000001907349px"><font color="#999999"><a href="tel:(919)+969-6990+x325" target="_blank"><span style="font-size:12.8000001907349px">(919) 969-6990 x3</span>25</a></font><br></div></div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Thu, Oct 20, 2016 at 6:01 PM, Sreekanth Arikatla <span dir="ltr"><<a href="mailto:sreekanth.arikatla@kitware.com" target="_blank">sreekanth.arikatla@kitware.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Nick,<div>            Yes, that can be done (I was under the impression that even that operation was slow with vtk but haven't looked into that part myself). The copy could additionally be made conditional since rendering typically runs faster than the physics.</div><div><br></div><div>The mesh needs to be updated though (at least in the case where visual and physics are the same) since the physics update of future time steps count on it.</div></div><div class="m_-6296628020333787981HOEnZb"><div class="m_-6296628020333787981h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 4:04 PM, Milef, Nicholas Boris <span dir="ltr"><<a href="mailto:milefn@rpi.edu" target="_blank">milefn@rpi.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><span style="font-size:13.3333px">In that case, then copying data over shouldn't be a big deal. I thought the copying was occurring on the rendering thread. If we need thread
 synchronization here, then we can just use a buffered approach.</span><br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div id="m_-6296628020333787981m_-6061152807898898081m_7535116805064077562divRpF668767" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Sreekanth Arikatla [<a href="mailto:sreekanth.arikatla@kitware.com" target="_blank">sreekanth.arikatla@kitware.co<wbr>m</a>]<br>
<b>Sent:</b> Thursday, October 20, 2016 3:53 PM<br>
<b>To:</b> Milef, Nicholas Boris<br>
<b>Cc:</b> <a href="mailto:imstk-developers@imstk.org" target="_blank">imstk-developers@imstk.org</a><br>
<b>Subject:</b> Re: [Imstk-developers] Copying Vega data<br>
</font><br>
</div><div><div class="m_-6296628020333787981m_-6061152807898898081h5">
<div></div>
<div>
<div dir="ltr">Hi Nick,
<div>           It happens in a separate thread in the sceneManager module.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 20, 2016 at 3:45 PM, Milef, Nicholas Boris <span dir="ltr">
<<a href="http://redir.aspx?REF=BpJFDzylJUzmyH0IS2ouZR58VfSo4ijMtYN4jcu2cDKtIV1CJPnTCAFtYWlsdG86bWlsZWZuQHJwaS5lZHU." target="_blank">milefn@rpi.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Do Vega operations occur on the same thread as the render loop? If not, then it might be best to buffer and copy over the data instead of directly working on the mesh data.</div>
</div>
<br>
______________________________<wbr>_________________<br>
Imstk-developers mailing list<br>
<a href="http://redir.aspx?REF=bigx7UCbQk9SNSpSCYDnjFakE4iwbAgWDMHb4qE4SpetIV1CJPnTCAFtYWlsdG86SW1zdGstZGV2ZWxvcGVyc0BpbXN0ay5vcmc." target="_blank">Imstk-developers@imstk.org</a><br>
<a href="http://redir.aspx?REF=jFoBqdkH1xl6pePYXQ0FIrvhA89vs902I3d4sBjmOUatIV1CJPnTCAFodHRwOi8vcHVibGljLmtpdHdhcmUuY29tL21haWxtYW4vbGlzdGluZm8vaW1zdGstZGV2ZWxvcGVycw.." rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/imstk-developers</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-6296628020333787981m_-6061152807898898081m_7535116805064077562gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Sreekanth Arikatla, Ph.D,</div>
<div dir="ltr">Senior R&D Engineer,</div>
<div dir="ltr"><a href="http://redir.aspx?REF=3qzFo3FNN4RdtBUk0qOs5JodPEA_-jpKD8tsMGEYn26tIV1CJPnTCAFodHRwOi8vd3d3LmtpdHdhcmUuY29t" style="font-size:12.8px" target="_blank">Kitware, Inc.</a>, Carrboro, NC.
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-6296628020333787981m_-6061152807898898081gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Sreekanth Arikatla, Ph.D,</div><div dir="ltr">Senior R&D Engineer,</div><div dir="ltr"><a href="http://www.kitware.com" style="font-size:12.8px" target="_blank">Kitware, Inc.</a>, Carrboro, NC.<div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div><br>______________________________<wbr>_________________<br>
Imstk-developers mailing list<br>
<a href="mailto:Imstk-developers@imstk.org" target="_blank">Imstk-developers@imstk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/imstk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/imstk-developers</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>