Skip to content

mxcad_3d API 文档 / Mx3dShapeDownCast

Class: Mx3dShapeDownCast ​

形状对象的向下类型转换接口

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dShapeDownCast()

Methods ​

CompSolid ​

▸ Static CompSolid(S): Mx3dShapeCompSolid

将 Mx3dShapeObject 对象转换为 Mx3dShapeCompSolid 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeCompSolid)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeCompSolid

转换后的子类形状对象


Compound ​

▸ Static Compound(S): Mx3dShapeCompound

将 Mx3dShapeObject 对象转换为 Mx3dShapeCompound 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeCompound)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeCompound

转换后的子类形状对象


Edge ​

▸ Static Edge(S): Mx3dShapeEdge

将 Mx3dShapeObject 对象转换为 Mx3dShapeEdge 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeEdge)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeEdge

转换后的子类形状对象


Face ​

▸ Static Face(S): Mx3dShapeFace

将 Mx3dShapeObject 对象转换为 Mx3dShapeFace 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeFace)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeFace

转换后的子类形状对象


Shell ​

▸ Static Shell(S): Mx3dShapeShell

将 Mx3dShapeObject 对象转换为 Mx3dShapeShell 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeShell)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeShell

转换后的子类形状对象


Solid ​

▸ Static Solid(S): Mx3dShapeSolid

将 Mx3dShapeObject 对象转换为 Mx3dShapeSolid 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeSolid)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeSolid

转换后的子类形状对象


Vertex ​

▸ Static Vertex(S): Mx3dShapeVertex

将 Mx3dShapeObject 对象转换为 Mx3dShapeVertex 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeVertex)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeVertex

转换后的子类形状对象


Wire ​

▸ Static Wire(S): Mx3dShapeWire

将 Mx3dShapeObject 对象转换为 Mx3dShapeWire 对象(Mx3dShapeObject 的实际类型需要是 Mx3dShapeWire)

Parameters ​

NameTypeDescription
SMx3dShapeObject需要转换的形状对象

Returns ​

Mx3dShapeWire

转换后的子类形状对象