[mxcad_3d API Document](../README. md)/Mx3dMkCylinder
Class: Mx3dMkCylinder
The class representing the modeling cylinder inherits from Mx3dMkObject
Hierarchy
↳
Mx3dMkCylinder
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dMkCylinder(Axes
, R
, H
, Angle?
)
Constructor that accepts the coordinate system, radius, height, and optional angle parameters of a cylinder.
Parameters
Name | Type | Description |
---|---|---|
Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
R | number | radius |
H | number | height |
Angle? | Number | (optional) Angle |
Overrides
Mx3dMkObject.constructor
Methods
Build
▸ Build(): void
Execute the modeling algorithm for cylinders.
Returns
void
Face
▸ Face(): Mx3dShapeFace
Obtain the topological surface shape of the cylinder.
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 cylinder.
Returns
Topological shape.
Shell
▸ Shell(): Mx3dShapeShell
Obtain the topological shell shape of the cylinder.
Returns
Topological shell shape.
Solid
▸ Solid(): Mx3dShapeSolid
Obtain the topological solid shape of the cylinder.
Returns
Topological entity shape.