[mxcad_3d API Document](../README. md)/Mx3dMkSphere
Class: Mx3dMkSphere
The class representing the modeled sphere inherits from Mx3dMkObject
Hierarchy
↳
Mx3dMkSphere
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dMkSphere(Axes
, R
)
Constructor that accepts coordinate system objects and sphere radius as parameters.
Parameters
Name | Type | Description |
---|---|---|
Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
R | number | radius of the sphere |
Overrides
Mx3dMkObject.constructor
• new Mx3dMkSphere(Axes
, R
, angle
)
Constructor that accepts coordinate system objects, sphere radius, and an angle parameter.
Parameters
Name | Type | Description |
---|---|---|
Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
R | number | radius of the sphere |
Angle | number | angle parameter |
Overrides
Mx3dMkObject.constructor
• new Mx3dMkSphere(Axes
, R
, angle1
, angle2
)
Constructor that accepts coordinate system objects, sphere radius, and two angle parameters.
Parameters
Name | Type | Description |
---|---|---|
Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
R | number | radius of the sphere |
Angle1 | Number | The first angle parameter |
Angle2 | Number | Second angle parameter |
Overrides
Mx3dMkObject.constructor
• new Mx3dMkSphere(Axes
, R
, angle1
, angle2
, angle3
)
Constructor that accepts coordinate system objects, sphere radius, and three angle parameters.
Parameters
Name | Type | Description |
---|---|---|
Axes | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Coordinate system object |
R | number | radius of the sphere |
Angle1 | Number | The first angle parameter |
Angle2 | Number | Second angle parameter |
Angle3 | Number | The third angle parameter |
Overrides
Mx3dMkObject.constructor
Methods
Build
▸ Build(): void
Execute the modeling algorithm for the sphere.
Returns
void
Face
▸ Face(): Mx3dShapeFace
Obtain the topological surface shape of the sphere.
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 sphere.
Returns
Topological shape.
Shell
▸ Shell(): Mx3dShapeShell
Obtain the topological shell shape of the sphere.
Returns
Topological shell shape.
Solid
▸ Solid(): Mx3dShapeSolid
Obtain the topological entity shape of the sphere.
Returns
Topological entity shape.