Hi , I realized visibility by adding unsigned char array to polydata (0= not visible, 1=visible) and than thresholding visible points/cells by vtkThresholdPoints. Here is example<div><br></div><div>
<p class="p1"><span class="s1"> </span>// Select only used lights</p>
<p class="p2"> vtkSmartPointer<vtkThresholdPoints> thresholdF = vtkSmartPointer<vtkThresholdPoints>::New();</p><p class="p2">thresholdF->ThresholdBetween(<span class="s2">1</span>, <span class="s2">1</span>);</p>
<p class="p2"> lightsDirections->GetPointData()->SetActiveScalars(<span class="s3">"Is_Used"</span>);</p>
<p class="p2"> thresholdF->SetInputArrayToProcess(<span class="s2">0</span>, <span class="s2">0</span>, <span class="s2">0</span>, vtkDataObject::FIELD_ASSOCIATION_POINTS, <span class="s3">"Is_Used"</span>);</p>
<p class="p1"><span class="s1"> </span>//thresholdF->SetInput(lightsDirections);</p>
<p class="p2"> thresholdF->SetInputConnection(<span class="s2">0</span>,filterGDL->GetOutputPort(<span class="s2">1</span>));</p></div>