[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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
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
| Name | Type | Description |
|---|---|---|
| S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object to be converted |
Returns
Converted subclass shape object