Skip to content

mxcad_3d API 文档 / Mx3dGeomConic

Class: Mx3dGeomConic ​

表示几何二次曲线(圆锥曲线)的类,继承自 Mx3dGeomCurve。

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dGeomConic(p?)

Parameters ​

NameType
p?object

Overrides ​

Mx3dGeomCurve.constructor

Methods ​

Axis ​

▸ Axis(): Mx3dGeAxis

获取二次曲线的轴。

Returns ​

Mx3dGeAxis

轴对象。


Continuity ​

▸ Continuity(): MxGAShapeEnum

获取二次曲线的连续性。

Returns ​

MxGAShapeEnum

连续性枚举值。


DynCast ​

▸ DynCast(theObject): Mx3dGeomConic

Parameters ​

NameType
theObjectMx3dGeomObject

Returns ​

Mx3dGeomConic

Inherited from ​

Mx3dGeomCurve.DynCast


DynamicType ​

▸ DynamicType(): string

返回对象的动态类型。

Returns ​

string

动态类型的字符串。

Overrides ​

Mx3dGeomCurve.DynamicType


IsCN ​

▸ IsCN(N): boolean

检查二次曲线是否具有指定阶数的连续性。

Parameters ​

NameTypeDescription
Nnumber阶数。

Returns ​

boolean

如果具有指定阶数的连续性,则返回 true,否则返回 false。


Location ​

▸ Location(): Mx3dGePoint

获取二次曲线的位置。

Returns ​

Mx3dGePoint

点对象。


MirrorByAxis ​

▸ MirrorByAxis(A1): void

通过轴对几何对象进行镜像变换。

Parameters ​

NameTypeDescription
A1Mx3dGeAxis轴对象。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.MirrorByAxis


MirrorByCSYSR ​

▸ MirrorByCSYSR(A2): void

通过右手坐标系对几何对象进行镜像变换。

Parameters ​

NameTypeDescription
A2Mx3dGeCSYSR右手坐标系对象。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.MirrorByCSYSR


MirrorByPoint ​

▸ MirrorByPoint(P): void

通过点对几何对象进行镜像变换。

Parameters ​

NameTypeDescription
PMx3dGePoint点对象。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.MirrorByPoint


MirroredByAxis ​

▸ MirroredByAxis(A1): Mx3dGeomConic

返回通过轴镜像变换后的新几何对象。

Parameters ​

NameTypeDescription
A1Mx3dGeAxis轴对象。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.MirroredByAxis


MirroredByCSYSR ​

▸ MirroredByCSYSR(A2): Mx3dGeomConic

返回通过右手坐标系镜像变换后的新几何对象。

Parameters ​

NameTypeDescription
A2Mx3dGeCSYSR右手坐标系对象。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.MirroredByCSYSR


MirroredByPoint ​

▸ MirroredByPoint(P): Mx3dGeomConic

返回通过点镜像变换后的新几何对象。

Parameters ​

NameTypeDescription
PMx3dGePoint点对象。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.MirroredByPoint


Period ​

▸ Period(): number

返回曲线的周期。

Returns ​

number

曲线的周期。

Inherited from ​

Mx3dGeomCurve.Period


Position ​

▸ Position(): Mx3dGeCSYSR

获取二次曲线的右手坐标系。

Returns ​

Mx3dGeCSYSR

右手坐标系对象。


Reverse ​

▸ Reverse(): void

反转二次曲线的方向。

Returns ​

void


Reversed ​

▸ Reversed(): Mx3dGeomConic

返回反向后的新几何曲线对象。

Returns ​

Mx3dGeomConic

新的几何曲线对象。

Inherited from ​

Mx3dGeomCurve.Reversed


Rotate ​

▸ Rotate(A1, Ang): void

旋转几何对象。

Parameters ​

NameTypeDescription
A1Mx3dGeAxis轴对象。
Angnumber旋转角度。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.Rotate


Rotated ​

▸ Rotated(A1, Ang): Mx3dGeomConic

返回旋转后的新几何对象。

Parameters ​

NameTypeDescription
A1Mx3dGeAxis轴对象。
Angnumber旋转角度。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.Rotated


Scale ​

▸ Scale(P, S): void

缩放几何对象。

Parameters ​

NameTypeDescription
PMx3dGePoint点对象。
Snumber缩放比例。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.Scale


Scaled ​

▸ Scaled(P, S): Mx3dGeomConic

返回缩放后的新几何对象。

Parameters ​

NameTypeDescription
PMx3dGePoint点对象。
Snumber缩放比例。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.Scaled


SetAxis ​

▸ SetAxis(theA1): void

设置二次曲线的轴。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis轴对象。

Returns ​

void


SetLocation ​

▸ SetLocation(theP): void

设置二次曲线的位置。

Parameters ​

NameTypeDescription
thePMx3dGePoint点对象。

Returns ​

void


SetPosition ​

▸ SetPosition(theA2): void

设置二次曲线的右手坐标系。

Parameters ​

NameTypeDescription
theA2Mx3dGeCSYSR右手坐标系对象。

Returns ​

void


Transformed ​

▸ Transformed(T): Mx3dGeomConic

返回变换后的新几何对象。

Parameters ​

NameTypeDescription
TMx3dGeTrsf变换对象。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.Transformed


TranslateBy2Points ​

▸ TranslateBy2Points(P1, P2): void

通过两个点平移几何对象。

Parameters ​

NameTypeDescription
P1Mx3dGePoint起始点对象。
P2Mx3dGePoint终止点对象。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.TranslateBy2Points


TranslateByVec ​

▸ TranslateByVec(V): void

通过向量平移几何对象。

Parameters ​

NameTypeDescription
VMx3dGeVec向量对象。

Returns ​

void

Inherited from ​

Mx3dGeomCurve.TranslateByVec


TranslatedBy2Points ​

▸ TranslatedBy2Points(P1, P2): Mx3dGeomConic

返回通过两个点平移后的新几何对象。

Parameters ​

NameTypeDescription
P1Mx3dGePoint起始点对象。
P2Mx3dGePoint终止点对象。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.TranslatedBy2Points


TranslatedByVec ​

▸ TranslatedByVec(V): Mx3dGeomConic

返回通过向量平移后的新几何对象。

Parameters ​

NameTypeDescription
VMx3dGeVec向量对象。

Returns ​

Mx3dGeomConic

新的几何对象。

Inherited from ​

Mx3dGeomCurve.TranslatedByVec


Value ​

▸ Value(U): Mx3dGePoint

返回给定参数 U 处的点。

Parameters ​

NameTypeDescription
Unumber参数值。

Returns ​

Mx3dGePoint

给定参数处的点对象。

Inherited from ​

Mx3dGeomCurve.Value


XAxis ​

▸ XAxis(): Mx3dGeAxis

获取二次曲线的 X 轴。

Returns ​

Mx3dGeAxis

X 轴对象。


YAxis ​

▸ YAxis(): Mx3dGeAxis

获取二次曲线的 Y 轴。

Returns ​

Mx3dGeAxis

Y 轴对象。