kopia lustrzana https://github.com/OpenDroneMap/ODM
Replaced static point locator with octree locator
rodzic
2756111c5b
commit
563ec665d8
|
@ -87,8 +87,8 @@ void Odm25dMeshing::buildMesh(){
|
|||
vtkSmartPointer<vtkPolyData>::New();
|
||||
polyPoints->SetPoints(points);
|
||||
|
||||
vtkSmartPointer<vtkStaticPointLocator> pointsLocator =
|
||||
vtkSmartPointer<vtkStaticPointLocator>::New();
|
||||
vtkSmartPointer<vtkOctreePointLocator> pointsLocator =
|
||||
vtkSmartPointer<vtkOctreePointLocator>::New();
|
||||
pointsLocator->SetDataSet(polyPoints);
|
||||
pointsLocator->BuildLocator();
|
||||
|
||||
|
@ -148,8 +148,8 @@ void Odm25dMeshing::buildMesh(){
|
|||
plane->SetCenter(center);
|
||||
plane->SetNormal(0.0, 0.0, 1.0);
|
||||
|
||||
vtkSmartPointer<vtkStaticPointLocator> locator =
|
||||
vtkSmartPointer<vtkStaticPointLocator>::New();
|
||||
vtkSmartPointer<vtkOctreePointLocator> locator =
|
||||
vtkSmartPointer<vtkOctreePointLocator>::New();
|
||||
locator->SetDataSet(polydataToProcess);
|
||||
locator->BuildLocator();
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <vtkPLYWriter.h>
|
||||
#include <vtkSmartPointer.h>
|
||||
#include <vtkFloatArray.h>
|
||||
#include <vtkStaticPointLocator.h>
|
||||
#include <vtkOctreePointLocator.h>
|
||||
#include <vtkPointInterpolator.h>
|
||||
#include <vtkPlaneSource.h>
|
||||
#include <vtkTransform.h>
|
||||
|
|
Ładowanie…
Reference in New Issue