mxcad_3d API 文档 / Mx3dGeomLine
Class: Mx3dGeomLine
表示几何直线的类,继承自 Mx3dGeomCurve。
Hierarchy
↳
Mx3dGeomLine
Table of contents
Constructors
Methods
- Continuity
- Copy
- D0
- D1
- D2
- D3
- DN
- DynamicType
- Edge
- FirstParameter
- IsCN
- IsClosed
- IsPeriodic
- LastParameter
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- OffsetCurve
- ParametricTransformation
- Period
- Position
- Reverse
- Reversed
- ReversedParameter
- Rotate
- Rotated
- Scale
- Scaled
- SetDirection
- SetLocation
- SetPosition
- Transform
- Transformed
- TransformedParameter
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- Value
- DownCast
Constructors
constructor
• new Mx3dGeomLine(A1)
构造函数,接受一个轴作为参数。
Parameters
| Name | Type | Description |
|---|---|---|
A1 | Mx3dGeAxis | 轴对象。 |
Overrides
• new Mx3dGeomLine(P, V)
构造函数,接受一个点和一个方向作为参数。
Parameters
| Name | Type | Description |
|---|---|---|
P | Mx3dGePoint | 点对象。 |
V | Mx3dGeDir | 方向对象。 |
Overrides
Mx3dGeomCurve.constructor
Methods
Continuity
▸ Continuity(): MxGAShapeEnum
获取直线的连续性。
Returns
连续性枚举值。
Copy
▸ Copy(): Mx3dGeomObject
复制直线对象。
Returns
复制的直线对象。
D0
▸ D0(U, P): void
获取参数 U 处的点坐标。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
P | Mx3dGePoint | 点对象。 |
Returns
void
D1
▸ D1(U, P, V1): void
获取参数 U 处的一阶导数。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
P | Mx3dGePoint | 点对象。 |
V1 | Mx3dGeVec | 一阶导数向量。 |
Returns
void
D2
▸ D2(U, P, V1, V2): void
获取参数 U 处的二阶导数。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
P | Mx3dGePoint | 点对象。 |
V1 | Mx3dGeVec | 一阶导数向量。 |
V2 | Mx3dGeVec | 二阶导数向量。 |
Returns
void
D3
▸ D3(U, P, V1, V2, V3): void
获取参数 U 处的三阶导数。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
P | Mx3dGePoint | 点对象。 |
V1 | Mx3dGeVec | 一阶导数向量。 |
V2 | Mx3dGeVec | 二阶导数向量。 |
V3 | Mx3dGeVec | 三阶导数向量。 |
Returns
void
DN
▸ DN(U, N): Mx3dGeVec
获取参数 U 处的 N 阶导数。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
N | number | 阶数。 |
Returns
N 阶导数向量。
DynamicType
▸ DynamicType(): string
返回对象的动态类型。
Returns
string
动态类型的字符串。
Overrides
Edge
▸ Edge(p1, p2): Mx3dShapeEdge
获取直线的边形状对象。
Parameters
| Name | Type | Description |
|---|---|---|
p1 | number | 第一个参数。 |
p2 | number | 第二个参数。 |
Returns
直线的边形状对象。
FirstParameter
▸ FirstParameter(): number
获取直线的第一个参数。
Returns
number
第一个参数。
IsCN
▸ IsCN(N): boolean
检查直线是否是 C^N 连续的。
Parameters
| Name | Type | Description |
|---|---|---|
N | number | 阶数。 |
Returns
boolean
如果直线是 C^N 连续的,返回 true;否则返回 false。
IsClosed
▸ IsClosed(): boolean
检查直线是否闭合。
Returns
boolean
如果直线是闭合的,返回 true;否则返回 false。
IsPeriodic
▸ IsPeriodic(): boolean
检查直线是否周期性。
Returns
boolean
如果直线是周期性的,返回 true;否则返回 false。
LastParameter
▸ LastParameter(): number
获取直线的最后一个参数。
Returns
number
最后一个参数。
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): Mx3dGeomLine
返回通过轴镜像变换后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
A1 | Mx3dGeAxis | 轴对象。 |
Returns
新的几何对象。
Inherited from
MirroredByCSYSR
▸ MirroredByCSYSR(A2): Mx3dGeomLine
返回通过右手坐标系镜像变换后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
A2 | Mx3dGeCSYSR | 右手坐标系对象。 |
Returns
新的几何对象。
Inherited from
MirroredByPoint
▸ MirroredByPoint(P): Mx3dGeomLine
返回通过点镜像变换后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
P | Mx3dGePoint | 点对象。 |
Returns
新的几何对象。
Inherited from
OffsetCurve
▸ OffsetCurve(Offset, V, isNotCheckC0): Mx3dShapeEdge
获取直线的偏移曲线。
Parameters
| Name | Type | Description |
|---|---|---|
Offset | number | 偏移值。 |
V | Mx3dGeDir | 方向向量,与偏移方向垂直。 |
isNotCheckC0 | boolean | 是否不检查 C0 连续性。 |
Returns
直线的偏移曲线。
ParametricTransformation
▸ ParametricTransformation(T): number
获取参数变换。
Parameters
| Name | Type | Description |
|---|---|---|
T | Mx3dGeTrsf | 变换对象。 |
Returns
number
参数变换值。
Period
▸ Period(): number
返回曲线的周期。
Returns
number
曲线的周期。
Inherited from
Position
▸ Position(): Mx3dGeAxis
获取直线的位置。
Returns
轴对象。
Reverse
▸ Reverse(): void
反转直线的方向。
Returns
void
Reversed
▸ Reversed(): Mx3dGeomLine
返回反向后的新几何曲线对象。
Returns
新的几何曲线对象。
Inherited from
ReversedParameter
▸ ReversedParameter(U): number
获取反向参数。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
Returns
number
反向参数值。
Rotate
▸ Rotate(A1, Ang): void
旋转几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
A1 | Mx3dGeAxis | 轴对象。 |
Ang | number | 旋转角度。 |
Returns
void
Inherited from
Rotated
▸ Rotated(A1, Ang): Mx3dGeomLine
返回旋转后的新几何对象。
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): Mx3dGeomLine
返回缩放后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
P | Mx3dGePoint | 点对象。 |
S | number | 缩放比例。 |
Returns
新的几何对象。
Inherited from
SetDirection
▸ SetDirection(V): void
设置直线的方向。
Parameters
| Name | Type | Description |
|---|---|---|
V | Mx3dGeDir | 方向对象。 |
Returns
void
SetLocation
▸ SetLocation(P): void
设置直线的位置。
Parameters
| Name | Type | Description |
|---|---|---|
P | Mx3dGePoint | 点对象。 |
Returns
void
SetPosition
▸ SetPosition(A1): void
设置直线的位置。
Parameters
| Name | Type | Description |
|---|---|---|
A1 | Mx3dGeAxis | 轴对象。 |
Returns
void
Transform
▸ Transform(T): void
对直线进行变换。
Parameters
| Name | Type | Description |
|---|---|---|
T | Mx3dGeTrsf | 变换对象。 |
Returns
void
Transformed
▸ Transformed(T): Mx3dGeomLine
返回变换后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
T | Mx3dGeTrsf | 变换对象。 |
Returns
新的几何对象。
Inherited from
TransformedParameter
▸ TransformedParameter(U, T): number
获取变换后的参数。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
T | Mx3dGeTrsf | 变换对象。 |
Returns
number
变换后的参数值。
TranslateBy2Points
▸ TranslateBy2Points(P1, P2): void
通过两个点平移几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
P1 | Mx3dGePoint | 起始点对象。 |
P2 | Mx3dGePoint | 终止点对象。 |
Returns
void
Inherited from
Mx3dGeomCurve.TranslateBy2Points
TranslateByVec
▸ TranslateByVec(V): void
通过向量平移几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
V | Mx3dGeVec | 向量对象。 |
Returns
void
Inherited from
TranslatedBy2Points
▸ TranslatedBy2Points(P1, P2): Mx3dGeomLine
返回通过两个点平移后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
P1 | Mx3dGePoint | 起始点对象。 |
P2 | Mx3dGePoint | 终止点对象。 |
Returns
新的几何对象。
Inherited from
Mx3dGeomCurve.TranslatedBy2Points
TranslatedByVec
▸ TranslatedByVec(V): Mx3dGeomLine
返回通过向量平移后的新几何对象。
Parameters
| Name | Type | Description |
|---|---|---|
V | Mx3dGeVec | 向量对象。 |
Returns
新的几何对象。
Inherited from
Value
▸ Value(U): Mx3dGePoint
返回给定参数 U 处的点。
Parameters
| Name | Type | Description |
|---|---|---|
U | number | 参数值。 |
Returns
给定参数处的点对象。
Inherited from
DownCast
▸ Static DownCast(theObject): Mx3dGeomLine
父类对象转 Mx3dGeomLine 类对象
Parameters
| Name | Type | Description |
|---|---|---|
theObject | Mx3dGeomObject | 父类对象 |
Returns
Mx3dGeomLine 类对象