Skip to content

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

Class: Mx3dMkBox ​

The class that represents the modeling rectangular prism inherits from Mx3dMkObject

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dMkBox(thePnt1, thePnt2)

Constructor that accepts two diagonal points of a rectangular prism as parameters.

Parameters ​

NameTypeDescription
ThePnt1UniPointThe first diagonal point
ThePnt2UniPointSecond diagonal point

Overrides ​

Mx3dMkObject.constructor

• new Mx3dMkBox(theDX, theDY, theDZ)

Constructor, taking the (0,0,0) point in the world coordinate system as the first corner, and accepting three values (theDX, theDY, theDZ) as the second corner parameter.

Parameters ​

NameTypeDescription
TheDXNumberThe second corner point's X-direction component
TheDYNumberThe Y-direction component of the second corner point
TheDZNumberThe Z-direction component of the second corner point

Overrides ​

Mx3dMkObject.constructor

• new Mx3dMkBox(theAxes, theDX, theDY, theDZ)

Constructor, taking the (0,0,0) point in the theAxes coordinate system as the first corner, and accepting three values (theDX, theDY, theDZ) as the second corner parameter.

Parameters ​

NameTypeDescription
The Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
TheDXNumberThe second corner point's X-direction component
TheDYNumberThe Y-direction component of the second corner point
TheDZNumberThe Z-direction component of the second corner point

Overrides ​

Mx3dMkObject.constructor

Methods ​

BackFace ​

▸ BackFace(): Mx3dShapeFace

Obtain the shape of the back topology of the rectangular prism.

Returns ​

Mx3dShapeFace

Tuopu surface shape.


BottomFace ​

▸ BottomFace(): Mx3dShapeFace

Obtain the shape of the bottom topology of the rectangular prism.

Returns ​

Mx3dShapeFace

Tuopu surface shape.


Build ​

▸ Build(): void

Execute the modeling algorithm for rectangular prisms.

Returns ​

void


FrontFace ​

▸ FrontFace(): Mx3dShapeFace

Obtain the shape of the front topology of the rectangular prism.

Returns ​

Mx3dShapeFace

Tuopu surface shape.


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.


LeftFace ​

▸ LeftFace(): Mx3dShapeFace

Obtain the left side topology shape of the rectangular prism.

Returns ​

Mx3dShapeFace

Tuopu surface shape.


RightFace ​

▸ RightFace(): Mx3dShapeFace

Obtain the right side topology shape of the rectangular prism.

Returns ​

Mx3dShapeFace

Tuopu surface shape.


Shape ​

▸ Shape(): Mx3dShapeObject

Obtain the topological shape of a rectangular prism.

Returns ​

Mx3dShapeObject

Topological shape.


Shell ​

▸ Shell(): Mx3dShapeShell

Obtain the topological shell shape of the rectangular prism.

Returns ​

Mx3dShapeShell

Topological shell shape.


Solid ​

▸ Solid(): Mx3dShapeSolid

Obtain the topological solid shape of a rectangular prism.

Returns ​

Mx3dShapeSolid

Topological entity shape.


TopFace ​

▸ TopFace(): Mx3dShapeFace

Obtain the top topology shape of the rectangular prism.

Returns ​

Mx3dShapeFace

Tuopu surface shape.