<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="gmail_quote">Is vtkXMLReader::RequestData the right place in the pipeline to do this kind of check?</div>
<div class="gmail_quote"><br></div>
<div class="gmail_quote">A simple thing could be to add something like:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="gmail_quote">if(this->CurrentOutput->GetNumberOfElements(vtkDataObject::POINT) == 0)</div>

<div class="gmail_quote">  {</div><div class="gmail_quote">  return 0;</div><div class="gmail_quote">  }</div><div class="gmail_quote"><br></div><div class="gmail_quote">(Is there ever a time where there could be 0 points but still some reasonable data set?)</div>
</div></div></blockquote><div><br>Yes. It is possible. Let's say you have a multi-piece dataset where some of the pieces are empty but you still want associated meta-data that may be stored in the field data.<br> <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="gmail_quote">
<div class="gmail_quote">An extensive check would be to go through all the cells and make sure the points that they reference actually exist. Maybe this could be a flag?</div><div class="gmail_quote">
<br></div><div class="gmail_quote">reader->SetValidityCheck(true);</div><div class="gmail_quote"><br></div><div class="gmail_quote">The above would make the reader traverse the cells checking that they are defined on valid geometry. If speed is a priority (for large data sets), this option could be turned off.</div>

</div><div class="gmail_quote"><br></div></div></blockquote><div>I wouldn't even bother with the flag. Even if you went over the whole cell array to make this check, compared to IO, it would be quite negligible.  <br>
<br>-berk<br></div></div>