<div class="gmail_quote"><div>I did something similar to this for a different filter (I can't remember which one) and I don't think it even broke any of the tests.  I can't remember if I provided an option of the return precision type or just used the input precision type to specify the return precision type.  <br>
<br>Andy<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;">
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 23 Apr 2009 09:39:08 -0400<br>
From: "Rusty Blue" <<a href="mailto:rusty.blue@kitware.com">rusty.blue@kitware.com</a>><br>
Subject: [vtk-developers] vtkCleanPolyData<br>
To: <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>
Message-ID: <<a href="mailto:49f06f8c.0405be0a.3f25.ffffda2a@mx.google.com">49f06f8c.0405be0a.3f25.ffffda2a@mx.google.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Folks,<br>
<br>
<br>
<br>
We were using it on a project to remove duplicate points (tolerance == 0),<br>
and found out yesterday it wasn't doing what we wanted.  That is, the<br>
vtkPoints it creates to replace the input vtkPoints defaults to points of<br>
type VTK_FLOAT (our input is double, and we need the extra precision).<br>
Seems to be an error to me.<br>
<br>
<br>
<br>
The most obvious thing to do would be to have the output vtkPoints be of the<br>
same type as the input. but that does mean it will slightly change the<br>
behavior of the filter (won't always be VTK_FLOAT points on output).   Could<br>
instead add a flag that if ON would create output points which are the same<br>
type as the input (defaults to OFF).<br>
<br>
<br>
<br>
Am I over thinking this one?<br>
<br>
<br>
<br>
Rusty<br>
<br>
<br>
</blockquote></div><br>