Skip to content

mxcad_3d API 文档 / Mx3dMkBox

Class: Mx3dMkBox ​

表示建模长方体的类,继承自 Mx3dMkObject

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dMkBox(thePnt1, thePnt2)

构造函数,接受长方体的两个对角点作为参数。

Parameters ​

NameTypeDescription
thePnt1UniPoint第一个对角点。
thePnt2UniPoint第二个对角点。

Overrides ​

Mx3dMkObject.constructor

• new Mx3dMkBox(theDX, theDY, theDZ)

构造函数,以世界坐标系的(0, 0, 0)点作为第一个角点,接受三个数值(theDX, theDY, theDZ)作为第二个角点参数。

Parameters ​

NameTypeDescription
theDXnumber第二个角点X方向分量。
theDYnumber第二个角点Y方向分量。
theDZnumber第二个角点Z方向分量。

Overrides ​

Mx3dMkObject.constructor

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

构造函数,以 theAxes 坐标系的(0, 0, 0)点作为第一个角点,接受三个数值(theDX, theDY, theDZ)作为第二个角点参数。

Parameters ​

NameTypeDescription
theAxesMx3dGeCSYSR坐标系对象。
theDXnumber第二个角点X方向分量。
theDYnumber第二个角点Y方向分量。
theDZnumber第二个角点Z方向分量。

Overrides ​

Mx3dMkObject.constructor

Methods ​

BackFace ​

▸ BackFace(): Mx3dShapeFace

获取长方体的背面拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。


BottomFace ​

▸ BottomFace(): Mx3dShapeFace

获取长方体的底面拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。


Build ​

▸ Build(): void

执行长方体的建模算法。

Returns ​

void


FrontFace ​

▸ FrontFace(): Mx3dShapeFace

获取长方体的前面拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。


IsDone ​

▸ IsDone(): boolean

检查建模算法是否执行完成。

Returns ​

boolean

建模算法执行是否完成的标志,true 完成,false 失败。


LeftFace ​

▸ LeftFace(): Mx3dShapeFace

获取长方体的左面拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。


RightFace ​

▸ RightFace(): Mx3dShapeFace

获取长方体的右面拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。


Shape ​

▸ Shape(): Mx3dShapeObject

获取长方体的拓扑形状。

Returns ​

Mx3dShapeObject

拓扑形状。


Shell ​

▸ Shell(): Mx3dShapeShell

获取长方体的拓扑外壳形状。

Returns ​

Mx3dShapeShell

拓扑壳形状。


Solid ​

▸ Solid(): Mx3dShapeSolid

获取长方体的拓扑实体形状。

Returns ​

Mx3dShapeSolid

拓扑实体形状。


TopFace ​

▸ TopFace(): Mx3dShapeFace

获取长方体的顶面拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。