mxcad 1.0.83 → 1.0.84
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 +678 -566
- package/dist/mxcad.es.js +2025 -6022
- package/dist/mxcad.umd.js +46 -46
- package/dist/wasm/2d/mxdrawassembly_min.js +758 -750
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +743 -734
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare class McGePoint3d {
|
|
|
41
41
|
*/
|
|
42
42
|
constructor(dX?: number | object, dY?: number, dZ?: number);
|
|
43
43
|
toVector3(): THREE.Vector3;
|
|
44
|
+
setFromVector3(val: THREE.Vector3): this;
|
|
44
45
|
/**
|
|
45
46
|
* 复制对象的值
|
|
46
47
|
*/
|
|
@@ -256,6 +257,7 @@ export declare class McGeLongArray {
|
|
|
256
257
|
* 复制对象的值
|
|
257
258
|
*/
|
|
258
259
|
copy(val: McGeLongArray): this;
|
|
260
|
+
copyFormAryId(aryId: McObjectId[]): this;
|
|
259
261
|
/**
|
|
260
262
|
* 添加一个值
|
|
261
263
|
*/
|
|
@@ -272,6 +274,7 @@ export declare class McGeLongArray {
|
|
|
272
274
|
* 设置数据元素的值
|
|
273
275
|
*/
|
|
274
276
|
setAt(index: number, val: number): void;
|
|
277
|
+
clear(): void;
|
|
275
278
|
}
|
|
276
279
|
/**
|
|
277
280
|
* 表示字符串的数组
|
|
@@ -306,6 +309,7 @@ export declare class McGeStringArray {
|
|
|
306
309
|
* 遍历数组
|
|
307
310
|
*/
|
|
308
311
|
forEach(call: (val: string, index: number) => void, decodeFromGb2312?: boolean): void;
|
|
312
|
+
clear(): void;
|
|
309
313
|
}
|
|
310
314
|
/**
|
|
311
315
|
* 表示三维点的数组
|
|
@@ -336,6 +340,7 @@ export declare class McGePoint3dArray {
|
|
|
336
340
|
* 设置数据元素的值
|
|
337
341
|
*/
|
|
338
342
|
setAt(index: number, val: McGePoint3d): void;
|
|
343
|
+
clear(): void;
|
|
339
344
|
}
|
|
340
345
|
/**
|
|
341
346
|
* 表示一个 Rx 对象的基类。
|
|
@@ -671,7 +676,15 @@ export declare enum MxCADSelectionSetStatus {
|
|
|
671
676
|
kKeyword = 4
|
|
672
677
|
}
|
|
673
678
|
export declare class MxCADSelectionSet extends McRxObject {
|
|
679
|
+
isWhileSelect: boolean;
|
|
680
|
+
isSelectHighlight: boolean;
|
|
681
|
+
private selectPt1;
|
|
682
|
+
private selectPt2;
|
|
674
683
|
constructor();
|
|
684
|
+
getSelectPoint(): {
|
|
685
|
+
pt1: McGePoint3d;
|
|
686
|
+
pt2: McGePoint3d;
|
|
687
|
+
};
|
|
675
688
|
allSelect(filter?: MxCADResbuf | null): number;
|
|
676
689
|
pointSelect(dX: number, dY: number, filter?: MxCADResbuf | null, dTol?: number): number;
|
|
677
690
|
crossingSelect(dX1: number, dY1: number, dX2: number, dY2: number, filter?: MxCADResbuf | null): number;
|
|
@@ -2748,9 +2761,13 @@ export declare class McObject {
|
|
|
2748
2761
|
*/
|
|
2749
2762
|
GetMxCpp(): any;
|
|
2750
2763
|
/**
|
|
2751
|
-
* 当前绘图坐标到CAD
|
|
2764
|
+
* 当前绘图坐标到CAD图纸坐标.
|
|
2752
2765
|
*/
|
|
2753
|
-
|
|
2766
|
+
DocCoord2Cad(pt: McGePoint3d): McGePoint3d;
|
|
2767
|
+
/**
|
|
2768
|
+
* CAD图纸坐标到当前绘图坐标
|
|
2769
|
+
*/
|
|
2770
|
+
CadCoord2Doc(pt: McGePoint3d): McGePoint3d;
|
|
2754
2771
|
}
|
|
2755
2772
|
/**
|
|
2756
2773
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|
|
@@ -2846,10 +2863,9 @@ export declare class MxCppType {
|
|
|
2846
2863
|
/**
|
|
2847
2864
|
* 创建新的 McGePoint3d 实例
|
|
2848
2865
|
* @param {any} pt 点坐标
|
|
2849
|
-
* @param {boolean} isDoc 是否为文档坐标
|
|
2850
2866
|
* @returns {McGePoint3d} McGePoint3d 实例
|
|
2851
2867
|
*/
|
|
2852
|
-
NewMcGePoint3d(pt?: any
|
|
2868
|
+
NewMcGePoint3d(pt?: any): McGePoint3d;
|
|
2853
2869
|
/**
|
|
2854
2870
|
* 返回当前活动的CAD对象
|
|
2855
2871
|
*/
|
|
@@ -3002,8 +3018,6 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3002
3018
|
* @param fileUrl 文件路径
|
|
3003
3019
|
* */
|
|
3004
3020
|
openFromUrl: (name: string, fileUrl: string) => void;
|
|
3005
|
-
/** 垃圾回收初始化 */
|
|
3006
|
-
InitGC(): void;
|
|
3007
3021
|
/** 设置多维数据集贴图背景 */
|
|
3008
3022
|
setCubemapBackground(url: string): void;
|
|
3009
3023
|
/** 完成初始化 */
|
|
@@ -3096,17 +3110,17 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3096
3110
|
MdGeDiameterDim: typeof MdGeDiameterDim;
|
|
3097
3111
|
/** 表示一个椭圆 */
|
|
3098
3112
|
MdGeEllipse: typeof MdGeEllipse;
|
|
3099
|
-
MxShapeEnum: typeof
|
|
3100
|
-
MxHorizontalTextAlignment: typeof
|
|
3101
|
-
MxVerticalTextAlignment: typeof
|
|
3102
|
-
MxFontAspect: typeof
|
|
3103
|
-
MxTypeOfDisplayText: typeof
|
|
3104
|
-
MxCF3dFilletShapeEnum: typeof
|
|
3105
|
-
MxCFDSChamfMode: typeof
|
|
3106
|
-
MxGFTrihedron: typeof
|
|
3107
|
-
MxGAShapeEnum: typeof
|
|
3108
|
-
MxOffsetModeEnum: typeof
|
|
3109
|
-
MxGAJoinTypeEnum: typeof
|
|
3113
|
+
MxShapeEnum: typeof MxShapeEnum;
|
|
3114
|
+
MxHorizontalTextAlignment: typeof MxHorizontalTextAlignment;
|
|
3115
|
+
MxVerticalTextAlignment: typeof MxVerticalTextAlignment;
|
|
3116
|
+
MxFontAspect: typeof MxFontAspect;
|
|
3117
|
+
MxTypeOfDisplayText: typeof MxTypeOfDisplayText;
|
|
3118
|
+
MxCF3dFilletShapeEnum: typeof MxCF3dFilletShapeEnum;
|
|
3119
|
+
MxCFDSChamfMode: typeof MxCFDSChamfMode;
|
|
3120
|
+
MxGFTrihedron: typeof MxGFTrihedron;
|
|
3121
|
+
MxGAShapeEnum: typeof MxGAShapeEnum;
|
|
3122
|
+
MxOffsetModeEnum: typeof MxOffsetModeEnum;
|
|
3123
|
+
MxGAJoinTypeEnum: typeof MxGAJoinTypeEnum;
|
|
3110
3124
|
/** 表示拓扑元素遍历 */
|
|
3111
3125
|
MdGeExplorer: typeof MdGeExplorer;
|
|
3112
3126
|
/** 表示倒圆角 */
|
|
@@ -3157,115 +3171,54 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3157
3171
|
MdGeTextLabel: typeof MdGeTextLabel;
|
|
3158
3172
|
/** 拓扑转换类 */
|
|
3159
3173
|
MdGeTopo: typeof MdGeTopo;
|
|
3160
|
-
mdGeTopo: MdGeTopo;
|
|
3161
3174
|
/** 表示圆环 */
|
|
3162
3175
|
MdGeTorus: typeof MdGeTorus;
|
|
3163
3176
|
/** 形状变换类 */
|
|
3164
3177
|
MdGeTransform: typeof MdGeTransform;
|
|
3165
3178
|
/** 表示一个楔形 */
|
|
3166
3179
|
MdGeWedge: typeof MdGeWedge;
|
|
3167
|
-
/** 表示BRep工具 */
|
|
3168
|
-
MdGeBRep: typeof MdGeBRep;
|
|
3169
|
-
mdGeBRep: MdGeBRep;
|
|
3170
|
-
/** 表示几何平面句柄 */
|
|
3171
|
-
MdGeHGeomPlane: typeof MdGeHGeomPlane;
|
|
3172
|
-
/** 表示几何曲面句柄 */
|
|
3173
|
-
MdGeHGeomSurface: typeof MdGeHGeomSurface;
|
|
3174
|
-
/** 所有类的父类,除MdGeTopo,MdGeBRep */
|
|
3175
|
-
MdGeObject: typeof MdGeObject;
|
|
3176
|
-
}
|
|
3177
|
-
/**
|
|
3178
|
-
* 所有类的父类, 除去MdGeTopo以及MdGeBrep
|
|
3179
|
-
*/
|
|
3180
|
-
export declare class MdGeObject {
|
|
3181
|
-
protected imp: any;
|
|
3182
|
-
constructor(imp?: any);
|
|
3183
|
-
getImp(): any;
|
|
3184
|
-
protected initTempObject(imp: any): void;
|
|
3185
3180
|
}
|
|
3186
3181
|
/**
|
|
3187
3182
|
* 表示一个形状。
|
|
3188
3183
|
*/
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3184
|
+
export declare class MdGeShape {
|
|
3185
|
+
/**
|
|
3186
|
+
* 求合并后的形状。
|
|
3187
|
+
* @param other 另一个形状。
|
|
3188
|
+
* @returns 合并后的形状。
|
|
3189
|
+
*/
|
|
3194
3190
|
Fuse(other: MdGeShape): MdGeShape;
|
|
3191
|
+
/**
|
|
3192
|
+
* 求裁剪后的形状。
|
|
3193
|
+
* @param remove 被裁剪掉的部分形状。
|
|
3194
|
+
* @returns 裁剪后的形状。
|
|
3195
|
+
*/
|
|
3195
3196
|
Cut(remove: MdGeShape): MdGeShape;
|
|
3197
|
+
/**
|
|
3198
|
+
* 求形状相交的部分。
|
|
3199
|
+
* @param other 另一个形状。
|
|
3200
|
+
* @returns 相交部分的形状。
|
|
3201
|
+
*/
|
|
3196
3202
|
Common(other: MdGeShape): MdGeShape;
|
|
3203
|
+
/**
|
|
3204
|
+
* 求相交部分的外轮廓。
|
|
3205
|
+
* @param other 另一个形状。
|
|
3206
|
+
* @returns 相交部分的外轮廓的形状。
|
|
3207
|
+
*/
|
|
3197
3208
|
Section(other: MdGeShape): MdGeShape;
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
*/
|
|
3203
|
-
export declare class MdGeVertex extends MdGeShape {
|
|
3204
|
-
constructor(p1?: object | number, p2?: number, p3?: number);
|
|
3205
|
-
Draw(): void;
|
|
3206
|
-
}
|
|
3207
|
-
/**
|
|
3208
|
-
* 表示一个Edge形状
|
|
3209
|
-
*/
|
|
3210
|
-
export declare class MdGeEdge extends MdGeShape {
|
|
3211
|
-
constructor(p1?: MdGePoint | object, p2?: MdGePoint);
|
|
3212
|
-
Wire(): MdGeWire;
|
|
3213
|
-
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3214
|
-
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3215
|
-
Draw(): void;
|
|
3216
|
-
}
|
|
3217
|
-
/**
|
|
3218
|
-
* 表示一个Wire形状
|
|
3219
|
-
*/
|
|
3220
|
-
export declare class MdGeWire extends MdGeShape {
|
|
3221
|
-
constructor(p?: object);
|
|
3222
|
-
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3223
|
-
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3224
|
-
Draw(): void;
|
|
3225
|
-
}
|
|
3226
|
-
/**
|
|
3227
|
-
* 表示一个Face形状
|
|
3228
|
-
*/
|
|
3229
|
-
export declare class MdGeFace extends MdGeShape {
|
|
3230
|
-
constructor(p?: object);
|
|
3231
|
-
Draw(): void;
|
|
3232
|
-
}
|
|
3233
|
-
/**
|
|
3234
|
-
* 表示一个Shell形状
|
|
3235
|
-
*/
|
|
3236
|
-
export declare class MdGeShell extends MdGeShape {
|
|
3237
|
-
constructor(p?: object);
|
|
3238
|
-
Draw(): void;
|
|
3239
|
-
}
|
|
3240
|
-
/**
|
|
3241
|
-
* 表示一个Solid形状
|
|
3242
|
-
*/
|
|
3243
|
-
export declare class MdGeSolid extends MdGeShape {
|
|
3244
|
-
constructor(p?: object);
|
|
3245
|
-
Draw(): void;
|
|
3246
|
-
}
|
|
3247
|
-
/**
|
|
3248
|
-
* 表示一个CompSolid形状
|
|
3249
|
-
*/
|
|
3250
|
-
export declare class MdGeCompSolid extends MdGeShape {
|
|
3251
|
-
constructor(p?: object);
|
|
3252
|
-
Draw(): void;
|
|
3253
|
-
}
|
|
3254
|
-
/**
|
|
3255
|
-
* 表示一个Compound形状
|
|
3256
|
-
*/
|
|
3257
|
-
export declare class MdGeCompound extends MdGeShape {
|
|
3258
|
-
constructor(p?: object);
|
|
3209
|
+
IsNull(): boolean;
|
|
3210
|
+
/**
|
|
3211
|
+
* 绘制形状。
|
|
3212
|
+
*/
|
|
3259
3213
|
Draw(): void;
|
|
3260
3214
|
}
|
|
3261
3215
|
/**
|
|
3262
3216
|
* 表示一个矩阵。
|
|
3263
3217
|
*/
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
constructor(p1?: MdGeXYZ | number | object, p2?: MdGeXYZ | number, p3?: MdGeXYZ | number, p4?: number, p5?: number, p6?: number, p7?: number, p8?: number, p9?: number);
|
|
3218
|
+
export declare class MdGeMat {
|
|
3219
|
+
constructor();
|
|
3220
|
+
constructor(a11: number, a12: number, a13: number, a21: number, a22: number, a23: number, a31: number, a32: number, a33: number);
|
|
3221
|
+
constructor(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ);
|
|
3269
3222
|
SetCol(col: number, value: MdGeXYZ): void;
|
|
3270
3223
|
SetCols(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ): void;
|
|
3271
3224
|
SetCross(ref: MdGeXYZ): void;
|
|
@@ -3305,12 +3258,11 @@ export declare class MdGeMat extends MdGeObject {
|
|
|
3305
3258
|
/**
|
|
3306
3259
|
* 表示一个坐标。
|
|
3307
3260
|
*/
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
SetCoord(x: number, y: number, z?: number): void;
|
|
3261
|
+
export declare class MdGeXYZ {
|
|
3262
|
+
constructor();
|
|
3263
|
+
constructor(x: number, y: number, z: number);
|
|
3264
|
+
SetCoord(x: number, y: number, z: number): void;
|
|
3265
|
+
SetCoord(index: number, value: number): void;
|
|
3314
3266
|
SetX(x: number): void;
|
|
3315
3267
|
SetY(y: number): void;
|
|
3316
3268
|
SetZ(z: number): void;
|
|
@@ -3346,15 +3298,18 @@ export declare class MdGeXYZ extends MdGeObject {
|
|
|
3346
3298
|
Reversed(): MdGeXYZ;
|
|
3347
3299
|
Subtract(other: MdGeXYZ): void;
|
|
3348
3300
|
Subtracted(other: MdGeXYZ): MdGeXYZ;
|
|
3301
|
+
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ, xyz4: MdGeXYZ): void;
|
|
3302
|
+
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ): void;
|
|
3303
|
+
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, xyz3: MdGeXYZ): void;
|
|
3304
|
+
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ): void;
|
|
3305
|
+
SetLinearForm(a1: number, xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
|
|
3306
|
+
SetLinearForm(xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
|
|
3349
3307
|
}
|
|
3350
3308
|
/**
|
|
3351
3309
|
* 表示一个变换。
|
|
3352
3310
|
*/
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
*/
|
|
3356
|
-
export declare class MdGeTrsf extends MdGeObject {
|
|
3357
|
-
constructor(p?: object);
|
|
3311
|
+
export declare class MdGeTrsf {
|
|
3312
|
+
constructor();
|
|
3358
3313
|
SetMirrorByPoint(point: MdGePoint): void;
|
|
3359
3314
|
SetMirrorByAxis(axis: MdGeAxis): void;
|
|
3360
3315
|
SetMirrorByCSYSR(csysr: MdGeCSYSR): void;
|
|
@@ -3380,12 +3335,12 @@ export declare class MdGeTrsf extends MdGeObject {
|
|
|
3380
3335
|
/**
|
|
3381
3336
|
* 表示一个方向。
|
|
3382
3337
|
*/
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
SetCoord(
|
|
3338
|
+
export declare class MdGeDir {
|
|
3339
|
+
constructor();
|
|
3340
|
+
constructor(theV: MdGeVec);
|
|
3341
|
+
constructor(theXv: number, theYv: number, theZv: number);
|
|
3342
|
+
SetCoord(): void;
|
|
3343
|
+
SetCoord(theXv: number, theYv: number, theZv: number): void;
|
|
3389
3344
|
SetX(theXv: number): void;
|
|
3390
3345
|
SetY(theYv: number): void;
|
|
3391
3346
|
SetZ(theZv: number): void;
|
|
@@ -3423,29 +3378,50 @@ export declare class MdGeDir extends MdGeObject {
|
|
|
3423
3378
|
/**
|
|
3424
3379
|
* 表示一个轴。
|
|
3425
3380
|
*/
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
constructor(
|
|
3381
|
+
export declare class MdGeAxis {
|
|
3382
|
+
/**
|
|
3383
|
+
* 构造函数。
|
|
3384
|
+
*/
|
|
3385
|
+
constructor();
|
|
3386
|
+
/**
|
|
3387
|
+
* 构造函数。
|
|
3388
|
+
* @param loc 轴的位置点。
|
|
3389
|
+
* @param dir 轴的方向。
|
|
3390
|
+
*/
|
|
3391
|
+
constructor(loc: MdGePoint, dir: MdGeDir);
|
|
3392
|
+
/**
|
|
3393
|
+
* 获得轴的方向。
|
|
3394
|
+
* @returns 轴的方向。
|
|
3395
|
+
*/
|
|
3431
3396
|
Direction(): MdGeDir;
|
|
3397
|
+
/**
|
|
3398
|
+
* 获得轴的位置点。
|
|
3399
|
+
* @returns 轴的位置点。
|
|
3400
|
+
*/
|
|
3432
3401
|
Location(): MdGePoint;
|
|
3402
|
+
/**
|
|
3403
|
+
* 设置轴的方向。
|
|
3404
|
+
* @param dir 要设置的方向。
|
|
3405
|
+
*/
|
|
3433
3406
|
SetDirection(dir: MdGeDir): void;
|
|
3407
|
+
/**
|
|
3408
|
+
* 设置轴的位置点。
|
|
3409
|
+
* @param loc 要设置的位置点。
|
|
3410
|
+
*/
|
|
3434
3411
|
SetLocation(loc: MdGePoint): void;
|
|
3435
3412
|
}
|
|
3436
3413
|
/**
|
|
3437
3414
|
* 表示右手坐标系。
|
|
3438
3415
|
*/
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
export declare class MdGeCSYSR extends MdGeObject {
|
|
3443
|
-
constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
|
|
3416
|
+
export declare class MdGeCSYSR {
|
|
3417
|
+
constructor();
|
|
3418
|
+
constructor(origin: MdGePoint, z_aixs: MdGeDir, x_vec: MdGeDir);
|
|
3444
3419
|
Origin(): MdGePoint;
|
|
3445
3420
|
XDirection(): MdGeDir;
|
|
3446
3421
|
YDirection(): MdGeDir;
|
|
3447
3422
|
ZDirection(): MdGeDir;
|
|
3448
|
-
SetOrigin(
|
|
3423
|
+
SetOrigin(origin: MdGePoint): void;
|
|
3424
|
+
SetOrigin(theX: number, theY: number, theZ: number): void;
|
|
3449
3425
|
SetXDirection(x_dir: MdGeDir): void;
|
|
3450
3426
|
SetYDirection(y_dir: MdGeDir): void;
|
|
3451
3427
|
SetZDirection(z_dir: MdGeDir): void;
|
|
@@ -3473,23 +3449,91 @@ export declare class MdGeCSYSR extends MdGeObject {
|
|
|
3473
3449
|
/**
|
|
3474
3450
|
* 表示一个点。
|
|
3475
3451
|
*/
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
constructor(
|
|
3452
|
+
export declare class MdGePoint {
|
|
3453
|
+
/**
|
|
3454
|
+
* 构造函数。
|
|
3455
|
+
*/
|
|
3456
|
+
constructor();
|
|
3457
|
+
/**
|
|
3458
|
+
* 构造函数。
|
|
3459
|
+
* @param x
|
|
3460
|
+
* @param y
|
|
3461
|
+
* @param z
|
|
3462
|
+
*/
|
|
3463
|
+
constructor(x: number, y: number, z: number);
|
|
3464
|
+
/**
|
|
3465
|
+
* 获取x坐标值。
|
|
3466
|
+
* @returns x坐标值。
|
|
3467
|
+
*/
|
|
3481
3468
|
X(): number;
|
|
3469
|
+
/**
|
|
3470
|
+
* 获取y坐标值。
|
|
3471
|
+
* @returns y坐标值。
|
|
3472
|
+
*/
|
|
3482
3473
|
Y(): number;
|
|
3474
|
+
/**
|
|
3475
|
+
* 获取z坐标值。
|
|
3476
|
+
* @returns z坐标值。
|
|
3477
|
+
*/
|
|
3483
3478
|
Z(): number;
|
|
3479
|
+
/**
|
|
3480
|
+
* 设置x坐标。
|
|
3481
|
+
* @param x x 坐标。
|
|
3482
|
+
*/
|
|
3484
3483
|
SetX(x: number): void;
|
|
3484
|
+
/**
|
|
3485
|
+
* 设置y坐标。
|
|
3486
|
+
* @param y y 坐标。
|
|
3487
|
+
*/
|
|
3485
3488
|
SetY(y: number): void;
|
|
3489
|
+
/**
|
|
3490
|
+
* 设置z坐标。
|
|
3491
|
+
* @param z z 坐标。
|
|
3492
|
+
*/
|
|
3486
3493
|
SetZ(z: number): void;
|
|
3494
|
+
/**
|
|
3495
|
+
* 设置x y z坐标值。
|
|
3496
|
+
* @param x 要设置的x坐标值。
|
|
3497
|
+
* @param y 要设置的y坐标值。
|
|
3498
|
+
* @param z 要设置的z坐标值。
|
|
3499
|
+
*/
|
|
3487
3500
|
SetXYZ(x: number, y: number, z: number): void;
|
|
3501
|
+
/**
|
|
3502
|
+
* 获取质心。
|
|
3503
|
+
* @param alpha 参数alpha。
|
|
3504
|
+
* @param point 三维点。
|
|
3505
|
+
* @param beta 参数beta
|
|
3506
|
+
*/
|
|
3488
3507
|
BaryCenter(alpha: number, point: MdGePoint, beta: number): void;
|
|
3508
|
+
/**
|
|
3509
|
+
* 判断两个点是否相等。
|
|
3510
|
+
* @param other 另一个点。
|
|
3511
|
+
* @param linearTolerance 精度。
|
|
3512
|
+
* @returns 是否相等,相等为true,不相等为false。
|
|
3513
|
+
*/
|
|
3489
3514
|
IsEqual(other: MdGePoint, linearTolerance: number): boolean;
|
|
3515
|
+
/**
|
|
3516
|
+
* 获取到另一点的距离。
|
|
3517
|
+
* @param other 另一个点。
|
|
3518
|
+
* @returns 到指定点的距离。
|
|
3519
|
+
*/
|
|
3490
3520
|
Distance(other: MdGePoint): number;
|
|
3521
|
+
/**
|
|
3522
|
+
* 获取到另一点的距离的平方。
|
|
3523
|
+
* @param other 另一个点。
|
|
3524
|
+
* @returns 到指定点的距离的平方。
|
|
3525
|
+
*/
|
|
3491
3526
|
SquareDistance(other: MdGePoint): number;
|
|
3527
|
+
/**
|
|
3528
|
+
* 将点按某一点进行镜像变换。
|
|
3529
|
+
* @param point 镜像点。
|
|
3530
|
+
*/
|
|
3492
3531
|
MirrorByPoint(point: MdGePoint): void;
|
|
3532
|
+
/**
|
|
3533
|
+
* 将点按某一点进行镜像变换后的镜像点。
|
|
3534
|
+
* @param point 镜像点。
|
|
3535
|
+
* @returns 变换后的镜像点。
|
|
3536
|
+
*/
|
|
3493
3537
|
MirroredByPoint(point: MdGePoint): MdGePoint;
|
|
3494
3538
|
MirrorByAxis(axis: MdGeAxis): void;
|
|
3495
3539
|
MirroredByAxis(axis: MdGeAxis): MdGePoint;
|
|
@@ -3505,24 +3549,83 @@ export declare class MdGePoint extends MdGeObject {
|
|
|
3505
3549
|
TranslatedByVec(vec: MdGeVec): MdGePoint;
|
|
3506
3550
|
TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
|
|
3507
3551
|
TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGePoint;
|
|
3552
|
+
/**
|
|
3553
|
+
* 求点的形状。
|
|
3554
|
+
* @returns 点的形状。
|
|
3555
|
+
*/
|
|
3508
3556
|
Shape(): MdGeShape;
|
|
3509
3557
|
Vertex(): MdGeVertex;
|
|
3510
3558
|
}
|
|
3511
3559
|
/**
|
|
3512
3560
|
* 表示一个向量。
|
|
3513
3561
|
*/
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
constructor(
|
|
3519
|
-
|
|
3562
|
+
export declare class MdGeVec {
|
|
3563
|
+
/**
|
|
3564
|
+
* 构造函数。
|
|
3565
|
+
*/
|
|
3566
|
+
constructor();
|
|
3567
|
+
/**
|
|
3568
|
+
* 构造函数。
|
|
3569
|
+
* @param x x 坐标。
|
|
3570
|
+
* @param y y 坐标。
|
|
3571
|
+
* @param z z 坐标。
|
|
3572
|
+
*/
|
|
3573
|
+
constructor(x: number, y: number, z: number);
|
|
3574
|
+
/**
|
|
3575
|
+
* 构造函数。
|
|
3576
|
+
* @param theP1 第一个点。
|
|
3577
|
+
* @param theP2 第二个点。
|
|
3578
|
+
*/
|
|
3579
|
+
constructor(theP1: MdGePoint, theP2: MdGePoint);
|
|
3580
|
+
/**
|
|
3581
|
+
* 设置某个坐标值。
|
|
3582
|
+
* @param theIndex 要设置的坐标,取值1,2,3。
|
|
3583
|
+
* @param theXi 要设置的坐标值。
|
|
3584
|
+
*/
|
|
3585
|
+
SetCoord(theIndex: number, theXi: number): void;
|
|
3586
|
+
/**
|
|
3587
|
+
* 设置x y z坐标值。
|
|
3588
|
+
* @param theXv 要设置的x坐标值。
|
|
3589
|
+
* @param theYv 要设置的y坐标值。
|
|
3590
|
+
* @param theZv 要设置的z坐标值。
|
|
3591
|
+
*/
|
|
3592
|
+
SetCoord(theXv: number, theYv: number, theZv: number): void;
|
|
3593
|
+
/**
|
|
3594
|
+
* 获取x坐标值。
|
|
3595
|
+
* @returns x坐标值。
|
|
3596
|
+
*/
|
|
3520
3597
|
X(): number;
|
|
3598
|
+
/**
|
|
3599
|
+
* 获取y坐标值。
|
|
3600
|
+
* @returns y坐标值。
|
|
3601
|
+
*/
|
|
3521
3602
|
Y(): number;
|
|
3603
|
+
/**
|
|
3604
|
+
* 获取z坐标值。
|
|
3605
|
+
* @returns z坐标值。
|
|
3606
|
+
*/
|
|
3522
3607
|
Z(): number;
|
|
3608
|
+
/**
|
|
3609
|
+
* 设置x坐标。
|
|
3610
|
+
* @param x x 坐标。
|
|
3611
|
+
*/
|
|
3523
3612
|
SetX(x: number): void;
|
|
3613
|
+
/**
|
|
3614
|
+
* 设置y坐标。
|
|
3615
|
+
* @param y y 坐标。
|
|
3616
|
+
*/
|
|
3524
3617
|
SetY(y: number): void;
|
|
3618
|
+
/**
|
|
3619
|
+
* 设置z坐标。
|
|
3620
|
+
* @param z z 坐标。
|
|
3621
|
+
*/
|
|
3525
3622
|
SetZ(z: number): void;
|
|
3623
|
+
/**
|
|
3624
|
+
* 设置x y z坐标值。
|
|
3625
|
+
* @param x 要设置的x坐标值。
|
|
3626
|
+
* @param y 要设置的y坐标值。
|
|
3627
|
+
* @param z 要设置的z坐标值。
|
|
3628
|
+
*/
|
|
3526
3629
|
SetXYZ(x: number, y: number, z: number): void;
|
|
3527
3630
|
Coord(theIndex: number): number;
|
|
3528
3631
|
IsEqual(other: MdGeVec, linearTolerance: number, angularTolerance: number): boolean;
|
|
@@ -3553,7 +3656,12 @@ export declare class MdGeVec extends MdGeObject {
|
|
|
3553
3656
|
Normalized(): MdGeVec;
|
|
3554
3657
|
Reverse(): void;
|
|
3555
3658
|
Reversed(): MdGeVec;
|
|
3556
|
-
SetLinearForm(
|
|
3659
|
+
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, a3: number, v3: MdGeVec, v4: MdGeVec): void;
|
|
3660
|
+
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, a3: number, v3: MdGeVec): void;
|
|
3661
|
+
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, v3: MdGeVec): void;
|
|
3662
|
+
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec): void;
|
|
3663
|
+
SetLinearForm(a1: number, v1: MdGeVec, v2: MdGeVec): void;
|
|
3664
|
+
SetLinearForm(v1: MdGeVec, v2: MdGeVec): void;
|
|
3557
3665
|
MirrorByVec(vec: MdGeVec): void;
|
|
3558
3666
|
MirroredByVec(vec: MdGeVec): MdGeVec;
|
|
3559
3667
|
MirrorByAxis(axis: MdGeAxis): void;
|
|
@@ -3570,42 +3678,123 @@ export declare class MdGeVec extends MdGeObject {
|
|
|
3570
3678
|
/**
|
|
3571
3679
|
* 表示一个Wire形状。
|
|
3572
3680
|
*/
|
|
3681
|
+
export declare class MdGeWire extends MdGeShape {
|
|
3682
|
+
/**
|
|
3683
|
+
* 构造函数。
|
|
3684
|
+
*/
|
|
3685
|
+
constructor();
|
|
3686
|
+
/**
|
|
3687
|
+
* 添加Edge,形成Wire。
|
|
3688
|
+
* @param edge 要添加的Edge。
|
|
3689
|
+
* @returns 最终的Wire。
|
|
3690
|
+
*/
|
|
3691
|
+
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3692
|
+
/**
|
|
3693
|
+
* 添加Wire,形成Wire。
|
|
3694
|
+
* @param wire 要添加的Wire。
|
|
3695
|
+
* @returns 最终的Wire。
|
|
3696
|
+
*/
|
|
3697
|
+
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3698
|
+
/**
|
|
3699
|
+
* 绘制Wire。
|
|
3700
|
+
*/
|
|
3701
|
+
Draw(): void;
|
|
3702
|
+
}
|
|
3573
3703
|
/**
|
|
3574
3704
|
* 表示一个Edge形状。
|
|
3575
3705
|
*/
|
|
3706
|
+
export declare class MdGeEdge extends MdGeShape {
|
|
3707
|
+
/**
|
|
3708
|
+
* 构造函数。
|
|
3709
|
+
*/
|
|
3710
|
+
constructor();
|
|
3711
|
+
/**
|
|
3712
|
+
* 构造函数。
|
|
3713
|
+
* @param pt1 第一个点。
|
|
3714
|
+
* @param pt2 第二个点。
|
|
3715
|
+
*/
|
|
3716
|
+
constructor(pt1: MdGePoint, pt2: MdGePoint);
|
|
3717
|
+
/**
|
|
3718
|
+
* 获得MdGeWire类型的Edge。
|
|
3719
|
+
* @returns MdGeWire类型的Edge形状。
|
|
3720
|
+
*/
|
|
3721
|
+
Wire(): MdGeWire;
|
|
3722
|
+
/**
|
|
3723
|
+
* 添加Edge,形成Wire。
|
|
3724
|
+
* @param edge 要添加的Egde。
|
|
3725
|
+
* @returns 最终的Wire形状。
|
|
3726
|
+
*/
|
|
3727
|
+
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3728
|
+
/**
|
|
3729
|
+
* 添加Wire,形成Edge。
|
|
3730
|
+
* @param wire 要添加的Wire。
|
|
3731
|
+
* @returns 最终的Wire形状。
|
|
3732
|
+
*/
|
|
3733
|
+
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3734
|
+
/**
|
|
3735
|
+
* 绘制Edge。
|
|
3736
|
+
*/
|
|
3737
|
+
Draw(): void;
|
|
3738
|
+
}
|
|
3576
3739
|
/**
|
|
3577
3740
|
* 表示一个Vertex形状。
|
|
3578
3741
|
*/
|
|
3742
|
+
export declare class MdGeVertex extends MdGeShape {
|
|
3743
|
+
constructor();
|
|
3744
|
+
constructor(x: number, y: number, z: number);
|
|
3745
|
+
constructor(pt: MdGePoint);
|
|
3746
|
+
Draw(): void;
|
|
3747
|
+
}
|
|
3579
3748
|
/**
|
|
3580
3749
|
* 表示一个Face形状。
|
|
3581
3750
|
*/
|
|
3751
|
+
export declare class MdGeFace extends MdGeShape {
|
|
3752
|
+
constructor();
|
|
3753
|
+
Draw(): void;
|
|
3754
|
+
}
|
|
3582
3755
|
/**
|
|
3583
3756
|
* 表示一个Shell形状。
|
|
3584
3757
|
*/
|
|
3758
|
+
export declare class MdGeShell extends MdGeShape {
|
|
3759
|
+
constructor();
|
|
3760
|
+
Draw(): void;
|
|
3761
|
+
}
|
|
3585
3762
|
/**
|
|
3586
3763
|
* 表示一个Solid形状。
|
|
3587
3764
|
*/
|
|
3765
|
+
export declare class MdGeSolid extends MdGeShape {
|
|
3766
|
+
constructor();
|
|
3767
|
+
Draw(): void;
|
|
3768
|
+
}
|
|
3588
3769
|
/**
|
|
3589
3770
|
* 表示一个CompSolid形状。
|
|
3590
3771
|
*/
|
|
3772
|
+
export declare class MdGeCompSolid extends MdGeShape {
|
|
3773
|
+
constructor();
|
|
3774
|
+
Draw(): void;
|
|
3775
|
+
}
|
|
3591
3776
|
/**
|
|
3592
3777
|
* 表示一个Compound形状。
|
|
3593
3778
|
*/
|
|
3779
|
+
export declare class MdGeCompound extends MdGeShape {
|
|
3780
|
+
constructor();
|
|
3781
|
+
Draw(): void;
|
|
3782
|
+
}
|
|
3594
3783
|
/**
|
|
3595
3784
|
* 表示角度标注。
|
|
3596
3785
|
*/
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
export declare class MdGeAngleDim extends MdGeObject {
|
|
3601
|
-
constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint);
|
|
3786
|
+
export declare class MdGeAngleDim {
|
|
3787
|
+
constructor(theFirstEdge: MdGeEdge, theSecondEdge: MdGeEdge);
|
|
3788
|
+
constructor(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, theThirdPoint: MdGePoint);
|
|
3602
3789
|
FirstPoint(): MdGePoint;
|
|
3603
3790
|
SecondPoint(): MdGePoint;
|
|
3604
3791
|
CenterPoint(): MdGePoint;
|
|
3605
3792
|
FirstShape(): MdGeShape;
|
|
3606
3793
|
SecondShape(): MdGeShape;
|
|
3607
3794
|
ThirdShape(): MdGeShape;
|
|
3608
|
-
SetMeasuredGeometry(
|
|
3795
|
+
SetMeasuredGeometry(theFirstEdge: MdGeEdge, theSecondEdge: MdGeEdge): void;
|
|
3796
|
+
SetMeasuredGeometry(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, theThridPoint: MdGePoint): void;
|
|
3797
|
+
SetMeasuredGeometry(theCone: MdGeFace): void;
|
|
3609
3798
|
SetTextPosition(theTextPos: MdGePoint): void;
|
|
3610
3799
|
GetTextPosition(): MdGePoint;
|
|
3611
3800
|
GetNormalForMinAngle(): MdGeDir;
|
|
@@ -3615,11 +3804,9 @@ export declare class MdGeAngleDim extends MdGeObject {
|
|
|
3615
3804
|
/**
|
|
3616
3805
|
* 表示一维整数数组。
|
|
3617
3806
|
*/
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
export declare class MdGeArray1OfInteger extends MdGeObject {
|
|
3622
|
-
constructor(p1?: number | object, p2?: number);
|
|
3807
|
+
export declare class MdGeArray1OfInteger {
|
|
3808
|
+
constructor();
|
|
3809
|
+
constructor(theLower: number, theUpper: number);
|
|
3623
3810
|
Init(theInteger: number): void;
|
|
3624
3811
|
Size(): number;
|
|
3625
3812
|
Length(): number;
|
|
@@ -3637,11 +3824,9 @@ export declare class MdGeArray1OfInteger extends MdGeObject {
|
|
|
3637
3824
|
/**
|
|
3638
3825
|
* 表示一维点数组。
|
|
3639
3826
|
*/
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
export declare class MdGeArray1OfPnt extends MdGeObject {
|
|
3644
|
-
constructor(p1?: number | object, p2?: number);
|
|
3827
|
+
export declare class MdGeArray1OfPnt {
|
|
3828
|
+
constructor();
|
|
3829
|
+
constructor(theLower: number, theUpper: number);
|
|
3645
3830
|
Init(thePnt: MdGePoint): void;
|
|
3646
3831
|
Size(): number;
|
|
3647
3832
|
Length(): number;
|
|
@@ -3659,11 +3844,9 @@ export declare class MdGeArray1OfPnt extends MdGeObject {
|
|
|
3659
3844
|
/**
|
|
3660
3845
|
* 表示一维实数数组。
|
|
3661
3846
|
*/
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
export declare class MdGeArray1OfReal extends MdGeObject {
|
|
3666
|
-
constructor(p1?: number | object, p2?: number);
|
|
3847
|
+
export declare class MdGeArray1OfReal {
|
|
3848
|
+
constructor();
|
|
3849
|
+
constructor(theLower: number, theUpper: number);
|
|
3667
3850
|
Init(theReal: number): void;
|
|
3668
3851
|
Size(): number;
|
|
3669
3852
|
Length(): number;
|
|
@@ -3681,11 +3864,10 @@ export declare class MdGeArray1OfReal extends MdGeObject {
|
|
|
3681
3864
|
/**
|
|
3682
3865
|
* 表示二维点数组。
|
|
3683
3866
|
*/
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
constructor(p1?: number | MdGePoint | object, p2?: number, p3?: number, p4?: number, p5?: number);
|
|
3867
|
+
export declare class MdGeArray2OfPnt {
|
|
3868
|
+
constructor();
|
|
3869
|
+
constructor(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
|
|
3870
|
+
constructor(theBegin: MdGePoint, theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
|
|
3689
3871
|
Init(thePoint: MdGePoint): void;
|
|
3690
3872
|
Size(): number;
|
|
3691
3873
|
Length(): number;
|
|
@@ -3705,11 +3887,10 @@ export declare class MdGeArray2OfPnt extends MdGeObject {
|
|
|
3705
3887
|
/**
|
|
3706
3888
|
* 表示二维实数数组。
|
|
3707
3889
|
*/
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
constructor(p1?: number | object, p2?: number, p3?: number, p4?: number, p5?: number);
|
|
3890
|
+
export declare class MdGeArray2OfReal {
|
|
3891
|
+
constructor();
|
|
3892
|
+
constructor(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
|
|
3893
|
+
constructor(theBegin: number, theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number);
|
|
3713
3894
|
Init(theReal: number): void;
|
|
3714
3895
|
Size(): number;
|
|
3715
3896
|
Length(): number;
|
|
@@ -3729,25 +3910,25 @@ export declare class MdGeArray2OfReal extends MdGeObject {
|
|
|
3729
3910
|
/**
|
|
3730
3911
|
* 表示贝塞尔曲线
|
|
3731
3912
|
*/
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
export declare class MdGeBezierCurve extends MdGeObject {
|
|
3736
|
-
constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal);
|
|
3913
|
+
export declare class MdGeBezierCurve {
|
|
3914
|
+
constructor(CurvePoles: MdGeArray1OfPnt);
|
|
3915
|
+
constructor(CurvePoles: MdGeArray1OfPnt, PoleWeights: MdGeArray1OfReal);
|
|
3737
3916
|
Increase(Degree: number): void;
|
|
3738
|
-
InsertPoleAfter(
|
|
3739
|
-
|
|
3917
|
+
InsertPoleAfter(Index: number, P: MdGePoint): void;
|
|
3918
|
+
InsertPoleAfter(Index: number, P: MdGePoint, Weight: number): void;
|
|
3919
|
+
InsertPoleBefore(Index: number, P: MdGePoint): void;
|
|
3920
|
+
InsertPoleBefore(Index: number, P: MdGePoint, Weight: number): void;
|
|
3740
3921
|
RemovePole(Index: number): void;
|
|
3741
3922
|
Reverse(): void;
|
|
3742
3923
|
ReversedParameter(U: number): number;
|
|
3743
3924
|
Segment(U1: number, U2: number): void;
|
|
3744
|
-
SetPole(
|
|
3925
|
+
SetPole(Index: number, P: MdGePoint): void;
|
|
3926
|
+
SetPole(Index: number, P: MdGePoint, Weight: number): void;
|
|
3745
3927
|
SetWeight(Index: number, Weight: number): void;
|
|
3746
3928
|
IsClosed(): boolean;
|
|
3747
3929
|
IsCN(N: number): boolean;
|
|
3748
3930
|
IsPeriodic(): boolean;
|
|
3749
3931
|
IsRational(): boolean;
|
|
3750
|
-
Continuity(): MdGe.MxGAShapeEnum;
|
|
3751
3932
|
Degree(): number;
|
|
3752
3933
|
DN(U: number, N: number): MdGeVec;
|
|
3753
3934
|
StartPoint(): MdGePoint;
|
|
@@ -3768,23 +3949,28 @@ export declare class MdGeBezierCurve extends MdGeObject {
|
|
|
3768
3949
|
/**
|
|
3769
3950
|
* 表示贝塞尔曲面
|
|
3770
3951
|
*/
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
export declare class MdGeBezierSurface extends MdGeObject {
|
|
3775
|
-
constructor(p1?: MdGeArray2OfPnt | object, p2?: MdGeArray2OfReal);
|
|
3952
|
+
export declare class MdGeBezierSurface {
|
|
3953
|
+
constructor(SurfacePoles: MdGeArray2OfPnt);
|
|
3954
|
+
constructor(SurfacePoles: MdGeArray2OfPnt, PoleWeights: MdGeArray2OfReal);
|
|
3776
3955
|
ExchangeUV(): void;
|
|
3777
3956
|
Increase(UDeg: number, VDeg: number): void;
|
|
3778
|
-
InsertPoleColAfter(
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3957
|
+
InsertPoleColAfter(VIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3958
|
+
InsertPoleColAfter(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3959
|
+
InsertPoleColBefore(VIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3960
|
+
InsertPoleColBefore(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3961
|
+
InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3962
|
+
InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3963
|
+
InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3964
|
+
InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3782
3965
|
RemovePoleCol(VIndex: number): void;
|
|
3783
3966
|
RemovePoleRow(UIndex: number): void;
|
|
3784
3967
|
Segment(U1: number, U2: number, V1: number, V2: number): void;
|
|
3785
|
-
SetPole(
|
|
3786
|
-
|
|
3787
|
-
|
|
3968
|
+
SetPole(UIndex: number, VIndex: number, P: MdGePoint): void;
|
|
3969
|
+
SetPole(UIndex: number, VIndex: number, P: MdGePoint, Weight: number): void;
|
|
3970
|
+
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3971
|
+
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3972
|
+
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3973
|
+
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3788
3974
|
SetWeight(UIndex: number, VIndex: number, Weight: number): void;
|
|
3789
3975
|
SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
3790
3976
|
SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
@@ -3792,7 +3978,6 @@ export declare class MdGeBezierSurface extends MdGeObject {
|
|
|
3792
3978
|
UReversedParameter(U: number): number;
|
|
3793
3979
|
VReverse(): void;
|
|
3794
3980
|
VReversedParameter(V: number): number;
|
|
3795
|
-
Continuity(): MdGe.MxGAShapeEnum;
|
|
3796
3981
|
DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
|
|
3797
3982
|
NbUPoles(): number;
|
|
3798
3983
|
NbVPoles(): number;
|
|
@@ -3818,12 +4003,11 @@ export declare class MdGeBezierSurface extends MdGeObject {
|
|
|
3818
4003
|
/**
|
|
3819
4004
|
* 表示倒斜角
|
|
3820
4005
|
*/
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
Add(p1: MdGeEdge | number, p2?: MdGeEdge | number, p3?: MdGeEdge, p4?: MdGeFace): void;
|
|
4006
|
+
export declare class MdGeChamfer {
|
|
4007
|
+
constructor(S: MdGeShape);
|
|
4008
|
+
Add(E: MdGeEdge): void;
|
|
4009
|
+
Add(Dis: number, E: MdGeEdge): void;
|
|
4010
|
+
Add(Dis1: number, Dis2: number, E: MdGeEdge, F: MdGeFace): void;
|
|
3827
4011
|
SetDist(Dis: number, IC: number, F: MdGeFace): void;
|
|
3828
4012
|
GetDist(IC: number, Dis: number): void;
|
|
3829
4013
|
SetDists(Dis1: number, Dis2: number, IC: number, F: MdGeFace): void;
|
|
@@ -3831,7 +4015,6 @@ export declare class MdGeChamfer extends MdGeObject {
|
|
|
3831
4015
|
AddDA(Dis: number, Angle: number, E: MdGeEdge, F: MdGeFace): void;
|
|
3832
4016
|
SetDistAngle(Dis: number, Angle: number, IC: number, F: MdGeFace): void;
|
|
3833
4017
|
GetDistAngle(IC: number, Dis: number, Angle: number): void;
|
|
3834
|
-
SetMode(theMode: MdGe.MxCFDSChamfMode): void;
|
|
3835
4018
|
IsSymetric(IC: number): boolean;
|
|
3836
4019
|
IsTwoDistances(IC: number): boolean;
|
|
3837
4020
|
IsDistanceAngle(IC: number): boolean;
|
|
@@ -3856,11 +4039,9 @@ export declare class MdGeChamfer extends MdGeObject {
|
|
|
3856
4039
|
/**
|
|
3857
4040
|
* 表示一个圆
|
|
3858
4041
|
*/
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
export declare class MdGeCircle extends MdGeObject {
|
|
3863
|
-
constructor(p1?: MdGeCSYSR | object, p2?: number);
|
|
4042
|
+
export declare class MdGeCircle {
|
|
4043
|
+
constructor();
|
|
4044
|
+
constructor(theA2: MdGeCSYSR, theRadius: number);
|
|
3864
4045
|
SetAxis(theA1: MdGeAxis): void;
|
|
3865
4046
|
SetLocation(theP: MdGePoint): void;
|
|
3866
4047
|
SetPosition(theA2: MdGeCSYSR): void;
|
|
@@ -3893,23 +4074,24 @@ export declare class MdGeCircle extends MdGeObject {
|
|
|
3893
4074
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
3894
4075
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCircle;
|
|
3895
4076
|
Shape(): MdGeShape;
|
|
3896
|
-
Edge(
|
|
4077
|
+
Edge(): MdGeEdge;
|
|
4078
|
+
Edge(p1: number, p2: number): MdGeEdge;
|
|
3897
4079
|
Wire(): MdGeWire;
|
|
3898
4080
|
}
|
|
3899
4081
|
/**
|
|
3900
4082
|
* 表示一个坐标系(左手或右手)
|
|
3901
4083
|
*/
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
|
|
4084
|
+
export declare class MdGeCSYS {
|
|
4085
|
+
constructor();
|
|
4086
|
+
constructor(origin: MdGePoint, z_aixs: MdGeDir, x_vec: MdGeDir);
|
|
4087
|
+
constructor(origin: MdGePoint, z_aixs: MdGeDir);
|
|
3907
4088
|
XReverse(): void;
|
|
3908
4089
|
YReverse(): void;
|
|
3909
4090
|
ZReverse(): void;
|
|
3910
4091
|
SetZAxis(z_axis: MdGeAxis): void;
|
|
3911
4092
|
SetZDirection(z_dir: MdGeDir): void;
|
|
3912
|
-
SetOrigin(
|
|
4093
|
+
SetOrigin(origin: MdGePoint): void;
|
|
4094
|
+
SetOrigin(theX: number, theY: number, theZ: number): void;
|
|
3913
4095
|
SetXDirection(x_dir: MdGeDir): void;
|
|
3914
4096
|
SetYDirection(y_dir: MdGeDir): void;
|
|
3915
4097
|
Angle(other: MdGeCSYS): number;
|
|
@@ -3942,11 +4124,9 @@ export declare class MdGeCSYS extends MdGeObject {
|
|
|
3942
4124
|
/**
|
|
3943
4125
|
* 表示一个圆锥
|
|
3944
4126
|
*/
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
export declare class MdGeCone extends MdGeObject {
|
|
3949
|
-
constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
|
|
4127
|
+
export declare class MdGeCone {
|
|
4128
|
+
constructor();
|
|
4129
|
+
constructor(theA3: MdGeCSYS, theAng: number, theRadius: number);
|
|
3950
4130
|
SetAxis(theA1: MdGeAxis): void;
|
|
3951
4131
|
SetLocation(theLoc: MdGePoint): void;
|
|
3952
4132
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -3980,16 +4160,16 @@ export declare class MdGeCone extends MdGeObject {
|
|
|
3980
4160
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
3981
4161
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCone;
|
|
3982
4162
|
Shape(H: number, Angle?: number): MdGeShape;
|
|
3983
|
-
Face(
|
|
4163
|
+
Face(): MdGeFace;
|
|
4164
|
+
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4165
|
+
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
3984
4166
|
}
|
|
3985
4167
|
/**
|
|
3986
4168
|
* 表示一个圆柱
|
|
3987
4169
|
*/
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
export declare class MdGeCylinder extends MdGeObject {
|
|
3992
|
-
constructor(p1?: MdGeCSYS | object, p2?: number);
|
|
4170
|
+
export declare class MdGeCylinder {
|
|
4171
|
+
constructor();
|
|
4172
|
+
constructor(theA3: MdGeCSYS, theRadius: number);
|
|
3993
4173
|
SetAxis(theA1: MdGeAxis): void;
|
|
3994
4174
|
SetLocation(theLoc: MdGePoint): void;
|
|
3995
4175
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4020,16 +4200,18 @@ export declare class MdGeCylinder extends MdGeObject {
|
|
|
4020
4200
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4021
4201
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCylinder;
|
|
4022
4202
|
Shape(H: number, Angle?: number): MdGeShape;
|
|
4023
|
-
Face(
|
|
4203
|
+
Face(): MdGeFace;
|
|
4204
|
+
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4205
|
+
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4024
4206
|
}
|
|
4025
4207
|
/**
|
|
4026
4208
|
* 表示一个平面
|
|
4027
4209
|
*/
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
constructor(
|
|
4210
|
+
export declare class MdGePlane {
|
|
4211
|
+
constructor();
|
|
4212
|
+
constructor(theA3: MdGeCSYS);
|
|
4213
|
+
constructor(theP: MdGePoint, theV: MdGeDir);
|
|
4214
|
+
constructor(theA: number, theB: number, theC: number, theD: number);
|
|
4033
4215
|
SetAxis(theA1: MdGeAxis): void;
|
|
4034
4216
|
SetLocation(theLoc: MdGePoint): void;
|
|
4035
4217
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4062,16 +4244,16 @@ export declare class MdGePlane extends MdGeObject {
|
|
|
4062
4244
|
TranslatedByVec(theV: MdGeVec): MdGePlane;
|
|
4063
4245
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4064
4246
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGePlane;
|
|
4065
|
-
Face(
|
|
4247
|
+
Face(): MdGeFace;
|
|
4248
|
+
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4249
|
+
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4066
4250
|
}
|
|
4067
4251
|
/**
|
|
4068
4252
|
* 表示直径标注
|
|
4069
4253
|
*/
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
export declare class MdGeDiameterDim extends MdGeObject {
|
|
4074
|
-
constructor(p1?: MdGeCircle | object, p2?: MdGePlane);
|
|
4254
|
+
export declare class MdGeDiameterDim {
|
|
4255
|
+
constructor(theCircle: MdGeCircle);
|
|
4256
|
+
constructor(theCircle: MdGeCircle, thePlane: MdGePlane);
|
|
4075
4257
|
Circle(): MdGeCircle;
|
|
4076
4258
|
AnchorPoint(): MdGePoint;
|
|
4077
4259
|
Shape(): MdGeShape;
|
|
@@ -4083,11 +4265,9 @@ export declare class MdGeDiameterDim extends MdGeObject {
|
|
|
4083
4265
|
/**
|
|
4084
4266
|
* 表示一个椭圆
|
|
4085
4267
|
*/
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
export declare class MdGeEllipse extends MdGeObject {
|
|
4090
|
-
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4268
|
+
export declare class MdGeEllipse {
|
|
4269
|
+
constructor();
|
|
4270
|
+
constructor(theA2: MdGeCSYSR, theMajorRadius: number, theMinorRadius: number);
|
|
4091
4271
|
SetAxis(theA1: MdGeAxis): void;
|
|
4092
4272
|
SetLocation(theP: MdGePoint): void;
|
|
4093
4273
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4120,99 +4300,100 @@ export declare class MdGeEllipse extends MdGeObject {
|
|
|
4120
4300
|
Scaled(theP: MdGePoint, theS: number): MdGeEllipse;
|
|
4121
4301
|
Transform(theT: MdGeTrsf): void;
|
|
4122
4302
|
Transformed(theT: MdGeTrsf): MdGeEllipse;
|
|
4303
|
+
Translate(theV: MdGeVec): void;
|
|
4304
|
+
Translated(theV: MdGeVec): MdGeEllipse;
|
|
4305
|
+
Translate(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4306
|
+
Translated(theP1: MdGePoint, theP2: MdGePoint): MdGeEllipse;
|
|
4123
4307
|
Shape(): MdGeShape;
|
|
4124
4308
|
Wire(): MdGeWire;
|
|
4125
|
-
Edge(
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
}
|
|
4309
|
+
Edge(): MdGeEdge;
|
|
4310
|
+
Edge(p1: number, p2: number): MdGeEdge;
|
|
4311
|
+
}
|
|
4312
|
+
export declare enum MxShapeEnum {
|
|
4313
|
+
Enum_COMPOUND,
|
|
4314
|
+
Enum_COMPSOLID,
|
|
4315
|
+
Enum_SOLID,
|
|
4316
|
+
Enum_SHELL,
|
|
4317
|
+
Enum_FACE,
|
|
4318
|
+
Enum_WIRE,
|
|
4319
|
+
Enum_EDGE,
|
|
4320
|
+
Enum_VERTEX,
|
|
4321
|
+
Enum_SHAPE
|
|
4322
|
+
}
|
|
4323
|
+
export declare enum MxHorizontalTextAlignment {
|
|
4324
|
+
HTA_LEFT,
|
|
4325
|
+
HTA_CENTER,
|
|
4326
|
+
HTA_RIGHT
|
|
4327
|
+
}
|
|
4328
|
+
export declare enum MxVerticalTextAlignment {
|
|
4329
|
+
CVTA_BOTTOM,
|
|
4330
|
+
CVTA_CENTER,
|
|
4331
|
+
CVTA_TOP,
|
|
4332
|
+
CVTA_TOPFIRSTLINE
|
|
4333
|
+
}
|
|
4334
|
+
export declare enum MxFontAspect {
|
|
4335
|
+
FA_UNDEFINED = -1,
|
|
4336
|
+
FA_Regular = 0,
|
|
4337
|
+
FA_Bold,
|
|
4338
|
+
FA_Italic,
|
|
4339
|
+
FA_BoldItalic
|
|
4340
|
+
}
|
|
4341
|
+
export declare enum MxTypeOfDisplayText {
|
|
4342
|
+
TODT_NORMAL,
|
|
4343
|
+
TODT_SUBTITLE,
|
|
4344
|
+
TODT_DEKALE,
|
|
4345
|
+
TODT_BLEND,
|
|
4346
|
+
TODT_DIMENSION,
|
|
4347
|
+
TODT_SHADOW
|
|
4348
|
+
}
|
|
4349
|
+
export declare enum MxCF3dFilletShapeEnum {
|
|
4350
|
+
Enum_Rational,
|
|
4351
|
+
Enum_QuasiAngular,
|
|
4352
|
+
Enum_Polynomial
|
|
4353
|
+
}
|
|
4354
|
+
export declare enum MxCFDSChamfMode {
|
|
4355
|
+
Enum_ClassicChamfer,
|
|
4356
|
+
Enum_ConstThroatChamfer,
|
|
4357
|
+
Enum_ConstThroatWithPenetrationChamfer
|
|
4358
|
+
}
|
|
4359
|
+
export declare enum MxGFTrihedron {
|
|
4360
|
+
GF_IsCorrectedFrenet,
|
|
4361
|
+
GF_IsFixed,
|
|
4362
|
+
GF_IsFrenet,
|
|
4363
|
+
GF_IsConstantNormal,
|
|
4364
|
+
GF_IsDarboux,
|
|
4365
|
+
GF_IsGuideAC,
|
|
4366
|
+
GF_IsGuidePlan,
|
|
4367
|
+
GF_IsGuideACWithContact,
|
|
4368
|
+
GF_IsGuidePlanWithContact,
|
|
4369
|
+
GF_IsDiscreteTrihedron
|
|
4370
|
+
}
|
|
4371
|
+
export declare enum MxGAShapeEnum {
|
|
4372
|
+
GA_C0,
|
|
4373
|
+
GA_G1,
|
|
4374
|
+
GA_C1,
|
|
4375
|
+
GA_G2,
|
|
4376
|
+
GA_C2,
|
|
4377
|
+
GA_C3,
|
|
4378
|
+
GA_CN
|
|
4379
|
+
}
|
|
4380
|
+
export declare enum MxOffsetModeEnum {
|
|
4381
|
+
Offset_Skin,
|
|
4382
|
+
Offset_Pipe,
|
|
4383
|
+
Offset_RectoVerso
|
|
4384
|
+
}
|
|
4385
|
+
export declare enum MxGAJoinTypeEnum {
|
|
4386
|
+
GA_Arc,
|
|
4387
|
+
GA_Tangent,
|
|
4388
|
+
GA_Intersection
|
|
4206
4389
|
}
|
|
4207
4390
|
/**
|
|
4208
4391
|
* 表示拓扑元素遍历
|
|
4209
4392
|
*/
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
constructor(p1?: MdGeShape | object, p2?: MdGe.MxShapeEnum, p3?: MdGe.MxShapeEnum);
|
|
4215
|
-
Init(S: MdGeShape, ToFind: MdGe.MxShapeEnum, ToAvoid?: MdGe.MxShapeEnum): void;
|
|
4393
|
+
export declare class MdGeExplorer {
|
|
4394
|
+
constructor();
|
|
4395
|
+
constructor(S: MdGeShape, ToFind: MxShapeEnum, ToAvoid?: MxShapeEnum);
|
|
4396
|
+
Init(S: MdGeShape, ToFind: MxShapeEnum, ToAvoid?: MxShapeEnum): void;
|
|
4216
4397
|
More(): boolean;
|
|
4217
4398
|
Next(): void;
|
|
4218
4399
|
Value(): MdGeShape;
|
|
@@ -4225,21 +4406,23 @@ export declare class MdGeExplorer extends MdGeObject {
|
|
|
4225
4406
|
/**
|
|
4226
4407
|
* 表示倒圆角
|
|
4227
4408
|
*/
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
*/
|
|
4231
|
-
export declare class MdGeFillet extends MdGeObject {
|
|
4232
|
-
constructor(p1?: MdGeShape | object, p2?: MdGe.MxCF3dFilletShapeEnum);
|
|
4409
|
+
export declare class MdGeFillet {
|
|
4410
|
+
constructor(S: MdGeShape, FShape: MxCF3dFilletShapeEnum);
|
|
4233
4411
|
SetParams(Tang: number, Tesp: number, T2d: number, TApp3d: number, TolApp2d: number, Fleche: number): void;
|
|
4234
|
-
Add(
|
|
4235
|
-
|
|
4412
|
+
Add(E: MdGeEdge): void;
|
|
4413
|
+
Add(Radius: number, E: MdGeEdge): void;
|
|
4414
|
+
Add(R1: number, R2: number, E: MdGeEdge): void;
|
|
4415
|
+
SetRadius(Radius: number, IC: number, IinC: number): void;
|
|
4416
|
+
SetRadius(R1: number, R2: number, IC: number, IinC: number): void;
|
|
4236
4417
|
ResetContour(IC: number): void;
|
|
4237
|
-
IsConstant(IC: number
|
|
4238
|
-
Radius(IC: number
|
|
4418
|
+
IsConstant(IC: number): boolean;
|
|
4419
|
+
Radius(IC: number): number;
|
|
4420
|
+
IsConstant(IC: number, E: MdGeEdge): boolean;
|
|
4421
|
+
Radius(IC: number, E: MdGeEdge): number;
|
|
4239
4422
|
SetRadiusForEdge(Radius: number, IC: number, E: MdGeEdge): void;
|
|
4240
4423
|
SetRadiusForVertex(Radius: number, IC: number, V: MdGeVertex): void;
|
|
4241
|
-
SetFilletShape(FShape:
|
|
4242
|
-
GetFilletShape():
|
|
4424
|
+
SetFilletShape(FShape: MxCF3dFilletShapeEnum): void;
|
|
4425
|
+
GetFilletShape(): MxCF3dFilletShapeEnum;
|
|
4243
4426
|
NbContours(): number;
|
|
4244
4427
|
Contour(E: MdGeEdge): number;
|
|
4245
4428
|
NbEdges(I: number): number;
|
|
@@ -4268,11 +4451,9 @@ export declare class MdGeFillet extends MdGeObject {
|
|
|
4268
4451
|
/**
|
|
4269
4452
|
* 表示双曲线
|
|
4270
4453
|
*/
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
export declare class MdGeHypr extends MdGeObject {
|
|
4275
|
-
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4454
|
+
export declare class MdGeHypr {
|
|
4455
|
+
constructor();
|
|
4456
|
+
constructor(theA2: MdGeCSYSR, theMajorRadius: number, theMinorRadius: number);
|
|
4276
4457
|
SetAxis(theA1: MdGeAxis): void;
|
|
4277
4458
|
SetLocation(theP: MdGePoint): void;
|
|
4278
4459
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4315,17 +4496,20 @@ export declare class MdGeHypr extends MdGeObject {
|
|
|
4315
4496
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeHypr;
|
|
4316
4497
|
Shape(): MdGeShape;
|
|
4317
4498
|
Wire(): MdGeWire;
|
|
4318
|
-
Edge(
|
|
4499
|
+
Edge(): MdGeEdge;
|
|
4500
|
+
Edge(p1: number, p2: number): MdGeEdge;
|
|
4319
4501
|
}
|
|
4320
4502
|
/**
|
|
4321
4503
|
* 表示一个Box
|
|
4322
4504
|
*/
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
constructor(
|
|
4328
|
-
Init(
|
|
4505
|
+
export declare class MdGeBox {
|
|
4506
|
+
constructor();
|
|
4507
|
+
constructor(dx: number, dy: number, dz: number);
|
|
4508
|
+
constructor(P1: MdGePoint, P2: MdGePoint);
|
|
4509
|
+
constructor(Axes: MdGeCSYSR, dx: number, dy: number, dz: number);
|
|
4510
|
+
Init(theDX: number, theDY: number, theDZ: number): void;
|
|
4511
|
+
Init(thePnt1: MdGePoint, thePnt2: MdGePoint): void;
|
|
4512
|
+
Init(theAxes: MdGeCSYSR, theDX: number, theDY: number, theDZ: number): void;
|
|
4329
4513
|
Shape(): MdGeShape;
|
|
4330
4514
|
Shell(): MdGeShell;
|
|
4331
4515
|
Solid(): MdGeSolid;
|
|
@@ -4339,32 +4523,34 @@ export declare class MdGeBox extends MdGeObject {
|
|
|
4339
4523
|
/**
|
|
4340
4524
|
* 表示B样条曲线
|
|
4341
4525
|
*/
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
export declare class MdGeBSplineCurve extends MdGeObject {
|
|
4346
|
-
constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal, p3?: MdGeArray1OfInteger, p4?: number, p5?: boolean);
|
|
4526
|
+
export declare class MdGeBSplineCurve {
|
|
4527
|
+
constructor();
|
|
4528
|
+
constructor(Poles: MdGeArray1OfPnt, Knots: MdGeArray1OfReal, Multiplicities: MdGeArray1OfInteger, Degree: number, Periodic?: boolean);
|
|
4347
4529
|
IncreaseDegree(Degree: number): void;
|
|
4348
|
-
IncreaseMultiplicity(
|
|
4530
|
+
IncreaseMultiplicity(Index: number, M: number): void;
|
|
4531
|
+
IncreaseMultiplicity(I1: number, I2: number, M: number): void;
|
|
4349
4532
|
IncrementMultiplicity(I1: number, I2: number, M: number): void;
|
|
4350
4533
|
InsertKnot(U: number, M?: number, ParametricTolerance?: number, Add?: boolean): void;
|
|
4351
4534
|
InsertKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
|
|
4352
4535
|
RemoveKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4353
4536
|
Reverse(): void;
|
|
4354
4537
|
ReversedParameter(U: number): number;
|
|
4355
|
-
SetKnot(Index: number, K: number
|
|
4538
|
+
SetKnot(Index: number, K: number): void;
|
|
4356
4539
|
SetKnots(K: MdGeArray1OfReal): void;
|
|
4540
|
+
SetKnot(Index: number, K: number, M: number): void;
|
|
4357
4541
|
SetPeriodic(): void;
|
|
4358
|
-
SetOrigin(
|
|
4542
|
+
SetOrigin(Index: number): void;
|
|
4543
|
+
SetOrigin(U: number, Tol: number): void;
|
|
4359
4544
|
SetNotPeriodic(): void;
|
|
4360
|
-
SetPole(Index: number, P: MdGePoint
|
|
4545
|
+
SetPole(Index: number, P: MdGePoint): void;
|
|
4546
|
+
SetPole(Index: number, P: MdGePoint, Weight: number): void;
|
|
4361
4547
|
SetWeight(Index: number, Weight: number): void;
|
|
4362
4548
|
IsCN(N: number): boolean;
|
|
4363
4549
|
IsG1(theTf: number, theTl: number, theAngTol: number): boolean;
|
|
4364
4550
|
IsClosed(): boolean;
|
|
4365
4551
|
IsPeriodic(): boolean;
|
|
4366
4552
|
IsRational(): boolean;
|
|
4367
|
-
Continuity():
|
|
4553
|
+
Continuity(): MxGAShapeEnum;
|
|
4368
4554
|
Degree(): number;
|
|
4369
4555
|
DN(U: number, N: number): MdGeVec;
|
|
4370
4556
|
LocalValue(U: number, FromK1: number, ToK2: number): MdGePoint;
|
|
@@ -4394,16 +4580,15 @@ export declare class MdGeBSplineCurve extends MdGeObject {
|
|
|
4394
4580
|
/**
|
|
4395
4581
|
* 表示B样条曲面
|
|
4396
4582
|
*/
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
export declare class MdGeBSplineSurface extends MdGeObject {
|
|
4401
|
-
constructor(p1?: MdGeArray2OfPnt | object, p2?: MdGeArray1OfReal, p3?: MdGeArray1OfReal, p4?: MdGeArray1OfInteger, p5?: MdGeArray1OfInteger, p6?: number, p7?: number, p8?: boolean, p9?: boolean);
|
|
4583
|
+
export declare class MdGeBSplineSurface {
|
|
4584
|
+
constructor();
|
|
4585
|
+
constructor(Poles: MdGeArray2OfPnt, UKnots: MdGeArray1OfReal, VKnots: MdGeArray1OfReal, UMults: MdGeArray1OfInteger, VMults: MdGeArray1OfInteger, UDegree: number, VDegree: number, UPeriodic?: boolean, VPeriodic?: boolean);
|
|
4402
4586
|
ExchangeUV(): void;
|
|
4403
4587
|
SetUPeriodic(): void;
|
|
4404
4588
|
SetVPeriodic(): void;
|
|
4405
4589
|
SetUOrigin(Index: number): void;
|
|
4406
4590
|
SetVOrigin(Index: number): void;
|
|
4591
|
+
SetUNotPeriodic(): void;
|
|
4407
4592
|
SetVNotPeriodic(): void;
|
|
4408
4593
|
UReverse(): void;
|
|
4409
4594
|
VReverse(): void;
|
|
@@ -4414,19 +4599,26 @@ export declare class MdGeBSplineSurface extends MdGeObject {
|
|
|
4414
4599
|
InsertVKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
|
|
4415
4600
|
RemoveUKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4416
4601
|
RemoveVKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4417
|
-
IncreaseUMultiplicity(
|
|
4418
|
-
|
|
4602
|
+
IncreaseUMultiplicity(UIndex: number, M: number): void;
|
|
4603
|
+
IncreaseUMultiplicity(FromI1: number, ToI2: number, M: number): void;
|
|
4419
4604
|
IncrementUMultiplicity(FromI1: number, ToI2: number, Step: number): void;
|
|
4605
|
+
IncreaseVMultiplicity(VIndex: number, M: number): void;
|
|
4606
|
+
IncreaseVMultiplicity(FromI1: number, ToI2: number, M: number): void;
|
|
4420
4607
|
IncrementVMultiplicity(FromI1: number, ToI2: number, Step: number): void;
|
|
4421
4608
|
InsertUKnot(U: number, M: number, ParametricTolerance: number, Add?: boolean): void;
|
|
4422
4609
|
InsertVKnot(V: number, M: number, ParametricTolerance: number, Add?: boolean): void;
|
|
4423
|
-
SetUKnot(UIndex: number, K: number
|
|
4424
|
-
SetVKnot(VIndex: number, K: number, M?: number): void;
|
|
4610
|
+
SetUKnot(UIndex: number, K: number): void;
|
|
4425
4611
|
SetUKnots(UK: MdGeArray1OfReal): void;
|
|
4612
|
+
SetUKnot(UIndex: number, K: number, M: number): void;
|
|
4613
|
+
SetVKnot(VIndex: number, K: number): void;
|
|
4426
4614
|
SetVKnots(VK: MdGeArray1OfReal): void;
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4615
|
+
SetVKnot(VIndex: number, K: number, M: number): void;
|
|
4616
|
+
SetPole(UIndex: number, VIndex: number, P: MdGePoint): void;
|
|
4617
|
+
SetPole(UIndex: number, VIndex: number, P: MdGePoint, Weight: number): void;
|
|
4618
|
+
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
4619
|
+
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
4620
|
+
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
4621
|
+
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
4430
4622
|
SetWeight(UIndex: number, VIndex: number, Weight: number): void;
|
|
4431
4623
|
SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
4432
4624
|
SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
@@ -4438,7 +4630,7 @@ export declare class MdGeBSplineSurface extends MdGeObject {
|
|
|
4438
4630
|
IsURational(): boolean;
|
|
4439
4631
|
IsVPeriodic(): boolean;
|
|
4440
4632
|
IsVRational(): boolean;
|
|
4441
|
-
Continuity():
|
|
4633
|
+
Continuity(): MxGAShapeEnum;
|
|
4442
4634
|
FirstUKnotIndex(): number;
|
|
4443
4635
|
FirstVKnotIndex(): number;
|
|
4444
4636
|
LastUKnotIndex(): number;
|
|
@@ -4474,11 +4666,9 @@ export declare class MdGeBSplineSurface extends MdGeObject {
|
|
|
4474
4666
|
/**
|
|
4475
4667
|
* 表示插值B样条曲线
|
|
4476
4668
|
*/
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
export declare class MdGeInterpolateBSpl extends MdGeObject {
|
|
4481
|
-
constructor(p1?: MdGeArray1OfPnt | object, p2?: boolean | MdGeArray1OfReal, p3?: number | boolean, p4?: number);
|
|
4669
|
+
export declare class MdGeInterpolateBSpl {
|
|
4670
|
+
constructor(Points: MdGeArray1OfPnt, PeriodicFlag: boolean, Tolerance: number);
|
|
4671
|
+
constructor(Points: MdGeArray1OfPnt, Parameters: MdGeArray1OfReal, PeriodicFlag: boolean, Tolerance: number);
|
|
4482
4672
|
Load(InitialTangent: MdGeVec, FinalTangent: MdGeVec, Scale?: boolean): void;
|
|
4483
4673
|
Perform(): void;
|
|
4484
4674
|
Curve(): MdGeBSplineCurve;
|
|
@@ -4487,11 +4677,10 @@ export declare class MdGeInterpolateBSpl extends MdGeObject {
|
|
|
4487
4677
|
/**
|
|
4488
4678
|
* 表示长度标注
|
|
4489
4679
|
*/
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGePlane | MdGePoint, p3?: MdGePlane);
|
|
4680
|
+
export declare class MdGeLengthDim {
|
|
4681
|
+
constructor();
|
|
4682
|
+
constructor(theEdge: MdGeEdge, thePlane: MdGePlane);
|
|
4683
|
+
constructor(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, thePlane: MdGePlane);
|
|
4495
4684
|
FirstPoint(): MdGePoint;
|
|
4496
4685
|
SecondPoint(): MdGePoint;
|
|
4497
4686
|
FirstShape(): MdGeShape;
|
|
@@ -4506,11 +4695,9 @@ export declare class MdGeLengthDim extends MdGeObject {
|
|
|
4506
4695
|
/**
|
|
4507
4696
|
* 表示一条直线
|
|
4508
4697
|
*/
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
export declare class MdGeLine extends MdGeObject {
|
|
4513
|
-
constructor(p1?: MdGePoint | object, p2?: MdGeDir);
|
|
4698
|
+
export declare class MdGeLine {
|
|
4699
|
+
constructor();
|
|
4700
|
+
constructor(theP: MdGePoint, theV: MdGeDir);
|
|
4514
4701
|
Reverse(): void;
|
|
4515
4702
|
Reversed(): MdGeLine;
|
|
4516
4703
|
SetDirection(theV: MdGeDir): void;
|
|
@@ -4544,16 +4731,14 @@ export declare class MdGeLine extends MdGeObject {
|
|
|
4544
4731
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeLine;
|
|
4545
4732
|
Shape(): MdGeShape;
|
|
4546
4733
|
Wire(): MdGeWire;
|
|
4547
|
-
Edge(
|
|
4734
|
+
Edge(): MdGeEdge;
|
|
4735
|
+
Edge(p1: number, p2: number): MdGeEdge;
|
|
4548
4736
|
}
|
|
4549
4737
|
/**
|
|
4550
4738
|
* 表示形状链表迭代器
|
|
4551
4739
|
*/
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
*/
|
|
4555
|
-
export declare class MdGeListIteratorOfListOfShape extends MdGeObject {
|
|
4556
|
-
constructor(p?: object);
|
|
4740
|
+
export declare class MdGeListIteratorOfListOfShape {
|
|
4741
|
+
constructor();
|
|
4557
4742
|
More(): boolean;
|
|
4558
4743
|
Next(): void;
|
|
4559
4744
|
Value(): MdGeShape;
|
|
@@ -4562,17 +4747,15 @@ export declare class MdGeListIteratorOfListOfShape extends MdGeObject {
|
|
|
4562
4747
|
/**
|
|
4563
4748
|
* 表示形状链表
|
|
4564
4749
|
*/
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
*/
|
|
4568
|
-
export declare class MdGeListOfShape extends MdGeObject {
|
|
4569
|
-
constructor(p?: object);
|
|
4750
|
+
export declare class MdGeListOfShape {
|
|
4751
|
+
constructor();
|
|
4570
4752
|
begin(): MdGeListIteratorOfListOfShape;
|
|
4571
4753
|
end(): MdGeListIteratorOfListOfShape;
|
|
4572
4754
|
Size(): number;
|
|
4573
4755
|
First(): MdGeShape;
|
|
4574
4756
|
Last(): MdGeShape;
|
|
4575
|
-
AppendShape(theShape: MdGeShape
|
|
4757
|
+
AppendShape(theShape: MdGeShape): void;
|
|
4758
|
+
AppendShape(theShape: MdGeShape, theIter: MdGeListIteratorOfListOfShape): void;
|
|
4576
4759
|
AppendList(theOther: MdGeListOfShape): void;
|
|
4577
4760
|
PrependShape(theShape: MdGeShape): void;
|
|
4578
4761
|
PrependList(theOther: MdGeListOfShape): void;
|
|
@@ -4586,19 +4769,16 @@ export declare class MdGeListOfShape extends MdGeObject {
|
|
|
4586
4769
|
/**
|
|
4587
4770
|
* 表示放样
|
|
4588
4771
|
*/
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
*/
|
|
4592
|
-
export declare class MdGeLoft extends MdGeObject {
|
|
4593
|
-
constructor(p1?: boolean | object, p2?: boolean, p3?: number);
|
|
4772
|
+
export declare class MdGeLoft {
|
|
4773
|
+
constructor(isSolid?: boolean, ruled?: boolean, pres3d?: number);
|
|
4594
4774
|
Init(isSolid?: boolean, ruled?: boolean, pres3d?: number): void;
|
|
4595
4775
|
AddWire(wire: MdGeWire): void;
|
|
4596
4776
|
AddVertex(aVertex: MdGeVertex): void;
|
|
4597
4777
|
CheckCompatibility(check?: boolean): void;
|
|
4598
4778
|
SetSmoothing(UseSmoothing: boolean): void;
|
|
4599
|
-
SetContinuity(C:
|
|
4779
|
+
SetContinuity(C: MxGAShapeEnum): void;
|
|
4600
4780
|
SetMaxDegree(MaxDeg: number): void;
|
|
4601
|
-
Continuity():
|
|
4781
|
+
Continuity(): MxGAShapeEnum;
|
|
4602
4782
|
MaxDegree(): number;
|
|
4603
4783
|
UseSmoothing(): boolean;
|
|
4604
4784
|
FirstShape(): MdGeShape;
|
|
@@ -4611,23 +4791,18 @@ export declare class MdGeLoft extends MdGeObject {
|
|
|
4611
4791
|
/**
|
|
4612
4792
|
* 表示薄实体
|
|
4613
4793
|
*/
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
*/
|
|
4617
|
-
export declare class MdGeMakeThickSolid extends MdGeObject {
|
|
4618
|
-
constructor(p?: object);
|
|
4794
|
+
export declare class MdGeMakeThickSolid {
|
|
4795
|
+
constructor();
|
|
4619
4796
|
MakeThickSolidBySimple(theS: MdGeShape, theOffsetValue: number): void;
|
|
4620
|
-
MakeThickSolidByJoin(S: MdGeShape, ClosingFaces: MdGeListOfShape, Offset: number, Tol: number, Mode?:
|
|
4797
|
+
MakeThickSolidByJoin(S: MdGeShape, ClosingFaces: MdGeListOfShape, Offset: number, Tol: number, Mode?: MxOffsetModeEnum, Intersection?: boolean, SelfInter?: boolean, Join?: MxGAJoinTypeEnum, RemoveIntEdges?: boolean): void;
|
|
4621
4798
|
Shape(): MdGeShape;
|
|
4622
4799
|
}
|
|
4623
4800
|
/**
|
|
4624
4801
|
* 表示抛物线
|
|
4625
4802
|
*/
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
export declare class MdGeParab extends MdGeObject {
|
|
4630
|
-
constructor(p1?: MdGeCSYSR | object, p2?: number);
|
|
4803
|
+
export declare class MdGeParab {
|
|
4804
|
+
constructor();
|
|
4805
|
+
constructor(theA2: MdGeCSYSR, theFocal: number);
|
|
4631
4806
|
SetAxis(theA1: MdGeAxis): void;
|
|
4632
4807
|
SetFocal(theFocal: number): void;
|
|
4633
4808
|
SetLocation(theP: MdGePoint): void;
|
|
@@ -4659,16 +4834,15 @@ export declare class MdGeParab extends MdGeObject {
|
|
|
4659
4834
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeParab;
|
|
4660
4835
|
Shape(): MdGeShape;
|
|
4661
4836
|
Wire(): MdGeWire;
|
|
4662
|
-
Edge(
|
|
4837
|
+
Edge(): MdGeEdge;
|
|
4838
|
+
Edge(p1: number, p2: number): MdGeEdge;
|
|
4663
4839
|
}
|
|
4664
4840
|
/**
|
|
4665
4841
|
* 表示管道
|
|
4666
4842
|
*/
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
export declare class MdGePipe extends MdGeObject {
|
|
4671
|
-
constructor(p1?: MdGeWire | object, p2?: MdGeShape, p3?: MdGe.MxGFTrihedron, p4?: boolean);
|
|
4843
|
+
export declare class MdGePipe {
|
|
4844
|
+
constructor(Spine: MdGeWire, Profile: MdGeShape);
|
|
4845
|
+
constructor(Spine: MdGeWire, Profile: MdGeShape, aMode: MxGFTrihedron, ForceApproxC1?: boolean);
|
|
4672
4846
|
FirstShape(): MdGeShape;
|
|
4673
4847
|
LastShape(): MdGeShape;
|
|
4674
4848
|
Generated(SSpine: MdGeShape, SProfile: MdGeShape): MdGeShape;
|
|
@@ -4678,53 +4852,48 @@ export declare class MdGePipe extends MdGeObject {
|
|
|
4678
4852
|
/**
|
|
4679
4853
|
* 表示拟合点B样条曲线
|
|
4680
4854
|
*/
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
constructor(p1?: MdGeArray1OfPnt | object, p2?: number, p3?: number, p4?: MdGe.MxGAShapeEnum, p5?: number);
|
|
4686
|
-
Init(Points: MdGeArray1OfPnt, Parameters: MdGeArray1OfReal, DegMin?: number, DegMax?: number, Continuity?: MdGe.MxGAShapeEnum, Tol3D?: number): void;
|
|
4855
|
+
export declare class MdGePointsToBSpl {
|
|
4856
|
+
constructor();
|
|
4857
|
+
constructor(Points: MdGeArray1OfPnt, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number);
|
|
4858
|
+
Init(Points: MdGeArray1OfPnt, Parameters: MdGeArray1OfReal, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number): void;
|
|
4687
4859
|
Curve(): MdGeBSplineCurve;
|
|
4688
4860
|
IsDone(): boolean;
|
|
4689
4861
|
}
|
|
4690
4862
|
/**
|
|
4691
4863
|
* 表示拟合B样条曲面
|
|
4692
4864
|
*/
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
Interpolate(p1: MdGeArray2OfPnt | MdGeArray2OfReal, p2?: boolean | number, p3?: number, p4?: number, p5?: number): void;
|
|
4865
|
+
export declare class MdGePointsToBSplSurface {
|
|
4866
|
+
constructor();
|
|
4867
|
+
constructor(Points: MdGeArray2OfPnt, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number);
|
|
4868
|
+
Init(Points: MdGeArray2OfPnt, DegMin?: number, DegMax?: number, Continuity?: MxGAShapeEnum, Tol3D?: number): void;
|
|
4869
|
+
Interpolate(Points: MdGeArray2OfPnt, thePeriodic?: boolean): void;
|
|
4870
|
+
Interpolate(ZPoints: MdGeArray2OfReal, X0: number, dX: number, Y0: number, dY: number): void;
|
|
4700
4871
|
IsDone(): boolean;
|
|
4701
4872
|
Surface(): MdGeBSplineSurface;
|
|
4702
4873
|
}
|
|
4703
4874
|
/**
|
|
4704
4875
|
* 表示拉伸体
|
|
4705
4876
|
*/
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
constructor(p1?: MdGeShape | object, p2?: MdGeVec, p3?: boolean, p4?: boolean);
|
|
4711
|
-
FirstShape(theShape?: MdGeShape): MdGeShape;
|
|
4712
|
-
LastShape(theShape?: MdGeShape): MdGeShape;
|
|
4877
|
+
export declare class MdGePrism {
|
|
4878
|
+
constructor(S: MdGeShape, V: MdGeVec, Copy?: boolean, Canonize?: boolean);
|
|
4879
|
+
FirstShape(): MdGeShape;
|
|
4880
|
+
LastShape(): MdGeShape;
|
|
4713
4881
|
IsDeleted(S: MdGeShape): boolean;
|
|
4882
|
+
FirstShape(theShape: MdGeShape): MdGeShape;
|
|
4883
|
+
LastShape(theShape: MdGeShape): MdGeShape;
|
|
4714
4884
|
Shape(): MdGeShape;
|
|
4715
4885
|
}
|
|
4716
4886
|
/**
|
|
4717
4887
|
* 表示半径标注
|
|
4718
4888
|
*/
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
export declare class MdGeRadiusDim extends MdGeObject {
|
|
4723
|
-
constructor(p1?: MdGeCircle | object, p2?: MdGePoint);
|
|
4889
|
+
export declare class MdGeRadiusDim {
|
|
4890
|
+
constructor(theCircle: MdGeCircle);
|
|
4891
|
+
constructor(theCircle: MdGeCircle, theAnchorPoint: MdGePoint);
|
|
4724
4892
|
Circle(): MdGeCircle;
|
|
4725
4893
|
AnchorPoint(): MdGePoint;
|
|
4726
4894
|
Shape(): MdGeShape;
|
|
4727
|
-
SetMeasuredGeometry(theCircle: MdGeCircle
|
|
4895
|
+
SetMeasuredGeometry(theCircle: MdGeCircle): void;
|
|
4896
|
+
SetMeasuredGeometry(theCircle: MdGeCircle, theAnchorPoint: MdGePoint, theHasAnchor?: boolean): void;
|
|
4728
4897
|
SetTextPosition(theTextPos: MdGePoint): void;
|
|
4729
4898
|
GetTextPosition(): MdGePoint;
|
|
4730
4899
|
Display(): void;
|
|
@@ -4732,11 +4901,8 @@ export declare class MdGeRadiusDim extends MdGeObject {
|
|
|
4732
4901
|
/**
|
|
4733
4902
|
* 表示一个矩形
|
|
4734
4903
|
*/
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
*/
|
|
4738
|
-
export declare class MdGeRect extends MdGeObject {
|
|
4739
|
-
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4904
|
+
export declare class MdGeRect {
|
|
4905
|
+
constructor(thePosition: MdGeCSYSR, theX: number, theY: number);
|
|
4740
4906
|
Position(): MdGeCSYSR;
|
|
4741
4907
|
SetPosition(thePosition: MdGeCSYSR): void;
|
|
4742
4908
|
X(): number;
|
|
@@ -4755,25 +4921,23 @@ export declare class MdGeRect extends MdGeObject {
|
|
|
4755
4921
|
/**
|
|
4756
4922
|
* 表示旋转体
|
|
4757
4923
|
*/
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
constructor(p1?: MdGeShape | object, p2?: MdGeAxis, p3?: number, p4?: boolean);
|
|
4763
|
-
FirstShape(theShape?: MdGeShape): MdGeShape;
|
|
4764
|
-
LastShape(theShape?: MdGeShape): MdGeShape;
|
|
4924
|
+
export declare class MdGeRevol {
|
|
4925
|
+
constructor(S: MdGeShape, A: MdGeAxis, D?: number, Copy?: boolean);
|
|
4926
|
+
FirstShape(): MdGeShape;
|
|
4927
|
+
LastShape(): MdGeShape;
|
|
4765
4928
|
IsDeleted(S: MdGeShape): boolean;
|
|
4929
|
+
FirstShape(theShape: MdGeShape): MdGeShape;
|
|
4930
|
+
LastShape(theShape: MdGeShape): MdGeShape;
|
|
4766
4931
|
HasDegenerated(): boolean;
|
|
4767
4932
|
Shape(): MdGeShape;
|
|
4768
4933
|
}
|
|
4769
4934
|
/**
|
|
4770
4935
|
* 表示一个球体
|
|
4771
4936
|
*/
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
constructor(p1?: MdGeCSYS | number | object, p2?: number, p3?: number, p4?: number);
|
|
4937
|
+
export declare class MdGeSphere {
|
|
4938
|
+
constructor();
|
|
4939
|
+
constructor(theA3: MdGeCSYS, theRadius: number);
|
|
4940
|
+
constructor(theX: number, theY: number, theZ: number, theRadius: number);
|
|
4777
4941
|
SetLocation(theLoc: MdGePoint): void;
|
|
4778
4942
|
SetPosition(theA3: MdGeCSYS): void;
|
|
4779
4943
|
SetRadius(theR: number): void;
|
|
@@ -4803,17 +4967,20 @@ export declare class MdGeSphere extends MdGeObject {
|
|
|
4803
4967
|
TranslatedByVec(theV: MdGeVec): MdGeSphere;
|
|
4804
4968
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4805
4969
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeSphere;
|
|
4806
|
-
Face(
|
|
4807
|
-
|
|
4970
|
+
Face(): MdGeFace;
|
|
4971
|
+
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4972
|
+
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4973
|
+
Shape(): MdGeShape;
|
|
4974
|
+
Shape(angle: number): MdGeShape;
|
|
4975
|
+
Shape(angle1: number, angle2: number): MdGeShape;
|
|
4976
|
+
Shape(angle1: number, angle2: number, angle3: number): MdGeShape;
|
|
4808
4977
|
}
|
|
4809
4978
|
/**
|
|
4810
4979
|
* 表示文字
|
|
4811
4980
|
*/
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
export declare class MdGeText extends MdGeObject {
|
|
4816
|
-
constructor(p1?: string | object, p2?: number, p3?: MdGeCSYSR);
|
|
4981
|
+
export declare class MdGeText {
|
|
4982
|
+
constructor();
|
|
4983
|
+
constructor(text: string, height: number, orientation: MdGeCSYSR);
|
|
4817
4984
|
SetText(theText: string): void;
|
|
4818
4985
|
Position(): MdGePoint;
|
|
4819
4986
|
SetPosition(thePoint: MdGePoint): void;
|
|
@@ -4825,53 +4992,46 @@ export declare class MdGeText extends MdGeObject {
|
|
|
4825
4992
|
SetOwnAnchorPoint(theHasOwnAnchor: boolean): void;
|
|
4826
4993
|
Height(): number;
|
|
4827
4994
|
SetHeight(theHeight: number): void;
|
|
4828
|
-
HorizontalAlignment():
|
|
4829
|
-
SetHorizontalAlignment(theJustification:
|
|
4830
|
-
VerticalAlignment():
|
|
4831
|
-
SetVerticalAlignment(theJustification:
|
|
4995
|
+
HorizontalAlignment(): MxHorizontalTextAlignment;
|
|
4996
|
+
SetHorizontalAlignment(theJustification: MxHorizontalTextAlignment): void;
|
|
4997
|
+
VerticalAlignment(): MxVerticalTextAlignment;
|
|
4998
|
+
SetVerticalAlignment(theJustification: MxVerticalTextAlignment): void;
|
|
4832
4999
|
Shape(): MdGeShape;
|
|
4833
5000
|
}
|
|
4834
5001
|
/**
|
|
4835
5002
|
* 表示文字标签
|
|
4836
5003
|
*/
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
export declare class MdGeTextLabel extends MdGeObject {
|
|
4841
|
-
constructor(p1?: string | object, p2?: number, p3?: MdGePoint);
|
|
5004
|
+
export declare class MdGeTextLabel {
|
|
5005
|
+
constructor();
|
|
5006
|
+
constructor(text: string, height: number, position: MdGePoint);
|
|
4842
5007
|
SetColor(theR: number, theG: number, theB: number): void;
|
|
4843
5008
|
SetText(text: string): void;
|
|
4844
5009
|
SetPositon(position: MdGePoint): void;
|
|
4845
|
-
SetHJustification(theHJust:
|
|
4846
|
-
SetVJustification(theVJust:
|
|
5010
|
+
SetHJustification(theHJust: MxHorizontalTextAlignment): void;
|
|
5011
|
+
SetVJustification(theVJust: MxVerticalTextAlignment): void;
|
|
4847
5012
|
SetAngle(theAngle: number): void;
|
|
4848
5013
|
SetZoomable(theIsZoomable: boolean): void;
|
|
4849
5014
|
SetHeight(height: number): void;
|
|
4850
|
-
SetFontAspect(theFontAspect:
|
|
5015
|
+
SetFontAspect(theFontAspect: MxFontAspect): void;
|
|
4851
5016
|
SetFont(theFont: string): void;
|
|
4852
5017
|
SetOrientation3D(theOrientation: MdGeCSYSR): void;
|
|
4853
5018
|
UnsetOrientation3D(): void;
|
|
4854
5019
|
Position(): MdGePoint;
|
|
4855
|
-
FontAspect():
|
|
5020
|
+
FontAspect(): MxFontAspect;
|
|
4856
5021
|
Orientation3D(): MdGeCSYSR;
|
|
4857
5022
|
HasOrientation3D(): boolean;
|
|
4858
5023
|
SetFlipping(theIsFlipping: boolean): void;
|
|
4859
5024
|
HasFlipping(): boolean;
|
|
4860
5025
|
HasOwnAnchorPoint(): boolean;
|
|
4861
5026
|
SetOwnAnchorPoint(theOwnAnchorPoint: boolean): void;
|
|
4862
|
-
SetDisplayType(theDisplayType:
|
|
5027
|
+
SetDisplayType(theDisplayType: MxTypeOfDisplayText): void;
|
|
4863
5028
|
SetColorSubTitle(theR: number, theG: number, theB: number): void;
|
|
4864
5029
|
Display(): void;
|
|
4865
5030
|
}
|
|
4866
|
-
/**
|
|
4867
|
-
* 拓扑转换类
|
|
4868
|
-
*/
|
|
4869
5031
|
/**
|
|
4870
5032
|
* 拓扑转换类
|
|
4871
5033
|
*/
|
|
4872
5034
|
export declare class MdGeTopo {
|
|
4873
|
-
protected imp: any;
|
|
4874
|
-
constructor();
|
|
4875
5035
|
Vertex(S: MdGeShape): MdGeVertex;
|
|
4876
5036
|
Edge(S: MdGeShape): MdGeEdge;
|
|
4877
5037
|
Wire(S: MdGeShape): MdGeWire;
|
|
@@ -4880,17 +5040,13 @@ export declare class MdGeTopo {
|
|
|
4880
5040
|
Solid(S: MdGeShape): MdGeSolid;
|
|
4881
5041
|
CompSolid(S: MdGeShape): MdGeCompSolid;
|
|
4882
5042
|
Compound(S: MdGeShape): MdGeCompound;
|
|
4883
|
-
DestroyObject(pObj: object): void;
|
|
4884
|
-
SetRegisterFuncPtr(jsFunPtr: number): void;
|
|
4885
5043
|
}
|
|
4886
5044
|
/**
|
|
4887
5045
|
* 表示圆环
|
|
4888
5046
|
*/
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
export declare class MdGeTorus extends MdGeObject {
|
|
4893
|
-
constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
|
|
5047
|
+
export declare class MdGeTorus {
|
|
5048
|
+
constructor();
|
|
5049
|
+
constructor(theA3: MdGeCSYS, theMajorRadius: number, theMinorRadius: number);
|
|
4894
5050
|
SetAxis(theA1: MdGeAxis): void;
|
|
4895
5051
|
SetLocation(theLoc: MdGePoint): void;
|
|
4896
5052
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4924,17 +5080,20 @@ export declare class MdGeTorus extends MdGeObject {
|
|
|
4924
5080
|
TranslatedByVec(theV: MdGeVec): MdGeTorus;
|
|
4925
5081
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4926
5082
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeTorus;
|
|
4927
|
-
Face(
|
|
4928
|
-
|
|
5083
|
+
Face(): MdGeFace;
|
|
5084
|
+
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
5085
|
+
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
5086
|
+
Shape(): MdGeShape;
|
|
5087
|
+
Shape(angle: number): MdGeShape;
|
|
5088
|
+
Shape(angle1: number, angle2: number): MdGeShape;
|
|
5089
|
+
Shape(angle1: number, angle2: number, angle: number): MdGeShape;
|
|
4929
5090
|
}
|
|
4930
5091
|
/**
|
|
4931
5092
|
* 形状变换类
|
|
4932
5093
|
*/
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
export declare class MdGeTransform extends MdGeObject {
|
|
4937
|
-
constructor(p1?: MdGeTrsf | MdGeShape | object, p2?: MdGeTrsf, p3?: boolean, p4?: boolean);
|
|
5094
|
+
export declare class MdGeTransform {
|
|
5095
|
+
constructor(T: MdGeTrsf);
|
|
5096
|
+
constructor(theShape: MdGeShape, theTrsf: MdGeTrsf, theCopyGeom?: boolean, theCopyMesh?: boolean);
|
|
4938
5097
|
Perform(theShape: MdGeShape, theCopyGeom?: boolean, theCopyMesh?: boolean): void;
|
|
4939
5098
|
ModifiedShape(S: MdGeShape): MdGeShape;
|
|
4940
5099
|
Shape(): MdGeShape;
|
|
@@ -4942,62 +5101,15 @@ export declare class MdGeTransform extends MdGeObject {
|
|
|
4942
5101
|
/**
|
|
4943
5102
|
* 表示一个楔形
|
|
4944
5103
|
*/
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
constructor(
|
|
5104
|
+
export declare class MdGeWedge {
|
|
5105
|
+
constructor(dx: number, dy: number, dz: number, ltx: number);
|
|
5106
|
+
constructor(Axes: MdGeCSYSR, dx: number, dy: number, dz: number, ltx: number);
|
|
5107
|
+
constructor(dx: number, dy: number, dz: number, xmin: number, zmin: number, xmax: number, zmax: number);
|
|
5108
|
+
constructor(Axes: MdGeCSYSR, dx: number, dy: number, dz: number, xmin: number, zmin: number, xmax: number, zmax: number);
|
|
4950
5109
|
Shell(): MdGeShell;
|
|
4951
5110
|
Solid(): MdGeSolid;
|
|
4952
5111
|
Shape(): MdGeShape;
|
|
4953
5112
|
}
|
|
4954
|
-
/**
|
|
4955
|
-
* 表示几何曲面句柄
|
|
4956
|
-
*/
|
|
4957
|
-
/**
|
|
4958
|
-
* 表示几何曲面句柄
|
|
4959
|
-
*/
|
|
4960
|
-
export declare class MdGeHGeomSurface extends MdGeObject {
|
|
4961
|
-
constructor(p?: object);
|
|
4962
|
-
DynamicType(): string;
|
|
4963
|
-
}
|
|
4964
|
-
/**
|
|
4965
|
-
* 表示几何平面句柄
|
|
4966
|
-
*/
|
|
4967
|
-
/**
|
|
4968
|
-
* 表示几何平面句柄
|
|
4969
|
-
*/
|
|
4970
|
-
export declare class MdGeHGeomPlane extends MdGeObject {
|
|
4971
|
-
constructor(p?: object);
|
|
4972
|
-
DownCast(hGeomSurface: MdGeHGeomSurface): MdGeHGeomPlane;
|
|
4973
|
-
Axis(): MdGeAxis;
|
|
4974
|
-
Location(): MdGePoint;
|
|
4975
|
-
Position(): MdGeCSYS;
|
|
4976
|
-
}
|
|
4977
|
-
/**
|
|
4978
|
-
* 表示BRep工具
|
|
4979
|
-
*/
|
|
4980
|
-
/**
|
|
4981
|
-
* 表示Brep工具
|
|
4982
|
-
*/
|
|
4983
|
-
export declare class MdGeBRep {
|
|
4984
|
-
protected imp: any;
|
|
4985
|
-
constructor();
|
|
4986
|
-
IsClosed(p1: MdGeShape | MdGeEdge, p2?: MdGeFace): boolean | undefined;
|
|
4987
|
-
Surface(F: MdGeFace): MdGeHGeomSurface;
|
|
4988
|
-
Tolerance(F: MdGeFace): number;
|
|
4989
|
-
NaturalRestriction(F: MdGeFace): boolean;
|
|
4990
|
-
IsGeometric(F: MdGeFace): boolean;
|
|
4991
|
-
SameParameter(E: MdGeEdge): boolean;
|
|
4992
|
-
SameRange(E: MdGeEdge): boolean;
|
|
4993
|
-
Degenerated(E: MdGeEdge): boolean;
|
|
4994
|
-
HasContinuity(E: MdGeEdge, F1?: MdGeFace, F2?: MdGeFace): boolean | undefined;
|
|
4995
|
-
Continuity(E: MdGeEdge, F1: MdGeFace, F2: MdGeFace): MdGe.MxGAShapeEnum;
|
|
4996
|
-
MaxContinuity(theEdge: MdGeEdge): MdGe.MxGAShapeEnum;
|
|
4997
|
-
Pnt(V: MdGeVertex): MdGePoint;
|
|
4998
|
-
Parameter(V: MdGeVertex, E: MdGeEdge, F?: MdGeFace): number;
|
|
4999
|
-
MaxTolerance(theShape: MdGeShape, theSubShape: MdGe.MxShapeEnum): number;
|
|
5000
|
-
}
|
|
5001
5113
|
export declare function loadMxCADassembly3d(config: MxDraw3dConfig, call?: (mxDraw3d: MxDraw3d) => void): Promise<MxDraw3d>;
|
|
5002
5114
|
|
|
5003
5115
|
export {};
|