<div class="gmail_quote">On Fri, Jan 22, 2010 at 4:05 PM, Dean Inglis <span dir="ltr"><<a href="mailto:dean.inglis@camris.ca">dean.inglis@camris.ca</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>
could this be added to vtkMath?  Or what about starting<br>
a vtkGeometryUtilities or vtkGraphicsUtilities to hold static<br>
methods that are not really worthy of creating a filter class around?<br>
<br>
Dean<br>
<br>
Subject: [vtk-developers] Best fit plane function location<div><div></div><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you'll recall, a while back we tried to add a BestFitFroMPoints function<br>
to vtkPlane. This caused some issues with cross-library linkage. Is this big<br>
enough to make a separate class: vtkBestFitPlane (or maybe<br>
vtkLeastSquaresPlane)?<br>
<br>
I noticed that there is no vtkImplicitFunctionAlgorithm, so is this usually<br>
not done?<br>
<br>
I'm thinking something like:<br>
vtkPoints* points = vtkPoints::New();<br>
// ... fill points....<br>
vtkBestFitPlane bestFitFilter = vtkBestFitPlane::New();<br>
bestFitFilter->SetInput(points);<br>
bestFitFilter->Update();<br>
<br>
vtkPlane* bestPlane = bestFitFilter->GetOutput();<br>
<br>
Thoughts?<br>
<br>
Thanks,<br>
<br>
David<br>
<br><br></blockquote></div></div></blockquote><div><br></div><div class="gmail_quote">For now I could add it to vtkMath, but as you suggest, we wouldn't want to clutter vtkMath. I like the idea of a vtkGeometricUtilities class for things like this.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Any other thoughts? Anyone agree/disagree?</div><br clear="all">Thanks,<br><br><div>David</div></div>