Skip to content

Commit

Permalink
Merge pull request #1 from Flightradar24/fix_mac_build
Browse files Browse the repository at this point in the history
Support build for MacOS
  • Loading branch information
ahuarte47 authored Jan 15, 2018
2 parents 825cbbc + 077b30b commit 2faff84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Coordinate3D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*******************************************************************************/

#include <vector>
#include <cmath>

/**
* @file Coordinate3D.hpp
Expand Down
4 changes: 3 additions & 1 deletion src/MeshTiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ ctb::MeshTiler::createMesh(const TileCoordinate &coord) const {
ctb::chunk::heightfield heightfield(rasterHeights, TILE_SIZE);
heightfield.applyGeometricError(maximumGeometricError, coord.zoom <= 6);
//
WrapperMesh mesh(mGrid.tileBounds(coord), terrainTile->getMesh(), TILE_SIZE, TILE_SIZE);
ctb::CRSBounds mGridBounds = mGrid.tileBounds(coord);
Mesh &tileMesh = terrainTile->getMesh();
WrapperMesh mesh(mGridBounds, tileMesh, TILE_SIZE, TILE_SIZE);
heightfield.generateMesh(mesh, 0);
heightfield.clear();

Expand Down

0 comments on commit 2faff84

Please sign in to comment.