[mxcad_3d API Document](../README. md)/Mx3dMkRevol
Class: Mx3dMkRevol
A class representing the modeling of a rotating body, inherited from Mx3dMkObject
Hierarchy
↳
Mx3dMkRevol
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dMkRevol(S
, A
, D?
)
Constructor that accepts a shape object, rotation axis, and optional rotation angle parameter.
Parameters
Name | Type | Description |
---|---|---|
S | [Mx3dShapeObject] (Mx3dShapeObject. md) | Shape object |
A | [Mx3dGeAxis] (Mx3dGeAxis. md) | Rotation axis |
D? | Number | (optional) Rotation angle |
Overrides
Mx3dMkObject.constructor
Methods
Build
▸ Build(): void
Execute modeling algorithms for rotating bodies.
Returns
void
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 rotating body.
Returns
Topological shape.