<div dir="ltr">Hi everyone.<br><br>I've been working with vtk for 4 months now, but I can't find a solution to this problem.<br><br>I have a vtkPolyData, and for each point, there are two scalar values : "subpartID" and "regionID".<br>
When I use vtkThreshold on it, the default scalar value considered is "subpartID". The problem is that I want to use "regionID" for my threshold.<br><br>I get "subpartID" with : <i>shape->GetPointData()->GetArray(0)->GetName();<br>
</i> And "regionID" with : <i>shape->GetPointData()->GetArray(1)->GetName();</i><br><br>I'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>