[mxcad_3d API Document](../README. md)/Mx3dMkCone
Class: Mx3dMkCone
The class representing the modeling cone inherits from Mx3dMkObject
Hierarchy
↳
Mx3dMkCone
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dMkCone(Axes
, R1
, R2
, H
, angle?
)
Constructor that accepts the coordinate system, base radius, top radius, height, and optional angle parameters of a cone.
Parameters
Name | Type | Description |
---|---|---|
Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
R1 | number | Base radius |
R2 | number | top radius |
H | number | height |
angle? | Number | (optional) Angle |
Overrides
Mx3dMkObject.constructor
Methods
Build
▸ Build(): void
Execute the modeling algorithm for cones.
Returns
void
Face
▸ Face(): Mx3dShapeFace
Obtain the topological surface shape of the cone.
Returns
Tuopu surface shape.
IsDone
▸ IsDone(): boolean
Check if the modeling algorithm has been executed successfully.
Returns
boolean
The flag indicating whether the modeling algorithm execution has been completed, with true indicating completion and false indicating failure.
Shape
▸ Shape(): Mx3dShapeObject
Obtain the topological shape of the cone.
Returns
Topological shape.
Shell
▸ Shell(): Mx3dShapeShell
Obtain the topological shell shape of the cone.
Returns
Topological shell shape.
Solid
▸ Solid(): Mx3dShapeSolid
Obtain the topological solid shape of the cone.
Returns
Topological entity shape.