<div dir="ltr"><div><div><div>Hi Nico,<br><br></div>The more common way in VTK is just as you said -- to create a cell array with that marking. That doesn't mean that you can't maintain a list of cells in a subdomain. You could also work with pieces or a multiblock to represent the subdomain.<br><br>The main issue though is how that data is supposed to be interpreted by other things. If you're working on your own filters then you can have the convention of a field data array to keep track of subdomains but most/all VTK filters will have no idea what that data represents. The idea here is that if you want to a threshold filter to keep only certain subdomains you can either use a cell data array and the vtkThreshold filter or your own convention and your own threshold filter. <br><br></div>Cheers,<br></div>Andy<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 11, 2017 at 1:39 PM, Nico Schlömer <span dir="ltr"><<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.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 everyone,<div><br></div><div>To mark subdomains in VTK, I guess the most common thing is to use a integer-valued cell (or point) function that associates every cell with a subdomain index. Is this correct or are there other ways for marking subdomains?</div><div><br></div><div>In other mesh formats, I've seen the approach of tagging entities, i.e., subdomain X would be represented by a list indices into the cell (or point) array. This fits many of my applications better since I typically need to iterate over all cells of a subdomain. The function approach makes it hard to even find out how many subdomains there are, let alone to have one cell belong to two subdomains at once.</div><div><br></div><div>Any hints here?</div><div><br></div><div>Cheers,</div><div>Nico</div></div>
<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/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>