Skip to content

[mxcad_3d API documentation](../README. md)/Mx3dShapeDownCast

Class: Mx3dShapeDownCast ​

Downward type conversion interface for shape objects

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dShapeDownCast()

Methods ​

CompSolid ​

▸ Static CompSolid(S): Mx3dShapeCompSolid

Convert Mx3dShapeObject object to Mx3dShapeCompSolid object (the actual type of Mx3dShapeObject needs to be Mx3dShapeCompSolid)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeCompSolid

Converted subclass shape object


Compound ​

▸ Static Compound(S): Mx3dShapeCompound

Convert Mx3dShapeObject object to Mx3dShapeCompound object (the actual type of Mx3dShapeObject needs to be Mx3dShapeCompound)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeCompound

Converted subclass shape object


Edge ​

▸ Static Edge(S): Mx3dShapeEdge

Convert Mx3dShapeObject object to Mx3dShapeEdge object (the actual type of Mx3dShapeObject needs to be Mx3dShapeEdge)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeEdge

Converted subclass shape object


Face ​

▸ Static Face(S): Mx3dShapeFace

Convert Mx3dShapeObject object to Mx3dShapeFace object (the actual type of Mx3dShapeObject needs to be Mx3dShapeFace)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeFace

Converted subclass shape object


Shell ​

▸ Static Shell(S): Mx3dShapeShell

Convert Mx3dShapeObject object to Mx3dShapeShell object (the actual type of Mx3dShapeObject needs to be Mx3dShapeShell)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeShell

Converted subclass shape object


Solid ​

▸ Static Solid(S): Mx3dShapeSolid

Convert Mx3dShapeObject object to Mx3dShapeSolid object (the actual type of Mx3dShapeObject needs to be Mx3dShapeSolid)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeSolid

Converted subclass shape object


Vertex ​

▸ Static Vertex(S): Mx3dShapeVertex

Convert Mx3dShapeObject object to Mx3dShapeVertex object (the actual type of Mx3dShapeObject needs to be Mx3dShapeVertex)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeVertex

Converted subclass shape object


Wire ​

▸ Static Wire(S): Mx3dShapeWire

Convert Mx3dShapeObject object to Mx3dShapeWire object (the actual type of Mx3dShapeObject needs to be Mx3dShapeWire)

Parameters ​

NameTypeDescription
S[Mx3dShapeObject] (Mx3dShapeObject. md)Shape object to be converted

Returns ​

Mx3dShapeWire

Converted subclass shape object