[vtk-developers] Best fit plane function location
Dean Inglis
dean.inglis at camris.ca
Fri Jan 22 16:05:55 EST 2010
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
>
--------------------------------------------------------------------------------
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
More information about the vtk-developers
mailing list