Skip to content

mxcad_3d API 文档 / Mx3dGeomElementarySurface

Class: Mx3dGeomElementarySurface ​

Mx3dGeomElementarySurface 类是对几何基础表面(Elementary Surface)类的封装,提供了对简单参数方程表面的操作接口。 这些表面包括平面、圆柱、圆锥、球体等。该类继承自 Mx3dGeomSurface,并扩展了相关的几何操作功能。

Hierarchy ​

Table of contents ​

Methods ​

Methods ​

Axis ​

▸ Axis(): Mx3dGeAxis

获取表面的主轴(Z轴)。

Returns ​

Mx3dGeAxis

表面的主轴定义。


Continuity ​

▸ Continuity(): MxGAShapeEnum

返回表面在全局上的连续性(MxGAShapeEnum)。

Returns ​

MxGAShapeEnum

表面在全局上的连续性。


DynCast ​

▸ DynCast(theObject): Mx3dGeomElementarySurface

Parameters ​

NameType
theObjectMx3dGeomObject

Returns ​

Mx3dGeomElementarySurface

Inherited from ​

Mx3dGeomSurface.DynCast


DynamicType ​

▸ DynamicType(): string

返回对象的动态类型名称。

Returns ​

string

对象的类型名称字符串。

Overrides ​

Mx3dGeomSurface.DynamicType


IsCNu ​

▸ IsCNu(N): boolean

检查表面在 U 参数方向上的连续性是否达到指定的等级。

Parameters ​

NameTypeDescription
Nnumber要检查的连续性等级。

Returns ​

boolean

如果连续性等级满足条件,则返回 true;否则返回 false。


IsCNv ​

▸ IsCNv(N): boolean

检查表面在 V 参数方向上的连续性是否达到指定的等级。

Parameters ​

NameTypeDescription
Nnumber要检查的连续性等级。

Returns ​

boolean

如果连续性等级满足条件,则返回 true;否则返回 false。


Location ​

▸ Location(): Mx3dGePoint

获取表面局部坐标系的位置点。

Returns ​

Mx3dGePoint

表面位置点。


MirrorByAxis ​

▸ MirrorByAxis(A1): void

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

Parameters ​

NameTypeDescription
A1Mx3dGeAxis轴对象。

Returns ​

void

Inherited from ​

Mx3dGeomSurface.MirrorByAxis


MirrorByCSYSR ​

▸ MirrorByCSYSR(A2): void

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

Parameters ​

NameTypeDescription
A2Mx3dGeCSYSR右手坐标系对象。

Returns ​

void

Inherited from ​

Mx3dGeomSurface.MirrorByCSYSR


MirrorByPoint ​

▸ MirrorByPoint(P): void

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

Parameters ​

NameTypeDescription
PMx3dGePoint点对象。

Returns ​

void

Inherited from ​

Mx3dGeomSurface.MirrorByPoint


MirroredByAxis ​

▸ MirroredByAxis(A1): Mx3dGeomElementarySurface

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

Parameters ​

NameTypeDescription
A1Mx3dGeAxis轴对象。

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.MirroredByAxis


MirroredByCSYSR ​

▸ MirroredByCSYSR(A2): Mx3dGeomElementarySurface

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

Parameters ​

NameTypeDescription
A2Mx3dGeCSYSR右手坐标系对象。

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.MirroredByCSYSR


MirroredByPoint ​

▸ MirroredByPoint(P): Mx3dGeomElementarySurface

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

Parameters ​

NameTypeDescription
PMx3dGePoint点对象。

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.MirroredByPoint


Position ​

▸ Position(): Mx3dGeCSYSR

获取表面的局部坐标系。

Returns ​

Mx3dGeCSYSR

表面的局部坐标系。


Rotate ​

▸ Rotate(A1, Ang): void

旋转几何对象。

Parameters ​

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

Returns ​

void

Inherited from ​

Mx3dGeomSurface.Rotate


Rotated ​

▸ Rotated(A1, Ang): Mx3dGeomElementarySurface

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

Parameters ​

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

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.Rotated


