SectionPlane_文档_BIMFACE_BIM应用二次开发平台

SectionPlane

类:绘制剖切盒的管理器

Constructor

new Glodon.Bimface.Plugins.Section.SectionPlane(sectionPlaneConfig);

Parameters
名称 必填 类型 说明 示例
sectionPlaneConfig Y SectionPlaneConfig 配置项

Methods

setPlane(plane)

设置剖切面类型

Parameters
名称 必填 类型 说明 示例
plane Y SectionPlanePlane 剖切面 Glodon.Bimface.Plugins.Section.SectionPlanePlane.X
getPlane()

获取剖切面信息

Returns
类型 说明
plane 剖切面
setDirection(direction)

设置轴向剖切时模型显示的部分

Parameters
名称 必填 类型 说明 示例
direction Y SectionPlaneDirection 设置轴向剖切时模型显示的部分,正向forward或者反向reverse Bimface.Plugins.Section.SectionPlaneDirection.Forward
getDirection()

获取剖切时模型显示部分的正反向

Returns
类型 说明
direction 模型显示的正反向
setProgress(progress)

设置轴向剖切时的剖切进度

Parameters
名称 必填 类型 说明 示例
progress Y number 设置轴向剖切时模型显示的部分进度,0~100的数值 80.5
getProgress()

获取轴向剖切的当前进度

Returns
类型 说明
progress 轴向剖切模型剖切的百分比
reset()

重置剖切状态,回到初始状态

exit()

退出剖切