var modelUrls = [];
for(var i= 1;i<=9;i++){
modelUrls.push('http://192.168.1.62:8090/iserver/services/data-3D/rest/data/datasources/level1/datasets/level1DC/features/'+i+'.stream')
}
function showModel() {
var models = [];
var modelsColor = ['#FF1C04','#FFA504','#D6FF04','#04FF4D',
'#04FFF8','#0483FF','#1C04FF','#B304FF',
'#FF04B8'];
// 也可以不设置纹理,设置颜色
for(var K= 1;K<modelUrls.length;K++){
models.push({
id: K,
model: modelUrls[K-1],
color: new Cesium.Color.fromCssColorString(modelsColor[K-1]),
});
}
solidModelsProfile.addModels(models);
solidModelsProfile.addedEvent.addEventListener((param) => {
console.log(param);
viewer.camera.flyTo(
{
destination: new Cesium.Cartesian3.fromDegrees(param.modelPosition[0].position.x, param.modelPosition[0].position.y, 60000)
})
});
}
剖切前后颜色发生改变如何处理
刨切前
刨切后