Scale ​

▸ Scale(P, S): void

缩放几何对象。

Parameters ​

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

Returns ​

void

Inherited from ​

Mx3dGeomSurface.Scale


Scaled ​

▸ Scaled(P, S): Mx3dGeomElementarySurface

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

Parameters ​

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

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.Scaled


SetAxis ​

▸ SetAxis(theA1): void

设置表面的主轴(Z轴)。

Parameters ​

NameTypeDescription
theA1Mx3dGeAxis表面的主轴定义。

Returns ​

void


SetLocation ​

▸ SetLocation(theLoc): void

设置表面局部坐标系的位置点。

Parameters ​

NameTypeDescription
theLocMx3dGePoint新的位置点。

Returns ​

void


SetPosition ​

▸ SetPosition(theAx3): void

设置表面的局部坐标系。

Parameters ​

NameTypeDescription
theAx3Mx3dGeCSYSR新的坐标系,包含位置和方向。

Returns ​

void


TransformParameters ​

▸ TransformParameters(UV, T): void

根据给定的变换矩阵 T 变换表面参数。

Parameters ​

NameTypeDescription
UV[dU: number, dV: number]参数数组,包含 U 和 V 的值。
TMx3dGeTrsf变换矩阵。

Returns ​

void

Inherited from ​

Mx3dGeomSurface.TransformParameters


Transformed ​

▸ Transformed(T): Mx3dGeomElementarySurface

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

Parameters ​

NameTypeDescription
TMx3dGeTrsf变换对象。

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.Transformed


TranslateBy2Points ​

▸ TranslateBy2Points(P1, P2): void

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

Parameters ​

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

Returns ​

void

Inherited from ​

Mx3dGeomSurface.TranslateBy2Points


TranslateByVec ​

▸ TranslateByVec(V): void

通过向量平移几何对象。

Parameters ​

NameTypeDescription
VMx3dGeVec向量对象。

Returns ​

void

Inherited from ​

Mx3dGeomSurface.TranslateByVec


TranslatedBy2Points ​

▸ TranslatedBy2Points(P1, P2): Mx3dGeomElementarySurface

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

Parameters ​

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

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.TranslatedBy2Points


TranslatedByVec ​

▸ TranslatedByVec(V): Mx3dGeomElementarySurface

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

Parameters ​

NameTypeDescription
VMx3dGeVec向量对象。

Returns ​

Mx3dGeomElementarySurface

新的几何对象。

Inherited from ​

Mx3dGeomSurface.TranslatedByVec


UPeriod ​

▸ UPeriod(): number

返回表面在 U 方向的周期。

Returns ​

number

表面在 U 方向的周期。

Inherited from ​

Mx3dGeomSurface.UPeriod


UReverse ​

▸ UReverse(): void

反转表面在 U 参数方向上的参数化方向。

Returns ​

void


UReversed ​

▸ UReversed(): Mx3dGeomElementarySurface

反转 U 方向的参数化。

Returns ​

Mx3dGeomElementarySurface

返回当前对象以实现链式调用。

Inherited from ​

Mx3dGeomSurface.UReversed


VPeriod ​

▸ VPeriod(): number

返回表面在 V 方向的周期。

Returns ​

number

表面在 V 方向的周期。

Inherited from ​

Mx3dGeomSurface.VPeriod


VReverse ​

▸ VReverse(): void

反转表面在 V 参数方向上的参数化方向。

Returns ​

void


VReversed ​

▸ VReversed(): Mx3dGeomElementarySurface

反转 V 方向的参数化。

Returns ​

Mx3dGeomElementarySurface

返回当前对象以实现链式调用。

Inherited from ​

Mx3dGeomSurface.VReversed


Value ​

▸ Value(U, V): Mx3dGePoint

计算参数 (U, V) 对应的表面上的点。

Parameters ​

NameTypeDescription
Unumber表面参数 U。
Vnumber表面参数 V。

Returns ​

Mx3dGePoint

对应的点。

Inherited from ​

Mx3dGeomSurface.Value