| | |
| | | const heights = factor.heights; |
| | | const colors = factor.colors; |
| | | const bColor = factor.bottomColor; |
| | | const bColors = factor.bottomColors; |
| | | |
| | | // eslint-disable-next-line no-undef |
| | | var cylinder = new AMap.Object3D.Mesh(); |
| | |
| | | } |
| | | } |
| | | |
| | | // var bColor = bColor |
| | | var tColor = colors[i]; |
| | | geometry.vertexColors.push.apply(geometry.vertexColors, bColor); //底部顶点颜色 |
| | | geometry.vertexColors.push.apply(geometry.vertexColors, tColor); //顶部顶点颜色 |
| | | geometry.vertexColors.push.apply(geometry.vertexColors, bColors[i]); //底部顶点颜色 |
| | | geometry.vertexColors.push.apply(geometry.vertexColors, colors[i]); //顶部顶点颜色 |
| | | } |
| | | |
| | | // 7.根据合并选项重置或新增当前缓存数据 |