mxcad_3d API 文档 / Mx3dGeomElementarySurface
Class: Mx3dGeomElementarySurface 
Mx3dGeomElementarySurface 类是对几何基础表面(Elementary Surface)类的封装,提供了对简单参数方程表面的操作接口。 这些表面包括平面、圆柱、圆锥、球体等。该类继承自 Mx3dGeomSurface,并扩展了相关的几何操作功能。
Hierarchy 
- ↳ - Mx3dGeomElementarySurface
Table of contents 
Methods 
- Axis
- Continuity
- DynCast
- DynamicType
- IsCNu
- IsCNv
- Location
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Position
- Rotate
- Rotated
- Scale
- Scaled
- SetAxis
- SetLocation
- SetPosition
- TransformParameters
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- UPeriod
- UReverse
- UReversed
- VPeriod
- VReverse
- VReversed
- Value
Methods 
Axis 
▸ Axis(): Mx3dGeAxis
获取表面的主轴(Z轴)。
Returns 
表面的主轴定义。
Continuity 
▸ Continuity(): MxGAShapeEnum
返回表面在全局上的连续性(MxGAShapeEnum)。
Returns 
表面在全局上的连续性。
DynCast 
▸ DynCast(theObject): Mx3dGeomElementarySurface
Parameters 
| Name | Type | 
|---|---|
| theObject | Mx3dGeomObject | 
Returns 
Inherited from 
DynamicType 
▸ DynamicType(): string
返回对象的动态类型名称。
Returns 
string
对象的类型名称字符串。
Overrides 
IsCNu 
▸ IsCNu(N): boolean
检查表面在 U 参数方向上的连续性是否达到指定的等级。
Parameters 
| Name | Type | Description | 
|---|---|---|
| N | number | 要检查的连续性等级。 | 
Returns 
boolean
如果连续性等级满足条件,则返回 true;否则返回 false。
IsCNv 
▸ IsCNv(N): boolean
检查表面在 V 参数方向上的连续性是否达到指定的等级。
Parameters 
| Name | Type | Description | 
|---|---|---|
| N | number | 要检查的连续性等级。 | 
Returns 
boolean
如果连续性等级满足条件,则返回 true;否则返回 false。
Location 
▸ Location(): Mx3dGePoint
获取表面局部坐标系的位置点。
Returns 
表面位置点。
MirrorByAxis 
▸ MirrorByAxis(A1): void
通过轴对几何对象进行镜像变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
Returns 
void
Inherited from 
MirrorByCSYSR 
▸ MirrorByCSYSR(A2): void
通过右手坐标系对几何对象进行镜像变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A2 | Mx3dGeCSYSR | 右手坐标系对象。 | 
Returns 
void
Inherited from 
MirrorByPoint 
▸ MirrorByPoint(P): void
通过点对几何对象进行镜像变换。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
Returns 
void
Inherited from 
MirroredByAxis 
▸ MirroredByAxis(A1): Mx3dGeomElementarySurface
返回通过轴镜像变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
Returns 
新的几何对象。
Inherited from 
Mx3dGeomSurface.MirroredByAxis
MirroredByCSYSR 
▸ MirroredByCSYSR(A2): Mx3dGeomElementarySurface
返回通过右手坐标系镜像变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A2 | Mx3dGeCSYSR | 右手坐标系对象。 | 
Returns 
新的几何对象。
Inherited from 
Mx3dGeomSurface.MirroredByCSYSR
MirroredByPoint 
▸ MirroredByPoint(P): Mx3dGeomElementarySurface
返回通过点镜像变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
Returns 
新的几何对象。
Inherited from 
Mx3dGeomSurface.MirroredByPoint
Position 
▸ Position(): Mx3dGeCSYSR
获取表面的局部坐标系。
Returns 
表面的局部坐标系。
Rotate 
▸ Rotate(A1, Ang): void
旋转几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
| Ang | number | 旋转角度。 | 
Returns 
void
Inherited from 
Rotated 
▸ Rotated(A1, Ang): Mx3dGeomElementarySurface
返回旋转后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| A1 | Mx3dGeAxis | 轴对象。 | 
| Ang | number | 旋转角度。 | 
Returns 
新的几何对象。
Inherited from 
Scale 
▸ Scale(P, S): void
缩放几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
| S | number | 缩放比例。 | 
Returns 
void
Inherited from 
Scaled 
▸ Scaled(P, S): Mx3dGeomElementarySurface
返回缩放后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P | Mx3dGePoint | 点对象。 | 
| S | number | 缩放比例。 | 
Returns 
新的几何对象。
Inherited from 
SetAxis 
▸ SetAxis(theA1): void
设置表面的主轴(Z轴)。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theA1 | Mx3dGeAxis | 表面的主轴定义。 | 
Returns 
void
SetLocation 
▸ SetLocation(theLoc): void
设置表面局部坐标系的位置点。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theLoc | Mx3dGePoint | 新的位置点。 | 
Returns 
void
SetPosition 
▸ SetPosition(theAx3): void
设置表面的局部坐标系。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theAx3 | Mx3dGeCSYSR | 新的坐标系,包含位置和方向。 | 
Returns 
void
TransformParameters 
▸ TransformParameters(UV, T): void
根据给定的变换矩阵 T 变换表面参数。
Parameters 
| Name | Type | Description | 
|---|---|---|
| UV | [dU: number, dV: number] | 参数数组,包含 U 和 V 的值。 | 
| T | Mx3dGeTrsf | 变换矩阵。 | 
Returns 
void
Inherited from 
Mx3dGeomSurface.TransformParameters
Transformed 
▸ Transformed(T): Mx3dGeomElementarySurface
返回变换后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| T | Mx3dGeTrsf | 变换对象。 | 
Returns 
新的几何对象。
Inherited from 
TranslateBy2Points 
▸ TranslateBy2Points(P1, P2): void
通过两个点平移几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P1 | Mx3dGePoint | 起始点对象。 | 
| P2 | Mx3dGePoint | 终止点对象。 | 
Returns 
void
Inherited from 
Mx3dGeomSurface.TranslateBy2Points
TranslateByVec 
▸ TranslateByVec(V): void
通过向量平移几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| V | Mx3dGeVec | 向量对象。 | 
Returns 
void
Inherited from 
Mx3dGeomSurface.TranslateByVec
TranslatedBy2Points 
▸ TranslatedBy2Points(P1, P2): Mx3dGeomElementarySurface
返回通过两个点平移后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| P1 | Mx3dGePoint | 起始点对象。 | 
| P2 | Mx3dGePoint | 终止点对象。 | 
Returns 
新的几何对象。
Inherited from 
Mx3dGeomSurface.TranslatedBy2Points
TranslatedByVec 
▸ TranslatedByVec(V): Mx3dGeomElementarySurface
返回通过向量平移后的新几何对象。
Parameters 
| Name | Type | Description | 
|---|---|---|
| V | Mx3dGeVec | 向量对象。 | 
Returns 
新的几何对象。
Inherited from 
Mx3dGeomSurface.TranslatedByVec
UPeriod 
▸ UPeriod(): number
返回表面在 U 方向的周期。
Returns 
number
表面在 U 方向的周期。
Inherited from 
UReverse 
▸ UReverse(): void
反转表面在 U 参数方向上的参数化方向。
Returns 
void
UReversed 
▸ UReversed(): Mx3dGeomElementarySurface
反转 U 方向的参数化。
Returns 
返回当前对象以实现链式调用。
Inherited from 
VPeriod 
▸ VPeriod(): number
返回表面在 V 方向的周期。
Returns 
number
表面在 V 方向的周期。
Inherited from 
VReverse 
▸ VReverse(): void
反转表面在 V 参数方向上的参数化方向。
Returns 
void
VReversed 
▸ VReversed(): Mx3dGeomElementarySurface
反转 V 方向的参数化。
Returns 
返回当前对象以实现链式调用。
Inherited from 
Value 
▸ Value(U, V): Mx3dGePoint
计算参数 (U, V) 对应的表面上的点。
Parameters 
| Name | Type | Description | 
|---|---|---|
| U | number | 表面参数 U。 | 
| V | number | 表面参数 V。 | 
Returns 
对应的点。