Pipe

类:圆管

Constructor

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

构造圆管对象

Parameters:
NameTypeDescription
optionObject

构造圆管对象的配置项

colorGlodon.Web.Graphics.Color

颜色对象

crossSectionObject

横断面对象

radiusNumber

断面圆的半径,单位与场景设置单位一致

segmentsNumber

断面圆离散的段数,默认为12,段数越多越精细,对性能有一定影响

railObject

轨道对象

lineObject

构造圆管的直线对象,如 {"startPoint": {"x": 0,"y": 0,"z": 0}, "endPoint": {"x": 1000,"y": 0,"z": 0 }};arc,line选填一项

arcObject

构造圆管的圆弧对象,通过起点、通过点、终点构造,如{"startPoint": {"x": 0,"y": 0,"z": 0}, "throughPoint": {"x": 293,"y": 707,"z": 0},"endPoint": {"x": 1000,"y": 1000,"z": 0}};arc,line选填一项

segmentsNumber

轨道离散的段数,直线固定为1,圆弧默认为8,样条曲线默认为10,段数越多越精细,对性能有一定影响

enableClosedEndsBoolean

圆管两端是否封闭显示,默认为false

Methods

clone()

复制该圆管对象

Returns:
TypeDescription
Glodon.Bimface.Plugins.Geometry.Pipe

pipe 圆管对象

dispose()

销毁该圆管对象

getColor()

获取圆管的颜色

Returns:
TypeDescription
Glodon.Web.Graphics.Color

颜色对象

getCrossSection()

获取构造圆管的横断面对象

Returns:
TypeDescription
Object

横断面对象

getRail()

获取构造圆管的轨道对象

Returns:
TypeDescription
Object

轨道对象

setColor(color)

设置圆管的颜色

Parameters:
NameTypeDescription
colorGlodon.Web.Graphics.Color

颜色对象

setCrossSection(crossSection)

设置构造圆管的横断面对象

Parameters:
NameTypeDescription
crossSectionObject

横断面对象

radiusNumber

断面圆的半径,单位与场景设置单位一致

segmentsNumber

断面圆离散的段数,默认为12,段数越多越精细,对性能有一定影响

setRail(rail)

设置轨道对象

Parameters:
NameTypeDescription
railObject

轨道对象

lineObject

构造圆管的直线对象,如 {"startPoint": {"x": 0,"y": 0,"z": 0}, "endPoint": {"x": 1000,"y": 0,"z": 0 }};arc,line选填一项

arcObject

构造圆管的圆弧对象,通过起点、通过点、终点构造,如{"startPoint": {"x": 0,"y": 0,"z": 0}, "throughPoint": {"x": 293,"y": 707,"z": 0},"endPoint": {"x": 1000,"y": 1000,"z": 0}};arc,line选填一项

segmentsNumber

轨道离散的段数,直线固定为1,圆弧默认为8,样条曲线默认为10,段数越多越精细,对性能有一定影响

update()

更新圆管对象的参数配置