Merge branch 'sparserecon' into classified-dems

pull/743/head
Piero Toffanin 2018-01-16 16:14:33 -05:00
commit 0566d7f2c6
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -87,6 +87,12 @@ void Odm25dMeshing::buildMesh(){
vtkSmartPointer<vtkPolyData>::New();
polyPoints->SetPoints(points);
double *bounds = polyPoints->GetBounds();
double *center = polyPoints->GetCenter();
double extentX = bounds[1] - bounds[0];
double extentY = bounds[3] - bounds[2];
vtkSmartPointer<vtkOctreePointLocator> locator = vtkSmartPointer<vtkOctreePointLocator>::New();
vtkSmartPointer<vtkRadiusOutlierRemoval> radiusRemoval =
@ -135,12 +141,6 @@ void Odm25dMeshing::buildMesh(){
const float NODATA = -9999;
double *bounds = polydataToProcess->GetBounds();
double *center = polydataToProcess->GetCenter();
double extentX = bounds[1] - bounds[0];
double extentY = bounds[3] - bounds[2];
if (resolution == 0.0){
resolution = (double)maxVertexCount / (sqrt(extentX * extentY) * 75.0);
log << "Automatically set resolution to " << std::fixed << resolution << "\n";