Ignore SRTM "void" values.
This commit is contained in:
parent
a20d85ac0d
commit
ad75df026d
1 changed files with 7 additions and 2 deletions
|
@ -25,8 +25,13 @@ GreedySubdivision::GreedySubdivision(Map *map)
|
|||
is_used.init(w, h);
|
||||
int x,y;
|
||||
for(x=0;x<w;x++)
|
||||
for(y=0;y<h;y++)
|
||||
is_used(x,y) = DATA_POINT_UNUSED;
|
||||
for(y=0;y<h;y++) {
|
||||
if ( map->eval(x,y) > 10 ) {
|
||||
is_used(x,y) = DATA_POINT_UNUSED;
|
||||
} else {
|
||||
is_used(x,y) = DATA_VALUE_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
initMesh(Vec2(0,0),
|
||||
|
|
Loading…
Reference in a new issue