M3D / M3D / Algorithm / SectionLineHelper
Class: SectionLineHelper
M3D.Algorithm.SectionLineHelper
Memberof
M3D.Algorithm
Description
剖切线计算和盖面计算辅助类
Author
ZYC
Date
2022.11.02
Table of contents
Constructors
Methods
- GetCenterOfCircle
- IsCollineation
- createSectionEdge
- getFigureInsectBody
- getFigureInsectFace
- getFigureInsectMesh
- getFigureInsectModel
- getFigureSectionLines
- getSectionLineType
- isCircleType
- isLineType
- isPointInPlane
- judgeLineType
- linkLines
- linkLinesNewBack
- linkLinesNewFront
Constructors
constructor
• new SectionLineHelper(): SectionLineHelper
Returns
Methods
GetCenterOfCircle
▸ GetCenterOfCircle(points): Vector3
Parameters
| Name | Type |
|---|---|
points | Vector3[] |
Returns
Description
获取圆心数据
IsCollineation
▸ IsCollineation(head, next): boolean
Parameters
| Name | Type |
|---|---|
head | CLine |
next | CLine |
Returns
boolean
Description
两条线是否共线
createSectionEdge
▸ createSectionEdge(sectionEdge, outSectionType): boolean
Parameters
| Name | Type |
|---|---|
sectionEdge | SectionEdge |
outSectionType | SectionElement |
Returns
boolean
Description
填充轮廓线几何数据
getFigureInsectBody
▸ getFigureInsectBody(data, mat, factors, body): void
Parameters
| Name | Type |
|---|---|
data | FigureSectionLine |
mat | Matrix3x4 |
factors | Float32Array |
body | Body |
Returns
void
Description
获取与剖切面相交的Body
getFigureInsectFace
▸ getFigureInsectFace(data, mat, factors, face): void
Parameters
| Name | Type |
|---|---|
data | FigureSectionLine |
mat | Matrix3x4 |
factors | Float32Array |
face | Face |
Returns
void
Description
获取与剖切面相交的face
getFigureInsectMesh
▸ getFigureInsectMesh(factors, face): Vector3[]
Parameters
| Name | Type |
|---|---|
factors | Float32Array |
face | Face |
Returns
Vector3[]
Description
获取与剖切面相交的mesh
getFigureInsectModel
▸ getFigureInsectModel(data, factors, model): void
Parameters
| Name | Type |
|---|---|
data | FigureSectionLine |
factors | number[] |
model | Model |
Returns
void
Description
获取与剖切面相交的model
getFigureSectionLines
▸ getFigureSectionLines(data, node): void
Parameters
| Name | Type |
|---|---|
data | FigureSectionLine |
node | Model |
Returns
void
Description
获取剖切线
getSectionLineType
▸ getSectionLineType(datas, normal, outSectionType): boolean
Parameters
| Name | Type |
|---|---|
datas | Vector3[] |
normal | Vector3 |
outSectionType | SectionElement[] |
Returns
boolean
Description
获取数据的几何类型
isCircleType
▸ isCircleType(datas): boolean
Parameters
| Name | Type |
|---|---|
datas | CLine[] |
Returns
boolean
Description
是否是圆弧类型
▸ isCircleType(datas, center, radius): boolean
Parameters
| Name | Type |
|---|---|
datas | CLine[] |
center | Vector3 |
radius | number |
Returns
boolean
Description
是否是圆弧类型
isLineType
▸ isLineType(datas): boolean
Parameters
| Name | Type |
|---|---|
datas | CLine[] |
Returns
boolean
Description
是否是直线类型
isPointInPlane
▸ isPointInPlane(factors, point): number
Parameters
| Name | Type |
|---|---|
factors | Float32Array |
point | Vector3 |
Returns
number
Description
点与控件平面关系