<div dir="ltr">Hi everyone.<br><br>I&#39;ve been working with vtk for 4 months now, but I can&#39;t find a solution to this problem.<br><br>I have a vtkPolyData, and for each point, there are two scalar values : &quot;subpartID&quot; and &quot;regionID&quot;.<br>
When I use vtkThreshold on it, the default scalar value considered is &quot;subpartID&quot;. The problem is that I want to use &quot;regionID&quot; for my threshold.<br><br>I get &quot;subpartID&quot; with : <i>shape-&gt;GetPointData()-&gt;GetArray(0)-&gt;GetName();<br>
</i>&nbsp; And &quot;regionID&quot; with : <i>shape-&gt;GetPointData()-&gt;GetArray(1)-&gt;GetName();</i><br><br>I&#39;ve tried to use the function <i>SetInputArrayToProcess</i> but I could not make it work as intended...<br><br>
<br>If someone can tell me how I can choose the scalars to threshold my points, I would be really grateful !<br></div>