Skip to content

mxcad_3d API 文档 / Mx3dMkCone

Class: Mx3dMkCone ​

表示建模圆锥的类,继承自 Mx3dMkObject

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dMkCone(Axes, R1, R2, H, angle?)

构造函数,接受圆锥的坐标系、底面半径、顶面半径、高度,以及可选的角度参数。

Parameters ​

NameTypeDescription
AxesMx3dGeCSYSR坐标系对象。
R1number底面半径。
R2number顶面半径。
Hnumber高度。
angle?number(可选)角度。

Overrides ​

Mx3dMkObject.constructor

Methods ​

Build ​

▸ Build(): void

执行圆锥的建模算法。

Returns ​

void


Face ​

▸ Face(): Mx3dShapeFace

获取圆锥的拓扑面形状。

Returns ​

Mx3dShapeFace

拓扑面形状。


IsDone ​

▸ IsDone(): boolean

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

Returns ​

boolean

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


Shape ​

▸ Shape(): Mx3dShapeObject

获取圆锥的拓扑形状。

Returns ​

Mx3dShapeObject

拓扑形状。


Shell ​

▸ Shell(): Mx3dShapeShell

获取圆锥的拓扑外壳形状。

Returns ​

Mx3dShapeShell

拓扑壳形状。


Solid ​

▸ Solid(): Mx3dShapeSolid

获取圆锥的拓扑实体形状。

Returns ​

Mx3dShapeSolid

拓扑实体形状。