[mxcad_3d API Document](../README. md)/Mx3dMkBox
Class: Mx3dMkBox
The class that represents the modeling rectangular prism inherits from Mx3dMkObject
Hierarchy
↳
Mx3dMkBox
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dMkBox(thePnt1
, thePnt2
)
Constructor that accepts two diagonal points of a rectangular prism as parameters.
Parameters
Name | Type | Description |
---|---|---|
ThePnt1 | UniPoint | The first diagonal point |
ThePnt2 | UniPoint | Second 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
Name | Type | Description |
---|---|---|
TheDX | Number | The second corner point's X-direction component |
TheDY | Number | The Y-direction component of the second corner point |
TheDZ | Number | The 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
Name | Type | Description |
---|---|---|
The Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
TheDX | Number | The second corner point's X-direction component |
TheDY | Number | The Y-direction component of the second corner point |
TheDZ | Number | The 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
Tuopu surface shape.
BottomFace
▸ BottomFace(): Mx3dShapeFace
Obtain the shape of the bottom topology of the rectangular prism.
Returns
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
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
Tuopu surface shape.
RightFace
▸ RightFace(): Mx3dShapeFace
Obtain the right side topology shape of the rectangular prism.
Returns
Tuopu surface shape.
Shape
▸ Shape(): Mx3dShapeObject
Obtain the topological shape of a rectangular prism.
Returns
Topological shape.
Shell
▸ Shell(): Mx3dShapeShell
Obtain the topological shell shape of the rectangular prism.
Returns
Topological shell shape.
Solid
▸ Solid(): Mx3dShapeSolid
Obtain the topological solid shape of a rectangular prism.
Returns
Topological entity shape.
TopFace
▸ TopFace(): Mx3dShapeFace
Obtain the top topology shape of the rectangular prism.
Returns
Tuopu surface shape.