<div class="gmail_quote">On Fri, Dec 18, 2009 at 10:51 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David,<br>
<br>
  I do not have a strong opinion on this particular case.<br>
  However here is a couple of thoughts, I have from my modest<br>
understanding of VTK.<br>
 1. I would really separate source/sink from filter. You are writing a<br>
partial filter (aka algorithm) in a data object.<br>
 2. You are duplicating (possibly) code from vtkMeshQuality.<br>
<br>
2cts<br>
-Mathieu<br>
<div><div></div><div class="h5"></div></div></blockquote></div><br><div>1) I'm not sure I follow. Isn't vtkTriangle an "object", not a "source" or "filter"?</div><div>2) That is likely the case and that is exactly my point here - vtkMeshQuality (or anything else) should not have to implement this code, it should just be able to call ComputeArea() on a triangle object.</div>
<div><br clear="all">Thanks,<br><br>David</div>