跳到主要内容
版本:v10.0

M3D / M3D / Algorithm / SectionLineHelper

Class: SectionLineHelper

M3D.Algorithm.SectionLineHelper

Memberof

M3D.Algorithm

Description

剖切线计算和盖面计算辅助类

Author

ZYC

Date

2022.11.02

Table of contents​

Constructors​

Methods​

Constructors​

constructor​

• new SectionLineHelper(): SectionLineHelper

Returns​

SectionLineHelper

Methods​

GetCenterOfCircle​

▸ GetCenterOfCircle(points): Vector3

Parameters​

NameType
pointsVector3[]

Returns​

Vector3

Description

获取圆心数据


IsCollineation​

▸ IsCollineation(head, next): boolean

Parameters​

NameType
headCLine
nextCLine

Returns​

boolean

Description

两条线是否共线


createSectionEdge​

▸ createSectionEdge(sectionEdge, outSectionType): boolean

Parameters​

NameType
sectionEdgeSectionEdge
outSectionTypeSectionElement

Returns​

boolean

Description

填充轮廓线几何数据


getFigureInsectBody​

▸ getFigureInsectBody(data, mat, factors, body): void

Parameters​

NameType
dataFigureSectionLine
matMatrix3x4
factorsFloat32Array
bodyBody

Returns​

void

Description

获取与剖切面相交的Body


getFigureInsectFace​

▸ getFigureInsectFace(data, mat, factors, face): void

Parameters​

NameType
dataFigureSectionLine
matMatrix3x4
factorsFloat32Array
faceFace

Returns​

void

Description

获取与剖切面相交的face


getFigureInsectMesh​

▸ getFigureInsectMesh(factors, face): Vector3[]

Parameters​

NameType
factorsFloat32Array
faceFace

Returns​

Vector3[]

Description

获取与剖切面相交的mesh


getFigureInsectModel​

▸ getFigureInsectModel(data, factors, model): void

Parameters​

NameType
dataFigureSectionLine
factorsnumber[]
modelModel

Returns​

void

Description

获取与剖切面相交的model


getFigureSectionLines​

▸ getFigureSectionLines(data, node): void

Parameters​

NameType
dataFigureSectionLine
nodeModel

Returns​

void

Description

获取剖切线


getSectionLineType​

▸ getSectionLineType(datas, normal, outSectionType): boolean

Parameters​

NameType
datasVector3[]
normalVector3
outSectionTypeSectionElement[]

Returns​

boolean

Description

获取数据的几何类型


isCircleType​

▸ isCircleType(datas): boolean

Parameters​

NameType
datasCLine[]

Returns​

boolean

Description

是否是圆弧类型

▸ isCircleType(datas, center, radius): boolean

Parameters​

NameType
datasCLine[]
centerVector3
radiusnumber

Returns​

boolean

Description

是否是圆弧类型


isLineType​

▸ isLineType(datas): boolean

Parameters​

NameType
datasCLine[]

Returns​

boolean

Description

是否是直线类型


isPointInPlane​

▸ isPointInPlane(factors, point): number

Parameters​

NameType
factorsFloat32Array
pointVector3

Returns​

number

Description

点与控件平面关系


judgeLineType​

▸ judgeLineType(datas, normal, outSectionType): void

Parameters​

NameType
datasCLine[]
normalVector3
outSectionTypeSectionElement

Returns​

void

Description

判断该组线段的种类


linkLines​

▸ linkLines(lines): CLine[][]

Parameters​

NameType
linesCLine[]

Returns​

CLine[][]

Description

将线段组首尾相连


linkLinesNewBack​

▸ linkLinesNewBack(datas, s, e, tmp, subs): void

Parameters​

NameType
datasCLine[]
snumber
enumber
tmpCLine[]
subsnumber[]

Returns​

void

Description

将线从终点位置连接


linkLinesNewFront​

▸ linkLinesNewFront(datas, s, e, tmp, subs): void

Parameters​

NameType
datasCLine[]
snumber
enumber
tmpCLine[]
subsnumber[]

Returns​

void

Description

将线从起点位置连接