• Peter Franz's avatar
    Fix vtkDelaunay2D Best Fitting Plane Mode · 0a981f2b
    Peter Franz authored
    When using vtkDelaunay2D with VTK_BEST_FITTING_PLANE a best-fitting plane is
    calculated to transform the points.
    
    The computation of the best fitting plane normal was originally taken from
    vtkTextureMapToPlane according to the comments in
    vtkDelaunay2D::ComputeBestFittingPlane(). This method works well but fails
    if the points are located in a perfect XZ or YZ plane. vtkTextureMapToPlane
    determines this case and provides an alternative normal computation in this
    case; however this alternative was not copied over to vtkDelaunay2D.
    
    This bug fix uses the missing normal computation from vtkTextureMapToPlane
    with small adaptation to suit the remainder of the code in
    vtkDelaunay2D::ComputeBestFittingPlane().
    
    In addition the test TestDelaunay2D.cxx was used as a basis for the new test
    TestDelaunay2DBestFittingPlane.cxx. The code is nearly the same only the points
    for the test are located in the XZ plane instead of the XY plane.
    0a981f2b
Name
Last commit
Last update
.ExternalData Loading commit data...
.github Loading commit data...
Accelerators/Vtkm Loading commit data...
CMake Loading commit data...
Charts/Core Loading commit data...
Common Loading commit data...
Documentation Loading commit data...
Domains Loading commit data...
Examples Loading commit data...
Filters Loading commit data...
GUISupport Loading commit data...
Geovis Loading commit data...
IO Loading commit data...
Imaging Loading commit data...
Infovis Loading commit data...
Interaction Loading commit data...
Parallel Loading commit data...
Remote Loading commit data...
Rendering Loading commit data...
Testing Loading commit data...
ThirdParty Loading commit data...
Utilities Loading commit data...
Views Loading commit data...
Web Loading commit data...
Wrapping Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.hooks-config.bash Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CTestConfig.cmake Loading commit data...
Copyright.txt Loading commit data...
README.md Loading commit data...
vtkBanner.gif Loading commit data...
vtkLogo.ico Loading commit data...