Hi all, <div>I created sphere polydata having multiple point data arrays (6). </div><div>I would like to visualise all arrays - six colored spheres next to each other with own mappers and actors.</div><div><br></div><div>
But I do not know how to realise setting of active scalar. </div><div>If I will use s.t like this <span> mySphere-></span>GetPointData<span>()-></span>SetActiveScalars<span>(</span><span>"array1"</span><span>); i will preset it for all other mappers.</span></div>
<div>Is there some way how to set it correctly without duplicating spheres six times and passing appropriate array into it ? Or is this way correct ?</div><div><br></div><div>I also tried mapper method </div><div><br></div>
<div>> <span> mapperLights-></span>SetInput<span>(</span>sphere<span>);</span></div>
<div>> mapper->SetInputArrayToProcess<span>(</span><span>0</span><span>, </span><span>0</span><span>, </span><span>0</span><span>, </span><span>vtkDataObject</span><span>::</span>FIELD_ASSOCIATION_POINTS<span>,</span><span>"array1"</span><span>);</span></div>
<div>but I am not sure how to set first three arguments. What is idx?, why I should again specify connection id and port .</div><div><br></div><div>Thanks in advance.</div><div>Jana</div>