Band

.Geometry. Band

带状面类,用于在场景中构造带状几何图形

Constructor

new Glodon.Bimface.Plugins.Geometry.Band(option)

Parameters:
Name Type Description
option Object

构造带状面对象的配置项

Properties
Name Type Description
curve Glodon.Bimface.Plugins.Geometry.SplineCurve

曲线对象

color Glodon.Web.Graphics.Color

颜色对象

material Glodon.Bimface.Plugins.Material.Material

材质对象

width Array

带状面宽度,第一、二个元素分别表示左侧边界、右侧边界与中心线(curve对象)之间的距离

enableTorsion Boolean

是否产生扭转,默认为false

border Object

带状面边框

Properties
Name Type Description
enable Boolean

是否显示边框,默认为false

width Number

边框宽度,默认为1px

color Glodon.Web.Graphics.Color

边框颜色

Methods

clone()

复制该带状面对象

Returns:
Type Description
Glodon.Bimface.Plugins.Geometry.Band

band 带状面对象

dispose()

销毁当前对象

enableBorder(enableBorder)

设置带状面是否产生扭转

Parameters:
Name Type Description
enableBorder Boolean

是否产生扭转

enableTorsion(enableTorsion)

设置带状面是否产生扭转

Parameters:
Name Type Description
enableTorsion Boolean

是否产生扭转

getBorderColor()

获取构造带状面的边框颜色

Returns:
Type Description
Glodon.Web.Graphics.Color

borderColor 边框宽度

getBorderWidth()

获取构造带状面的边框宽度

Returns:
Type Description
Number

borderWidth 边框宽度

getColor()

获取带状面的颜色

Returns:
Type Description
Glodon.Web.Graphics.Color

color 颜色对象

getCurve()

获取构造带状面的曲线对象

Returns:
Type Description
Glodon.Bimface.Plugins.Geometry.SplineCurve

curve 曲线对象

getMaterial()

获取带状面的材质对象

Returns:
Type Description
Glodon.Bimface.Plugins.Material.Material

material 颜色对象

getWidth()

获取构造带状面的宽度

Returns:
Type Description
Array

width 带状面宽度

isTorsionEnabled()

是否产生扭转

Returns:
Type Description
Boolean

enableTorsion 是否产生扭转

isTorsionEnabled()

是否产生扭转

Returns:
Type Description
Boolean

enableTorsion 是否产生扭转

setBorderColor(borderColor)

设置构造带状面的边框颜色

Parameters:
Name Type Description
borderColor Glodon.Web.Graphics.Color

边框宽度

setBorderWidth(borderWidth)

设置构造带状面的边框宽度

Parameters:
Name Type Description
borderWidth Number

边框宽度

setColor(color)

设置带状面的颜色

Parameters:
Name Type Description
color Glodon.Web.Graphics.Color

颜色对象

setCurve(curve)

获取构造带状面的曲线对象

Parameters:
Name Type Description
curve Glodon.Bimface.Plugins.Geometry.SplineCurve

曲线对象

setMaterial(material)

设置带状面的材质对象

Parameters:
Name Type Description
material Glodon.Bimface.Plugins.Material.Material

颜色对象

setWidth(width)

设置构造带状面的宽度

Parameters:
Name Type Description
width Number

带状面宽度

update()

更新图元信息