Floor

new Cesium.Floor(options)

楼层对象,保存本层对象的所有Wall对象,并实现当前楼层对象的创建和刷新操作.
Name Type Description
options Object 如下
Name Type Default Description
scene Scene Scene.
building BuildingPrimitive buildingPrimitive.
id * createGuid() optional id
positions Array.<Cartesian3> optional 底边坐标点串
minimumHeights Number optional 建筑物底面高程
maximumHeights Number optional 建筑物顶面高程
floorNum Number optional 当前层数
floorHeight Number 3.0 optional 每层建筑物层高
image String | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement 'buildModuleUrl('Assets/Images/cityplan/outer_wall.jpg')' optional 墙面材质
useColor Boolean false optional true,墙面使用颜色填充,false墙面使用图片材质填充
color Color Color.GRAY optional 墙面颜色
repeat Cartesian2 new Cartesian(1,1) optional 墙面的材质排列
appearance MaterialAppearance optional 从buildingPrimitive传递过来的MaterialAppearance的引用

Members

从buildingPrimitive传递过来的MaterialAppearance的引用
父对象BuildingPrimtive
墙面颜色

image : String|HTMLImageElement|HTMLCanvasElement|HTMLVideoElement

墙面材质
墙面的材质排列

useColor : Boolean

true,墙面使用颜色填充,false墙面使用图片材质填充

Methods

getWallByIndex(index)undefined|*

在当前层上获取指定索引处的{@type Wall} 对象
Name Type Description
index
Returns:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.