<div><font face="Courier New" size="2">Hi all,</font></div>
<div><font face="Courier New" size="2"> </font></div>
<div><font face="Courier New" size="2">Does anyone know how vtkPolyDataConnectivityFilter labels its regions? One of the previous posts said that the id of a region depends on it's cell with the smallest id. For example, the region which contains cell 0 will be region 0.</font></div>
<div><font face="Courier New" size="2"> </font></div>
<div><font face="Courier New" size="2">If I understand this correctly, then doing both the following will give me the same output:<br />
<br />
connect->SetExtractionModeToSpecifiedRegions(); <br />
connect->AddSpecifiedRegion(0); <br />
where 0 is the region id, and<br />
</font></div>
<div><font face="Courier New"><font size="2">connect->SetExtractionModeToCellSeededRegions(); <br />
<font color="#008000"><font color="#000000">connect->AddSeed(0);</font></font></font></font></div>
<div>
<p><font color="#008000"><font face="Courier New" color="#000000" size="2">But I get a different output. How can I link the cell ids of the connectivity filter output with the cell ids of the original data? I need to modify the scalars of the original data based on properties of the individual regions that they are contained in. The original data has been thresholded into 0s and 1s and the PolyDataConnectivityFilter has ScalarConnectivityOn and SetScalarRange(0.5,1.5). </font></font></p>
<p><font color="#008000"><font face="Courier New" color="#000000" size="2">Thanks very much for your help.</font></font></p>
<p><font color="#008000"><font face="Courier New" color="#000000" size="2">Ju Lynn</font></font></p>
</div>