model~WallMesh(options)

墙网格,通过自定义几何体实现

Summary

Methods:
fromPoints

根据网格模型控制点,创建网格模型

clone

拷贝

setMaterial

设置材质属性

Constructor

new WallMesh(options)

墙几何构造函数

Parameters:
Name Type Description
options Object

可选项

Name Type Description
coordSeq module:basetype~CoordSeq

坐标序列

height Number

墙高度,地图单位,如果是4326坐标系,可以通过地图对象上的getDegreePerMeter方法,进行地图单位和米的转换

isClosed Number

是否闭合,即是否首尾相连

Members

faces

获取网格面

Overrides:

Methods

static fromPoints(points, material, isClosed) → {module:model~WallMesh}

根据网格模型控制点,创建网格模型

Parameters:
Name Type Description
points module:geom~Point

点几何数组

material module:style~Material

材质

isClosed Boolean

是否闭合

Returns:
module:model~WallMesh -

墙几何

clone() → {module:model~WallMesh}

拷贝

setMaterial(material)

设置材质属性

Parameters:
Name Type Description
material module:material~Material