SectionBox

.Section. SectionBox

剖切盒

Constructor

new Glodon.Bimface.Plugins.Section.SectionBox(sectionBoxConfig)

Parameters:
Name Type Description
sectionBoxConfig Glodon.Bimface.Plugins.Section.SectionBoxConfig

剖切盒的配置项

Methods

changeClipDirection(isReverse)

变更剖切方向

Parameters:
Name Type Description
isReverse boolean

剖切方向

exit()

退出剖切盒

fitToModel()

适应到模型

getBox()

获取包围盒区域

Returns:
Type Description
Glodon.Web.Geometry.BoundingBox

剖切盒区域

getSectionBox()

获取剖切盒当前的范围

Returns:
Type Description
Glodon.Web.Geometry.BoundingBox

剖切盒当前的范围

hideBox()

隐藏剖切盒

isIncluded(point)

判断某个坐标是否在剖切盒内,即尚未被剖切到

Parameters:
Name Type Description
point Object

世界坐标的点

lockBox(faces)

锁定剖切盒

Parameters:
Name Type Description
faces Array

剖切盒中需要锁定的面

reset()

重置剖切盒

restoreObjects()

恢复默认的被剖切对象

rotateByAxis(axis, degree)

变更剖切方向

Parameters:
Name Type Description
axis String

旋转轴

degree Number

旋转角度

setBox(box)

设置包围盒区域

Parameters:
Name Type Description
box Glodon.Web.Geometry.BoundingBox

剖切盒区域

setBoxByVectors(basePoint, yVector, yVector, yVector)

通过向量设置剖切盒

Parameters:
Name Type Description
basePoint Object

剖切盒的基点

yVector Object

剖切盒的x轴向量

yVector Object

剖切盒的y轴向量

yVector Object

剖切盒的z轴向量

setObjectsById(ids)

根据ID列表设置被剖切的构件、外部构件、房间对象

Parameters:
Name Type Description
ids Array

被剖切的构件、外部构件、房间对象ID列表

setObjectsByObjectData(conditions)

根据筛选条件设置被剖切的构件对象

Parameters:
Name Type Description
conditions Array

被剖切构件的筛选条件

setSectionBox()

设置剖切盒的范围

showBox()

显示剖切盒

unlockBox()

解除剖切盒锁定状态