kopia lustrzana https://github.com/OpenDroneMap/ODM
Merge branch 'sparserecon' into classified-dems
commit
0566d7f2c6
|
@ -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";
|
||||
|
|
Ładowanie…
Reference in New Issue