Skip to content

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

Class: Mx3dMkCylinder

The class representing the modeling cylinder inherits from Mx3dMkObject

Hierarchy

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

NameTypeDescription
Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
Rnumberradius
Hnumberheight
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

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 cylinder.

Returns

Mx3dShapeObject

Topological shape.


Shell

Shell(): Mx3dShapeShell

Obtain the topological shell shape of the cylinder.

Returns

Mx3dShapeShell

Topological shell shape.


Solid

Solid(): Mx3dShapeSolid

Obtain the topological solid shape of the cylinder.

Returns

Mx3dShapeSolid

Topological entity shape.