[vtk-developers] Best fit plane function location
David Doria
daviddoria+vtk at gmail.com
Sat Jan 23 21:30:53 EST 2010
On Fri, Jan 22, 2010 at 4:05 PM, Dean Inglis <dean.inglis at camris.ca> wrote:
> Hi David,
>
> could this be added to vtkMath? Or what about starting
> a vtkGeometryUtilities or vtkGraphicsUtilities to hold static
> methods that are not really worthy of creating a filter class around?
>
> Dean
>
> Subject: [vtk-developers] Best fit plane function location
>
>
>
> If you'll recall, a while back we tried to add a BestFitFroMPoints
>> function
>> to vtkPlane. This caused some issues with cross-library linkage. Is this
>> big
>> enough to make a separate class: vtkBestFitPlane (or maybe
>> vtkLeastSquaresPlane)?
>>
>> I noticed that there is no vtkImplicitFunctionAlgorithm, so is this
>> usually
>> not done?
>>
>> I'm thinking something like:
>> vtkPoints* points = vtkPoints::New();
>> // ... fill points....
>> vtkBestFitPlane bestFitFilter = vtkBestFitPlane::New();
>> bestFitFilter->SetInput(points);
>> bestFitFilter->Update();
>>
>> vtkPlane* bestPlane = bestFitFilter->GetOutput();
>>
>> Thoughts?
>>
>> Thanks,
>>
>> David
>>
>>
>>
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.
Any other thoughts? Anyone agree/disagree?
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100123/134dfb36/attachment.html>
More information about the vtk-developers
mailing list