Skip to content

[mxcad_3d API documentation](../README. md)/Mx3dAlgoSpell2d

Class: Mx3dAlgoFillet2d ​

Two dimensional fillet algorithm

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dAlgoFillet2d()

Default constructor

Overrides ​

Mx3dAlgoObject.constructor

• new Mx3dAlgoFillet2d(theWire, thePlane)

Constructor, pass in the wire and the plane where the wire is located

Parameters ​

NameTypeDescription
TheWire[Mx3dShapeWire] (Mx3dShapeWire. md)Wire to be rounded
ThePlane[Mx3dGePlane] (Mx3dGePlane. md)The plane where the wire is located

Overrides ​

Mx3dAlgoObject.constructor

• new Mx3dAlgoFillet2d(theEdge1, theEdge2, thePlane)

Constructor, passing in two lines located on the same plane Edge and the plane where they are located

Parameters ​

NameTypeDescription
TheEdge1[Mx3dShapeEdge] (Mx3dShapeEdge. md)First Edge
TheEdge2[Mx3dShapeEdge] (Mx3dShapeEdge. md)Second Edge
The Plane[Mx3dGePlane] (Mx3dGePlane. md)The plane where it is located

Overrides ​

Mx3dAlgoObject.constructor

Methods ​

Init ​

▸ Init(theWire, thePlane): void

Initialize function, passing in the wire and the plane where the wire is located

Parameters ​

NameTypeDescription
TheWire[Mx3dShapeWire] (Mx3dShapeWire. md)Wire to be rounded
ThePlane[Mx3dGePlane] (Mx3dGePlane. md)The plane where the wire is located

Returns ​

void

▸ Init(theEdge1, theEdge2, thePlane): void

Initialization function, passing in two lines located on the same plane Edge and the plane where they are located

Parameters ​

NameTypeDescription
TheEdge1[Mx3dShapeEdge] (Mx3dShapeEdge. md)First Edge
TheEdge2[Mx3dShapeEdge] (Mx3dShapeEdge. md)Second Edge
The Plane[Mx3dGePlane] (Mx3dGePlane. md)The plane where it is located

Returns ​

void


NbResults ​

▸ NbResults(thePoint): number

Obtain the number of rounded corner execution results

Parameters ​

NameTypeDescription
ThePoint[Mx3dGePoint] (Mx3dGePoint. md)Calculate the point at the rounded corner

Returns ​

number

The number of rounded corner execution results


Perform ​

▸ Perform(theRadius): boolean

Execute fillet algorithm

Parameters ​

NameTypeDescription
TheRadiusnumberradius of rounded corners

Returns ​

boolean

Whether the algorithm has been successfully executed


Result ​

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

Parameters ​

NameTypeDefault valueDescription
thePoint[Mx3dGePoint] (Mx3dGePoint. md)undefinedSet the result to be obtained at which intersection point of the original curve is located
The Edge1[Mx3dShapeEdge] (Mx3dShapeEdge. md)undefinedThe first Edge returned
theEdge2[Mx3dShapeEdge] (Mx3dShapeEdge. md)undefinedThe second Edge returned
ISolutionnumber-1default -1, get the result closest to thePoint

Returns ​

Mx3dShapeEdge