model~CylinderMesh(radius, height, options)

柱体,棱台,锥体

Summary

Methods:
fromPoints

根据网格模型控制点,创建网格模型,如果模型进行了更新,需要在meshLayer中对mesh进行更新

clone

克隆新对象

Constructor

new CylinderMesh(radius, height, options)

Parameters:
Name Type Default Description
radius Number

底面半径

height Number 1

柱高

options Object

可选项

Name Type Description
angleRange Array

切面方向上的角度范围,默认[0,360]

ratio Number

上下面半径的比值,范围[0,1],默认为1(圆柱),0为锥体,其他为棱台,

isClosed Number

是否显示两端覆盖面,默认为true,即实体圆柱

material Material

填充符号,支持ColorFill和TextureFill

Methods

static fromPoints(points, material, type, 圆柱或者圆锥)

根据网格模型控制点,创建网格模型,如果模型进行了更新,需要在meshLayer中对mesh进行更新

Parameters:
Name Type Default Description
points module:geom~Point

点几何数组

material module:style~Material

材质

type String Cylinder

类型,圆柱类型为“Cylinder”,圆锥类型为“Cone”,默认为“Cylinder”

圆柱或者圆锥 module:model~CylinderMesh

clone() → {module:model~CylinderMesh}

克隆新对象