Skip to content

[mxcad_3d API Document](../README. md)/Mx3dMkLoft

Class: Mx3dMkLoft

The class representing the modeling and layout body inherits from Mx3dMkObject.

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dMkLoft(isSolid?, ruled?, pres3d?)

Constructor, initialize the layout object.

Parameters

NameTypeDescription
isSolid?` BooleanWhether to create a solid layout, default is false
ruled?` BooleanWhether to use rule layout, default is false
pres3d?NumberThe plane resolution of the layout body is set to 0 by default

Overrides

Mx3dMkObject.constructor

Methods

AddVertex

AddVertex(aVertex): void

Add a vertex to the loft.

Parameters

NameTypeDescription
AVertex[Mx3dShapeVertex] (Mx3dShapeVertex. md)The vertex object to be added

Returns

void


AddWire

AddWire(wire): void

Add a wire to the layout body.

Parameters

NameTypeDescription
Wire[Mx3dShapeWire] (Mx3dShapeWire. md)The wire object to be added

Returns

void


Build

Build(): void

Execute the modeling algorithm for the layout body.

Returns

void


Continuity

Continuity(): MxGAShapeEnum

Obtain the continuity of the layout body.

Returns

MxGAShapeEnum

The continuity enumeration value of the current layout body.


IsDone

IsDone(): boolean

Check if the modeling algorithm has been executed successfully.

Returns

boolean

The flag indicating whether the modeling algorithm execution has been completed, with true indicating completion and false indicating failure.


SetContinuity

SetContinuity(C): void

Set the continuity of the layout body.

Parameters

NameTypeDescription
C[MxGAShapeenum] (../enums/MdGe. MxGAShapeenum. md)The continuity enumeration value of the shape

Returns

void


SetSmoothing

SetSmoothing(UseSmoothing): void

Set whether to use smoothing processing.

Parameters

NameTypeDescription
UseSmoothingbooleanUse the flag for smoothing processing

Returns

void


Shape

Shape(): Mx3dShapeObject

Obtain the shape of the layout body.

Returns

Mx3dShapeObject

The shape object of the layout body.


UseSmoothing

UseSmoothing(): boolean

Check if smoothing is used.

Returns

boolean

The usage status of smoothing processing, true is used, false is not used.