Skip to content

[mxcad_3d API Document](../README. md)/Mx3dMkSphere

Class: Mx3dMkSphere

The class representing the modeled sphere inherits from Mx3dMkObject

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dMkSphere(Axes, R)

Constructor that accepts coordinate system objects and sphere radius as parameters.

Parameters

NameTypeDescription
Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
Rnumberradius of the sphere

Overrides

Mx3dMkObject.constructor

new Mx3dMkSphere(Axes, R, angle)

Constructor that accepts coordinate system objects, sphere radius, and an angle parameter.

Parameters

NameTypeDescription
Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
Rnumberradius of the sphere
Anglenumberangle parameter

Overrides

Mx3dMkObject.constructor

new Mx3dMkSphere(Axes, R, angle1, angle2)

Constructor that accepts coordinate system objects, sphere radius, and two angle parameters.

Parameters

NameTypeDescription
Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
Rnumberradius of the sphere
Angle1NumberThe first angle parameter
Angle2NumberSecond 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

NameTypeDescription
Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
Rnumberradius of the sphere
Angle1NumberThe first angle parameter
Angle2NumberSecond angle parameter
Angle3NumberThe 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

Mx3dShapeFace

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

Mx3dShapeObject

Topological shape.


Shell

Shell(): Mx3dShapeShell

Obtain the topological shell shape of the sphere.

Returns

Mx3dShapeShell

Topological shell shape.


Solid

Solid(): Mx3dShapeSolid

Obtain the topological entity shape of the sphere.

Returns

Mx3dShapeSolid

Topological entity shape.