<div dir="ltr"><div>Hi Roman,<br><br></div>I guess we should add some SetName() calls in the code of <span style="font-family:monospace,monospace">vtkDiscreteMarchingCubes</span>.<br>Feel free to submit a merge request with this very small change.<br><br>In the meanwhile, what about adding a <span style="font-family:monospace,monospace">Programmable Filter</span> on the output of this filter and do something like:<br><br><span style="font-family:"Courier New"">inputpds </span><span style="font-family:"Courier New";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New""> </span><span style="font-family:"Courier New";color:rgb(0,128,0)">self</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">GetInput()</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">GetPointData()</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">GetScalars()</span>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"Courier New";font-weight:600;color:rgb(0,128,0)">if</span><span style="font-family:"Courier New""> inputpds </span><span style="font-family:"Courier New";color:rgb(102,102,102)">!=</span><span style="font-family:"Courier New""> </span><span style="font-family:"Courier New";color:rgb(0,128,0)">None</span><span style="font-family:"Courier New"">:</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"Courier New""> inputpds</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">SetName(</span><span style="font-family:"Courier New";color:rgb(186,33,33)">"PointScalars"</span><span style="font-family:"Courier New"">)</span></pre>
<pre style="margin:0px;text-indent:0px;font-family:"Courier New""><br></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"Courier New"">inputcds </span><span style="font-family:"Courier New";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New""> </span><span style="font-family:"Courier New";color:rgb(0,128,0)">self</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">GetInput()</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">GetCellData()</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">GetScalars()</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"Courier New";font-weight:600;color:rgb(0,128,0)">if</span><span style="font-family:"Courier New""> inputcds </span><span style="font-family:"Courier New";color:rgb(102,102,102)">!=</span><span style="font-family:"Courier New""> </span><span style="font-family:"Courier New";color:rgb(0,128,0)">None</span><span style="font-family:"Courier New"">:</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"Courier New""> inputcds</span><span style="font-family:"Courier New";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New"">SetName(</span><span style="font-family:"Courier New";color:rgb(186,33,33)">"CellScalars"</span><span style="font-family:"Courier New"">)</span></pre>
<pre style="margin:0px;text-indent:0px;font-family:"Courier New""><br></pre><pre style="margin:0px;text-indent:0px;font-family:"Courier New""><br></pre><pre style="margin:0px;text-indent:0px"><span style="font-family:arial,helvetica,sans-serif">Do not forget to check the "Copy Arrays" option for sure.<br><br></span></pre><pre style="margin:0px;text-indent:0px"><span style="font-family:arial,helvetica,sans-serif">Best,<br></span></pre><pre style="margin:0px;text-indent:0px;font-family:"Courier New""><span style="font-family:arial,helvetica,sans-serif">Joachim</span><br></pre>
<pre style="margin:0px;text-indent:0px;font-family:"Courier New""><br></pre>
<pre style="margin:0px 0px 12px;text-indent:0px;font-family:"Courier New""><br></pre></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"><b>Joachim Pouderoux</b><font size="2">, <font size="1">PhD</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Expert - Scientific Computing Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2017-11-16 10:43 GMT-04:00 Grothausmann, Roman Dr. <span dir="ltr"><<a href="mailto:grothausmann.roman@mh-hannover.de" target="_blank">grothausmann.roman@mh-hannover.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear mailing list members,<br>
<br>
<br>
Based on AcceleratedAlgorithms.xml I created an XML-PV plugin to make use of<br>
vtkDiscreteMarchingCubes (<a href="https://github.com/romangrothausmann/ParaView_XML-plugins/blob/1574430ce/vtkDiscreteMarchingCubes.xml" rel="noreferrer" target="_blank">https://github.com/romangroth<wbr>ausmann/ParaView_XML-plugins/<wbr>blob/1574430ce/vtkDiscreteMarc<wbr>hingCubes.xml</a>). It basically works as expected, but does not yield any point/cell arrays in its result, that I would need for coloring of e.g. the different labels (i.e. ComputeScalars). I found a post that said that PV only lists arrays that have a name, but as far as I understand, vtkDiscreteMarchingCubes does name its output arrays.<br>
What else could be missing in the XML-code?<br>
<br>
Many thanks for any help or hints.<br>
Roman<br>
<br>
-- <br>
Dr. Roman Grothausmann<br>
<br>
Tomographie und Digitale Bildverarbeitung<br>
Tomography and Digital Image Analysis<br>
<br>
Medizinische Hochschule Hannover<br>
Institut für Funktionelle und Angewandte Anatomie<br>
OE 4120, <a href="https://maps.google.com/?q=Carl-Neuberg-Str.+1,+30625+Hannover,+Deutschland&entry=gmail&source=g">Carl-Neuberg-Str. 1, 30625 Hannover, Deutschland</a><br>
<br>
Tel. <a href="tel:%2B49%20511%20532-2900" value="+495115322900" target="_blank">+49 511 532-2900</a><br>
<a href="mailto:grothausmann.roman@mh-hannover.de" target="_blank">grothausmann.roman@mh-hannover<wbr>.de</a><br>
<a href="http://www.mh-hannover.de/anatomie.html" rel="noreferrer" target="_blank">http://www.mh-hannover.de/anat<wbr>omie.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
</blockquote></div><br></div>