Skip to content

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

Class: Mx3dMkCone

The class representing the modeling cone inherits from Mx3dMkObject

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dMkCone(Axes, R1, R2, H, angle?)

Constructor that accepts the coordinate system, base radius, top radius, height, and optional angle parameters of a cone.

Parameters

NameTypeDescription
Axes[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Coordinate system object
R1numberBase radius
R2numbertop radius
Hnumberheight
angle?Number(optional) Angle

Overrides

Mx3dMkObject.constructor

Methods

Build

Build(): void

Execute the modeling algorithm for cones.

Returns

void


Face

Face(): Mx3dShapeFace

Obtain the topological surface shape of the cone.

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

Returns

Mx3dShapeObject

Topological shape.


Shell

Shell(): Mx3dShapeShell

Obtain the topological shell shape of the cone.

Returns

Mx3dShapeShell

Topological shell shape.


Solid

Solid(): Mx3dShapeSolid

Obtain the topological solid shape of the cone.

Returns

Mx3dShapeSolid

Topological entity shape.