<div dir="ltr">Robert,<div><br></div><div>The <span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">GroupDatasets filter produces a vtkMultiBlockDataSet as output. A vtkMultiBlockDataSet is a tree with leaves consisting of vtkDataObjects. It is common for filters to operate on these data sets block-by-block, and vtkConnectivity is no exception</span>. It essentially runs on each leaf vtkDataObject independently. As a consequence, different connected components in different blocks may be assigned the same RegionId. Unfortunately, this does not really make sense and is a bug. I have filed an issue here: <a href="https://gitlab.kitware.com/vtk/vtk/issues/17329">https://gitlab.kitware.com/vtk/vtk/issues/17329</a>.<div><br></div><div>For you to make a test data set, however, you do not need to wait until the bug is fixed. Within ParaView use the Append Geometry filter instead of Group Datasets on your three input Spheres. This will produce a vtkPolyData as output that you can then set as input to the vtkConnectivity filter and get the output you expect.</div></div><div><br></div><div>HTH,</div><div>Cory</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 23, 2018 at 5:24 AM Robert Sawko <<a href="mailto:robertsawko@gmail.com">robertsawko@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying with ParaView to create a test data set for my VTK application.<br>
I simply want three spheres with varying radius. The application operates on<br>
vtk contour plots that are produced by OpenFOAM. Using vtkConnectivityFilter<br>
it computes disjoint surfaces and then it iterates over each surface to<br>
obtain mass properties: volume and surface area.<br>
<br>
In order to create my data set I use sources in ParaView to create three<br>
disjoint spheres and I combine them into a single set by GroupDatasets<br>
filter. Then I use SaveData and save into .vtm file format. If I try to<br>
apply Connectivity on the group it find sonly one group even though spheres<br>
are clearly disjoint. I tried various extract filters, but I am clearly<br>
missing something.<br>
<br>
Connectivity does work on my "production" data, but just not my mock set<br>
constructed through PV sources and GroupDatasets. I would like to understand<br>
why that happens and if there's a correct way of producing my three sphere<br>
data set.<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<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/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_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=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>