Skip to content
On this page

mxcad_3d API 文档 / Mx3dAlgoFillet2d

Class: Mx3dAlgoFillet2d

二维倒圆角算法

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dAlgoFillet2d()

默认构造函数

Overrides

Mx3dAlgoObject.constructor

new Mx3dAlgoFillet2d(theWire, thePlane)

构造函数,传入Wire和Wire所在平面

Parameters

NameTypeDescription
theWireMx3dShapeWire要倒圆角的Wire
thePlaneMx3dGePlaneWire所在平面

Overrides

Mx3dAlgoObject.constructor

new Mx3dAlgoFillet2d(theEdge1, theEdge2, thePlane)

构造函数,传入两条位于同一平面Edge,和所在平面

Parameters

NameTypeDescription
theEdge1Mx3dShapeEdge第一条Edge
theEdge2Mx3dShapeEdge第二条Edge
thePlaneMx3dGePlane所在平面

Overrides

Mx3dAlgoObject.constructor

Methods

Init

Init(theWire, thePlane): void

初始化函数,传入Wire和Wire所在平面

Parameters

NameTypeDescription
theWireMx3dShapeWire要倒圆角的Wire
thePlaneMx3dGePlaneWire所在平面

Returns

void

Init(theEdge1, theEdge2, thePlane): void

初始化函数,传入两条位于同一平面Edge,和所在平面

Parameters

NameTypeDescription
theEdge1Mx3dShapeEdge第一条Edge
theEdge2Mx3dShapeEdge第二条Edge
thePlaneMx3dGePlane所在平面

Returns

void


NbResults

NbResults(thePoint): number

获取圆角执行结果的数量

Parameters

NameTypeDescription
thePointMx3dGePoint计算圆角处的点

Returns

number

圆角执行结果的数量


Perform

Perform(theRadius): boolean

执行圆角算法

Parameters

NameTypeDescription
theRadiusnumber圆角的半径

Returns

boolean

算法是否执行成功


Result

Result(thePoint, theEdge1, theEdge2, iSolution?): Mx3dShapeEdge

Parameters

NameTypeDefault valueDescription
thePointMx3dGePointundefined设置要获取位于原曲线位于哪个交点的结果
theEdge1Mx3dShapeEdgeundefined返回的第一条Edge
theEdge2Mx3dShapeEdgeundefined返回的第二条Edge
iSolutionnumber-1默认-1,获取最靠近thePoint的结果

Returns

Mx3dShapeEdge