mxcad 1.0.56 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mxcad.d.ts CHANGED
@@ -17,92 +17,165 @@ export declare function saveAsFileDialog({ blob, filename, types }: {
17
17
  types?: FileTypes;
18
18
  }): Promise<void>;
19
19
  export declare function downloadFile(blob: any, filename: string): void;
20
+ export declare function downloadFileFromUrl(url: string, filename: string): void;
20
21
  export declare const MxTools: {
21
22
  b64Encode: typeof b64Encode;
22
23
  b64Decode: typeof b64Decode;
23
24
  saveAsFileDialog: typeof saveAsFileDialog;
24
25
  downloadFile: typeof downloadFile;
26
+ downloadFileFromUrl: typeof downloadFileFromUrl;
25
27
  };
26
28
  /**
27
29
  * 表示三维点的对象。
28
30
  */
29
- export interface McGePoint3d {
31
+ export declare class McGePoint3d {
32
+ static kOrigin: McGePoint3d;
33
+ imp: any;
30
34
  /**
31
35
  * 构造函数。
32
36
  * @param dX X 坐标。
33
37
  * @param dY Y 坐标。
34
38
  * @param dZ Z 坐标。
35
39
  */
36
- constructor(dX?: number, dY?: number, dZ?: number): any;
40
+ constructor(dX?: number | object, dY?: number, dZ?: number);
41
+ /**
42
+ * 复制对象的值
43
+ */
44
+ copy(val: McGePoint3d): this;
45
+ /**
46
+ * 使用矩阵变换该点
47
+ */
48
+ transformBy(leftSide: McGeMatrix3d): this;
49
+ /**
50
+ * 计算点加上向量后的新位置
51
+ */
52
+ addvec(vec: McGeVector3d): this;
53
+ /**
54
+ * 计算点减去向量后的新位置
55
+ */
56
+ subvec(vec: McGeVector3d): this;
57
+ /**
58
+ * 返回两点相减后得到的一个新的向量
59
+ */
60
+ sub(pt: McGePoint3d): McGeVector3d;
61
+ /**
62
+ * 计算两点距离
63
+ */
64
+ distanceTo(pnt: McGePoint3d): number;
65
+ /**
66
+ * 判断两个点是否相等
67
+ */
68
+ isEqualTo(pnt: McGePoint3d): boolean;
69
+ /**
70
+ * 刻隆一个对对象
71
+ */
72
+ clone(): McGePoint3d;
37
73
  /**
38
74
  * X 坐标。
39
75
  */
40
- x: number;
76
+ get x(): number;
77
+ set x(val: number);
41
78
  /**
42
79
  * Y 坐标。
43
80
  */
44
- y: number;
81
+ get y(): number;
82
+ set y(val: number);
45
83
  /**
46
84
  * Z 坐标。
47
85
  */
48
- z: number;
86
+ get z(): number;
87
+ set z(val: number);
49
88
  }
50
89
  /**
51
90
  * 表示三维向量的对象。
52
91
  */
53
- export interface McGeVector3d {
92
+ export declare class McGeVector3d {
93
+ static kXAxis: McGeVector3d;
94
+ static kYAxis: McGeVector3d;
95
+ static kZAxis: McGeVector3d;
96
+ imp: any;
54
97
  /**
55
98
  * 构造函数。
56
99
  * @param dX X 坐标。
57
100
  * @param dY Y 坐标。
58
101
  * @param dZ Z 坐标。
59
102
  */
60
- constructor(dX?: number, dY?: number, dZ?: number): any;
103
+ constructor(dX?: number | object, dY?: number, dZ?: number);
104
+ /**
105
+ * 复制对象的值
106
+ */
107
+ copy(val: McGeVector3d): this;
108
+ /**
109
+ * 刻隆一个对对象
110
+ */
111
+ clone(): McGeVector3d;
112
+ rotateBy(ang: number, axis: McGeVector3d): this;
113
+ negate(): this;
114
+ perpVector(): this;
115
+ angleTo1(vec: McGeVector3d): number;
116
+ angleTo2(vec: McGeVector3d, refVec: McGeVector3d): number;
117
+ normalize(): this;
118
+ length(): number;
119
+ isUnitLength(): boolean;
120
+ isZeroLength(): boolean;
121
+ dotProduct(vec: McGeVector3d): number;
122
+ crossProduct(vec: McGeVector3d): McGeVector3d;
123
+ isEqualTo(vec: McGeVector3d): boolean;
61
124
  /**
62
125
  * X 坐标。
63
126
  */
64
- x: number;
127
+ get x(): number;
128
+ set x(val: number);
65
129
  /**
66
130
  * Y 坐标。
67
131
  */
68
- y: number;
132
+ get y(): number;
133
+ set y(val: number);
69
134
  /**
70
135
  * Z 坐标。
71
136
  */
72
- z: number;
137
+ get z(): number;
138
+ set z(val: number);
73
139
  }
74
- /**
75
- * 表示三维矩阵的对象。
76
- */
77
- export interface McGeMatrix3d {
140
+ export declare class McGeMatrix3d {
141
+ static kIdentity: McGeMatrix3d;
142
+ imp: any;
78
143
  /**
79
144
  * 构造函数。
80
145
  */
81
- constructor(): any;
146
+ constructor(imp?: object);
147
+ /**
148
+ * 复制对象的值
149
+ */
150
+ copy(val: McGeMatrix3d): this;
151
+ /**
152
+ * 刻隆一个对对象
153
+ */
154
+ clone(): McGeMatrix3d;
82
155
  /**
83
156
  * 将矩阵设置为单位矩阵。
84
157
  */
85
- setToIdentity(): void;
158
+ setToIdentity(): this;
86
159
  /**
87
160
  * 左乘指定的矩阵。
88
161
  * @param leftSide 左侧矩阵。
89
162
  */
90
- preMultBy(leftSide: McGeMatrix3d): void;
163
+ preMultBy(leftSide: McGeMatrix3d): this;
91
164
  /**
92
165
  * 右乘指定的矩阵。
93
166
  * @param rightSide 右侧矩阵。
94
167
  */
95
- postMultBy(rightSide: McGeMatrix3d): void;
168
+ postMultBy(rightSide: McGeMatrix3d): this;
96
169
  /**
97
170
  * 将矩阵设置为两个矩阵的乘积。
98
171
  * @param mat1 第一个矩阵。
99
172
  * @param mat2 第二个矩阵。
100
173
  */
101
- setToProduct(mat1: McGeMatrix3d, mat2: McGeMatrix3d): void;
174
+ setToProduct(mat1: McGeMatrix3d, mat2: McGeMatrix3d): this;
102
175
  /**
103
176
  * 求矩阵的逆矩阵。
104
177
  */
105
- invert(): void;
178
+ invert(): this;
106
179
  /**
107
180
  * 判断矩阵是否为奇异矩阵。
108
181
  * @returns 如果是奇异矩阵返回 true,否则返回 false。
@@ -111,7 +184,7 @@ export interface McGeMatrix3d {
111
184
  /**
112
185
  * 将矩阵转置。
113
186
  */
114
- transposeIt(): void;
187
+ transposeIt(): this;
115
188
  /**
116
189
  * 判断矩阵是否与指定的矩阵相等。
117
190
  * @param mat 指定的矩阵。
@@ -130,25 +203,25 @@ export interface McGeMatrix3d {
130
203
  * @param yAxis Y 轴向量。
131
204
  * @param zAxis Z 轴向量。
132
205
  */
133
- setCoordSystem(origin: McGePoint3d, xAxis: McGeVector3d, yAxis: McGeVector3d, zAxis: McGeVector3d): void;
206
+ setCoordSystem(origin: McGePoint3d, xAxis: McGeVector3d, yAxis: McGeVector3d, zAxis: McGeVector3d): this;
134
207
  /**
135
208
  * 将矩阵设置为平移矩阵。
136
209
  * @param vec 平移向量。
137
210
  */
138
- setToTranslation(vec: McGeVector3d): void;
211
+ setToTranslation(vec: McGeVector3d): this;
139
212
  /**
140
213
  * 将矩阵设置为绕指定轴旋转指定角度的矩阵。
141
214
  * @param angle 旋转角度。
142
215
  * @param axis 旋转轴向量。
143
216
  * @param center 旋转中心点。
144
217
  */
145
- setToRotation(angle: number, axis: McGeVector3d, center: McGePoint3d): void;
218
+ setToRotation(angle: number, axis: McGeVector3d, center: McGePoint3d): this;
146
219
  /**
147
220
  * 将矩阵设置为缩放矩阵。
148
221
  * @param scaleAll 缩放因子。
149
222
  * @param center 缩放中心点。
150
223
  */
151
- setToScaling(scaleAll: number, center: McGePoint3d): void;
224
+ setToScaling(scaleAll: number, center: McGePoint3d): this;
152
225
  /**
153
226
  * 获取矩阵的缩放因子。
154
227
  * @returns 矩阵的缩放因子。
@@ -628,14 +701,14 @@ export declare class McDbCurve extends McDbEntity {
628
701
  * 得到曲线的开始点
629
702
  */
630
703
  getStartPoint(): {
631
- val: number;
704
+ val: McGePoint3d;
632
705
  ret: number;
633
706
  };
634
707
  /**
635
708
  * 得到曲线的结束点
636
709
  */
637
710
  getEndPoint(): {
638
- val: number;
711
+ val: McGePoint3d;
639
712
  ret: number;
640
713
  };
641
714
  /**
@@ -1252,6 +1325,59 @@ export declare class McDbRotatedDimension extends McDbDimension {
1252
1325
  */
1253
1326
  set rotation(val: number);
1254
1327
  }
1328
+ /**
1329
+ * 表示一个圆弧。
1330
+ */
1331
+ export declare class McDbArc extends McDbCurve {
1332
+ /**
1333
+ * 构造函数。
1334
+ * @param imp 内部对象。
1335
+ */
1336
+ constructor(imp?: any);
1337
+ /**
1338
+ * 设置圆心坐标。
1339
+ * @param x 圆心 x 坐标。
1340
+ * @param y 圆心 y 坐标。
1341
+ * @param z 圆心 z 坐标。
1342
+ */
1343
+ setCenter(x: number, y: number, z?: number): void;
1344
+ /**
1345
+ * 获取圆心坐标。
1346
+ */
1347
+ get center(): McGePoint3d;
1348
+ /**
1349
+ * 设置圆心坐标。
1350
+ * @param pt 圆心坐标。
1351
+ */
1352
+ set center(pt: McGePoint3d);
1353
+ /**
1354
+ * 获取圆半径。
1355
+ */
1356
+ get radius(): number;
1357
+ /**
1358
+ * 设置圆半径。
1359
+ * @param r 圆半径。
1360
+ */
1361
+ set radius(r: number);
1362
+ /**
1363
+ * 获取圆半径。
1364
+ */
1365
+ get startAngle(): number;
1366
+ /**
1367
+ * 设置圆半径。
1368
+ * @param r 圆半径。
1369
+ */
1370
+ set startAngle(r: number);
1371
+ /**
1372
+ * 获取圆半径。
1373
+ */
1374
+ get endAngle(): number;
1375
+ /**
1376
+ * 设置圆半径。
1377
+ * @param r 圆半径。
1378
+ */
1379
+ set endAngle(r: number);
1380
+ }
1255
1381
  /**
1256
1382
  * McDb 命名空间包含 AutoCAD 中的一些常用枚举。
1257
1383
  * @public
@@ -1356,7 +1482,21 @@ export declare namespace McDb {
1356
1482
  /**
1357
1483
  * 表示一个颜色对象,可以通过颜色索引或 RGB 值来设置颜色。
1358
1484
  */
1359
- export interface McCmColor {
1485
+ export declare class McCmColor {
1486
+ private imp;
1487
+ /**
1488
+ * 构造函数。
1489
+ */
1490
+ constructor(red?: number | object, green?: number, blue?: number);
1491
+ getImp(): any;
1492
+ /**
1493
+ * 复制对象的值
1494
+ */
1495
+ copy(val: McCmColor): this;
1496
+ /**
1497
+ * 刻隆一个对对象
1498
+ */
1499
+ clone(): McCmColor;
1360
1500
  /**
1361
1501
  * 设置颜色索引。
1362
1502
  * @param colorIndex 颜色索引。
@@ -1372,24 +1512,33 @@ export interface McCmColor {
1372
1512
  /**
1373
1513
  * 红色值。
1374
1514
  */
1375
- red: number;
1515
+ get red(): number;
1516
+ set red(val: number);
1376
1517
  /**
1377
1518
  * 绿色值。
1378
1519
  */
1379
- green: number;
1520
+ get green(): number;
1521
+ set green(val: number);
1380
1522
  /**
1381
1523
  * 蓝色值。
1382
1524
  */
1383
- blue: number;
1525
+ get blue(): number;
1526
+ set blue(val: number);
1527
+ /**
1528
+ * n
1529
+ */
1530
+ get n(): number;
1531
+ set n(val: number);
1384
1532
  /**
1385
1533
  * 方法。
1386
1534
  */
1387
- method: number;
1388
- n: number;
1535
+ get method(): number;
1536
+ set method(val: number);
1389
1537
  /**
1390
- * 颜色索引。
1538
+ * 颜色索引。。
1391
1539
  */
1392
- colorIndex: number;
1540
+ get colorIndex(): number;
1541
+ set colorIndex(val: number);
1393
1542
  }
1394
1543
  /**
1395
1544
  * 表示一个图层表记录对象。
@@ -1647,18 +1796,20 @@ export declare class McObject {
1647
1796
  /**
1648
1797
  * 将文件保存并转换为网络路径下载
1649
1798
  * @param sSaveProgramUrl 要保存文件的路径
1799
+ * @param call 保存文件的结果回调
1650
1800
  * @returns 是否成功保存文件
1651
1801
  */
1652
- saveFileToUrl(sSaveProgramUrl: string): boolean;
1802
+ saveFileToUrl(sSaveProgramUrl: string, call: (iResult: number, sServerResult: string) => void): boolean;
1653
1803
  /**
1654
1804
  * 保存文件
1655
- * @param pszFilePath 文件路径
1805
+ * @param pszFilePath 要保存的文件路径
1656
1806
  * @param call 回调函数,可选参数,文件保存完成后的回调函数,参数为文件数据
1657
1807
  * @param isDownland 是否下载文件,默认为 true
1658
1808
  * @param isShowSaveFileDialog 是否显示保存文件对话框,默认为 true
1809
+ * @param filename 另存为的新文件名称
1659
1810
  * @returns 是否成功保存文件
1660
1811
  */
1661
- saveFile(pszFilePath?: string, call?: (data: any) => void, isDownland?: boolean, isShowSaveFileDialog?: boolean): boolean;
1812
+ saveFile(pszFilePath?: string, call?: (data: any) => void, isDownland?: boolean, isShowSaveFileDialog?: boolean, filename?: string): boolean;
1662
1813
  /**
1663
1814
  * 获取数据库对象
1664
1815
  * @returns 数据库对象
@@ -2157,11 +2308,6 @@ export declare class MxCppType {
2157
2308
  * McAppType 实例
2158
2309
  */
2159
2310
  App: McAppType;
2160
- /**
2161
- * 创建新的 McCmColor 实例
2162
- * @returns {McCmColor} McCmColor 实例
2163
- */
2164
- NewMcCmColor(): McCmColor;
2165
2311
  /**
2166
2312
  * 获取上一次调用的结果
2167
2313
  * @returns {number} 调用结果
@@ -2174,14 +2320,6 @@ export declare class MxCppType {
2174
2320
  * @returns {McGePoint3d} McGePoint3d 实例
2175
2321
  */
2176
2322
  NewMcGePoint3d(pt?: any, isDoc?: boolean): McGePoint3d;
2177
- /**
2178
- * 创建新的 McGePoint3d 实例
2179
- * @param {number} x x 坐标
2180
- * @param {number} y y 坐标
2181
- * @param {number} z z 坐标
2182
- * @returns {McGePoint3d} McGePoint3d 实例
2183
- */
2184
- NewMcGePoint3d2(x: number, y: number, z?: number): McGePoint3d;
2185
2323
  }
2186
2324
  export declare let MxCpp: MxCppType;
2187
2325
  export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer): Promise<MxCppType>;
@@ -2344,6 +2482,2071 @@ export interface MxDraw3d extends WasmConfig {
2344
2482
  * @param file File对象
2345
2483
  */
2346
2484
  open3DFile: (file: File) => void;
2485
+ /** 表示一个形状 */
2486
+ MdGeShape: typeof MdGeShape;
2487
+ /** 表示一个点 */
2488
+ MdGePoint: typeof MdGePoint;
2489
+ /** 表示一个向量 */
2490
+ MdGeVect: typeof MdGeVec;
2491
+ /** 表示一个Wire形状 */
2492
+ MdGeWire: typeof MdGeWire;
2493
+ /** 表示一个Edge形状 */
2494
+ MdGeEdge: typeof MdGeEdge;
2495
+ /** 表示一个Vertex形状 */
2496
+ MdGeVertex: typeof MdGeVertex;
2497
+ /** 表示一个Face形状 */
2498
+ MdGeFace: typeof MdGeFace;
2499
+ /** 表示一个Shell形状 */
2500
+ MdGeShell: typeof MdGeShell;
2501
+ /** 表示一个Solid形状 */
2502
+ MdGeSolid: typeof MdGeSolid;
2503
+ /** 表示一个CompSolid形状 */
2504
+ MdGeCompSolid: typeof MdGeCompSolid;
2505
+ /** 表示一个Compound形状 */
2506
+ MdGeCompound: typeof MdGeCompound;
2507
+ /** 表示一个矩阵 */
2508
+ MdGeMat: typeof MdGeMat;
2509
+ /** 表示一个坐标 */
2510
+ MdGeXYZ: typeof MdGeXYZ;
2511
+ /** 表示一个变换 */
2512
+ MdGeTrsf: typeof MdGeTrsf;
2513
+ /** 表示一个方向 */
2514
+ MdGeDir: typeof MdGeDir;
2515
+ /** 表示一个轴 */
2516
+ MdGeAxis: typeof MdGeAxis;
2517
+ /** 表示一个右手坐标系 */
2518
+ MdGeCSYSR: typeof MdGeCSYSR;
2519
+ /** 表示角度标注 */
2520
+ MdGeAngleDim: typeof MdGeAngleDim;
2521
+ /** 表示一维整数数组 */
2522
+ MdGeArray1OfInteger: typeof MdGeArray1OfInteger;
2523
+ /** 表示一维点数组 */
2524
+ MdGeArray1OfPnt: typeof MdGeArray1OfPnt;
2525
+ /** 表示一维实数数组 */
2526
+ MdGeArray1OfReal: typeof MdGeArray1OfReal;
2527
+ /** 表示二维点数组 */
2528
+ MdGeArray2OfPnt: typeof MdGeArray2OfPnt;
2529
+ /** 表示二维实数数组 */
2530
+ MdGeArray2OfReal: typeof MdGeArray2OfReal;
2531
+ /** 表示贝塞尔曲线 */
2532
+ MdGeBezierCurve: typeof MdGeBezierCurve;
2533
+ /** 表示贝塞尔曲面 */
2534
+ MdGeBezierSurface: typeof MdGeBezierSurface;
2535
+ /** 表示倒斜角 */
2536
+ MdGeChamfer: typeof MdGeChamfer;
2537
+ /** 表示一个圆 */
2538
+ MdGeCircle: typeof MdGeCircle;
2539
+ /** 表示一个坐标系(左手或右手) */
2540
+ MdGeCSYS: typeof MdGeCSYS;
2541
+ /** 表示一个圆锥 */
2542
+ MdGeCone: typeof MdGeCone;
2543
+ /** 表示一个圆柱 */
2544
+ MdGeCylinder: typeof MdGeCylinder;
2545
+ /** 表示一个平面 */
2546
+ MdGePlane: typeof MdGePlane;
2547
+ /** 表示直径标注 */
2548
+ MdGeDiameterDim: typeof MdGeDiameterDim;
2549
+ /** 表示一个椭圆 */
2550
+ MdGeEllipse: typeof MdGeEllipse;
2551
+ MxShapeEnum: typeof MxShapeEnum;
2552
+ MxHorizontalTextAlignment: typeof MxHorizontalTextAlignment;
2553
+ MxVerticalTextAlignment: typeof MxVerticalTextAlignment;
2554
+ MxFontAspect: typeof MxFontAspect;
2555
+ MxTypeOfDisplayText: typeof MxTypeOfDisplayText;
2556
+ MxCF3dFilletShapeEnum: typeof MxCF3dFilletShapeEnum;
2557
+ MxCFDSChamfMode: typeof MxCFDSChamfMode;
2558
+ MxGFTrihedron: typeof MxGFTrihedron;
2559
+ MxGAShapeEnum: typeof MxGAShapeEnum;
2560
+ MxOffsetModeEnum: typeof MxOffsetModeEnum;
2561
+ MxGAJoinTypeEnum: typeof MxGAJoinTypeEnum;
2562
+ /** 表示拓扑元素遍历 */
2563
+ MdGeExplorer: typeof MdGeExplorer;
2564
+ /** 表示倒圆角 */
2565
+ MdGeFillet: typeof MdGeFillet;
2566
+ /** 表示双曲线 */
2567
+ MdGeHypr: typeof MdGeHypr;
2568
+ /** 表示一个Box */
2569
+ MdGeBox: typeof MdGeBox;
2570
+ /** 表示B样条曲线 */
2571
+ MdGeBSplineCurve: typeof MdGeBSplineCurve;
2572
+ /** 表示B样条曲面 */
2573
+ MdGeBSplineSurface: typeof MdGeBSplineSurface;
2574
+ /** 表示插值B样条曲线 */
2575
+ MdGeInterpolateBSpl: typeof MdGeInterpolateBSpl;
2576
+ /** 表示长度标注 */
2577
+ MdGeLengthDim: typeof MdGeLengthDim;
2578
+ /** 表示一条直线 */
2579
+ MdGeLine: typeof MdGeLine;
2580
+ /** 表示形状链表迭代器 */
2581
+ MdGeListIteratorOfListOfShape: typeof MdGeListIteratorOfListOfShape;
2582
+ /** 表示形状链表 */
2583
+ MdGeListOfShape: typeof MdGeListOfShape;
2584
+ /** 表示放样 */
2585
+ MdGeLoft: typeof MdGeLoft;
2586
+ /** 表示薄实体 */
2587
+ MdGeMakeThickSolid: typeof MdGeMakeThickSolid;
2588
+ /** 表示抛物线 */
2589
+ MdGeParab: typeof MdGeParab;
2590
+ /** 表示管道 */
2591
+ MdGePipe: typeof MdGePipe;
2592
+ /** 表示拟合点B样条曲线 */
2593
+ MdGePointsToBSpl: typeof MdGePointsToBSpl;
2594
+ /** 表示拟合B样条曲面 */
2595
+ MdGePointsToBSplSurface: typeof MdGePointsToBSplSurface;
2596
+ /** 表示拉伸体 */
2597
+ MdGePrism: typeof MdGePrism;
2598
+ /** 表示半径标注 */
2599
+ MdGeRadiusDim: typeof MdGeRadiusDim;
2600
+ /** 表示一个矩形 */
2601
+ MdGeRect: typeof MdGeRect;
2602
+ /** 表示旋转体 */
2603
+ MdGeRevol: typeof MdGeRevol;
2604
+ /** 表示一个球体 */
2605
+ MdGeSphere: typeof MdGeSphere;
2606
+ /** 表示文字 */
2607
+ MdGeText: typeof MdGeText;
2608
+ /** 表示文字标签 */
2609
+ MdGeTextLabel: typeof MdGeTextLabel;
2610
+ /** 拓扑转换类 */
2611
+ MdGeTopo: typeof MdGeTopo;
2612
+ /** 表示圆环 */
2613
+ MdGeTorus: typeof MdGeTorus;
2614
+ /** 形状变换类 */
2615
+ MdGeTransform: typeof MdGeTransform;
2616
+ /** 表示一个楔形 */
2617
+ MdGeWedge: typeof MdGeWedge;
2618
+ }
2619
+ /**
2620
+ * 表示一个形状。
2621
+ */
2622
+ export declare class MdGeShape {
2623
+ /**
2624
+ * 求合并后的形状。
2625
+ * @param other 另一个形状。
2626
+ * @returns 合并后的形状。
2627
+ */
2628
+ Fuse(other: MdGeShape): MdGeShape;
2629
+ /**
2630
+ * 求裁剪后的形状。
2631
+ * @param remove 被裁剪掉的部分形状。
2632
+ * @returns 裁剪后的形状。
2633
+ */
2634
+ Cut(remove: MdGeShape): MdGeShape;
2635
+ /**
2636
+ * 求形状相交的部分。
2637
+ * @param other 另一个形状。
2638
+ * @returns 相交部分的形状。
2639
+ */
2640
+ Common(other: MdGeShape): MdGeShape;
2641
+ /**
2642
+ * 求相交部分的外轮廓。
2643
+ * @param other 另一个形状。
2644
+ * @returns 相交部分的外轮廓的形状。
2645
+ */
2646
+ Section(other: MdGeShape): MdGeShape;
2647
+ IsNull(): boolean;
2648
+ /**
2649
+ * 绘制形状。
2650
+ */
2651
+ Draw(): void;
2652
+ }
2653
+ /**
2654
+ * 表示一个矩阵。
2655
+ */
2656
+ export declare class MdGeMat {
2657
+ constructor();
2658
+ constructor(a11: number, a12: number, a13: number, a21: number, a22: number, a23: number, a31: number, a32: number, a33: number);
2659
+ constructor(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ);
2660
+ SetCol(col: number, value: MdGeXYZ): void;
2661
+ SetCols(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ): void;
2662
+ SetCross(ref: MdGeXYZ): void;
2663
+ SetDiagonal(x1: number, x2: number, x3: number): void;
2664
+ SetDot(ref: MdGeXYZ): void;
2665
+ SetIdentity(): void;
2666
+ SetRotation(axis: MdGeXYZ, ang: number): void;
2667
+ SetRow(row: number, value: MdGeXYZ): void;
2668
+ SetRows(row1: MdGeXYZ, row2: MdGeXYZ, row3: MdGeXYZ): void;
2669
+ SetScale(s: number): void;
2670
+ SetValue(row: number, col: number, value: number): void;
2671
+ Column(col: number): MdGeXYZ;
2672
+ Determinant(): number;
2673
+ Diagonal(): MdGeXYZ;
2674
+ Row(row: number): MdGeXYZ;
2675
+ Value(row: number, col: number): number;
2676
+ ChangeValue(row: number, col: number, value: number): void;
2677
+ IsSingular(): boolean;
2678
+ Add(other: MdGeMat): void;
2679
+ Added(other: MdGeMat): MdGeMat;
2680
+ Divide(scalar: number): void;
2681
+ Divided(scalar: number): MdGeMat;
2682
+ Invert(): void;
2683
+ Inverted(): MdGeMat;
2684
+ MultipliedByMat(other: MdGeMat): MdGeMat;
2685
+ MultiplyByMat(other: MdGeMat): void;
2686
+ PreMultiplyByMat(other: MdGeMat): void;
2687
+ MultipliedByS(scalar: number): MdGeMat;
2688
+ MultiplyByS(scalar: number): void;
2689
+ Power(n: number): void;
2690
+ Powered(n: number): MdGeMat;
2691
+ Subtract(other: MdGeMat): void;
2692
+ Subtracted(other: MdGeMat): MdGeMat;
2693
+ Transpose(): void;
2694
+ Transposed(): MdGeMat;
2695
+ }
2696
+ /**
2697
+ * 表示一个坐标。
2698
+ */
2699
+ export declare class MdGeXYZ {
2700
+ constructor();
2701
+ constructor(x: number, y: number, z: number);
2702
+ SetCoord(x: number, y: number, z: number): void;
2703
+ SetCoord(index: number, value: number): void;
2704
+ SetX(x: number): void;
2705
+ SetY(y: number): void;
2706
+ SetZ(z: number): void;
2707
+ Coord(index: number): number;
2708
+ ChangeCoord(index: number, value: number): void;
2709
+ X(): number;
2710
+ Y(): number;
2711
+ Z(): number;
2712
+ Modulus(): number;
2713
+ SquareModulus(): number;
2714
+ IsEqual(other: MdGeXYZ, tolerance: number): boolean;
2715
+ Add(other: MdGeXYZ): void;
2716
+ Added(other: MdGeXYZ): MdGeXYZ;
2717
+ Cross(other: MdGeXYZ): void;
2718
+ Crossed(other: MdGeXYZ): MdGeXYZ;
2719
+ CrossMagnitude(right: MdGeXYZ): number;
2720
+ CrossSquareMagnitude(right: MdGeXYZ): number;
2721
+ CrossCross(coord1: MdGeXYZ, coord2: MdGeXYZ): void;
2722
+ CrossCrossed(coord1: MdGeXYZ, coord2: MdGeXYZ): MdGeXYZ;
2723
+ Divide(salar: number): void;
2724
+ Divided(scalar: number): MdGeXYZ;
2725
+ Dot(other: MdGeXYZ): number;
2726
+ DotCross(coord1: MdGeXYZ, coord2: MdGeXYZ): number;
2727
+ MultiplyByS(scalar: number): void;
2728
+ MultiplyByXYZ(other: MdGeXYZ): void;
2729
+ MultiplyByMat(matrix: MdGeMat): void;
2730
+ MultipliedByS(scalar: number): MdGeXYZ;
2731
+ MultipliedByXYZ(other: MdGeXYZ): MdGeXYZ;
2732
+ MultipliedByMat(matrix: MdGeMat): MdGeXYZ;
2733
+ Normalize(): void;
2734
+ Normalized(): MdGeXYZ;
2735
+ Reverse(): void;
2736
+ Reversed(): MdGeXYZ;
2737
+ Subtract(other: MdGeXYZ): void;
2738
+ Subtracted(other: MdGeXYZ): MdGeXYZ;
2739
+ SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ, xyz4: MdGeXYZ): void;
2740
+ SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ): void;
2741
+ SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, xyz3: MdGeXYZ): void;
2742
+ SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ): void;
2743
+ SetLinearForm(a1: number, xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
2744
+ SetLinearForm(xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
2745
+ }
2746
+ /**
2747
+ * 表示一个变换。
2748
+ */
2749
+ export declare class MdGeTrsf {
2750
+ constructor();
2751
+ SetMirrorByPoint(point: MdGePoint): void;
2752
+ SetMirrorByAxis(axis: MdGeAxis): void;
2753
+ SetMirrorByCSYSR(csysr: MdGeCSYSR): void;
2754
+ SetRotation(axis: MdGeAxis, ang: number): void;
2755
+ SetScale(point: MdGePoint, s: number): void;
2756
+ SetTranslationByVec(vec: MdGeVec): void;
2757
+ SetTranslationBy2Points(point1: MdGePoint, point2: MdGePoint): void;
2758
+ SetTranslationPart(vec: MdGeVec): void;
2759
+ SetScaleFactor(s: number): void;
2760
+ SetValues(a11: number, a12: number, a13: number, a14: number, a21: number, a22: number, a23: number, a24: number, a31: number, a32: number, a33: number, a34: number): void;
2761
+ IsNegative(): number;
2762
+ ScaleFactor(): number;
2763
+ Value(row: number, col: number): number;
2764
+ Invert(): void;
2765
+ Inverted(): MdGeTrsf;
2766
+ Multiplied(t: MdGeTrsf): MdGeTrsf;
2767
+ Multiply(t: MdGeTrsf): void;
2768
+ PreMultiply(t: MdGeTrsf): void;
2769
+ Power(n: number): void;
2770
+ Powered(n: number): MdGeTrsf;
2771
+ Transforms(x: number, y: number, z: number): void;
2772
+ }
2773
+ /**
2774
+ * 表示一个方向。
2775
+ */
2776
+ export declare class MdGeDir {
2777
+ constructor();
2778
+ constructor(theV: MdGeVec);
2779
+ constructor(theXv: number, theYv: number, theZv: number);
2780
+ SetCoord(): void;
2781
+ SetCoord(theXv: number, theYv: number, theZv: number): void;
2782
+ SetX(theXv: number): void;
2783
+ SetY(theYv: number): void;
2784
+ SetZ(theZv: number): void;
2785
+ SetXYZ(theCoord: MdGeXYZ): void;
2786
+ Coord(theIndex: number): number;
2787
+ X(): number;
2788
+ Y(): number;
2789
+ Z(): number;
2790
+ XYZ(): MdGeXYZ;
2791
+ IsEqual(theOther: MdGeDir, theAngularTolerance: number): boolean;
2792
+ IsNormal(theOther: MdGeDir, theAngularTolerance: number): boolean;
2793
+ IsOpposite(theOther: MdGeDir, theAngularTolerance: number): boolean;
2794
+ IsParallel(theOther: MdGeDir, theAngularTolerance: number): boolean;
2795
+ Angle(theOther: MdGeDir): number;
2796
+ AngleWithRef(theOther: MdGeDir, theVRef: MdGeDir): number;
2797
+ Cross(theRight: MdGeDir): void;
2798
+ Crossed(theRight: MdGeDir): MdGeDir;
2799
+ CrossCross(theV1: MdGeDir, theV2: MdGeDir): void;
2800
+ CrossCrossed(theV1: MdGeDir, theV2: MdGeDir): MdGeDir;
2801
+ Dot(theOther: MdGeDir): number;
2802
+ DotCross(theV1: MdGeDir, theV2: MdGeDir): number;
2803
+ Reverse(): void;
2804
+ Reversed(): MdGeDir;
2805
+ MirrorByVec(theV: MdGeDir): void;
2806
+ MirroredByVec(theV: MdGeDir): MdGeDir;
2807
+ MirrorByAxis(theA1: MdGeAxis): void;
2808
+ MirroredByAxis(theA1: MdGeAxis): MdGeDir;
2809
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
2810
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeDir;
2811
+ Rotate(theA1: MdGeAxis, theAng: number): void;
2812
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeDir;
2813
+ Transform(theT: MdGeTrsf): void;
2814
+ Transformed(theT: MdGeTrsf): MdGeDir;
2815
+ }
2816
+ /**
2817
+ * 表示一个轴。
2818
+ */
2819
+ export declare class MdGeAxis {
2820
+ /**
2821
+ * 构造函数。
2822
+ */
2823
+ constructor();
2824
+ /**
2825
+ * 构造函数。
2826
+ * @param loc 轴的位置点。
2827
+ * @param dir 轴的方向。
2828
+ */
2829
+ constructor(loc: MdGePoint, dir: MdGeDir);
2830
+ /**
2831
+ * 获得轴的方向。
2832
+ * @returns 轴的方向。
2833
+ */
2834
+ Direction(): MdGeDir;
2835
+ /**
2836
+ * 获得轴的位置点。
2837
+ * @returns 轴的位置点。
2838
+ */
2839
+ Location(): MdGePoint;
2840
+ /**
2841
+ * 设置轴的方向。
2842
+ * @param dir 要设置的方向。
2843
+ */
2844
+ SetDirection(dir: MdGeDir): void;
2845
+ /**
2846
+ * 设置轴的位置点。
2847
+ * @param loc 要设置的位置点。
2848
+ */
2849
+ SetLocation(loc: MdGePoint): void;
2850
+ }
2851
+ /**
2852
+ * 表示右手坐标系。
2853
+ */
2854
+ export declare class MdGeCSYSR {
2855
+ constructor();
2856
+ constructor(origin: MdGePoint, z_aixs: MdGeDir, x_vec: MdGeDir);
2857
+ Origin(): MdGePoint;
2858
+ XDirection(): MdGeDir;
2859
+ YDirection(): MdGeDir;
2860
+ ZDirection(): MdGeDir;
2861
+ SetOrigin(origin: MdGePoint): void;
2862
+ SetOrigin(theX: number, theY: number, theZ: number): void;
2863
+ SetXDirection(x_dir: MdGeDir): void;
2864
+ SetYDirection(y_dir: MdGeDir): void;
2865
+ SetZDirection(z_dir: MdGeDir): void;
2866
+ Angle(theOther: MdGeCSYSR): number;
2867
+ Axis(): MdGeAxis;
2868
+ IsCoplanarWithCSYSR(Other: MdGeCSYSR, LinearTolerance: number, AngularTolerance: number): boolean;
2869
+ IsCoplanarWithAxis(A1: MdGeAxis, LinearTolerance: number, AngularTolerance: number): boolean;
2870
+ MirrorByPoint(P: MdGePoint): void;
2871
+ MirroredByPoint(P: MdGePoint): MdGeCSYSR;
2872
+ MirrorByAxis(A1: MdGeAxis): void;
2873
+ MirroredByAxis(A1: MdGeAxis): MdGeCSYSR;
2874
+ MirrorByCSYSR(A2: MdGeCSYSR): void;
2875
+ MirroredByCSYSR(A2: MdGeCSYSR): MdGeCSYSR;
2876
+ Rotate(theA1: MdGeAxis, theAng: number): void;
2877
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCSYSR;
2878
+ Scale(theP: MdGePoint, theS: number): void;
2879
+ Scaled(theP: MdGePoint, theS: number): MdGeCSYSR;
2880
+ Transform(theT: MdGeTrsf): void;
2881
+ Transformed(theT: MdGeTrsf): MdGeCSYSR;
2882
+ TranslateByVec(theV: MdGeVec): void;
2883
+ TranslatedByVec(theV: MdGeVec): MdGeCSYSR;
2884
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
2885
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCSYSR;
2886
+ }
2887
+ /**
2888
+ * 表示一个点。
2889
+ */
2890
+ export declare class MdGePoint {
2891
+ /**
2892
+ * 构造函数。
2893
+ */
2894
+ constructor();
2895
+ /**
2896
+ * 构造函数。
2897
+ * @param x
2898
+ * @param y
2899
+ * @param z
2900
+ */
2901
+ constructor(x: number, y: number, z: number);
2902
+ /**
2903
+ * 获取x坐标值。
2904
+ * @returns x坐标值。
2905
+ */
2906
+ X(): number;
2907
+ /**
2908
+ * 获取y坐标值。
2909
+ * @returns y坐标值。
2910
+ */
2911
+ Y(): number;
2912
+ /**
2913
+ * 获取z坐标值。
2914
+ * @returns z坐标值。
2915
+ */
2916
+ Z(): number;
2917
+ /**
2918
+ * 设置x坐标。
2919
+ * @param x x 坐标。
2920
+ */
2921
+ SetX(x: number): void;
2922
+ /**
2923
+ * 设置y坐标。
2924
+ * @param y y 坐标。
2925
+ */
2926
+ SetY(y: number): void;
2927
+ /**
2928
+ * 设置z坐标。
2929
+ * @param z z 坐标。
2930
+ */
2931
+ SetZ(z: number): void;
2932
+ /**
2933
+ * 设置x y z坐标值。
2934
+ * @param x 要设置的x坐标值。
2935
+ * @param y 要设置的y坐标值。
2936
+ * @param z 要设置的z坐标值。
2937
+ */
2938
+ SetXYZ(x: number, y: number, z: number): void;
2939
+ /**
2940
+ * 获取质心。
2941
+ * @param alpha 参数alpha。
2942
+ * @param point 三维点。
2943
+ * @param beta 参数beta
2944
+ */
2945
+ BaryCenter(alpha: number, point: MdGePoint, beta: number): void;
2946
+ /**
2947
+ * 判断两个点是否相等。
2948
+ * @param other 另一个点。
2949
+ * @param linearTolerance 精度。
2950
+ * @returns 是否相等,相等为true,不相等为false。
2951
+ */
2952
+ IsEqual(other: MdGePoint, linearTolerance: number): boolean;
2953
+ /**
2954
+ * 获取到另一点的距离。
2955
+ * @param other 另一个点。
2956
+ * @returns 到指定点的距离。
2957
+ */
2958
+ Distance(other: MdGePoint): number;
2959
+ /**
2960
+ * 获取到另一点的距离的平方。
2961
+ * @param other 另一个点。
2962
+ * @returns 到指定点的距离的平方。
2963
+ */
2964
+ SquareDistance(other: MdGePoint): number;
2965
+ /**
2966
+ * 将点按某一点进行镜像变换。
2967
+ * @param point 镜像点。
2968
+ */
2969
+ MirrorByPoint(point: MdGePoint): void;
2970
+ /**
2971
+ * 将点按某一点进行镜像变换后的镜像点。
2972
+ * @param point 镜像点。
2973
+ * @returns 变换后的镜像点。
2974
+ */
2975
+ MirroredByPoint(point: MdGePoint): MdGePoint;
2976
+ MirrorByAxis(axis: MdGeAxis): void;
2977
+ MirroredByAxis(axis: MdGeAxis): MdGePoint;
2978
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
2979
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGePoint;
2980
+ Rotate(axis: MdGeAxis, ang: number): void;
2981
+ Rotated(axis: MdGeAxis, ang: number): MdGePoint;
2982
+ Scale(point: MdGePoint, s: number): void;
2983
+ Scaled(point: MdGePoint, s: number): MdGePoint;
2984
+ Transform(trsf: MdGeTrsf): void;
2985
+ Transformed(trsf: MdGeTrsf): MdGePoint;
2986
+ TranslateByVec(vec: MdGeVec): void;
2987
+ TranslatedByVec(vec: MdGeVec): MdGePoint;
2988
+ TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
2989
+ TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGePoint;
2990
+ /**
2991
+ * 求点的形状。
2992
+ * @returns 点的形状。
2993
+ */
2994
+ Shape(): MdGeShape;
2995
+ Vertex(): MdGeVertex;
2996
+ }
2997
+ /**
2998
+ * 表示一个向量。
2999
+ */
3000
+ export declare class MdGeVec {
3001
+ /**
3002
+ * 构造函数。
3003
+ */
3004
+ constructor();
3005
+ /**
3006
+ * 构造函数。
3007
+ * @param x x 坐标。
3008
+ * @param y y 坐标。
3009
+ * @param z z 坐标。
3010
+ */
3011
+ constructor(x: number, y: number, z: number);
3012
+ /**
3013
+ * 构造函数。
3014
+ * @param theP1 第一个点。
3015
+ * @param theP2 第二个点。
3016
+ */
3017
+ constructor(theP1: MdGePoint, theP2: MdGePoint);
3018
+ /**
3019
+ * 设置某个坐标值。
3020
+ * @param theIndex 要设置的坐标,取值1,2,3。
3021
+ * @param theXi 要设置的坐标值。
3022
+ */
3023
+ SetCoord(theIndex: number, theXi: number): void;
3024
+ /**
3025
+ * 设置x y z坐标值。
3026
+ * @param theXv 要设置的x坐标值。
3027
+ * @param theYv 要设置的y坐标值。
3028
+ * @param theZv 要设置的z坐标值。
3029
+ */
3030
+ SetCoord(theXv: number, theYv: number, theZv: number): void;
3031
+ /**
3032
+ * 获取x坐标值。
3033
+ * @returns x坐标值。
3034
+ */
3035
+ X(): number;
3036
+ /**
3037
+ * 获取y坐标值。
3038
+ * @returns y坐标值。
3039
+ */
3040
+ Y(): number;
3041
+ /**
3042
+ * 获取z坐标值。
3043
+ * @returns z坐标值。
3044
+ */
3045
+ Z(): number;
3046
+ /**
3047
+ * 设置x坐标。
3048
+ * @param x x 坐标。
3049
+ */
3050
+ SetX(x: number): void;
3051
+ /**
3052
+ * 设置y坐标。
3053
+ * @param y y 坐标。
3054
+ */
3055
+ SetY(y: number): void;
3056
+ /**
3057
+ * 设置z坐标。
3058
+ * @param z z 坐标。
3059
+ */
3060
+ SetZ(z: number): void;
3061
+ /**
3062
+ * 设置x y z坐标值。
3063
+ * @param x 要设置的x坐标值。
3064
+ * @param y 要设置的y坐标值。
3065
+ * @param z 要设置的z坐标值。
3066
+ */
3067
+ SetXYZ(x: number, y: number, z: number): void;
3068
+ Coord(theIndex: number): number;
3069
+ IsEqual(other: MdGeVec, linearTolerance: number, angularTolerance: number): boolean;
3070
+ IsNormal(other: MdGeVec, angularTolerance: number): boolean;
3071
+ IsOpposite(other: MdGeVec, angularTolerance: number): boolean;
3072
+ IsParallel(other: MdGeVec, angularTolerance: number): boolean;
3073
+ Angle(other: MdGeVec): number;
3074
+ AngleWithRef(other: MdGeVec, ref: MdGeVec): number;
3075
+ Magnitude(): number;
3076
+ SquareMagnitude(): number;
3077
+ Add(other: MdGeVec): void;
3078
+ Added(other: MdGeVec): MdGeVec;
3079
+ Subtract(right: MdGeVec): void;
3080
+ Subtracted(right: MdGeVec): MdGeVec;
3081
+ Multiply(scalar: number): void;
3082
+ Multiplied(scalar: number): MdGeVec;
3083
+ Divide(scalar: number): void;
3084
+ Divided(scalar: number): MdGeVec;
3085
+ Cross(right: MdGeVec): void;
3086
+ Crossed(right: MdGeVec): MdGeVec;
3087
+ CrossMagnitude(right: MdGeVec): number;
3088
+ CrossSquareMagnitude(right: MdGeVec): number;
3089
+ CrossCross(v1: MdGeVec, v2: MdGeVec): void;
3090
+ CrossCrossed(v1: MdGeVec, v2: MdGeVec): MdGeVec;
3091
+ Dot(other: MdGeVec): number;
3092
+ DotCross(v1: MdGeVec, v2: MdGeVec): number;
3093
+ Normalize(): void;
3094
+ Normalized(): MdGeVec;
3095
+ Reverse(): void;
3096
+ Reversed(): MdGeVec;
3097
+ SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, a3: number, v3: MdGeVec, v4: MdGeVec): void;
3098
+ SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, a3: number, v3: MdGeVec): void;
3099
+ SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, v3: MdGeVec): void;
3100
+ SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec): void;
3101
+ SetLinearForm(a1: number, v1: MdGeVec, v2: MdGeVec): void;
3102
+ SetLinearForm(v1: MdGeVec, v2: MdGeVec): void;
3103
+ MirrorByVec(vec: MdGeVec): void;
3104
+ MirroredByVec(vec: MdGeVec): MdGeVec;
3105
+ MirrorByAxis(axis: MdGeAxis): void;
3106
+ MirroredByAxis(axis: MdGeAxis): MdGeVec;
3107
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
3108
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGeVec;
3109
+ Rotate(axis: MdGeAxis, ang: number): void;
3110
+ Rotated(axis: MdGeAxis, ang: number): MdGeVec;
3111
+ Scale(s: number): void;
3112
+ Scaled(s: number): MdGeVec;
3113
+ Transform(t: MdGeTrsf): void;
3114
+ Transformed(t: MdGeTrsf): MdGeVec;
3115
+ }
3116
+ /**
3117
+ * 表示一个Wire形状。
3118
+ */
3119
+ export declare class MdGeWire extends MdGeShape {
3120
+ /**
3121
+ * 构造函数。
3122
+ */
3123
+ constructor();
3124
+ /**
3125
+ * 添加Edge,形成Wire。
3126
+ * @param edge 要添加的Edge。
3127
+ * @returns 最终的Wire。
3128
+ */
3129
+ AddedEdge(edge: MdGeEdge): MdGeWire;
3130
+ /**
3131
+ * 添加Wire,形成Wire。
3132
+ * @param wire 要添加的Wire。
3133
+ * @returns 最终的Wire。
3134
+ */
3135
+ AddedWire(wire: MdGeWire): MdGeWire;
3136
+ /**
3137
+ * 绘制Wire。
3138
+ */
3139
+ Draw(): void;
3140
+ }
3141
+ /**
3142
+ * 表示一个Edge形状。
3143
+ */
3144
+ export declare class MdGeEdge extends MdGeShape {
3145
+ /**
3146
+ * 构造函数。
3147
+ */
3148
+ constructor();
3149
+ /**
3150
+ * 构造函数。
3151
+ * @param pt1 第一个点。
3152
+ * @param pt2 第二个点。
3153
+ */
3154
+ constructor(pt1: MdGePoint, pt2: MdGePoint);
3155
+ /**
3156
+ * 获得MdGeWire类型的Edge。
3157
+ * @returns MdGeWire类型的Edge形状。
3158
+ */
3159
+ Wire(): MdGeWire;
3160
+ /**
3161
+ * 添加Edge,形成Wire。
3162
+ * @param edge 要添加的Egde。
3163
+ * @returns 最终的Wire形状。
3164
+ */
3165
+ AddedEdge(edge: MdGeEdge): MdGeWire;
3166
+ /**
3167
+ * 添加Wire,形成Edge。
3168
+ * @param wire 要添加的Wire。
3169
+ * @returns 最终的Wire形状。
3170
+ */
3171
+ AddedWire(wire: MdGeWire): MdGeWire;
3172
+ /**
3173
+ * 绘制Edge。
3174
+ */
3175
+ Draw(): void;
3176
+ }
3177
+ /**
3178
+ * 表示一个Vertex形状。
3179
+ */
3180
+ export declare class MdGeVertex extends MdGeShape {
3181
+ constructor();
3182
+ constructor(x: number, y: number, z: number);
3183
+ constructor(pt: MdGePoint);
3184
+ Draw(): void;
3185
+ }
3186
+ /**
3187
+ * 表示一个Face形状。
3188
+ */
3189
+ export declare class MdGeFace extends MdGeShape {
3190
+ constructor();
3191
+ Draw(): void;
3192
+ }
3193
+ /**
3194
+ * 表示一个Shell形状。
3195
+ */
3196
+ export declare class MdGeShell extends MdGeShape {
3197
+ constructor();
3198
+ Draw(): void;
3199
+ }
3200
+ /**
3201
+ * 表示一个Solid形状。
3202
+ */
3203
+ export declare class MdGeSolid extends MdGeShape {
3204
+ constructor();
3205
+ Draw(): void;
3206
+ }
3207
+ /**
3208
+ * 表示一个CompSolid形状。
3209
+ */
3210
+ export declare class MdGeCompSolid extends MdGeShape {
3211
+ constructor();
3212
+ Draw(): void;
3213
+ }
3214
+ /**
3215
+ * 表示一个Compound形状。
3216
+ */
3217
+ export declare class MdGeCompound extends MdGeShape {
3218
+ constructor();
3219
+ Draw(): void;
3220
+ }
3221
+ /**
3222
+ * 表示角度标注。
3223
+ */
3224
+ export declare class MdGeAngleDim {
3225
+ constructor(theFirstEdge: MdGeEdge, theSecondEdge: MdGeEdge);
3226
+ constructor(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, theThirdPoint: MdGePoint);
3227
+ FirstPoint(): MdGePoint;
3228
+ SecondPoint(): MdGePoint;
3229
+ CenterPoint(): MdGePoint;
3230
+ FirstShape(): MdGeShape;
3231
+ SecondShape(): MdGeShape;
3232
+ ThirdShape(): MdGeShape;
3233
+ SetMeasuredGeometry(theFirstEdge: MdGeEdge, theSecondEdge: MdGeEdge): void;
3234
+ SetMeasuredGeometry(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, theThridPoint: MdGePoint): void;
3235
+ SetMeasuredGeometry(theCone: MdGeFace): void;
3236
+ SetTextPosition(theTextPos: MdGePoint): void;
3237
+ GetTextPosition(): MdGePoint;
3238
+ GetNormalForMinAngle(): MdGeDir;
3239
+ GetCenterOnArc(theFirstAttach: MdGePoint, theSecondAttach: MdGePoint, theCenter: MdGePoint): MdGePoint;
3240
+ Display(): void;
3241
+ }
3242
+ /**
3243
+ * 表示一维整数数组。
3244
+ */
3245
+ export declare class MdGeArray1OfInteger {
3246
+ constructor();
3247
+ constructor(theLower: number, theUpper: number);
3248
+ Init(theInteger: number): void;
3249
+ Size(): number;
3250
+ Length(): number;
3251
+ IsEmpty(): boolean;
3252
+ Lower(): number;
3253
+ Upper(): number;
3254
+ IsDeletable(): boolean;
3255
+ IsAllocated(): boolean;
3256
+ First(): number;
3257
+ Last(): number;
3258
+ Value(theIndex: number): number;
3259
+ SetValue(theIndex: number, theInteger: number): void;
3260
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
3261
+ }
3262
+ /**
3263
+ * 表示一维点数组。
3264
+ */
3265
+ export declare class MdGeArray1OfPnt {
3266
+ constructor();
3267
+ constructor(theLower: number, theUpper: number);
3268
+ Init(thePnt: MdGePoint): void;
3269
+ Size(): number;
3270
+ Length(): number;
3271
+ IsEmpty(): boolean;
3272
+ Lower(): number;
3273
+ Upper(): number;
3274
+ IsDeletable(): boolean;
3275
+ IsAllocated(): boolean;
3276
+ First(): MdGePoint;
3277
+ Last(): MdGePoint;
3278
+ Value(theIndex: number): MdGePoint;
3279
+ SetValue(theIndex: number, thePnt: MdGePoint): void;
3280
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
3281
+ }
3282
+ /**
3283
+ * 表示一维实数数组。
3284
+ */
3285
+ export declare class MdGeArray1OfReal {
3286
+ constructor();
3287
+ constructor(theLower: number, theUpper: number);
3288
+ Init(theReal: number): void;
3289
+ Size(): number;
3290
+ Length(): number;
3291
+ IsEmpty(): boolean;
3292
+ Lower(): number;
3293
+ Upper(): number;
3294
+ IsDeletable(): boolean;
3295
+ IsAllocated(): boolean;
3296
+ First(): number;
3297
+ Last(): number;
3298
+ Value(theIndex: number): number;
3299
+ SetValue(theIndex: number, theReal: number): void;
3300
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
3301
+ }
3302
+ /**
3303
+ * 表示二维点数组。
3304
+ */
3305
+ export declare class MdGeArray2OfPnt {
3306
+ constructor();
3307
+ constructor(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
3308
+ constructor(theBegin: MdGePoint, theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
3309
+ Init(thePoint: MdGePoint): void;
3310
+ Size(): number;
3311
+ Length(): number;
3312
+ NbRows(): number;
3313
+ NbColumns(): number;
3314
+ RowLength(): number;
3315
+ ColLength(): number;
3316
+ LowerRow(): number;
3317
+ UpperRow(): number;
3318
+ LowerCol(): number;
3319
+ UpperCol(): number;
3320
+ IsDeletable(): boolean;
3321
+ Value(theRow: number, theCol: number): MdGePoint;
3322
+ SetValue(theRow: number, theCol: number, thePoint: MdGePoint): void;
3323
+ Resize(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number, theToCopyData: boolean): void;
3324
+ }
3325
+ /**
3326
+ * 表示二维实数数组。
3327
+ */
3328
+ export declare class MdGeArray2OfReal {
3329
+ constructor();
3330
+ constructor(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
3331
+ constructor(theBegin: number, theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
3332
+ Init(theReal: number): void;
3333
+ Size(): number;
3334
+ Length(): number;
3335
+ NbRows(): number;
3336
+ NbColumns(): number;
3337
+ RowLength(): number;
3338
+ ColLength(): number;
3339
+ LowerRow(): number;
3340
+ UpperRow(): number;
3341
+ LowerCol(): number;
3342
+ UpperCol(): number;
3343
+ IsDeletable(): boolean;
3344
+ Value(theRow: number, theCol: number): number;
3345
+ SetValue(theRow: number, theCol: number, theReal: number): void;
3346
+ Resize(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number, theToCopyData: boolean): void;
3347
+ }
3348
+ /**
3349
+ * 表示贝塞尔曲线
3350
+ */
3351
+ export declare class MdGeBezierCurve {
3352
+ constructor(CurvePoles: MdGeArray1OfPnt);
3353
+ constructor(CurvePoles: MdGeArray1OfPnt, PoleWeights: MdGeArray1OfReal);
3354
+ Increase(Degree: number): void;
3355
+ InsertPoleAfter(Index: number, P: MdGePoint): void;
3356
+ InsertPoleAfter(Index: number, P: MdGePoint, Weight: number): void;
3357
+ InsertPoleBefore(Index: number, P: MdGePoint): void;
3358
+ InsertPoleBefore(Index: number, P: MdGePoint, Weight: number): void;
3359
+ RemovePole(Index: number): void;
3360
+ Reverse(): void;
3361
+ ReversedParameter(U: number): number;
3362
+ Segment(U1: number, U2: number): void;
3363
+ SetPole(Index: number, P: MdGePoint): void;
3364
+ SetPole(Index: number, P: MdGePoint, Weight: number): void;
3365
+ SetWeight(Index: number, Weight: number): void;
3366
+ IsClosed(): boolean;
3367
+ IsCN(N: number): boolean;
3368
+ IsPeriodic(): boolean;
3369
+ IsRational(): boolean;
3370
+ Degree(): number;
3371
+ DN(U: number, N: number): MdGeVec;
3372
+ StartPoint(): MdGePoint;
3373
+ EndPoint(): MdGePoint;
3374
+ FirstParameter(): number;
3375
+ LastParameter(): number;
3376
+ NbPoles(): number;
3377
+ Pole(Index: number): MdGePoint;
3378
+ Poles(): MdGeArray1OfPnt;
3379
+ Weight(Index: number): number;
3380
+ Weights(): MdGeArray1OfReal;
3381
+ Transform(T: MdGeTrsf): void;
3382
+ static MaxDegree(): number;
3383
+ Shape(): MdGeShape;
3384
+ Edge(): MdGeEdge;
3385
+ Wire(): MdGeWire;
3386
+ }
3387
+ /**
3388
+ * 表示贝塞尔曲面
3389
+ */
3390
+ export declare class MdGeBezierSurface {
3391
+ constructor(SurfacePoles: MdGeArray2OfPnt);
3392
+ constructor(SurfacePoles: MdGeArray2OfPnt, PoleWeights: MdGeArray2OfReal);
3393
+ ExchangeUV(): void;
3394
+ Increase(UDeg: number, VDeg: number): void;
3395
+ InsertPoleColAfter(VIndex: number, CPoles: MdGeArray1OfPnt): void;
3396
+ InsertPoleColAfter(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
3397
+ InsertPoleColBefore(VIndex: number, CPoles: MdGeArray1OfPnt): void;
3398
+ InsertPoleColBefore(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
3399
+ InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt): void;
3400
+ InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
3401
+ InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt): void;
3402
+ InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
3403
+ RemovePoleCol(VIndex: number): void;
3404
+ RemovePoleRow(UIndex: number): void;
3405
+ Segment(U1: number, U2: number, V1: number, V2: number): void;
3406
+ SetPole(UIndex: number, VIndex: number, P: MdGePoint): void;
3407
+ SetPole(UIndex: number, VIndex: number, P: MdGePoint, Weight: number): void;
3408
+ SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt): void;
3409
+ SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
3410
+ SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
3411
+ SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
3412
+ SetWeight(UIndex: number, VIndex: number, Weight: number): void;
3413
+ SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
3414
+ SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
3415
+ UReverse(): void;
3416
+ UReversedParameter(U: number): number;
3417
+ VReverse(): void;
3418
+ VReversedParameter(V: number): number;
3419
+ DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
3420
+ NbUPoles(): number;
3421
+ NbVPoles(): number;
3422
+ Pole(UIndex: number, VIndex: number): MdGePoint;
3423
+ Poles(): MdGeArray2OfPnt;
3424
+ UDegree(): number;
3425
+ VDegree(): number;
3426
+ Weight(UIndex: number, VIndex: number): number;
3427
+ Weights(): MdGeArray2OfReal;
3428
+ IsUClosed(): boolean;
3429
+ IsVClosed(): boolean;
3430
+ IsCNu(N: number): boolean;
3431
+ IsCNv(N: number): boolean;
3432
+ IsUPeriodic(): boolean;
3433
+ IsVPeriodic(): boolean;
3434
+ IsURational(): boolean;
3435
+ IsVRational(): boolean;
3436
+ Transform(T: MdGeTrsf): void;
3437
+ static MaxDegree(): number;
3438
+ Shape(): MdGeShape;
3439
+ Face(): MdGeFace;
3440
+ }
3441
+ /**
3442
+ * 表示倒斜角
3443
+ */
3444
+ export declare class MdGeChamfer {
3445
+ constructor(S: MdGeShape);
3446
+ Add(E: MdGeEdge): void;
3447
+ Add(Dis: number, E: MdGeEdge): void;
3448
+ Add(Dis1: number, Dis2: number, E: MdGeEdge, F: MdGeFace): void;
3449
+ SetDist(Dis: number, IC: number, F: MdGeFace): void;
3450
+ GetDist(IC: number, Dis: number): void;
3451
+ SetDists(Dis1: number, Dis2: number, IC: number, F: MdGeFace): void;
3452
+ Dists(IC: number, Dis1: number, Dis2: number): void;
3453
+ AddDA(Dis: number, Angle: number, E: MdGeEdge, F: MdGeFace): void;
3454
+ SetDistAngle(Dis: number, Angle: number, IC: number, F: MdGeFace): void;
3455
+ GetDistAngle(IC: number, Dis: number, Angle: number): void;
3456
+ IsSymetric(IC: number): boolean;
3457
+ IsTwoDistances(IC: number): boolean;
3458
+ IsDistanceAngle(IC: number): boolean;
3459
+ ResetContour(IC: number): void;
3460
+ NbContours(): number;
3461
+ Contour(E: MdGeEdge): number;
3462
+ NbEdges(I: number): number;
3463
+ Edge(I: number, J: number): MdGeEdge;
3464
+ Remove(E: MdGeEdge): void;
3465
+ Length(IC: number): number;
3466
+ FirstVertex(IC: number): MdGeVertex;
3467
+ LastVertex(IC: number): MdGeVertex;
3468
+ Abscissa(IC: number, V: MdGeVertex): number;
3469
+ RelativeAbscissa(IC: number, V: MdGeVertex): number;
3470
+ ClosedAndTangent(IC: number): boolean;
3471
+ Closed(IC: number): boolean;
3472
+ Reset(): void;
3473
+ Simulate(IC: number): void;
3474
+ NbSurf(IC: number): number;
3475
+ Shape(): MdGeShape;
3476
+ }
3477
+ /**
3478
+ * 表示一个圆
3479
+ */
3480
+ export declare class MdGeCircle {
3481
+ constructor();
3482
+ constructor(theA2: MdGeCSYSR, theRadius: number);
3483
+ SetAxis(theA1: MdGeAxis): void;
3484
+ SetLocation(theP: MdGePoint): void;
3485
+ SetPosition(theA2: MdGeCSYSR): void;
3486
+ SetRadius(theRadius: number): void;
3487
+ Area(): number;
3488
+ Axis(): MdGeAxis;
3489
+ Length(): number;
3490
+ Location(): MdGePoint;
3491
+ Position(): MdGeCSYSR;
3492
+ Radius(): number;
3493
+ XAxis(): MdGeAxis;
3494
+ YAxis(): MdGeAxis;
3495
+ Distance(theP: MdGePoint): number;
3496
+ SquareDistance(theP: MdGePoint): number;
3497
+ Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
3498
+ MirrorByPoint(theP: MdGePoint): void;
3499
+ MirroredByPoint(theP: MdGePoint): MdGeCircle;
3500
+ MirrorByAxis(theA1: MdGeAxis): void;
3501
+ MirroredByAxis(theA1: MdGeAxis): MdGeCircle;
3502
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
3503
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCircle;
3504
+ Rotate(theA1: MdGeAxis, theAng: number): void;
3505
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCircle;
3506
+ Scale(theP: MdGePoint, theS: number): void;
3507
+ Scaled(theP: MdGePoint, theS: number): MdGeCircle;
3508
+ Transform(theT: MdGeTrsf): void;
3509
+ Transformed(theT: MdGeTrsf): MdGeCircle;
3510
+ TranslateByVec(theV: MdGeVec): void;
3511
+ TranslatedByVec(theV: MdGeVec): MdGeCircle;
3512
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
3513
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCircle;
3514
+ Shape(): MdGeShape;
3515
+ Edge(): MdGeEdge;
3516
+ Edge(p1: number, p2: number): MdGeEdge;
3517
+ Wire(): MdGeWire;
3518
+ }
3519
+ /**
3520
+ * 表示一个坐标系(左手或右手)
3521
+ */
3522
+ export declare class MdGeCSYS {
3523
+ constructor();
3524
+ constructor(origin: MdGePoint, z_aixs: MdGeDir, x_vec: MdGeDir);
3525
+ constructor(origin: MdGePoint, z_aixs: MdGeDir);
3526
+ XReverse(): void;
3527
+ YReverse(): void;
3528
+ ZReverse(): void;
3529
+ SetZAxis(z_axis: MdGeAxis): void;
3530
+ SetZDirection(z_dir: MdGeDir): void;
3531
+ SetOrigin(origin: MdGePoint): void;
3532
+ SetOrigin(theX: number, theY: number, theZ: number): void;
3533
+ SetXDirection(x_dir: MdGeDir): void;
3534
+ SetYDirection(y_dir: MdGeDir): void;
3535
+ Angle(other: MdGeCSYS): number;
3536
+ ZAxis(): MdGeAxis;
3537
+ CSYSR(): MdGeCSYSR;
3538
+ ZDirection(): MdGeDir;
3539
+ Origin(): MdGePoint;
3540
+ XDirection(): MdGeDir;
3541
+ YDirection(): MdGeDir;
3542
+ Direct(): boolean;
3543
+ IsCoplanarWithCSYS(other: MdGeCSYS, linearTolerance: number, angularTolerance: number): boolean;
3544
+ IsCoplanarWithAxis(axis: MdGeAxis, linearTolerance: number, angularTolerance: number): boolean;
3545
+ MirrorByPoint(point: MdGePoint): void;
3546
+ MirroredByPoint(point: MdGePoint): MdGeCSYS;
3547
+ MirrorByAxis(axis: MdGeAxis): void;
3548
+ MirroredByAxis(axis: MdGeAxis): MdGeCSYS;
3549
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
3550
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGeCSYS;
3551
+ Rotate(axis: MdGeAxis, ang: number): void;
3552
+ Rotated(axis: MdGeAxis, ang: number): MdGeCSYS;
3553
+ Scale(point: MdGePoint, s: number): void;
3554
+ Scaled(point: MdGePoint, s: number): MdGeCSYS;
3555
+ Transform(t: MdGeTrsf): void;
3556
+ Transformed(t: MdGeTrsf): MdGeCSYS;
3557
+ TranslateByVec(vec: MdGeVec): void;
3558
+ TranslatedByVec(vec: MdGeVec): MdGeCSYS;
3559
+ TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
3560
+ TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGeCSYS;
3561
+ }
3562
+ /**
3563
+ * 表示一个圆锥
3564
+ */
3565
+ export declare class MdGeCone {
3566
+ constructor();
3567
+ constructor(theA3: MdGeCSYS, theAng: number, theRadius: number);
3568
+ SetAxis(theA1: MdGeAxis): void;
3569
+ SetLocation(theLoc: MdGePoint): void;
3570
+ SetPosition(theA3: MdGeCSYS): void;
3571
+ SetRadius(theR: number): void;
3572
+ SetSemiAngle(theAng: number): void;
3573
+ Apex(): MdGePoint;
3574
+ UReverse(): void;
3575
+ VReverse(): void;
3576
+ Direct(): boolean;
3577
+ Axis(): MdGeAxis;
3578
+ Location(): MdGePoint;
3579
+ Position(): MdGeCSYS;
3580
+ RefRadius(): number;
3581
+ SemiAngle(): number;
3582
+ XAxis(): MdGeAxis;
3583
+ YAxis(): MdGeAxis;
3584
+ MirrorByPoint(theP: MdGePoint): void;
3585
+ MirroredByPoint(theP: MdGePoint): MdGeCone;
3586
+ MirrorByAxis(theA1: MdGeAxis): void;
3587
+ MirroredByAxis(theA1: MdGeAxis): MdGeCone;
3588
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
3589
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCone;
3590
+ Rotate(theA1: MdGeAxis, theAng: number): void;
3591
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCone;
3592
+ Scale(theP: MdGePoint, theS: number): void;
3593
+ Scaled(theP: MdGePoint, theS: number): MdGeCone;
3594
+ Transform(theT: MdGeTrsf): void;
3595
+ Transformed(theT: MdGeTrsf): MdGeCone;
3596
+ TranslateByVec(theV: MdGeVec): void;
3597
+ TranslatedByVec(theV: MdGeVec): MdGeCone;
3598
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
3599
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCone;
3600
+ Shape(H: number, Angle?: number): MdGeShape;
3601
+ Face(): MdGeFace;
3602
+ Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
3603
+ Face(W: MdGeWire, Inside?: boolean): MdGeFace;
3604
+ }
3605
+ /**
3606
+ * 表示一个圆柱
3607
+ */
3608
+ export declare class MdGeCylinder {
3609
+ constructor();
3610
+ constructor(theA3: MdGeCSYS, theRadius: number);
3611
+ SetAxis(theA1: MdGeAxis): void;
3612
+ SetLocation(theLoc: MdGePoint): void;
3613
+ SetPosition(theA3: MdGeCSYS): void;
3614
+ SetRadius(theR: number): void;
3615
+ UReverse(): void;
3616
+ VReverse(): void;
3617
+ Direct(): boolean;
3618
+ Axis(): MdGeAxis;
3619
+ Location(): MdGePoint;
3620
+ Position(): MdGeCSYS;
3621
+ Radius(): number;
3622
+ XAxis(): MdGeAxis;
3623
+ YAxis(): MdGeAxis;
3624
+ MirrorByPoint(theP: MdGePoint): void;
3625
+ MirroredByPoint(theP: MdGePoint): MdGeCylinder;
3626
+ MirrorByAxis(theA1: MdGeAxis): void;
3627
+ MirroredByAxis(theA1: MdGeAxis): MdGeCylinder;
3628
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
3629
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCylinder;
3630
+ Rotate(theA1: MdGeAxis, theAng: number): void;
3631
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCylinder;
3632
+ Scale(theP: MdGePoint, theS: number): void;
3633
+ Scaled(theP: MdGePoint, theS: number): MdGeCylinder;
3634
+ Transform(theT: MdGeTrsf): void;
3635
+ Transformed(theT: MdGeTrsf): MdGeCylinder;
3636
+ TranslateByVec(theV: MdGeVec): void;
3637
+ TranslatedByVec(theV: MdGeVec): MdGeCylinder;
3638
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
3639
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCylinder;
3640
+ Shape(H: number, Angle?: number): MdGeShape;
3641
+ Face(): MdGeFace;
3642
+ Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
3643
+ Face(W: MdGeWire, Inside?: boolean): MdGeFace;
3644
+ }
3645
+ /**
3646
+ * 表示一个平面
3647
+ */
3648
+ export declare class MdGePlane {
3649
+ constructor();
3650
+ constructor(theA3: MdGeCSYS);
3651
+ constructor(theP: MdGePoint, theV: MdGeDir);
3652
+ constructor(theA: number, theB: number, theC: number, theD: number);
3653
+ SetAxis(theA1: MdGeAxis): void;
3654
+ SetLocation(theLoc: MdGePoint): void;
3655
+ SetPosition(theA3: MdGeCSYS): void;
3656
+ UReverse(): void;
3657
+ VReverse(): void;
3658
+ Direct(): boolean;
3659
+ Axis(): MdGeAxis;
3660
+ Location(): MdGePoint;
3661
+ Position(): MdGeCSYS;
3662
+ DistanceToPoint(theP: MdGePoint): number;
3663
+ DistanceToPlane(theOther: MdGePlane): number;
3664
+ SquareDistanceToPoint(theP: MdGePoint): number;
3665
+ SquareDistanceToPlane(theOther: MdGePlane): number;
3666
+ XAxis(): MdGeAxis;
3667
+ YAxis(): MdGeAxis;
3668
+ Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
3669
+ MirrorByPoint(theP: MdGePoint): void;
3670
+ MirroredByPoint(theP: MdGePoint): MdGePlane;
3671
+ MirrorByAxis(theA1: MdGeAxis): void;
3672
+ MirroredByAxis(theA1: MdGeAxis): MdGePlane;
3673
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
3674
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGePlane;
3675
+ Rotate(theA1: MdGeAxis, theAng: number): void;
3676
+ Rotated(theA1: MdGeAxis, theAng: number): MdGePlane;
3677
+ Scale(theP: MdGePoint, theS: number): void;
3678
+ Scaled(theP: MdGePoint, theS: number): MdGePlane;
3679
+ Transform(theT: MdGeTrsf): void;
3680
+ Transformed(theT: MdGeTrsf): MdGePlane;
3681
+ TranslateByVec(theV: MdGeVec): void;
3682
+ TranslatedByVec(theV: MdGeVec): MdGePlane;
3683
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
3684
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGePlane;
3685
+ Face(): MdGeFace;
3686
+ Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
3687
+ Face(W: MdGeWire, Inside?: boolean): MdGeFace;
3688
+ }
3689
+ /**
3690
+ * 表示直径标注
3691
+ */
3692
+ export declare class MdGeDiameterDim {
3693
+ constructor(theCircle: MdGeCircle);
3694
+ constructor(theCircle: MdGeCircle, thePlane: MdGePlane);
3695
+ Circle(): MdGeCircle;
3696
+ AnchorPoint(): MdGePoint;
3697
+ Shape(): MdGeShape;
3698
+ SetMeasuredGeometry(theCircle: MdGeCircle): void;
3699
+ SetTextPosition(theTextPos: MdGePoint): void;
3700
+ GetTextPosition(): MdGePoint;
3701
+ Display(): void;
3702
+ }
3703
+ /**
3704
+ * 表示一个椭圆
3705
+ */
3706
+ export declare class MdGeEllipse {
3707
+ constructor();
3708
+ constructor(theA2: MdGeCSYSR, theMajorRadius: number, theMinorRadius: number);
3709
+ SetAxis(theA1: MdGeAxis): void;
3710
+ SetLocation(theP: MdGePoint): void;
3711
+ SetMajorRadius(theMajorRadius: number): void;
3712
+ SetMinorRadius(theMinorRadius: number): void;
3713
+ SetPosition(theA2: MdGeCSYSR): void;
3714
+ Area(): number;
3715
+ Axis(): MdGeAxis;
3716
+ Directrix1(): MdGeAxis;
3717
+ Directrix2(): MdGeAxis;
3718
+ Eccentricity(): number;
3719
+ Focal(): number;
3720
+ Focus1(): MdGePoint;
3721
+ Focus2(): MdGePoint;
3722
+ Location(): MdGePoint;
3723
+ MajorRadius(): number;
3724
+ MinorRadius(): number;
3725
+ Parameter(): number;
3726
+ Position(): MdGeCSYSR;
3727
+ XAxis(): MdGeAxis;
3728
+ YAxis(): MdGeAxis;
3729
+ MirrorByPoint(theP: MdGePoint): void;
3730
+ MirroredByPoint(theP: MdGePoint): MdGeEllipse;
3731
+ MirrorByAxis(theA1: MdGeAxis): void;
3732
+ MirroredByAxis(theA1: MdGeAxis): MdGeEllipse;
3733
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
3734
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeEllipse;
3735
+ Rotate(theA1: MdGeAxis, theAng: number): void;
3736
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeEllipse;
3737
+ Scale(theP: MdGePoint, theS: number): void;
3738
+ Scaled(theP: MdGePoint, theS: number): MdGeEllipse;
3739
+ Transform(theT: MdGeTrsf): void;
3740
+ Transformed(theT: MdGeTrsf): MdGeEllipse;
3741
+ Translate(theV: MdGeVec): void;
3742
+ Translated(theV: MdGeVec): MdGeEllipse;
3743
+ Translate(theP1: MdGePoint, theP2: MdGePoint): void;
3744
+ Translated(theP1: MdGePoint, theP2: MdGePoint): MdGeEllipse;
3745
+ Shape(): MdGeShape;
3746
+ Wire(): MdGeWire;
3747
+ Edge(): MdGeEdge;
3748
+ Edge(p1: number, p2: number): MdGeEdge;
3749
+ }
3750
+ export declare enum MxShapeEnum {
3751
+ Enum_COMPOUND,
3752
+ Enum_COMPSOLID,
3753
+ Enum_SOLID,
3754
+ Enum_SHELL,
3755
+ Enum_FACE,
3756
+ Enum_WIRE,
3757
+ Enum_EDGE,
3758
+ Enum_VERTEX,
3759
+ Enum_SHAPE
3760
+ }
3761
+ export declare enum MxHorizontalTextAlignment {
3762
+ HTA_LEFT,
3763
+ HTA_CENTER,
3764
+ HTA_RIGHT
3765
+ }
3766
+ export declare enum MxVerticalTextAlignment {
3767
+ CVTA_BOTTOM,
3768
+ CVTA_CENTER,
3769
+ CVTA_TOP,
3770
+ CVTA_TOPFIRSTLINE
3771
+ }
3772
+ export declare enum MxFontAspect {
3773
+ FA_UNDEFINED = -1,
3774
+ FA_Regular = 0,
3775
+ FA_Bold,
3776
+ FA_Italic,
3777
+ FA_BoldItalic
3778
+ }
3779
+ export declare enum MxTypeOfDisplayText {
3780
+ TODT_NORMAL,
3781
+ TODT_SUBTITLE,
3782
+ TODT_DEKALE,
3783
+ TODT_BLEND,
3784
+ TODT_DIMENSION,
3785
+ TODT_SHADOW
3786
+ }
3787
+ export declare enum MxCF3dFilletShapeEnum {
3788
+ Enum_Rational,
3789
+ Enum_QuasiAngular,
3790
+ Enum_Polynomial
3791
+ }
3792
+ export declare enum MxCFDSChamfMode {
3793
+ Enum_ClassicChamfer,
3794
+ Enum_ConstThroatChamfer,
3795
+ Enum_ConstThroatWithPenetrationChamfer
3796
+ }
3797
+ export declare enum MxGFTrihedron {
3798
+ GF_IsCorrectedFrenet,
3799
+ GF_IsFixed,
3800
+ GF_IsFrenet,
3801
+ GF_IsConstantNormal,
3802
+ GF_IsDarboux,
3803
+ GF_IsGuideAC,
3804
+ GF_IsGuidePlan,
3805
+ GF_IsGuideACWithContact,
3806
+ GF_IsGuidePlanWithContact,
3807
+ GF_IsDiscreteTrihedron
3808
+ }
3809
+ export declare enum MxGAShapeEnum {
3810
+ GA_C0,
3811
+ GA_G1,
3812
+ GA_C1,
3813
+ GA_G2,
3814
+ GA_C2,
3815
+ GA_C3,
3816
+ GA_CN
3817
+ }
3818
+ export declare enum MxOffsetModeEnum {
3819
+ Offset_Skin,
3820
+ Offset_Pipe,
3821
+ Offset_RectoVerso
3822
+ }
3823
+ export declare enum MxGAJoinTypeEnum {
3824
+ GA_Arc,
3825
+ GA_Tangent,
3826
+ GA_Intersection
3827
+ }
3828
+ /**
3829
+ * 表示拓扑元素遍历
3830
+ */
3831
+ export declare class MdGeExplorer {
3832
+ constructor();
3833
+ constructor(S: MdGeShape, ToFind: MxShapeEnum, ToAvoid?: MxShapeEnum);
3834
+ Init(S: MdGeShape, ToFind: MxShapeEnum, ToAvoid?: MxShapeEnum): void;
3835
+ More(): boolean;
3836
+ Next(): void;
3837
+ Value(): MdGeShape;
3838
+ Current(): MdGeShape;
3839
+ ReInit(): void;
3840
+ ExploredShape(): MdGeShape;
3841
+ Depth(): number;
3842
+ Clear(): void;
3843
+ }
3844
+ /**
3845
+ * 表示倒圆角
3846
+ */
3847
+ export declare class MdGeFillet {
3848
+ constructor(S: MdGeShape, FShape: MxCF3dFilletShapeEnum);
3849
+ SetParams(Tang: number, Tesp: number, T2d: number, TApp3d: number, TolApp2d: number, Fleche: number): void;
3850
+ Add(E: MdGeEdge): void;
3851
+ Add(Radius: number, E: MdGeEdge): void;
3852
+ Add(R1: number, R2: number, E: MdGeEdge): void;
3853
+ SetRadius(Radius: number, IC: number, IinC: number): void;
3854
+ SetRadius(R1: number, R2: number, IC: number, IinC: number): void;
3855
+ ResetContour(IC: number): void;
3856
+ IsConstant(IC: number): boolean;
3857
+ Radius(IC: number): number;
3858
+ IsConstant(IC: number, E: MdGeEdge): boolean;
3859
+ Radius(IC: number, E: MdGeEdge): number;
3860
+ SetRadiusForEdge(Radius: number, IC: number, E: MdGeEdge): void;
3861
+ SetRadiusForVertex(Radius: number, IC: number, V: MdGeVertex): void;
3862
+ SetFilletShape(FShape: MxCF3dFilletShapeEnum): void;
3863
+ GetFilletShape(): MxCF3dFilletShapeEnum;
3864
+ NbContours(): number;
3865
+ Contour(E: MdGeEdge): number;
3866
+ NbEdges(I: number): number;
3867
+ Edge(I: number, J: number): MdGeEdge;
3868
+ Remove(E: MdGeEdge): void;
3869
+ Length(IC: number): number;
3870
+ FirstVertex(IC: number): MdGeVertex;
3871
+ LastVertex(IC: number): MdGeVertex;
3872
+ Abscissa(IC: number, V: MdGeVertex): number;
3873
+ RelativeAbscissa(IC: number, V: MdGeVertex): number;
3874
+ ClosedAndTangent(IC: number): boolean;
3875
+ Closed(IC: number): boolean;
3876
+ Reset(): void;
3877
+ NbSurfaces(): number;
3878
+ Simulate(IC: number): void;
3879
+ NbSurf(IC: number): number;
3880
+ NbFaultyContours(): number;
3881
+ FaultyContour(I: number): number;
3882
+ NbComputedSurfaces(IC: number): number;
3883
+ NbFaultyVertices(): number;
3884
+ FaultyVertex(IV: number): MdGeVertex;
3885
+ HasResult(): boolean;
3886
+ BadShape(): MdGeShape;
3887
+ Shape(): MdGeShape;
3888
+ }
3889
+ /**
3890
+ * 表示双曲线
3891
+ */
3892
+ export declare class MdGeHypr {
3893
+ constructor();
3894
+ constructor(theA2: MdGeCSYSR, theMajorRadius: number, theMinorRadius: number);
3895
+ SetAxis(theA1: MdGeAxis): void;
3896
+ SetLocation(theP: MdGePoint): void;
3897
+ SetMajorRadius(theMajorRadius: number): void;
3898
+ SetMinorRadius(theMinorRadius: number): void;
3899
+ SetPosition(theA2: MdGeCSYSR): void;
3900
+ Asymptote1(): MdGeAxis;
3901
+ Asymptote2(): MdGeAxis;
3902
+ Axis(): MdGeAxis;
3903
+ ConjugateBranch1(): MdGeHypr;
3904
+ ConjugateBranch2(): MdGeHypr;
3905
+ Directrix1(): MdGeAxis;
3906
+ Directrix2(): MdGeAxis;
3907
+ Eccentricity(): number;
3908
+ Focal(): number;
3909
+ Focus1(): MdGePoint;
3910
+ Focus2(): MdGePoint;
3911
+ Location(): MdGePoint;
3912
+ MajorRadius(): number;
3913
+ MinorRadius(): number;
3914
+ OtherBranch(): MdGeHypr;
3915
+ Parameter(): number;
3916
+ Position(): MdGeCSYSR;
3917
+ XAxis(): MdGeAxis;
3918
+ YAxis(): MdGeAxis;
3919
+ MirrorByPoint(theP: MdGePoint): void;
3920
+ MirroredByPoint(theP: MdGePoint): MdGeHypr;
3921
+ MirrorByAxis(theA1: MdGeAxis): void;
3922
+ MirroredByAxis(theA1: MdGeAxis): MdGeHypr;
3923
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
3924
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeHypr;
3925
+ Rotate(theA1: MdGeAxis, theAng: number): void;
3926
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeHypr;
3927
+ Scale(theP: MdGePoint, theS: number): void;
3928
+ Scaled(theP: MdGePoint, theS: number): MdGeHypr;
3929
+ Transform(theT: MdGeTrsf): void;
3930
+ Transformed(theT: MdGeTrsf): MdGeHypr;
3931
+ TranslateByVec(theV: MdGeVec): void;
3932
+ TranslatedByVec(theV: MdGeVec): MdGeHypr;
3933
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
3934
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeHypr;
3935
+ Shape(): MdGeShape;
3936
+ Wire(): MdGeWire;
3937
+ Edge(): MdGeEdge;
3938
+ Edge(p1: number, p2: number): MdGeEdge;
3939
+ }
3940
+ /**
3941
+ * 表示一个Box
3942
+ */
3943
+ export declare class MdGeBox {
3944
+ constructor();
3945
+ constructor(dx: number, dy: number, dz: number);
3946
+ constructor(P1: MdGePoint, P2: MdGePoint);
3947
+ constructor(Axes: MdGeCSYSR, dx: number, dy: number, dz: number);
3948
+ Init(theDX: number, theDY: number, theDZ: number): void;
3949
+ Init(thePnt1: MdGePoint, thePnt2: MdGePoint): void;
3950
+ Init(theAxes: MdGeCSYSR, theDX: number, theDY: number, theDZ: number): void;
3951
+ Shape(): MdGeShape;
3952
+ Shell(): MdGeShell;
3953
+ Solid(): MdGeSolid;
3954
+ BottomFace(): MdGeFace;
3955
+ BackFace(): MdGeFace;
3956
+ FrontFace(): MdGeFace;
3957
+ LeftFace(): MdGeFace;
3958
+ RightFace(): MdGeFace;
3959
+ TopFace(): MdGeFace;
3960
+ }
3961
+ /**
3962
+ * 表示B样条曲线
3963
+ */
3964
+ export declare class MdGeBSplineCurve {
3965
+ constructor();
3966
+ constructor(Poles: MdGeArray1OfPnt, Knots: MdGeArray1OfReal, Multiplicities: MdGeArray1OfInteger, Degree: number, Periodic?: boolean);
3967
+ IncreaseDegree(Degree: number): void;
3968
+ IncreaseMultiplicity(Index: number, M: number): void;
3969
+ IncreaseMultiplicity(I1: number, I2: number, M: number): void;
3970
+ IncrementMultiplicity(I1: number, I2: number, M: number): void;
3971
+ InsertKnot(U: number, M?: number, ParametricTolerance?: number, Add?: boolean): void;
3972
+ InsertKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
3973
+ RemoveKnot(Index: number, M: number, Tolerance: number): boolean;
3974
+ Reverse(): void;
3975
+ ReversedParameter(U: number): number;
3976
+ SetKnot(Index: number, K: number): void;
3977
+ SetKnots(K: MdGeArray1OfReal): void;
3978
+ SetKnot(Index: number, K: number, M: number): void;
3979
+ SetPeriodic(): void;
3980
+ SetOrigin(Index: number): void;
3981
+ SetOrigin(U: number, Tol: number): void;
3982
+ SetNotPeriodic(): void;
3983
+ SetPole(Index: number, P: MdGePoint): void;
3984
+ SetPole(Index: number, P: MdGePoint, Weight: number): void;
3985
+ SetWeight(Index: number, Weight: number): void;
3986
+ IsCN(N: number): boolean;
3987
+ IsG1(theTf: number, theTl: number, theAngTol: number): boolean;
3988
+ IsClosed(): boolean;
3989
+ IsPeriodic(): boolean;
3990
+ IsRational(): boolean;
3991
+ Continuity(): MxGAShapeEnum;
3992
+ Degree(): number;
3993
+ DN(U: number, N: number): MdGeVec;
3994
+ LocalValue(U: number, FromK1: number, ToK2: number): MdGePoint;
3995
+ LocalDN(U: number, FromK1: number, ToK2: number, N: number): MdGeVec;
3996
+ EndPoint(): MdGePoint;
3997
+ FirstUKnotIndex(): number;
3998
+ FirstParameter(): number;
3999
+ Knot(Index: number): number;
4000
+ Knots(): MdGeArray1OfReal;
4001
+ KnotSequence(): MdGeArray1OfReal;
4002
+ LastUKnotIndex(): number;
4003
+ LastParameter(): number;
4004
+ Multiplicity(Index: number): number;
4005
+ Multiplicities(): MdGeArray1OfInteger;
4006
+ NbKnots(): number;
4007
+ NbPoles(): number;
4008
+ Pole(Index: number): MdGePoint;
4009
+ Poles(): MdGeArray1OfPnt;
4010
+ StartPoint(): MdGePoint;
4011
+ Weight(Index: number): number;
4012
+ Weights(): MdGeArray1OfReal;
4013
+ Transform(T: MdGeTrsf): void;
4014
+ Shape(): MdGeShape;
4015
+ Edge(): MdGeEdge;
4016
+ Wire(): MdGeWire;
4017
+ }
4018
+ /**
4019
+ * 表示B样条曲面
4020
+ */
4021
+ export declare class MdGeBSplineSurface {
4022
+ constructor();
4023
+ constructor(Poles: MdGeArray2OfPnt, UKnots: MdGeArray1OfReal, VKnots: MdGeArray1OfReal, UMults: MdGeArray1OfInteger, VMults: MdGeArray1OfInteger, UDegree: number, VDegree: number, UPeriodic?: boolean, VPeriodic?: boolean);
4024
+ ExchangeUV(): void;
4025
+ SetUPeriodic(): void;
4026
+ SetVPeriodic(): void;
4027
+ SetUOrigin(Index: number): void;
4028
+ SetVOrigin(Index: number): void;
4029
+ SetUNotPeriodic(): void;
4030
+ SetVNotPeriodic(): void;
4031
+ UReverse(): void;
4032
+ VReverse(): void;
4033
+ UReversedParameter(U: number): number;
4034
+ VReversedParameter(V: number): number;
4035
+ IncreaseDegree(UDegree: number, VDegree: number): void;
4036
+ InsertUKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
4037
+ InsertVKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
4038
+ RemoveUKnot(Index: number, M: number, Tolerance: number): boolean;
4039
+ RemoveVKnot(Index: number, M: number, Tolerance: number): boolean;
4040
+ IncreaseUMultiplicity(UIndex: number, M: number): void;
4041
+ IncreaseUMultiplicity(FromI1: number, ToI2: number, M: number): void;
4042
+ IncrementUMultiplicity(FromI1: number, ToI2: number, Step: number): void;
4043
+ IncreaseVMultiplicity(VIndex: number, M: number): void;
4044
+ IncreaseVMultiplicity(FromI1: number, ToI2: number, M: number): void;
4045
+ IncrementVMultiplicity(FromI1: number, ToI2: number, Step: number): void;
4046
+ InsertUKnot(U: number, M: number, ParametricTolerance: number, Add?: boolean): void;
4047
+ InsertVKnot(V: number, M: number, ParametricTolerance: number, Add?: boolean): void;
4048
+ SetUKnot(UIndex: number, K: number): void;
4049
+ SetUKnots(UK: MdGeArray1OfReal): void;
4050
+ SetUKnot(UIndex: number, K: number, M: number): void;
4051
+ SetVKnot(VIndex: number, K: number): void;
4052
+ SetVKnots(VK: MdGeArray1OfReal): void;
4053
+ SetVKnot(VIndex: number, K: number, M: number): void;
4054
+ SetPole(UIndex: number, VIndex: number, P: MdGePoint): void;
4055
+ SetPole(UIndex: number, VIndex: number, P: MdGePoint, Weight: number): void;
4056
+ SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt): void;
4057
+ SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
4058
+ SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
4059
+ SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
4060
+ SetWeight(UIndex: number, VIndex: number, Weight: number): void;
4061
+ SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
4062
+ SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
4063
+ IsUClosed(): boolean;
4064
+ IsVClosed(): boolean;
4065
+ IsCNu(N: number): boolean;
4066
+ IsCNv(N: number): boolean;
4067
+ IsUPeriodic(): boolean;
4068
+ IsURational(): boolean;
4069
+ IsVPeriodic(): boolean;
4070
+ IsVRational(): boolean;
4071
+ Continuity(): MxGAShapeEnum;
4072
+ FirstUKnotIndex(): number;
4073
+ FirstVKnotIndex(): number;
4074
+ LastUKnotIndex(): number;
4075
+ LastVKnotIndex(): number;
4076
+ NbUKnots(): number;
4077
+ NbUPoles(): number;
4078
+ NbVKnots(): number;
4079
+ NbVPoles(): number;
4080
+ Pole(UIndex: number, VIndex: number): MdGePoint;
4081
+ Poles(): MdGeArray2OfPnt;
4082
+ UDegree(): number;
4083
+ UKnot(UIndex: number): number;
4084
+ UKnots(): MdGeArray1OfReal;
4085
+ UKnotSequence(): MdGeArray1OfReal;
4086
+ UMultiplicity(UIndex: number): number;
4087
+ UMultiplicities(): MdGeArray1OfInteger;
4088
+ VDegree(): number;
4089
+ VKnot(VIndex: number): number;
4090
+ VKnots(): MdGeArray1OfReal;
4091
+ VKnotSequence(): MdGeArray1OfReal;
4092
+ VMultiplicity(VIndex: number): number;
4093
+ VMultiplicities(): MdGeArray1OfInteger;
4094
+ Weight(UIndex: number, VIndex: number): number;
4095
+ Weights(): MdGeArray2OfReal;
4096
+ DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
4097
+ LocalDN(U: number, V: number, FromUK1: number, ToUK2: number, FromVK1: number, ToVK2: number, Nu: number, Nv: number): MdGeVec;
4098
+ LocalValue(U: number, V: number, FromUK1: number, ToUK2: number, FromVK1: number, ToVK2: number): MdGePoint;
4099
+ Transform(T: MdGeTrsf): void;
4100
+ static MaxDegree(): number;
4101
+ Shape(): MdGeShape;
4102
+ Face(): MdGeFace;
4103
+ }
4104
+ /**
4105
+ * 表示插值B样条曲线
4106
+ */
4107
+ export declare class MdGeInterpolateBSpl {
4108
+ constructor(Points: MdGeArray1OfPnt, PeriodicFlag: boolean, Tolerance: number);
4109
+ constructor(Points: MdGeArray1OfPnt, Parameters: MdGeArray1OfReal, PeriodicFlag: boolean, Tolerance: number);
4110
+ Load(InitialTangent: MdGeVec, FinalTangent: MdGeVec, Scale?: boolean): void;
4111
+ Perform(): void;
4112
+ Curve(): MdGeBSplineCurve;
4113
+ IsDone(): boolean;
4114
+ }
4115
+ /**
4116
+ * 表示长度标注
4117
+ */
4118
+ export declare class MdGeLengthDim {
4119
+ constructor();
4120
+ constructor(theEdge: MdGeEdge, thePlane: MdGePlane);
4121
+ constructor(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, thePlane: MdGePlane);
4122
+ FirstPoint(): MdGePoint;
4123
+ SecondPoint(): MdGePoint;
4124
+ FirstShape(): MdGeShape;
4125
+ SecondShape(): MdGeShape;
4126
+ SetMeasuredGeometry(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, thePlane: MdGePlane): void;
4127
+ SetMeasuredShapes(theFirstShape: MdGeShape, theSecondShape: MdGeShape): void;
4128
+ SetTextPosition(theTextPos: MdGePoint): void;
4129
+ GetTextPosition(): MdGePoint;
4130
+ SetDirection(theDirection: MdGeDir, theUseDirection?: boolean): void;
4131
+ Display(): void;
4132
+ }
4133
+ /**
4134
+ * 表示一条直线
4135
+ */
4136
+ export declare class MdGeLine {
4137
+ constructor();
4138
+ constructor(theP: MdGePoint, theV: MdGeDir);
4139
+ Reverse(): void;
4140
+ Reversed(): MdGeLine;
4141
+ SetDirection(theV: MdGeDir): void;
4142
+ SetLocation(theP: MdGePoint): void;
4143
+ SetPosition(theA1: MdGeAxis): void;
4144
+ Direction(): MdGeDir;
4145
+ Location(): MdGePoint;
4146
+ Position(): MdGeAxis;
4147
+ Angle(theOther: MdGeLine): number;
4148
+ Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
4149
+ DistanceToPoint(theP: MdGePoint): number;
4150
+ DistanceToLine(theOther: MdGeLine): number;
4151
+ SquareDistanceToPoint(theP: MdGePoint): number;
4152
+ SquareDistanceToLine(theOther: MdGeLine): number;
4153
+ Normal(theP: MdGePoint): MdGeLine;
4154
+ MirrorByPoint(theP: MdGePoint): void;
4155
+ MirroredByPoint(theP: MdGePoint): MdGeLine;
4156
+ MirrorByAxis(theA1: MdGeAxis): void;
4157
+ MirroredByAxis(theA1: MdGeAxis): MdGeLine;
4158
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
4159
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeLine;
4160
+ Rotate(theA1: MdGeAxis, theAng: number): void;
4161
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeLine;
4162
+ Scale(theP: MdGePoint, theS: number): void;
4163
+ Scaled(theP: MdGePoint, theS: number): MdGeLine;
4164
+ Transform(theT: MdGeTrsf): void;
4165
+ Transformed(theT: MdGeTrsf): MdGeLine;
4166
+ TranslateByVec(theV: MdGeVec): void;
4167
+ TranslatedByVec(theV: MdGeVec): MdGeLine;
4168
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
4169
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeLine;
4170
+ Shape(): MdGeShape;
4171
+ Wire(): MdGeWire;
4172
+ Edge(): MdGeEdge;
4173
+ Edge(p1: number, p2: number): MdGeEdge;
4174
+ }
4175
+ /**
4176
+ * 表示形状链表迭代器
4177
+ */
4178
+ export declare class MdGeListIteratorOfListOfShape {
4179
+ constructor();
4180
+ More(): boolean;
4181
+ Next(): void;
4182
+ Value(): MdGeShape;
4183
+ ChangeValue(theShape: MdGeShape): void;
4184
+ }
4185
+ /**
4186
+ * 表示形状链表
4187
+ */
4188
+ export declare class MdGeListOfShape {
4189
+ constructor();
4190
+ begin(): MdGeListIteratorOfListOfShape;
4191
+ end(): MdGeListIteratorOfListOfShape;
4192
+ Size(): number;
4193
+ First(): MdGeShape;
4194
+ Last(): MdGeShape;
4195
+ AppendShape(theShape: MdGeShape): void;
4196
+ AppendShape(theShape: MdGeShape, theIter: MdGeListIteratorOfListOfShape): void;
4197
+ AppendList(theOther: MdGeListOfShape): void;
4198
+ PrependShape(theShape: MdGeShape): void;
4199
+ PrependList(theOther: MdGeListOfShape): void;
4200
+ RemoveFirst(): void;
4201
+ InsertBeforeShape(theShape: MdGeShape, theIter: MdGeListIteratorOfListOfShape): void;
4202
+ InsertBeforeList(theOther: MdGeListOfShape, theIter: MdGeListIteratorOfListOfShape): void;
4203
+ InsertAfterShape(theShape: MdGeShape, theIter: MdGeListIteratorOfListOfShape): void;
4204
+ InsertAfterList(theOther: MdGeListOfShape, theIter: MdGeListIteratorOfListOfShape): void;
4205
+ Reverse(): void;
4206
+ }
4207
+ /**
4208
+ * 表示放样
4209
+ */
4210
+ export declare class MdGeLoft {
4211
+ constructor(isSolid?: boolean, ruled?: boolean, pres3d?: number);
4212
+ Init(isSolid?: boolean, ruled?: boolean, pres3d?: number): void;
4213
+ AddWire(wire: MdGeWire): void;
4214
+ AddVertex(aVertex: MdGeVertex): void;
4215
+ CheckCompatibility(check?: boolean): void;
4216
+ SetSmoothing(UseSmoothing: boolean): void;
4217
+ SetContinuity(C: MxGAShapeEnum): void;
4218
+ SetMaxDegree(MaxDeg: number): void;
4219
+ Continuity(): MxGAShapeEnum;
4220
+ MaxDegree(): number;
4221
+ UseSmoothing(): boolean;
4222
+ FirstShape(): MdGeShape;
4223
+ LastShape(): MdGeShape;
4224
+ GeneratedFace(Edge: MdGeShape): MdGeShape;
4225
+ SetMutableInput(theIsMutableInput: boolean): void;
4226
+ IsMutableInput(): boolean;
4227
+ Shape(): MdGeShape;
4228
+ }
4229
+ /**
4230
+ * 表示薄实体
4231
+ */
4232
+ export declare class MdGeMakeThickSolid {
4233
+ constructor();
4234
+ MakeThickSolidBySimple(theS: MdGeShape, theOffsetValue: number): void;
4235
+ MakeThickSolidByJoin(S: MdGeShape, ClosingFaces: MdGeListOfShape, Offset: number, Tol: number, Mode?: MxOffsetModeEnum, Intersection?: boolean, SelfInter?: boolean, Join?: MxGAJoinTypeEnum, RemoveIntEdges?: boolean): void;
4236
+ Shape(): MdGeShape;
4237
+ }
4238
+ /**
4239
+ * 表示抛物线
4240
+ */
4241
+ export declare class MdGeParab {
4242
+ constructor();
4243
+ constructor(theA2: MdGeCSYSR, theFocal: number);
4244
+ SetAxis(theA1: MdGeAxis): void;
4245
+ SetFocal(theFocal: number): void;
4246
+ SetLocation(theP: MdGePoint): void;
4247
+ SetPosition(theA2: MdGeCSYSR): void;
4248
+ Axis(): MdGeAxis;
4249
+ Directrix(): MdGeAxis;
4250
+ Focal(): number;
4251
+ Focus(): MdGePoint;
4252
+ Location(): MdGePoint;
4253
+ Parameter(): number;
4254
+ Position(): MdGeCSYSR;
4255
+ XAxis(): MdGeAxis;
4256
+ YAxis(): MdGeAxis;
4257
+ MirrorByPoint(theP: MdGePoint): void;
4258
+ MirroredByPoint(theP: MdGePoint): MdGeParab;
4259
+ MirrorByAxis(theA1: MdGeAxis): void;
4260
+ MirroredByAxis(theA1: MdGeAxis): MdGeParab;
4261
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
4262
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeParab;
4263
+ Rotate(theA1: MdGeAxis, theAng: number): void;
4264
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeParab;
4265
+ Scale(theP: MdGePoint, theS: number): void;
4266
+ Scaled(theP: MdGePoint, theS: number): MdGeParab;
4267
+ Transform(theT: MdGeTrsf): void;
4268
+ Transformed(theT: MdGeTrsf): MdGeParab;
4269
+ TranslateByVec(theV: MdGeVec): void;
4270
+ TranslatedByVec(theV: MdGeVec): MdGeParab;
4271
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
4272
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeParab;
4273
+ Shape(): MdGeShape;
4274
+ Wire(): MdGeWire;
4275
+ Edge(): MdGeEdge;
4276
+ Edge(p1: number, p2: number): MdGeEdge;
4277
+ }
4278
+ /**
4279
+ * 表示管道
4280
+ */
4281
+ export declare class MdGePipe {
4282
+ constructor(Spine: MdGeWire, Profile: MdGeShape);
4283
+ constructor(Spine: MdGeWire, Profile: MdGeShape, aMode: MxGFTrihedron, ForceApproxC1?: boolean);
4284
+ FirstShape(): MdGeShape;
4285
+ LastShape(): MdGeShape;
4286
+ Generated(SSpine: MdGeShape, SProfile: MdGeShape): MdGeShape;
4287
+ ErrorOnSurface(): number;
4288
+ Shape(): MdGeShape;
4289
+ }
4290
+ /**
4291
+ * 表示拟合点B样条曲线
4292
+ */
4293
+ export declare class MdGePointsToBSpl {
4294
+ constructor();
4295
+ constructor(Points: MdGeArray1OfPnt, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number);
4296
+ Init(Points: MdGeArray1OfPnt, Parameters: MdGeArray1OfReal, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number): void;
4297
+ Curve(): MdGeBSplineCurve;
4298
+ IsDone(): boolean;
4299
+ }
4300
+ /**
4301
+ * 表示拟合B样条曲面
4302
+ */
4303
+ export declare class MdGePointsToBSplSurface {
4304
+ constructor();
4305
+ constructor(Points: MdGeArray2OfPnt, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number);
4306
+ Init(Points: MdGeArray2OfPnt, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number): void;
4307
+ Interpolate(Points: MdGeArray2OfPnt, thePeriodic?: boolean): void;
4308
+ Interpolate(ZPoints: MdGeArray2OfReal, X0: number, dX: number, Y0: number, dY: number): void;
4309
+ IsDone(): boolean;
4310
+ Surface(): MdGeBSplineSurface;
4311
+ }
4312
+ /**
4313
+ * 表示拉伸体
4314
+ */
4315
+ export declare class MdGePrism {
4316
+ constructor(S: MdGeShape, V: MdGeVec, Copy?: boolean, Canonize?: boolean);
4317
+ FirstShape(): MdGeShape;
4318
+ LastShape(): MdGeShape;
4319
+ IsDeleted(S: MdGeShape): boolean;
4320
+ FirstShape(theShape: MdGeShape): MdGeShape;
4321
+ LastShape(theShape: MdGeShape): MdGeShape;
4322
+ Shape(): MdGeShape;
4323
+ }
4324
+ /**
4325
+ * 表示半径标注
4326
+ */
4327
+ export declare class MdGeRadiusDim {
4328
+ constructor(theCircle: MdGeCircle);
4329
+ constructor(theCircle: MdGeCircle, theAnchorPoint: MdGePoint);
4330
+ Circle(): MdGeCircle;
4331
+ AnchorPoint(): MdGePoint;
4332
+ Shape(): MdGeShape;
4333
+ SetMeasuredGeometry(theCircle: MdGeCircle): void;
4334
+ SetMeasuredGeometry(theCircle: MdGeCircle, theAnchorPoint: MdGePoint, theHasAnchor?: boolean): void;
4335
+ SetTextPosition(theTextPos: MdGePoint): void;
4336
+ GetTextPosition(): MdGePoint;
4337
+ Display(): void;
4338
+ }
4339
+ /**
4340
+ * 表示一个矩形
4341
+ */
4342
+ export declare class MdGeRect {
4343
+ constructor(thePosition: MdGeCSYSR, theX: number, theY: number);
4344
+ Position(): MdGeCSYSR;
4345
+ SetPosition(thePosition: MdGeCSYSR): void;
4346
+ X(): number;
4347
+ Y(): number;
4348
+ SetX(theX: number): void;
4349
+ SetY(theY: number): void;
4350
+ Shape(): MdGeShape;
4351
+ Face(): MdGeFace;
4352
+ Wire(): MdGeWire;
4353
+ LeftEdge(): MdGeEdge;
4354
+ RightEdge(): MdGeEdge;
4355
+ TopEdge(): MdGeEdge;
4356
+ BottomEdge(): MdGeEdge;
4357
+ Area(): number;
4358
+ }
4359
+ /**
4360
+ * 表示旋转体
4361
+ */
4362
+ export declare class MdGeRevol {
4363
+ constructor(S: MdGeShape, A: MdGeAxis, D?: number, Copy?: boolean);
4364
+ FirstShape(): MdGeShape;
4365
+ LastShape(): MdGeShape;
4366
+ IsDeleted(S: MdGeShape): boolean;
4367
+ FirstShape(theShape: MdGeShape): MdGeShape;
4368
+ LastShape(theShape: MdGeShape): MdGeShape;
4369
+ HasDegenerated(): boolean;
4370
+ Shape(): MdGeShape;
4371
+ }
4372
+ /**
4373
+ * 表示一个球体
4374
+ */
4375
+ export declare class MdGeSphere {
4376
+ constructor();
4377
+ constructor(theA3: MdGeCSYS, theRadius: number);
4378
+ constructor(theX: number, theY: number, theZ: number, theRadius: number);
4379
+ SetLocation(theLoc: MdGePoint): void;
4380
+ SetPosition(theA3: MdGeCSYS): void;
4381
+ SetRadius(theR: number): void;
4382
+ Area(): number;
4383
+ UReverse(): void;
4384
+ VReverse(): void;
4385
+ Direct(): boolean;
4386
+ Location(): MdGePoint;
4387
+ Position(): MdGeCSYS;
4388
+ Radius(): number;
4389
+ Volume(): number;
4390
+ XAxis(): MdGeAxis;
4391
+ YAxis(): MdGeAxis;
4392
+ MirrorByPoint(theP: MdGePoint): void;
4393
+ MirroredByPoint(theP: MdGePoint): MdGeSphere;
4394
+ MirrorByAxis(theA1: MdGeAxis): void;
4395
+ MirroredByAxis(theA1: MdGeAxis): MdGeSphere;
4396
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
4397
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeSphere;
4398
+ Rotate(theA1: MdGeAxis, theAng: number): void;
4399
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeSphere;
4400
+ Scale(theP: MdGePoint, theS: number): void;
4401
+ Scaled(theP: MdGePoint, theS: number): MdGeSphere;
4402
+ Transform(theT: MdGeTrsf): void;
4403
+ Transformed(theT: MdGeTrsf): MdGeSphere;
4404
+ TranslateByVec(theV: MdGeVec): void;
4405
+ TranslatedByVec(theV: MdGeVec): MdGeSphere;
4406
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
4407
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeSphere;
4408
+ Face(): MdGeFace;
4409
+ Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
4410
+ Face(W: MdGeWire, Inside?: boolean): MdGeFace;
4411
+ Shape(): MdGeShape;
4412
+ Shape(angle: number): MdGeShape;
4413
+ Shape(angle1: number, angle2: number): MdGeShape;
4414
+ Shape(angle1: number, angle2: number, angle3: number): MdGeShape;
4415
+ }
4416
+ /**
4417
+ * 表示文字
4418
+ */
4419
+ export declare class MdGeText {
4420
+ constructor();
4421
+ constructor(text: string, height: number, orientation: MdGeCSYSR);
4422
+ SetText(theText: string): void;
4423
+ Position(): MdGePoint;
4424
+ SetPosition(thePoint: MdGePoint): void;
4425
+ Orientation(): MdGeCSYSR;
4426
+ HasPlane(): boolean;
4427
+ SetOrientation(theOrientation: MdGeCSYSR): void;
4428
+ ResetOrientation(): void;
4429
+ HasOwnAnchorPoint(): boolean;
4430
+ SetOwnAnchorPoint(theHasOwnAnchor: boolean): void;
4431
+ Height(): number;
4432
+ SetHeight(theHeight: number): void;
4433
+ HorizontalAlignment(): MxHorizontalTextAlignment;
4434
+ SetHorizontalAlignment(theJustification: MxHorizontalTextAlignment): void;
4435
+ VerticalAlignment(): MxVerticalTextAlignment;
4436
+ SetVerticalAlignment(theJustification: MxVerticalTextAlignment): void;
4437
+ Shape(): MdGeShape;
4438
+ }
4439
+ /**
4440
+ * 表示文字标签
4441
+ */
4442
+ export declare class MdGeTextLabel {
4443
+ constructor();
4444
+ constructor(text: string, height: number, position: MdGePoint);
4445
+ SetColor(theR: number, theG: number, theB: number): void;
4446
+ SetText(text: string): void;
4447
+ SetPositon(position: MdGePoint): void;
4448
+ SetHJustification(theHJust: MxHorizontalTextAlignment): void;
4449
+ SetVJustification(theVJust: MxVerticalTextAlignment): void;
4450
+ SetAngle(theAngle: number): void;
4451
+ SetZoomable(theIsZoomable: boolean): void;
4452
+ SetHeight(height: number): void;
4453
+ SetFontAspect(theFontAspect: MxFontAspect): void;
4454
+ SetFont(theFont: string): void;
4455
+ SetOrientation3D(theOrientation: MdGeCSYSR): void;
4456
+ UnsetOrientation3D(): void;
4457
+ Position(): MdGePoint;
4458
+ FontAspect(): MxFontAspect;
4459
+ Orientation3D(): MdGeCSYSR;
4460
+ HasOrientation3D(): boolean;
4461
+ SetFlipping(theIsFlipping: boolean): void;
4462
+ HasFlipping(): boolean;
4463
+ HasOwnAnchorPoint(): boolean;
4464
+ SetOwnAnchorPoint(theOwnAnchorPoint: boolean): void;
4465
+ SetDisplayType(theDisplayType: MxTypeOfDisplayText): void;
4466
+ SetColorSubTitle(theR: number, theG: number, theB: number): void;
4467
+ Display(): void;
4468
+ }
4469
+ /**
4470
+ * 拓扑转换类
4471
+ */
4472
+ export declare class MdGeTopo {
4473
+ Vertex(S: MdGeShape): MdGeVertex;
4474
+ Edge(S: MdGeShape): MdGeEdge;
4475
+ Wire(S: MdGeShape): MdGeWire;
4476
+ Face(S: MdGeShape): MdGeFace;
4477
+ Shell(S: MdGeShape): MdGeShell;
4478
+ Solid(S: MdGeShape): MdGeSolid;
4479
+ CompSolid(S: MdGeShape): MdGeCompSolid;
4480
+ Compound(S: MdGeShape): MdGeCompound;
4481
+ }
4482
+ /**
4483
+ * 表示圆环
4484
+ */
4485
+ export declare class MdGeTorus {
4486
+ constructor();
4487
+ constructor(theA3: MdGeCSYS, theMajorRadius: number, theMinorRadius: number);
4488
+ SetAxis(theA1: MdGeAxis): void;
4489
+ SetLocation(theLoc: MdGePoint): void;
4490
+ SetMajorRadius(theMajorRadius: number): void;
4491
+ SetMinorRadius(theMinorRadius: number): void;
4492
+ SetPosition(theA3: MdGeCSYS): void;
4493
+ Area(): number;
4494
+ UReverse(): void;
4495
+ VReverse(): void;
4496
+ Direct(): boolean;
4497
+ Axis(): MdGeAxis;
4498
+ Location(): MdGePoint;
4499
+ Position(): MdGeCSYS;
4500
+ MajorRadius(): number;
4501
+ MinorRadius(): number;
4502
+ Volume(): number;
4503
+ XAxis(): MdGeAxis;
4504
+ YAxis(): MdGeAxis;
4505
+ MirrorByPoint(theP: MdGePoint): void;
4506
+ MirroredByPoint(theP: MdGePoint): MdGeTorus;
4507
+ MirrorByAxis(theA1: MdGeAxis): void;
4508
+ MirroredByAxis(theA1: MdGeAxis): MdGeTorus;
4509
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
4510
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeTorus;
4511
+ Rotate(theA1: MdGeAxis, theAng: number): void;
4512
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeTorus;
4513
+ Scale(theP: MdGePoint, theS: number): void;
4514
+ Scaled(theP: MdGePoint, theS: number): MdGeTorus;
4515
+ Transform(theT: MdGeTrsf): void;
4516
+ Transformed(theT: MdGeTrsf): MdGeTorus;
4517
+ TranslateByVec(theV: MdGeVec): void;
4518
+ TranslatedByVec(theV: MdGeVec): MdGeTorus;
4519
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
4520
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeTorus;
4521
+ Face(): MdGeFace;
4522
+ Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
4523
+ Face(W: MdGeWire, Inside?: boolean): MdGeFace;
4524
+ Shape(): MdGeShape;
4525
+ Shape(angle: number): MdGeShape;
4526
+ Shape(angle1: number, angle2: number): MdGeShape;
4527
+ Shape(angle1: number, angle2: number, angle: number): MdGeShape;
4528
+ }
4529
+ /**
4530
+ * 形状变换类
4531
+ */
4532
+ export declare class MdGeTransform {
4533
+ constructor(T: MdGeTrsf);
4534
+ constructor(theShape: MdGeShape, theTrsf: MdGeTrsf, theCopyGeom?: boolean, theCopyMesh?: boolean);
4535
+ Perform(theShape: MdGeShape, theCopyGeom?: boolean, theCopyMesh?: boolean): void;
4536
+ ModifiedShape(S: MdGeShape): MdGeShape;
4537
+ Shape(): MdGeShape;
4538
+ }
4539
+ /**
4540
+ * 表示一个楔形
4541
+ */
4542
+ export declare class MdGeWedge {
4543
+ constructor(dx: number, dy: number, dz: number, ltx: number);
4544
+ constructor(Axes: MdGeCSYSR, dx: number, dy: number, dz: number, ltx: number);
4545
+ constructor(dx: number, dy: number, dz: number, xmin: number, zmin: number, xmax: number, zmax: number);
4546
+ constructor(Axes: MdGeCSYSR, dx: number, dy: number, dz: number, xmin: number, zmin: number, xmax: number, zmax: number);
4547
+ Shell(): MdGeShell;
4548
+ Solid(): MdGeSolid;
4549
+ Shape(): MdGeShape;
2347
4550
  }
2348
4551
  export declare function loadMxCADassembly3d(config: MxDraw3dConfig, call?: (mxDraw3d: MxDraw3d) => void): Promise<MxDraw3d>;
2349
4552