set default building height in VectorTileLoader
This commit is contained in:
parent
904360ff69
commit
46ad2be83b
@ -446,6 +446,11 @@ public class VectorTileLoader extends TileLoader implements IRenderTheme.Callbac
|
|||||||
l = new ExtrusionLayer(0, groundScale, extrusion.colors);
|
l = new ExtrusionLayer(0, groundScale, extrusion.colors);
|
||||||
mTile.layers.setExtrusionLayers(l);
|
mTile.layers.setExtrusionLayers(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 12m default */
|
||||||
|
if (height == 0)
|
||||||
|
height = 12 * 100;
|
||||||
|
|
||||||
l.add(mElement, height, minHeight);
|
l.add(mElement, height, minHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,10 +86,6 @@ public class ExtrusionLayer extends RenderElement {
|
|||||||
short[] index = element.index;
|
short[] index = element.index;
|
||||||
float[] points = element.points;
|
float[] points = element.points;
|
||||||
|
|
||||||
// 12m default
|
|
||||||
if (height == 0)
|
|
||||||
height = 12 * 100;
|
|
||||||
|
|
||||||
// 10 cm steps
|
// 10 cm steps
|
||||||
float sfactor = 1 / 10f;
|
float sfactor = 1 / 10f;
|
||||||
height *= sfactor;
|
height *= sfactor;
|
||||||
@ -100,17 +96,12 @@ public class ExtrusionLayer extends RenderElement {
|
|||||||
height /= mGroundResolution;
|
height /= mGroundResolution;
|
||||||
minHeight /= mGroundResolution;
|
minHeight /= mGroundResolution;
|
||||||
|
|
||||||
// my preference
|
|
||||||
height *= 0.85;
|
|
||||||
minHeight *= 0.85;
|
|
||||||
|
|
||||||
int length = 0, ipos = 0, ppos = 0;
|
|
||||||
|
|
||||||
boolean complexOutline = false;
|
boolean complexOutline = false;
|
||||||
boolean simpleOutline = true;
|
boolean simpleOutline = true;
|
||||||
|
|
||||||
// current vertex id
|
// current vertex id
|
||||||
int startVertex = mNumVertices;
|
int startVertex = mNumVertices;
|
||||||
|
int length = 0, ipos = 0, ppos = 0;
|
||||||
|
|
||||||
for (int n = index.length; ipos < n; ipos++, ppos += length) {
|
for (int n = index.length; ipos < n; ipos++, ppos += length) {
|
||||||
length = index[ipos];
|
length = index[ipos];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user