mxcad 1.0.82 → 1.0.83
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 +585 -659
- package/dist/mxcad.es.js +6050 -1924
- package/dist/mxcad.umd.js +46 -46
- package/dist/wasm/2d/mxdrawassembly_min.js +549 -545
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +553 -549
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -405,7 +405,7 @@ export declare class McObjectId {
|
|
|
405
405
|
* @param id 对象的唯一标识符。
|
|
406
406
|
* @param type 对象的类型。
|
|
407
407
|
*/
|
|
408
|
-
constructor(id
|
|
408
|
+
constructor(id?: number, type?: McObjectIdType);
|
|
409
409
|
/**
|
|
410
410
|
* id是否有效.
|
|
411
411
|
*/
|
|
@@ -616,6 +616,7 @@ export declare class MxCADResbuf extends McRxObject {
|
|
|
616
616
|
*/
|
|
617
617
|
export declare class MxCADUtilityClass {
|
|
618
618
|
private imp;
|
|
619
|
+
MxCADAssist: any;
|
|
619
620
|
constructor();
|
|
620
621
|
/**
|
|
621
622
|
* eraseEntity 方法用于删除指定的图形对象
|
|
@@ -908,6 +909,27 @@ export declare class MxCADUiPrString extends MxCADUiPrBase {
|
|
|
908
909
|
*/
|
|
909
910
|
go(): Promise<string | null>;
|
|
910
911
|
}
|
|
912
|
+
export declare class MxCADUiPrEntity extends MxCADUiPrBase {
|
|
913
|
+
private filter?;
|
|
914
|
+
private id;
|
|
915
|
+
constructor();
|
|
916
|
+
setFilter(filter: MxCADResbuf): void;
|
|
917
|
+
getFilter(): MxCADResbuf | undefined;
|
|
918
|
+
go(): Promise<McObjectId>;
|
|
919
|
+
/**
|
|
920
|
+
* 得以获取对象时的输入点
|
|
921
|
+
*/
|
|
922
|
+
pickPoint(): McGePoint3d;
|
|
923
|
+
/**
|
|
924
|
+
* 得以获取对象时的id
|
|
925
|
+
*/
|
|
926
|
+
value(): McObjectId;
|
|
927
|
+
/**
|
|
928
|
+
* 得以获取对象时的输入点的CAD图纸坐标.
|
|
929
|
+
* @returns 点对象 MdGePoint3d
|
|
930
|
+
*/
|
|
931
|
+
getCADPickPoint(): McGePoint3d;
|
|
932
|
+
}
|
|
911
933
|
/**
|
|
912
934
|
* 表示数据库实体。
|
|
913
935
|
*/
|
|
@@ -2980,6 +3002,8 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
2980
3002
|
* @param fileUrl 文件路径
|
|
2981
3003
|
* */
|
|
2982
3004
|
openFromUrl: (name: string, fileUrl: string) => void;
|
|
3005
|
+
/** 垃圾回收初始化 */
|
|
3006
|
+
InitGC(): void;
|
|
2983
3007
|
/** 设置多维数据集贴图背景 */
|
|
2984
3008
|
setCubemapBackground(url: string): void;
|
|
2985
3009
|
/** 完成初始化 */
|
|
@@ -3072,17 +3096,17 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3072
3096
|
MdGeDiameterDim: typeof MdGeDiameterDim;
|
|
3073
3097
|
/** 表示一个椭圆 */
|
|
3074
3098
|
MdGeEllipse: typeof MdGeEllipse;
|
|
3075
|
-
MxShapeEnum: typeof MxShapeEnum;
|
|
3076
|
-
MxHorizontalTextAlignment: typeof MxHorizontalTextAlignment;
|
|
3077
|
-
MxVerticalTextAlignment: typeof MxVerticalTextAlignment;
|
|
3078
|
-
MxFontAspect: typeof MxFontAspect;
|
|
3079
|
-
MxTypeOfDisplayText: typeof MxTypeOfDisplayText;
|
|
3080
|
-
MxCF3dFilletShapeEnum: typeof MxCF3dFilletShapeEnum;
|
|
3081
|
-
MxCFDSChamfMode: typeof MxCFDSChamfMode;
|
|
3082
|
-
MxGFTrihedron: typeof MxGFTrihedron;
|
|
3083
|
-
MxGAShapeEnum: typeof MxGAShapeEnum;
|
|
3084
|
-
MxOffsetModeEnum: typeof MxOffsetModeEnum;
|
|
3085
|
-
MxGAJoinTypeEnum: typeof MxGAJoinTypeEnum;
|
|
3099
|
+
MxShapeEnum: typeof MdGe.MxShapeEnum;
|
|
3100
|
+
MxHorizontalTextAlignment: typeof MdGe.MxHorizontalTextAlignment;
|
|
3101
|
+
MxVerticalTextAlignment: typeof MdGe.MxVerticalTextAlignment;
|
|
3102
|
+
MxFontAspect: typeof MdGe.MxFontAspect;
|
|
3103
|
+
MxTypeOfDisplayText: typeof MdGe.MxTypeOfDisplayText;
|
|
3104
|
+
MxCF3dFilletShapeEnum: typeof MdGe.MxCF3dFilletShapeEnum;
|
|
3105
|
+
MxCFDSChamfMode: typeof MdGe.MxCFDSChamfMode;
|
|
3106
|
+
MxGFTrihedron: typeof MdGe.MxGFTrihedron;
|
|
3107
|
+
MxGAShapeEnum: typeof MdGe.MxGAShapeEnum;
|
|
3108
|
+
MxOffsetModeEnum: typeof MdGe.MxOffsetModeEnum;
|
|
3109
|
+
MxGAJoinTypeEnum: typeof MdGe.MxGAJoinTypeEnum;
|
|
3086
3110
|
/** 表示拓扑元素遍历 */
|
|
3087
3111
|
MdGeExplorer: typeof MdGeExplorer;
|
|
3088
3112
|
/** 表示倒圆角 */
|
|
@@ -3133,54 +3157,115 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3133
3157
|
MdGeTextLabel: typeof MdGeTextLabel;
|
|
3134
3158
|
/** 拓扑转换类 */
|
|
3135
3159
|
MdGeTopo: typeof MdGeTopo;
|
|
3160
|
+
mdGeTopo: MdGeTopo;
|
|
3136
3161
|
/** 表示圆环 */
|
|
3137
3162
|
MdGeTorus: typeof MdGeTorus;
|
|
3138
3163
|
/** 形状变换类 */
|
|
3139
3164
|
MdGeTransform: typeof MdGeTransform;
|
|
3140
3165
|
/** 表示一个楔形 */
|
|
3141
3166
|
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;
|
|
3142
3185
|
}
|
|
3143
3186
|
/**
|
|
3144
3187
|
* 表示一个形状。
|
|
3145
3188
|
*/
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
*/
|
|
3189
|
+
/**
|
|
3190
|
+
* 表示一个形状
|
|
3191
|
+
*/
|
|
3192
|
+
export declare class MdGeShape extends MdGeObject {
|
|
3193
|
+
constructor(p?: object);
|
|
3152
3194
|
Fuse(other: MdGeShape): MdGeShape;
|
|
3153
|
-
/**
|
|
3154
|
-
* 求裁剪后的形状。
|
|
3155
|
-
* @param remove 被裁剪掉的部分形状。
|
|
3156
|
-
* @returns 裁剪后的形状。
|
|
3157
|
-
*/
|
|
3158
3195
|
Cut(remove: MdGeShape): MdGeShape;
|
|
3159
|
-
/**
|
|
3160
|
-
* 求形状相交的部分。
|
|
3161
|
-
* @param other 另一个形状。
|
|
3162
|
-
* @returns 相交部分的形状。
|
|
3163
|
-
*/
|
|
3164
3196
|
Common(other: MdGeShape): MdGeShape;
|
|
3165
|
-
/**
|
|
3166
|
-
* 求相交部分的外轮廓。
|
|
3167
|
-
* @param other 另一个形状。
|
|
3168
|
-
* @returns 相交部分的外轮廓的形状。
|
|
3169
|
-
*/
|
|
3170
3197
|
Section(other: MdGeShape): MdGeShape;
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3198
|
+
Draw(): void;
|
|
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);
|
|
3175
3259
|
Draw(): void;
|
|
3176
3260
|
}
|
|
3177
3261
|
/**
|
|
3178
3262
|
* 表示一个矩阵。
|
|
3179
3263
|
*/
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3264
|
+
/**
|
|
3265
|
+
* 表示一个矩阵
|
|
3266
|
+
*/
|
|
3267
|
+
export declare class MdGeMat extends MdGeObject {
|
|
3268
|
+
constructor(p1?: MdGeXYZ | number | object, p2?: MdGeXYZ | number, p3?: MdGeXYZ | number, p4?: number, p5?: number, p6?: number, p7?: number, p8?: number, p9?: number);
|
|
3184
3269
|
SetCol(col: number, value: MdGeXYZ): void;
|
|
3185
3270
|
SetCols(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ): void;
|
|
3186
3271
|
SetCross(ref: MdGeXYZ): void;
|
|
@@ -3220,11 +3305,12 @@ export declare class MdGeMat {
|
|
|
3220
3305
|
/**
|
|
3221
3306
|
* 表示一个坐标。
|
|
3222
3307
|
*/
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3308
|
+
/**
|
|
3309
|
+
* 表示一个坐标
|
|
3310
|
+
*/
|
|
3311
|
+
export declare class MdGeXYZ extends MdGeObject {
|
|
3312
|
+
constructor(p1?: number | object, p2?: number, p3?: number);
|
|
3313
|
+
SetCoord(x: number, y: number, z?: number): void;
|
|
3228
3314
|
SetX(x: number): void;
|
|
3229
3315
|
SetY(y: number): void;
|
|
3230
3316
|
SetZ(z: number): void;
|
|
@@ -3260,18 +3346,15 @@ export declare class MdGeXYZ {
|
|
|
3260
3346
|
Reversed(): MdGeXYZ;
|
|
3261
3347
|
Subtract(other: MdGeXYZ): void;
|
|
3262
3348
|
Subtracted(other: MdGeXYZ): MdGeXYZ;
|
|
3263
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ, xyz4: MdGeXYZ): void;
|
|
3264
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ): void;
|
|
3265
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, xyz3: MdGeXYZ): void;
|
|
3266
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ): void;
|
|
3267
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
|
|
3268
|
-
SetLinearForm(xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
|
|
3269
3349
|
}
|
|
3270
3350
|
/**
|
|
3271
3351
|
* 表示一个变换。
|
|
3272
3352
|
*/
|
|
3273
|
-
|
|
3274
|
-
|
|
3353
|
+
/**
|
|
3354
|
+
* 表示一个变换
|
|
3355
|
+
*/
|
|
3356
|
+
export declare class MdGeTrsf extends MdGeObject {
|
|
3357
|
+
constructor(p?: object);
|
|
3275
3358
|
SetMirrorByPoint(point: MdGePoint): void;
|
|
3276
3359
|
SetMirrorByAxis(axis: MdGeAxis): void;
|
|
3277
3360
|
SetMirrorByCSYSR(csysr: MdGeCSYSR): void;
|
|
@@ -3297,12 +3380,12 @@ export declare class MdGeTrsf {
|
|
|
3297
3380
|
/**
|
|
3298
3381
|
* 表示一个方向。
|
|
3299
3382
|
*/
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
SetCoord(
|
|
3383
|
+
/**
|
|
3384
|
+
* 表示一个方向
|
|
3385
|
+
*/
|
|
3386
|
+
export declare class MdGeDir extends MdGeObject {
|
|
3387
|
+
constructor(p1?: MdGeVec | number | object, p2?: number, p3?: number);
|
|
3388
|
+
SetCoord(p1: number, p2: number, p3?: number): void;
|
|
3306
3389
|
SetX(theXv: number): void;
|
|
3307
3390
|
SetY(theYv: number): void;
|
|
3308
3391
|
SetZ(theZv: number): void;
|
|
@@ -3340,50 +3423,29 @@ export declare class MdGeDir {
|
|
|
3340
3423
|
/**
|
|
3341
3424
|
* 表示一个轴。
|
|
3342
3425
|
*/
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
constructor();
|
|
3348
|
-
/**
|
|
3349
|
-
* 构造函数。
|
|
3350
|
-
* @param loc 轴的位置点。
|
|
3351
|
-
* @param dir 轴的方向。
|
|
3352
|
-
*/
|
|
3353
|
-
constructor(loc: MdGePoint, dir: MdGeDir);
|
|
3354
|
-
/**
|
|
3355
|
-
* 获得轴的方向。
|
|
3356
|
-
* @returns 轴的方向。
|
|
3357
|
-
*/
|
|
3426
|
+
/**
|
|
3427
|
+
* 表示一个轴
|
|
3428
|
+
*/
|
|
3429
|
+
export declare class MdGeAxis extends MdGeObject {
|
|
3430
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir);
|
|
3358
3431
|
Direction(): MdGeDir;
|
|
3359
|
-
/**
|
|
3360
|
-
* 获得轴的位置点。
|
|
3361
|
-
* @returns 轴的位置点。
|
|
3362
|
-
*/
|
|
3363
3432
|
Location(): MdGePoint;
|
|
3364
|
-
/**
|
|
3365
|
-
* 设置轴的方向。
|
|
3366
|
-
* @param dir 要设置的方向。
|
|
3367
|
-
*/
|
|
3368
3433
|
SetDirection(dir: MdGeDir): void;
|
|
3369
|
-
/**
|
|
3370
|
-
* 设置轴的位置点。
|
|
3371
|
-
* @param loc 要设置的位置点。
|
|
3372
|
-
*/
|
|
3373
3434
|
SetLocation(loc: MdGePoint): void;
|
|
3374
3435
|
}
|
|
3375
3436
|
/**
|
|
3376
3437
|
* 表示右手坐标系。
|
|
3377
3438
|
*/
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3439
|
+
/**
|
|
3440
|
+
* 表示右手坐标系。
|
|
3441
|
+
*/
|
|
3442
|
+
export declare class MdGeCSYSR extends MdGeObject {
|
|
3443
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
|
|
3381
3444
|
Origin(): MdGePoint;
|
|
3382
3445
|
XDirection(): MdGeDir;
|
|
3383
3446
|
YDirection(): MdGeDir;
|
|
3384
3447
|
ZDirection(): MdGeDir;
|
|
3385
|
-
SetOrigin(
|
|
3386
|
-
SetOrigin(theX: number, theY: number, theZ: number): void;
|
|
3448
|
+
SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
|
|
3387
3449
|
SetXDirection(x_dir: MdGeDir): void;
|
|
3388
3450
|
SetYDirection(y_dir: MdGeDir): void;
|
|
3389
3451
|
SetZDirection(z_dir: MdGeDir): void;
|
|
@@ -3411,91 +3473,23 @@ export declare class MdGeCSYSR {
|
|
|
3411
3473
|
/**
|
|
3412
3474
|
* 表示一个点。
|
|
3413
3475
|
*/
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
constructor();
|
|
3419
|
-
/**
|
|
3420
|
-
* 构造函数。
|
|
3421
|
-
* @param x
|
|
3422
|
-
* @param y
|
|
3423
|
-
* @param z
|
|
3424
|
-
*/
|
|
3425
|
-
constructor(x: number, y: number, z: number);
|
|
3426
|
-
/**
|
|
3427
|
-
* 获取x坐标值。
|
|
3428
|
-
* @returns x坐标值。
|
|
3429
|
-
*/
|
|
3476
|
+
/**
|
|
3477
|
+
* 表示一个点。
|
|
3478
|
+
*/
|
|
3479
|
+
export declare class MdGePoint extends MdGeObject {
|
|
3480
|
+
constructor(p1?: number | object, p2?: number, p3?: number);
|
|
3430
3481
|
X(): number;
|
|
3431
|
-
/**
|
|
3432
|
-
* 获取y坐标值。
|
|
3433
|
-
* @returns y坐标值。
|
|
3434
|
-
*/
|
|
3435
3482
|
Y(): number;
|
|
3436
|
-
/**
|
|
3437
|
-
* 获取z坐标值。
|
|
3438
|
-
* @returns z坐标值。
|
|
3439
|
-
*/
|
|
3440
3483
|
Z(): number;
|
|
3441
|
-
/**
|
|
3442
|
-
* 设置x坐标。
|
|
3443
|
-
* @param x x 坐标。
|
|
3444
|
-
*/
|
|
3445
3484
|
SetX(x: number): void;
|
|
3446
|
-
/**
|
|
3447
|
-
* 设置y坐标。
|
|
3448
|
-
* @param y y 坐标。
|
|
3449
|
-
*/
|
|
3450
3485
|
SetY(y: number): void;
|
|
3451
|
-
/**
|
|
3452
|
-
* 设置z坐标。
|
|
3453
|
-
* @param z z 坐标。
|
|
3454
|
-
*/
|
|
3455
3486
|
SetZ(z: number): void;
|
|
3456
|
-
/**
|
|
3457
|
-
* 设置x y z坐标值。
|
|
3458
|
-
* @param x 要设置的x坐标值。
|
|
3459
|
-
* @param y 要设置的y坐标值。
|
|
3460
|
-
* @param z 要设置的z坐标值。
|
|
3461
|
-
*/
|
|
3462
3487
|
SetXYZ(x: number, y: number, z: number): void;
|
|
3463
|
-
/**
|
|
3464
|
-
* 获取质心。
|
|
3465
|
-
* @param alpha 参数alpha。
|
|
3466
|
-
* @param point 三维点。
|
|
3467
|
-
* @param beta 参数beta
|
|
3468
|
-
*/
|
|
3469
3488
|
BaryCenter(alpha: number, point: MdGePoint, beta: number): void;
|
|
3470
|
-
/**
|
|
3471
|
-
* 判断两个点是否相等。
|
|
3472
|
-
* @param other 另一个点。
|
|
3473
|
-
* @param linearTolerance 精度。
|
|
3474
|
-
* @returns 是否相等,相等为true,不相等为false。
|
|
3475
|
-
*/
|
|
3476
3489
|
IsEqual(other: MdGePoint, linearTolerance: number): boolean;
|
|
3477
|
-
/**
|
|
3478
|
-
* 获取到另一点的距离。
|
|
3479
|
-
* @param other 另一个点。
|
|
3480
|
-
* @returns 到指定点的距离。
|
|
3481
|
-
*/
|
|
3482
3490
|
Distance(other: MdGePoint): number;
|
|
3483
|
-
/**
|
|
3484
|
-
* 获取到另一点的距离的平方。
|
|
3485
|
-
* @param other 另一个点。
|
|
3486
|
-
* @returns 到指定点的距离的平方。
|
|
3487
|
-
*/
|
|
3488
3491
|
SquareDistance(other: MdGePoint): number;
|
|
3489
|
-
/**
|
|
3490
|
-
* 将点按某一点进行镜像变换。
|
|
3491
|
-
* @param point 镜像点。
|
|
3492
|
-
*/
|
|
3493
3492
|
MirrorByPoint(point: MdGePoint): void;
|
|
3494
|
-
/**
|
|
3495
|
-
* 将点按某一点进行镜像变换后的镜像点。
|
|
3496
|
-
* @param point 镜像点。
|
|
3497
|
-
* @returns 变换后的镜像点。
|
|
3498
|
-
*/
|
|
3499
3493
|
MirroredByPoint(point: MdGePoint): MdGePoint;
|
|
3500
3494
|
MirrorByAxis(axis: MdGeAxis): void;
|
|
3501
3495
|
MirroredByAxis(axis: MdGeAxis): MdGePoint;
|
|
@@ -3511,83 +3505,24 @@ export declare class MdGePoint {
|
|
|
3511
3505
|
TranslatedByVec(vec: MdGeVec): MdGePoint;
|
|
3512
3506
|
TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
|
|
3513
3507
|
TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGePoint;
|
|
3514
|
-
/**
|
|
3515
|
-
* 求点的形状。
|
|
3516
|
-
* @returns 点的形状。
|
|
3517
|
-
*/
|
|
3518
3508
|
Shape(): MdGeShape;
|
|
3519
3509
|
Vertex(): MdGeVertex;
|
|
3520
3510
|
}
|
|
3521
3511
|
/**
|
|
3522
3512
|
* 表示一个向量。
|
|
3523
3513
|
*/
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
constructor();
|
|
3529
|
-
|
|
3530
|
-
* 构造函数。
|
|
3531
|
-
* @param x x 坐标。
|
|
3532
|
-
* @param y y 坐标。
|
|
3533
|
-
* @param z z 坐标。
|
|
3534
|
-
*/
|
|
3535
|
-
constructor(x: number, y: number, z: number);
|
|
3536
|
-
/**
|
|
3537
|
-
* 构造函数。
|
|
3538
|
-
* @param theP1 第一个点。
|
|
3539
|
-
* @param theP2 第二个点。
|
|
3540
|
-
*/
|
|
3541
|
-
constructor(theP1: MdGePoint, theP2: MdGePoint);
|
|
3542
|
-
/**
|
|
3543
|
-
* 设置某个坐标值。
|
|
3544
|
-
* @param theIndex 要设置的坐标,取值1,2,3。
|
|
3545
|
-
* @param theXi 要设置的坐标值。
|
|
3546
|
-
*/
|
|
3547
|
-
SetCoord(theIndex: number, theXi: number): void;
|
|
3548
|
-
/**
|
|
3549
|
-
* 设置x y z坐标值。
|
|
3550
|
-
* @param theXv 要设置的x坐标值。
|
|
3551
|
-
* @param theYv 要设置的y坐标值。
|
|
3552
|
-
* @param theZv 要设置的z坐标值。
|
|
3553
|
-
*/
|
|
3554
|
-
SetCoord(theXv: number, theYv: number, theZv: number): void;
|
|
3555
|
-
/**
|
|
3556
|
-
* 获取x坐标值。
|
|
3557
|
-
* @returns x坐标值。
|
|
3558
|
-
*/
|
|
3514
|
+
/**
|
|
3515
|
+
* 表示一个向量。
|
|
3516
|
+
*/
|
|
3517
|
+
export declare class MdGeVec extends MdGeObject {
|
|
3518
|
+
constructor(p1?: MdGePoint | number | object, p2?: MdGePoint | number, p3?: number);
|
|
3519
|
+
SetCoord(p1: number, p2: number, p3?: number): void;
|
|
3559
3520
|
X(): number;
|
|
3560
|
-
/**
|
|
3561
|
-
* 获取y坐标值。
|
|
3562
|
-
* @returns y坐标值。
|
|
3563
|
-
*/
|
|
3564
3521
|
Y(): number;
|
|
3565
|
-
/**
|
|
3566
|
-
* 获取z坐标值。
|
|
3567
|
-
* @returns z坐标值。
|
|
3568
|
-
*/
|
|
3569
3522
|
Z(): number;
|
|
3570
|
-
/**
|
|
3571
|
-
* 设置x坐标。
|
|
3572
|
-
* @param x x 坐标。
|
|
3573
|
-
*/
|
|
3574
3523
|
SetX(x: number): void;
|
|
3575
|
-
/**
|
|
3576
|
-
* 设置y坐标。
|
|
3577
|
-
* @param y y 坐标。
|
|
3578
|
-
*/
|
|
3579
3524
|
SetY(y: number): void;
|
|
3580
|
-
/**
|
|
3581
|
-
* 设置z坐标。
|
|
3582
|
-
* @param z z 坐标。
|
|
3583
|
-
*/
|
|
3584
3525
|
SetZ(z: number): void;
|
|
3585
|
-
/**
|
|
3586
|
-
* 设置x y z坐标值。
|
|
3587
|
-
* @param x 要设置的x坐标值。
|
|
3588
|
-
* @param y 要设置的y坐标值。
|
|
3589
|
-
* @param z 要设置的z坐标值。
|
|
3590
|
-
*/
|
|
3591
3526
|
SetXYZ(x: number, y: number, z: number): void;
|
|
3592
3527
|
Coord(theIndex: number): number;
|
|
3593
3528
|
IsEqual(other: MdGeVec, linearTolerance: number, angularTolerance: number): boolean;
|
|
@@ -3618,12 +3553,7 @@ export declare class MdGeVec {
|
|
|
3618
3553
|
Normalized(): MdGeVec;
|
|
3619
3554
|
Reverse(): void;
|
|
3620
3555
|
Reversed(): MdGeVec;
|
|
3621
|
-
SetLinearForm(
|
|
3622
|
-
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, a3: number, v3: MdGeVec): void;
|
|
3623
|
-
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, v3: MdGeVec): void;
|
|
3624
|
-
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec): void;
|
|
3625
|
-
SetLinearForm(a1: number, v1: MdGeVec, v2: MdGeVec): void;
|
|
3626
|
-
SetLinearForm(v1: MdGeVec, v2: MdGeVec): void;
|
|
3556
|
+
SetLinearForm(p1: MdGeVec | number, p2: MdGeVec, p3?: MdGeVec | number, p4?: MdGeVec, p5?: MdGeVec | number, p6?: MdGeVec, p7?: MdGeVec): void;
|
|
3627
3557
|
MirrorByVec(vec: MdGeVec): void;
|
|
3628
3558
|
MirroredByVec(vec: MdGeVec): MdGeVec;
|
|
3629
3559
|
MirrorByAxis(axis: MdGeAxis): void;
|
|
@@ -3640,123 +3570,42 @@ export declare class MdGeVec {
|
|
|
3640
3570
|
/**
|
|
3641
3571
|
* 表示一个Wire形状。
|
|
3642
3572
|
*/
|
|
3643
|
-
export declare class MdGeWire extends MdGeShape {
|
|
3644
|
-
/**
|
|
3645
|
-
* 构造函数。
|
|
3646
|
-
*/
|
|
3647
|
-
constructor();
|
|
3648
|
-
/**
|
|
3649
|
-
* 添加Edge,形成Wire。
|
|
3650
|
-
* @param edge 要添加的Edge。
|
|
3651
|
-
* @returns 最终的Wire。
|
|
3652
|
-
*/
|
|
3653
|
-
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3654
|
-
/**
|
|
3655
|
-
* 添加Wire,形成Wire。
|
|
3656
|
-
* @param wire 要添加的Wire。
|
|
3657
|
-
* @returns 最终的Wire。
|
|
3658
|
-
*/
|
|
3659
|
-
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3660
|
-
/**
|
|
3661
|
-
* 绘制Wire。
|
|
3662
|
-
*/
|
|
3663
|
-
Draw(): void;
|
|
3664
|
-
}
|
|
3665
3573
|
/**
|
|
3666
3574
|
* 表示一个Edge形状。
|
|
3667
3575
|
*/
|
|
3668
|
-
export declare class MdGeEdge extends MdGeShape {
|
|
3669
|
-
/**
|
|
3670
|
-
* 构造函数。
|
|
3671
|
-
*/
|
|
3672
|
-
constructor();
|
|
3673
|
-
/**
|
|
3674
|
-
* 构造函数。
|
|
3675
|
-
* @param pt1 第一个点。
|
|
3676
|
-
* @param pt2 第二个点。
|
|
3677
|
-
*/
|
|
3678
|
-
constructor(pt1: MdGePoint, pt2: MdGePoint);
|
|
3679
|
-
/**
|
|
3680
|
-
* 获得MdGeWire类型的Edge。
|
|
3681
|
-
* @returns MdGeWire类型的Edge形状。
|
|
3682
|
-
*/
|
|
3683
|
-
Wire(): MdGeWire;
|
|
3684
|
-
/**
|
|
3685
|
-
* 添加Edge,形成Wire。
|
|
3686
|
-
* @param edge 要添加的Egde。
|
|
3687
|
-
* @returns 最终的Wire形状。
|
|
3688
|
-
*/
|
|
3689
|
-
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3690
|
-
/**
|
|
3691
|
-
* 添加Wire,形成Edge。
|
|
3692
|
-
* @param wire 要添加的Wire。
|
|
3693
|
-
* @returns 最终的Wire形状。
|
|
3694
|
-
*/
|
|
3695
|
-
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3696
|
-
/**
|
|
3697
|
-
* 绘制Edge。
|
|
3698
|
-
*/
|
|
3699
|
-
Draw(): void;
|
|
3700
|
-
}
|
|
3701
3576
|
/**
|
|
3702
3577
|
* 表示一个Vertex形状。
|
|
3703
3578
|
*/
|
|
3704
|
-
export declare class MdGeVertex extends MdGeShape {
|
|
3705
|
-
constructor();
|
|
3706
|
-
constructor(x: number, y: number, z: number);
|
|
3707
|
-
constructor(pt: MdGePoint);
|
|
3708
|
-
Draw(): void;
|
|
3709
|
-
}
|
|
3710
3579
|
/**
|
|
3711
3580
|
* 表示一个Face形状。
|
|
3712
3581
|
*/
|
|
3713
|
-
export declare class MdGeFace extends MdGeShape {
|
|
3714
|
-
constructor();
|
|
3715
|
-
Draw(): void;
|
|
3716
|
-
}
|
|
3717
3582
|
/**
|
|
3718
3583
|
* 表示一个Shell形状。
|
|
3719
3584
|
*/
|
|
3720
|
-
export declare class MdGeShell extends MdGeShape {
|
|
3721
|
-
constructor();
|
|
3722
|
-
Draw(): void;
|
|
3723
|
-
}
|
|
3724
3585
|
/**
|
|
3725
3586
|
* 表示一个Solid形状。
|
|
3726
3587
|
*/
|
|
3727
|
-
export declare class MdGeSolid extends MdGeShape {
|
|
3728
|
-
constructor();
|
|
3729
|
-
Draw(): void;
|
|
3730
|
-
}
|
|
3731
3588
|
/**
|
|
3732
3589
|
* 表示一个CompSolid形状。
|
|
3733
3590
|
*/
|
|
3734
|
-
export declare class MdGeCompSolid extends MdGeShape {
|
|
3735
|
-
constructor();
|
|
3736
|
-
Draw(): void;
|
|
3737
|
-
}
|
|
3738
3591
|
/**
|
|
3739
3592
|
* 表示一个Compound形状。
|
|
3740
3593
|
*/
|
|
3741
|
-
export declare class MdGeCompound extends MdGeShape {
|
|
3742
|
-
constructor();
|
|
3743
|
-
Draw(): void;
|
|
3744
|
-
}
|
|
3745
3594
|
/**
|
|
3746
3595
|
* 表示角度标注。
|
|
3747
3596
|
*/
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3597
|
+
/**
|
|
3598
|
+
* 表示角度标注
|
|
3599
|
+
*/
|
|
3600
|
+
export declare class MdGeAngleDim extends MdGeObject {
|
|
3601
|
+
constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint);
|
|
3751
3602
|
FirstPoint(): MdGePoint;
|
|
3752
3603
|
SecondPoint(): MdGePoint;
|
|
3753
3604
|
CenterPoint(): MdGePoint;
|
|
3754
3605
|
FirstShape(): MdGeShape;
|
|
3755
3606
|
SecondShape(): MdGeShape;
|
|
3756
3607
|
ThirdShape(): MdGeShape;
|
|
3757
|
-
SetMeasuredGeometry(
|
|
3758
|
-
SetMeasuredGeometry(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, theThridPoint: MdGePoint): void;
|
|
3759
|
-
SetMeasuredGeometry(theCone: MdGeFace): void;
|
|
3608
|
+
SetMeasuredGeometry(p1: MdGeFace | MdGeEdge | MdGePoint, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint): void;
|
|
3760
3609
|
SetTextPosition(theTextPos: MdGePoint): void;
|
|
3761
3610
|
GetTextPosition(): MdGePoint;
|
|
3762
3611
|
GetNormalForMinAngle(): MdGeDir;
|
|
@@ -3766,9 +3615,11 @@ export declare class MdGeAngleDim {
|
|
|
3766
3615
|
/**
|
|
3767
3616
|
* 表示一维整数数组。
|
|
3768
3617
|
*/
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3618
|
+
/**
|
|
3619
|
+
* 表示一维整数数组。
|
|
3620
|
+
*/
|
|
3621
|
+
export declare class MdGeArray1OfInteger extends MdGeObject {
|
|
3622
|
+
constructor(p1?: number | object, p2?: number);
|
|
3772
3623
|
Init(theInteger: number): void;
|
|
3773
3624
|
Size(): number;
|
|
3774
3625
|
Length(): number;
|
|
@@ -3786,9 +3637,11 @@ export declare class MdGeArray1OfInteger {
|
|
|
3786
3637
|
/**
|
|
3787
3638
|
* 表示一维点数组。
|
|
3788
3639
|
*/
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3640
|
+
/**
|
|
3641
|
+
* 表示一维点数组。
|
|
3642
|
+
*/
|
|
3643
|
+
export declare class MdGeArray1OfPnt extends MdGeObject {
|
|
3644
|
+
constructor(p1?: number | object, p2?: number);
|
|
3792
3645
|
Init(thePnt: MdGePoint): void;
|
|
3793
3646
|
Size(): number;
|
|
3794
3647
|
Length(): number;
|
|
@@ -3806,9 +3659,11 @@ export declare class MdGeArray1OfPnt {
|
|
|
3806
3659
|
/**
|
|
3807
3660
|
* 表示一维实数数组。
|
|
3808
3661
|
*/
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3662
|
+
/**
|
|
3663
|
+
* 表示一维实数数组。
|
|
3664
|
+
*/
|
|
3665
|
+
export declare class MdGeArray1OfReal extends MdGeObject {
|
|
3666
|
+
constructor(p1?: number | object, p2?: number);
|
|
3812
3667
|
Init(theReal: number): void;
|
|
3813
3668
|
Size(): number;
|
|
3814
3669
|
Length(): number;
|
|
@@ -3826,10 +3681,11 @@ export declare class MdGeArray1OfReal {
|
|
|
3826
3681
|
/**
|
|
3827
3682
|
* 表示二维点数组。
|
|
3828
3683
|
*/
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3684
|
+
/**
|
|
3685
|
+
* 表示二维点数组。
|
|
3686
|
+
*/
|
|
3687
|
+
export declare class MdGeArray2OfPnt extends MdGeObject {
|
|
3688
|
+
constructor(p1?: number | MdGePoint | object, p2?: number, p3?: number, p4?: number, p5?: number);
|
|
3833
3689
|
Init(thePoint: MdGePoint): void;
|
|
3834
3690
|
Size(): number;
|
|
3835
3691
|
Length(): number;
|
|
@@ -3849,10 +3705,11 @@ export declare class MdGeArray2OfPnt {
|
|
|
3849
3705
|
/**
|
|
3850
3706
|
* 表示二维实数数组。
|
|
3851
3707
|
*/
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3708
|
+
/**
|
|
3709
|
+
* 表示二维实数数组。
|
|
3710
|
+
*/
|
|
3711
|
+
export declare class MdGeArray2OfReal extends MdGeObject {
|
|
3712
|
+
constructor(p1?: number | object, p2?: number, p3?: number, p4?: number, p5?: number);
|
|
3856
3713
|
Init(theReal: number): void;
|
|
3857
3714
|
Size(): number;
|
|
3858
3715
|
Length(): number;
|
|
@@ -3872,25 +3729,25 @@ export declare class MdGeArray2OfReal {
|
|
|
3872
3729
|
/**
|
|
3873
3730
|
* 表示贝塞尔曲线
|
|
3874
3731
|
*/
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3732
|
+
/**
|
|
3733
|
+
* 表示贝塞尔曲线
|
|
3734
|
+
*/
|
|
3735
|
+
export declare class MdGeBezierCurve extends MdGeObject {
|
|
3736
|
+
constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal);
|
|
3878
3737
|
Increase(Degree: number): void;
|
|
3879
|
-
InsertPoleAfter(
|
|
3880
|
-
|
|
3881
|
-
InsertPoleBefore(Index: number, P: MdGePoint): void;
|
|
3882
|
-
InsertPoleBefore(Index: number, P: MdGePoint, Weight: number): void;
|
|
3738
|
+
InsertPoleAfter(p1: number, p2: MdGePoint, p3?: number): void;
|
|
3739
|
+
InsertPoleBefore(p1: number, p2: MdGePoint, p3?: number): void;
|
|
3883
3740
|
RemovePole(Index: number): void;
|
|
3884
3741
|
Reverse(): void;
|
|
3885
3742
|
ReversedParameter(U: number): number;
|
|
3886
3743
|
Segment(U1: number, U2: number): void;
|
|
3887
|
-
SetPole(
|
|
3888
|
-
SetPole(Index: number, P: MdGePoint, Weight: number): void;
|
|
3744
|
+
SetPole(p1: number, p2: MdGePoint, p3?: number): void;
|
|
3889
3745
|
SetWeight(Index: number, Weight: number): void;
|
|
3890
3746
|
IsClosed(): boolean;
|
|
3891
3747
|
IsCN(N: number): boolean;
|
|
3892
3748
|
IsPeriodic(): boolean;
|
|
3893
3749
|
IsRational(): boolean;
|
|
3750
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
3894
3751
|
Degree(): number;
|
|
3895
3752
|
DN(U: number, N: number): MdGeVec;
|
|
3896
3753
|
StartPoint(): MdGePoint;
|
|
@@ -3911,28 +3768,23 @@ export declare class MdGeBezierCurve {
|
|
|
3911
3768
|
/**
|
|
3912
3769
|
* 表示贝塞尔曲面
|
|
3913
3770
|
*/
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3771
|
+
/**
|
|
3772
|
+
* 表示贝塞尔曲面
|
|
3773
|
+
*/
|
|
3774
|
+
export declare class MdGeBezierSurface extends MdGeObject {
|
|
3775
|
+
constructor(p1?: MdGeArray2OfPnt | object, p2?: MdGeArray2OfReal);
|
|
3917
3776
|
ExchangeUV(): void;
|
|
3918
3777
|
Increase(UDeg: number, VDeg: number): void;
|
|
3919
|
-
InsertPoleColAfter(
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3924
|
-
InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3925
|
-
InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3926
|
-
InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3778
|
+
InsertPoleColAfter(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
|
|
3779
|
+
InsertPoleColBefore(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
|
|
3780
|
+
InsertPoleRowAfter(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
|
|
3781
|
+
InsertPoleRowBefore(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
|
|
3927
3782
|
RemovePoleCol(VIndex: number): void;
|
|
3928
3783
|
RemovePoleRow(UIndex: number): void;
|
|
3929
3784
|
Segment(U1: number, U2: number, V1: number, V2: number): void;
|
|
3930
|
-
SetPole(
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3934
|
-
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3935
|
-
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3785
|
+
SetPole(p1: number, p2: number, p3: MdGePoint, p4?: number): void;
|
|
3786
|
+
SetPoleCol(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
|
|
3787
|
+
SetPoleRow(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
|
|
3936
3788
|
SetWeight(UIndex: number, VIndex: number, Weight: number): void;
|
|
3937
3789
|
SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
3938
3790
|
SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
@@ -3940,6 +3792,7 @@ export declare class MdGeBezierSurface {
|
|
|
3940
3792
|
UReversedParameter(U: number): number;
|
|
3941
3793
|
VReverse(): void;
|
|
3942
3794
|
VReversedParameter(V: number): number;
|
|
3795
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
3943
3796
|
DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
|
|
3944
3797
|
NbUPoles(): number;
|
|
3945
3798
|
NbVPoles(): number;
|
|
@@ -3965,11 +3818,12 @@ export declare class MdGeBezierSurface {
|
|
|
3965
3818
|
/**
|
|
3966
3819
|
* 表示倒斜角
|
|
3967
3820
|
*/
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3821
|
+
/**
|
|
3822
|
+
* 表示倒斜角
|
|
3823
|
+
*/
|
|
3824
|
+
export declare class MdGeChamfer extends MdGeObject {
|
|
3825
|
+
constructor(p?: MdGeShape | object);
|
|
3826
|
+
Add(p1: MdGeEdge | number, p2?: MdGeEdge | number, p3?: MdGeEdge, p4?: MdGeFace): void;
|
|
3973
3827
|
SetDist(Dis: number, IC: number, F: MdGeFace): void;
|
|
3974
3828
|
GetDist(IC: number, Dis: number): void;
|
|
3975
3829
|
SetDists(Dis1: number, Dis2: number, IC: number, F: MdGeFace): void;
|
|
@@ -3977,6 +3831,7 @@ export declare class MdGeChamfer {
|
|
|
3977
3831
|
AddDA(Dis: number, Angle: number, E: MdGeEdge, F: MdGeFace): void;
|
|
3978
3832
|
SetDistAngle(Dis: number, Angle: number, IC: number, F: MdGeFace): void;
|
|
3979
3833
|
GetDistAngle(IC: number, Dis: number, Angle: number): void;
|
|
3834
|
+
SetMode(theMode: MdGe.MxCFDSChamfMode): void;
|
|
3980
3835
|
IsSymetric(IC: number): boolean;
|
|
3981
3836
|
IsTwoDistances(IC: number): boolean;
|
|
3982
3837
|
IsDistanceAngle(IC: number): boolean;
|
|
@@ -4001,9 +3856,11 @@ export declare class MdGeChamfer {
|
|
|
4001
3856
|
/**
|
|
4002
3857
|
* 表示一个圆
|
|
4003
3858
|
*/
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
3859
|
+
/**
|
|
3860
|
+
* 表示一个圆。
|
|
3861
|
+
*/
|
|
3862
|
+
export declare class MdGeCircle extends MdGeObject {
|
|
3863
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number);
|
|
4007
3864
|
SetAxis(theA1: MdGeAxis): void;
|
|
4008
3865
|
SetLocation(theP: MdGePoint): void;
|
|
4009
3866
|
SetPosition(theA2: MdGeCSYSR): void;
|
|
@@ -4036,24 +3893,23 @@ export declare class MdGeCircle {
|
|
|
4036
3893
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4037
3894
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCircle;
|
|
4038
3895
|
Shape(): MdGeShape;
|
|
4039
|
-
Edge(): MdGeEdge;
|
|
4040
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
3896
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4041
3897
|
Wire(): MdGeWire;
|
|
4042
3898
|
}
|
|
4043
3899
|
/**
|
|
4044
3900
|
* 表示一个坐标系(左手或右手)
|
|
4045
3901
|
*/
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
3902
|
+
/**
|
|
3903
|
+
* 表示一个坐标系(左手或右手)
|
|
3904
|
+
*/
|
|
3905
|
+
export declare class MdGeCSYS extends MdGeObject {
|
|
3906
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
|
|
4050
3907
|
XReverse(): void;
|
|
4051
3908
|
YReverse(): void;
|
|
4052
3909
|
ZReverse(): void;
|
|
4053
3910
|
SetZAxis(z_axis: MdGeAxis): void;
|
|
4054
3911
|
SetZDirection(z_dir: MdGeDir): void;
|
|
4055
|
-
SetOrigin(
|
|
4056
|
-
SetOrigin(theX: number, theY: number, theZ: number): void;
|
|
3912
|
+
SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
|
|
4057
3913
|
SetXDirection(x_dir: MdGeDir): void;
|
|
4058
3914
|
SetYDirection(y_dir: MdGeDir): void;
|
|
4059
3915
|
Angle(other: MdGeCSYS): number;
|
|
@@ -4086,9 +3942,11 @@ export declare class MdGeCSYS {
|
|
|
4086
3942
|
/**
|
|
4087
3943
|
* 表示一个圆锥
|
|
4088
3944
|
*/
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
3945
|
+
/**
|
|
3946
|
+
* 表示一个圆锥
|
|
3947
|
+
*/
|
|
3948
|
+
export declare class MdGeCone extends MdGeObject {
|
|
3949
|
+
constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
|
|
4092
3950
|
SetAxis(theA1: MdGeAxis): void;
|
|
4093
3951
|
SetLocation(theLoc: MdGePoint): void;
|
|
4094
3952
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4122,16 +3980,16 @@ export declare class MdGeCone {
|
|
|
4122
3980
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4123
3981
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCone;
|
|
4124
3982
|
Shape(H: number, Angle?: number): MdGeShape;
|
|
4125
|
-
Face(): MdGeFace;
|
|
4126
|
-
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4127
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
3983
|
+
Face(p1?: number | MdGeWire, p2?: number | boolean, p3?: number, p4?: number): MdGeFace;
|
|
4128
3984
|
}
|
|
4129
3985
|
/**
|
|
4130
3986
|
* 表示一个圆柱
|
|
4131
3987
|
*/
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
3988
|
+
/**
|
|
3989
|
+
* 表示一个圆柱。
|
|
3990
|
+
*/
|
|
3991
|
+
export declare class MdGeCylinder extends MdGeObject {
|
|
3992
|
+
constructor(p1?: MdGeCSYS | object, p2?: number);
|
|
4135
3993
|
SetAxis(theA1: MdGeAxis): void;
|
|
4136
3994
|
SetLocation(theLoc: MdGePoint): void;
|
|
4137
3995
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4162,18 +4020,16 @@ export declare class MdGeCylinder {
|
|
|
4162
4020
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4163
4021
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCylinder;
|
|
4164
4022
|
Shape(H: number, Angle?: number): MdGeShape;
|
|
4165
|
-
Face(): MdGeFace;
|
|
4166
|
-
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4167
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4023
|
+
Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
|
|
4168
4024
|
}
|
|
4169
4025
|
/**
|
|
4170
4026
|
* 表示一个平面
|
|
4171
4027
|
*/
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
constructor(
|
|
4028
|
+
/**
|
|
4029
|
+
* 表示一个平面
|
|
4030
|
+
*/
|
|
4031
|
+
export declare class MdGePlane extends MdGeObject {
|
|
4032
|
+
constructor(p1?: MdGeCSYS | MdGePoint | number | object, p2?: MdGeDir | number, p3?: number, p4?: number);
|
|
4177
4033
|
SetAxis(theA1: MdGeAxis): void;
|
|
4178
4034
|
SetLocation(theLoc: MdGePoint): void;
|
|
4179
4035
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4206,16 +4062,16 @@ export declare class MdGePlane {
|
|
|
4206
4062
|
TranslatedByVec(theV: MdGeVec): MdGePlane;
|
|
4207
4063
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4208
4064
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGePlane;
|
|
4209
|
-
Face(): MdGeFace;
|
|
4210
|
-
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4211
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4065
|
+
Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
|
|
4212
4066
|
}
|
|
4213
4067
|
/**
|
|
4214
4068
|
* 表示直径标注
|
|
4215
4069
|
*/
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4070
|
+
/**
|
|
4071
|
+
* 表示直径标注
|
|
4072
|
+
*/
|
|
4073
|
+
export declare class MdGeDiameterDim extends MdGeObject {
|
|
4074
|
+
constructor(p1?: MdGeCircle | object, p2?: MdGePlane);
|
|
4219
4075
|
Circle(): MdGeCircle;
|
|
4220
4076
|
AnchorPoint(): MdGePoint;
|
|
4221
4077
|
Shape(): MdGeShape;
|
|
@@ -4227,9 +4083,11 @@ export declare class MdGeDiameterDim {
|
|
|
4227
4083
|
/**
|
|
4228
4084
|
* 表示一个椭圆
|
|
4229
4085
|
*/
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4086
|
+
/**
|
|
4087
|
+
* 表示一个椭圆
|
|
4088
|
+
*/
|
|
4089
|
+
export declare class MdGeEllipse extends MdGeObject {
|
|
4090
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4233
4091
|
SetAxis(theA1: MdGeAxis): void;
|
|
4234
4092
|
SetLocation(theP: MdGePoint): void;
|
|
4235
4093
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4262,100 +4120,99 @@ export declare class MdGeEllipse {
|
|
|
4262
4120
|
Scaled(theP: MdGePoint, theS: number): MdGeEllipse;
|
|
4263
4121
|
Transform(theT: MdGeTrsf): void;
|
|
4264
4122
|
Transformed(theT: MdGeTrsf): MdGeEllipse;
|
|
4265
|
-
Translate(theV: MdGeVec): void;
|
|
4266
|
-
Translated(theV: MdGeVec): MdGeEllipse;
|
|
4267
|
-
Translate(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4268
|
-
Translated(theP1: MdGePoint, theP2: MdGePoint): MdGeEllipse;
|
|
4269
4123
|
Shape(): MdGeShape;
|
|
4270
4124
|
Wire(): MdGeWire;
|
|
4271
|
-
Edge(): MdGeEdge;
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
}
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
}
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
}
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
}
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
}
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
}
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
}
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
}
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4125
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4126
|
+
}
|
|
4127
|
+
export declare namespace MdGe {
|
|
4128
|
+
enum MxShapeEnum {
|
|
4129
|
+
Enum_COMPOUND = 0,
|
|
4130
|
+
Enum_COMPSOLID = 1,
|
|
4131
|
+
Enum_SOLID = 2,
|
|
4132
|
+
Enum_SHELL = 3,
|
|
4133
|
+
Enum_FACE = 4,
|
|
4134
|
+
Enum_WIRE = 5,
|
|
4135
|
+
Enum_EDGE = 6,
|
|
4136
|
+
Enum_VERTEX = 7,
|
|
4137
|
+
Enum_SHAPE = 8
|
|
4138
|
+
}
|
|
4139
|
+
enum MxHorizontalTextAlignment {
|
|
4140
|
+
HTA_LEFT = 0,
|
|
4141
|
+
HTA_CENTER = 1,
|
|
4142
|
+
HTA_RIGHT = 2
|
|
4143
|
+
}
|
|
4144
|
+
enum MxVerticalTextAlignment {
|
|
4145
|
+
CVTA_BOTTOM = 0,
|
|
4146
|
+
CVTA_CENTER = 1,
|
|
4147
|
+
CVTA_TOP = 2,
|
|
4148
|
+
CVTA_TOPFIRSTLINE = 3
|
|
4149
|
+
}
|
|
4150
|
+
enum MxFontAspect {
|
|
4151
|
+
FA_UNDEFINED = -1,
|
|
4152
|
+
FA_Regular = 0,
|
|
4153
|
+
FA_Bold = 1,
|
|
4154
|
+
FA_Italic = 2,
|
|
4155
|
+
FA_BoldItalic = 3
|
|
4156
|
+
}
|
|
4157
|
+
enum MxTypeOfDisplayText {
|
|
4158
|
+
TODT_NORMAL = 0,
|
|
4159
|
+
TODT_SUBTITLE = 1,
|
|
4160
|
+
TODT_DEKALE = 2,
|
|
4161
|
+
TODT_BLEND = 3,
|
|
4162
|
+
TODT_DIMENSION = 4,
|
|
4163
|
+
TODT_SHADOW = 5
|
|
4164
|
+
}
|
|
4165
|
+
enum MxCF3dFilletShapeEnum {
|
|
4166
|
+
Enum_Rational = 0,
|
|
4167
|
+
Enum_QuasiAngular = 1,
|
|
4168
|
+
Enum_Polynomial = 2
|
|
4169
|
+
}
|
|
4170
|
+
enum MxCFDSChamfMode {
|
|
4171
|
+
Enum_ClassicChamfer = 0,
|
|
4172
|
+
Enum_ConstThroatChamfer = 1,
|
|
4173
|
+
Enum_ConstThroatWithPenetrationChamfer = 2
|
|
4174
|
+
}
|
|
4175
|
+
enum MxGFTrihedron {
|
|
4176
|
+
GF_IsCorrectedFrenet = 0,
|
|
4177
|
+
GF_IsFixed = 1,
|
|
4178
|
+
GF_IsFrenet = 2,
|
|
4179
|
+
GF_IsConstantNormal = 3,
|
|
4180
|
+
GF_IsDarboux = 4,
|
|
4181
|
+
GF_IsGuideAC = 5,
|
|
4182
|
+
GF_IsGuidePlan = 6,
|
|
4183
|
+
GF_IsGuideACWithContact = 7,
|
|
4184
|
+
GF_IsGuidePlanWithContact = 8,
|
|
4185
|
+
GF_IsDiscreteTrihedron = 9
|
|
4186
|
+
}
|
|
4187
|
+
enum MxGAShapeEnum {
|
|
4188
|
+
GA_C0 = 0,
|
|
4189
|
+
GA_G1 = 1,
|
|
4190
|
+
GA_C1 = 2,
|
|
4191
|
+
GA_G2 = 3,
|
|
4192
|
+
GA_C2 = 4,
|
|
4193
|
+
GA_C3 = 5,
|
|
4194
|
+
GA_CN = 6
|
|
4195
|
+
}
|
|
4196
|
+
enum MxOffsetModeEnum {
|
|
4197
|
+
Offset_Skin = 0,
|
|
4198
|
+
Offset_Pipe = 1,
|
|
4199
|
+
Offset_RectoVerso = 2
|
|
4200
|
+
}
|
|
4201
|
+
enum MxGAJoinTypeEnum {
|
|
4202
|
+
GA_Arc = 0,
|
|
4203
|
+
GA_Tangent = 1,
|
|
4204
|
+
GA_Intersection = 2
|
|
4205
|
+
}
|
|
4351
4206
|
}
|
|
4352
4207
|
/**
|
|
4353
4208
|
* 表示拓扑元素遍历
|
|
4354
4209
|
*/
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4210
|
+
/**
|
|
4211
|
+
* 表示拓扑元素遍历
|
|
4212
|
+
*/
|
|
4213
|
+
export declare class MdGeExplorer extends MdGeObject {
|
|
4214
|
+
constructor(p1?: MdGeShape | object, p2?: MdGe.MxShapeEnum, p3?: MdGe.MxShapeEnum);
|
|
4215
|
+
Init(S: MdGeShape, ToFind: MdGe.MxShapeEnum, ToAvoid?: MdGe.MxShapeEnum): void;
|
|
4359
4216
|
More(): boolean;
|
|
4360
4217
|
Next(): void;
|
|
4361
4218
|
Value(): MdGeShape;
|
|
@@ -4368,23 +4225,21 @@ export declare class MdGeExplorer {
|
|
|
4368
4225
|
/**
|
|
4369
4226
|
* 表示倒圆角
|
|
4370
4227
|
*/
|
|
4371
|
-
|
|
4372
|
-
|
|
4228
|
+
/**
|
|
4229
|
+
* 表示倒圆角
|
|
4230
|
+
*/
|
|
4231
|
+
export declare class MdGeFillet extends MdGeObject {
|
|
4232
|
+
constructor(p1?: MdGeShape | object, p2?: MdGe.MxCF3dFilletShapeEnum);
|
|
4373
4233
|
SetParams(Tang: number, Tesp: number, T2d: number, TApp3d: number, TolApp2d: number, Fleche: number): void;
|
|
4374
|
-
Add(
|
|
4375
|
-
|
|
4376
|
-
Add(R1: number, R2: number, E: MdGeEdge): void;
|
|
4377
|
-
SetRadius(Radius: number, IC: number, IinC: number): void;
|
|
4378
|
-
SetRadius(R1: number, R2: number, IC: number, IinC: number): void;
|
|
4234
|
+
Add(p1: MdGeEdge | number, p2?: MdGeEdge | number, p3?: MdGeEdge): void;
|
|
4235
|
+
SetRadius(p1: number, p2: number, p3: number, p4?: number): void;
|
|
4379
4236
|
ResetContour(IC: number): void;
|
|
4380
|
-
IsConstant(IC: number): boolean;
|
|
4381
|
-
Radius(IC: number): number;
|
|
4382
|
-
IsConstant(IC: number, E: MdGeEdge): boolean;
|
|
4383
|
-
Radius(IC: number, E: MdGeEdge): number;
|
|
4237
|
+
IsConstant(IC: number, E?: MdGeEdge): boolean;
|
|
4238
|
+
Radius(IC: number, E?: MdGeEdge): number;
|
|
4384
4239
|
SetRadiusForEdge(Radius: number, IC: number, E: MdGeEdge): void;
|
|
4385
4240
|
SetRadiusForVertex(Radius: number, IC: number, V: MdGeVertex): void;
|
|
4386
|
-
SetFilletShape(FShape: MxCF3dFilletShapeEnum): void;
|
|
4387
|
-
GetFilletShape(): MxCF3dFilletShapeEnum;
|
|
4241
|
+
SetFilletShape(FShape: MdGe.MxCF3dFilletShapeEnum): void;
|
|
4242
|
+
GetFilletShape(): MdGe.MxCF3dFilletShapeEnum;
|
|
4388
4243
|
NbContours(): number;
|
|
4389
4244
|
Contour(E: MdGeEdge): number;
|
|
4390
4245
|
NbEdges(I: number): number;
|
|
@@ -4413,9 +4268,11 @@ export declare class MdGeFillet {
|
|
|
4413
4268
|
/**
|
|
4414
4269
|
* 表示双曲线
|
|
4415
4270
|
*/
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4271
|
+
/**
|
|
4272
|
+
* 表示双曲线。
|
|
4273
|
+
*/
|
|
4274
|
+
export declare class MdGeHypr extends MdGeObject {
|
|
4275
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4419
4276
|
SetAxis(theA1: MdGeAxis): void;
|
|
4420
4277
|
SetLocation(theP: MdGePoint): void;
|
|
4421
4278
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4458,20 +4315,17 @@ export declare class MdGeHypr {
|
|
|
4458
4315
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeHypr;
|
|
4459
4316
|
Shape(): MdGeShape;
|
|
4460
4317
|
Wire(): MdGeWire;
|
|
4461
|
-
Edge(): MdGeEdge;
|
|
4462
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
4318
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4463
4319
|
}
|
|
4464
4320
|
/**
|
|
4465
4321
|
* 表示一个Box
|
|
4466
4322
|
*/
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
constructor(
|
|
4472
|
-
Init(
|
|
4473
|
-
Init(thePnt1: MdGePoint, thePnt2: MdGePoint): void;
|
|
4474
|
-
Init(theAxes: MdGeCSYSR, theDX: number, theDY: number, theDZ: number): void;
|
|
4323
|
+
/**
|
|
4324
|
+
* 表示一个Box
|
|
4325
|
+
*/
|
|
4326
|
+
export declare class MdGeBox extends MdGeObject {
|
|
4327
|
+
constructor(p1?: MdGePoint | number | MdGeCSYSR | object, p2?: MdGePoint | number, p3?: number, p4?: number);
|
|
4328
|
+
Init(p1: MdGePoint | number | MdGeCSYSR, p2: MdGePoint | number, p3?: number, p4?: number): void;
|
|
4475
4329
|
Shape(): MdGeShape;
|
|
4476
4330
|
Shell(): MdGeShell;
|
|
4477
4331
|
Solid(): MdGeSolid;
|
|
@@ -4485,34 +4339,32 @@ export declare class MdGeBox {
|
|
|
4485
4339
|
/**
|
|
4486
4340
|
* 表示B样条曲线
|
|
4487
4341
|
*/
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4342
|
+
/**
|
|
4343
|
+
* 表示B样条曲线
|
|
4344
|
+
*/
|
|
4345
|
+
export declare class MdGeBSplineCurve extends MdGeObject {
|
|
4346
|
+
constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal, p3?: MdGeArray1OfInteger, p4?: number, p5?: boolean);
|
|
4491
4347
|
IncreaseDegree(Degree: number): void;
|
|
4492
|
-
IncreaseMultiplicity(
|
|
4493
|
-
IncreaseMultiplicity(I1: number, I2: number, M: number): void;
|
|
4348
|
+
IncreaseMultiplicity(p1: number, p2: number, p3?: number): void;
|
|
4494
4349
|
IncrementMultiplicity(I1: number, I2: number, M: number): void;
|
|
4495
4350
|
InsertKnot(U: number, M?: number, ParametricTolerance?: number, Add?: boolean): void;
|
|
4496
4351
|
InsertKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
|
|
4497
4352
|
RemoveKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4498
4353
|
Reverse(): void;
|
|
4499
4354
|
ReversedParameter(U: number): number;
|
|
4500
|
-
SetKnot(Index: number, K: number): void;
|
|
4355
|
+
SetKnot(Index: number, K: number, M?: number): void;
|
|
4501
4356
|
SetKnots(K: MdGeArray1OfReal): void;
|
|
4502
|
-
SetKnot(Index: number, K: number, M: number): void;
|
|
4503
4357
|
SetPeriodic(): void;
|
|
4504
|
-
SetOrigin(
|
|
4505
|
-
SetOrigin(U: number, Tol: number): void;
|
|
4358
|
+
SetOrigin(p1: number, p2?: number): void;
|
|
4506
4359
|
SetNotPeriodic(): void;
|
|
4507
|
-
SetPole(Index: number, P: MdGePoint): void;
|
|
4508
|
-
SetPole(Index: number, P: MdGePoint, Weight: number): void;
|
|
4360
|
+
SetPole(Index: number, P: MdGePoint, Weight?: number): void;
|
|
4509
4361
|
SetWeight(Index: number, Weight: number): void;
|
|
4510
4362
|
IsCN(N: number): boolean;
|
|
4511
4363
|
IsG1(theTf: number, theTl: number, theAngTol: number): boolean;
|
|
4512
4364
|
IsClosed(): boolean;
|
|
4513
4365
|
IsPeriodic(): boolean;
|
|
4514
4366
|
IsRational(): boolean;
|
|
4515
|
-
Continuity(): MxGAShapeEnum;
|
|
4367
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
4516
4368
|
Degree(): number;
|
|
4517
4369
|
DN(U: number, N: number): MdGeVec;
|
|
4518
4370
|
LocalValue(U: number, FromK1: number, ToK2: number): MdGePoint;
|
|
@@ -4542,15 +4394,16 @@ export declare class MdGeBSplineCurve {
|
|
|
4542
4394
|
/**
|
|
4543
4395
|
* 表示B样条曲面
|
|
4544
4396
|
*/
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4397
|
+
/**
|
|
4398
|
+
* 表示B样条曲面
|
|
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);
|
|
4548
4402
|
ExchangeUV(): void;
|
|
4549
4403
|
SetUPeriodic(): void;
|
|
4550
4404
|
SetVPeriodic(): void;
|
|
4551
4405
|
SetUOrigin(Index: number): void;
|
|
4552
4406
|
SetVOrigin(Index: number): void;
|
|
4553
|
-
SetUNotPeriodic(): void;
|
|
4554
4407
|
SetVNotPeriodic(): void;
|
|
4555
4408
|
UReverse(): void;
|
|
4556
4409
|
VReverse(): void;
|
|
@@ -4561,26 +4414,19 @@ export declare class MdGeBSplineSurface {
|
|
|
4561
4414
|
InsertVKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
|
|
4562
4415
|
RemoveUKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4563
4416
|
RemoveVKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4564
|
-
IncreaseUMultiplicity(
|
|
4565
|
-
|
|
4417
|
+
IncreaseUMultiplicity(p1: number, p2: number, p3?: number): void;
|
|
4418
|
+
IncreaseVMultiplicity(p1: number, p2: number, p3?: number): void;
|
|
4566
4419
|
IncrementUMultiplicity(FromI1: number, ToI2: number, Step: number): void;
|
|
4567
|
-
IncreaseVMultiplicity(VIndex: number, M: number): void;
|
|
4568
|
-
IncreaseVMultiplicity(FromI1: number, ToI2: number, M: number): void;
|
|
4569
4420
|
IncrementVMultiplicity(FromI1: number, ToI2: number, Step: number): void;
|
|
4570
4421
|
InsertUKnot(U: number, M: number, ParametricTolerance: number, Add?: boolean): void;
|
|
4571
4422
|
InsertVKnot(V: number, M: number, ParametricTolerance: number, Add?: boolean): void;
|
|
4572
|
-
SetUKnot(UIndex: number, K: number): void;
|
|
4423
|
+
SetUKnot(UIndex: number, K: number, M?: number): void;
|
|
4424
|
+
SetVKnot(VIndex: number, K: number, M?: number): void;
|
|
4573
4425
|
SetUKnots(UK: MdGeArray1OfReal): void;
|
|
4574
|
-
SetUKnot(UIndex: number, K: number, M: number): void;
|
|
4575
|
-
SetVKnot(VIndex: number, K: number): void;
|
|
4576
4426
|
SetVKnots(VK: MdGeArray1OfReal): void;
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
4581
|
-
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
4582
|
-
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
4583
|
-
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
4427
|
+
SetPole(UIndex: number, VIndex: number, P: MdGePoint, Weight?: number): void;
|
|
4428
|
+
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights?: MdGeArray1OfReal): void;
|
|
4429
|
+
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights?: MdGeArray1OfReal): void;
|
|
4584
4430
|
SetWeight(UIndex: number, VIndex: number, Weight: number): void;
|
|
4585
4431
|
SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
4586
4432
|
SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
@@ -4592,7 +4438,7 @@ export declare class MdGeBSplineSurface {
|
|
|
4592
4438
|
IsURational(): boolean;
|
|
4593
4439
|
IsVPeriodic(): boolean;
|
|
4594
4440
|
IsVRational(): boolean;
|
|
4595
|
-
Continuity(): MxGAShapeEnum;
|
|
4441
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
4596
4442
|
FirstUKnotIndex(): number;
|
|
4597
4443
|
FirstVKnotIndex(): number;
|
|
4598
4444
|
LastUKnotIndex(): number;
|
|
@@ -4628,9 +4474,11 @@ export declare class MdGeBSplineSurface {
|
|
|
4628
4474
|
/**
|
|
4629
4475
|
* 表示插值B样条曲线
|
|
4630
4476
|
*/
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4477
|
+
/**
|
|
4478
|
+
* 表示插值B样条曲线
|
|
4479
|
+
*/
|
|
4480
|
+
export declare class MdGeInterpolateBSpl extends MdGeObject {
|
|
4481
|
+
constructor(p1?: MdGeArray1OfPnt | object, p2?: boolean | MdGeArray1OfReal, p3?: number | boolean, p4?: number);
|
|
4634
4482
|
Load(InitialTangent: MdGeVec, FinalTangent: MdGeVec, Scale?: boolean): void;
|
|
4635
4483
|
Perform(): void;
|
|
4636
4484
|
Curve(): MdGeBSplineCurve;
|
|
@@ -4639,10 +4487,11 @@ export declare class MdGeInterpolateBSpl {
|
|
|
4639
4487
|
/**
|
|
4640
4488
|
* 表示长度标注
|
|
4641
4489
|
*/
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4490
|
+
/**
|
|
4491
|
+
* 表示长度标注
|
|
4492
|
+
*/
|
|
4493
|
+
export declare class MdGeLengthDim extends MdGeObject {
|
|
4494
|
+
constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGePlane | MdGePoint, p3?: MdGePlane);
|
|
4646
4495
|
FirstPoint(): MdGePoint;
|
|
4647
4496
|
SecondPoint(): MdGePoint;
|
|
4648
4497
|
FirstShape(): MdGeShape;
|
|
@@ -4657,9 +4506,11 @@ export declare class MdGeLengthDim {
|
|
|
4657
4506
|
/**
|
|
4658
4507
|
* 表示一条直线
|
|
4659
4508
|
*/
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4509
|
+
/**
|
|
4510
|
+
* 表示一条直线
|
|
4511
|
+
*/
|
|
4512
|
+
export declare class MdGeLine extends MdGeObject {
|
|
4513
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir);
|
|
4663
4514
|
Reverse(): void;
|
|
4664
4515
|
Reversed(): MdGeLine;
|
|
4665
4516
|
SetDirection(theV: MdGeDir): void;
|
|
@@ -4693,14 +4544,16 @@ export declare class MdGeLine {
|
|
|
4693
4544
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeLine;
|
|
4694
4545
|
Shape(): MdGeShape;
|
|
4695
4546
|
Wire(): MdGeWire;
|
|
4696
|
-
Edge(): MdGeEdge;
|
|
4697
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
4547
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4698
4548
|
}
|
|
4699
4549
|
/**
|
|
4700
4550
|
* 表示形状链表迭代器
|
|
4701
4551
|
*/
|
|
4702
|
-
|
|
4703
|
-
|
|
4552
|
+
/**
|
|
4553
|
+
* 表示形状链表迭代器
|
|
4554
|
+
*/
|
|
4555
|
+
export declare class MdGeListIteratorOfListOfShape extends MdGeObject {
|
|
4556
|
+
constructor(p?: object);
|
|
4704
4557
|
More(): boolean;
|
|
4705
4558
|
Next(): void;
|
|
4706
4559
|
Value(): MdGeShape;
|
|
@@ -4709,15 +4562,17 @@ export declare class MdGeListIteratorOfListOfShape {
|
|
|
4709
4562
|
/**
|
|
4710
4563
|
* 表示形状链表
|
|
4711
4564
|
*/
|
|
4712
|
-
|
|
4713
|
-
|
|
4565
|
+
/**
|
|
4566
|
+
* 表示形状链表
|
|
4567
|
+
*/
|
|
4568
|
+
export declare class MdGeListOfShape extends MdGeObject {
|
|
4569
|
+
constructor(p?: object);
|
|
4714
4570
|
begin(): MdGeListIteratorOfListOfShape;
|
|
4715
4571
|
end(): MdGeListIteratorOfListOfShape;
|
|
4716
4572
|
Size(): number;
|
|
4717
4573
|
First(): MdGeShape;
|
|
4718
4574
|
Last(): MdGeShape;
|
|
4719
|
-
AppendShape(theShape: MdGeShape): void;
|
|
4720
|
-
AppendShape(theShape: MdGeShape, theIter: MdGeListIteratorOfListOfShape): void;
|
|
4575
|
+
AppendShape(theShape: MdGeShape, theIter?: MdGeListIteratorOfListOfShape): void;
|
|
4721
4576
|
AppendList(theOther: MdGeListOfShape): void;
|
|
4722
4577
|
PrependShape(theShape: MdGeShape): void;
|
|
4723
4578
|
PrependList(theOther: MdGeListOfShape): void;
|
|
@@ -4731,16 +4586,19 @@ export declare class MdGeListOfShape {
|
|
|
4731
4586
|
/**
|
|
4732
4587
|
* 表示放样
|
|
4733
4588
|
*/
|
|
4734
|
-
|
|
4735
|
-
|
|
4589
|
+
/**
|
|
4590
|
+
* 表示放样
|
|
4591
|
+
*/
|
|
4592
|
+
export declare class MdGeLoft extends MdGeObject {
|
|
4593
|
+
constructor(p1?: boolean | object, p2?: boolean, p3?: number);
|
|
4736
4594
|
Init(isSolid?: boolean, ruled?: boolean, pres3d?: number): void;
|
|
4737
4595
|
AddWire(wire: MdGeWire): void;
|
|
4738
4596
|
AddVertex(aVertex: MdGeVertex): void;
|
|
4739
4597
|
CheckCompatibility(check?: boolean): void;
|
|
4740
4598
|
SetSmoothing(UseSmoothing: boolean): void;
|
|
4741
|
-
SetContinuity(C: MxGAShapeEnum): void;
|
|
4599
|
+
SetContinuity(C: MdGe.MxGAShapeEnum): void;
|
|
4742
4600
|
SetMaxDegree(MaxDeg: number): void;
|
|
4743
|
-
Continuity(): MxGAShapeEnum;
|
|
4601
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
4744
4602
|
MaxDegree(): number;
|
|
4745
4603
|
UseSmoothing(): boolean;
|
|
4746
4604
|
FirstShape(): MdGeShape;
|
|
@@ -4753,18 +4611,23 @@ export declare class MdGeLoft {
|
|
|
4753
4611
|
/**
|
|
4754
4612
|
* 表示薄实体
|
|
4755
4613
|
*/
|
|
4756
|
-
|
|
4757
|
-
|
|
4614
|
+
/**
|
|
4615
|
+
* 表示薄实体
|
|
4616
|
+
*/
|
|
4617
|
+
export declare class MdGeMakeThickSolid extends MdGeObject {
|
|
4618
|
+
constructor(p?: object);
|
|
4758
4619
|
MakeThickSolidBySimple(theS: MdGeShape, theOffsetValue: number): void;
|
|
4759
|
-
MakeThickSolidByJoin(S: MdGeShape, ClosingFaces: MdGeListOfShape, Offset: number, Tol: number, Mode?: MxOffsetModeEnum, Intersection?: boolean, SelfInter?: boolean, Join?: MxGAJoinTypeEnum, RemoveIntEdges?: boolean): void;
|
|
4620
|
+
MakeThickSolidByJoin(S: MdGeShape, ClosingFaces: MdGeListOfShape, Offset: number, Tol: number, Mode?: MdGe.MxOffsetModeEnum, Intersection?: boolean, SelfInter?: boolean, Join?: MdGe.MxGAJoinTypeEnum, RemoveIntEdges?: boolean): void;
|
|
4760
4621
|
Shape(): MdGeShape;
|
|
4761
4622
|
}
|
|
4762
4623
|
/**
|
|
4763
4624
|
* 表示抛物线
|
|
4764
4625
|
*/
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4626
|
+
/**
|
|
4627
|
+
* 表示抛物线
|
|
4628
|
+
*/
|
|
4629
|
+
export declare class MdGeParab extends MdGeObject {
|
|
4630
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number);
|
|
4768
4631
|
SetAxis(theA1: MdGeAxis): void;
|
|
4769
4632
|
SetFocal(theFocal: number): void;
|
|
4770
4633
|
SetLocation(theP: MdGePoint): void;
|
|
@@ -4796,15 +4659,16 @@ export declare class MdGeParab {
|
|
|
4796
4659
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeParab;
|
|
4797
4660
|
Shape(): MdGeShape;
|
|
4798
4661
|
Wire(): MdGeWire;
|
|
4799
|
-
Edge(): MdGeEdge;
|
|
4800
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
4662
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4801
4663
|
}
|
|
4802
4664
|
/**
|
|
4803
4665
|
* 表示管道
|
|
4804
4666
|
*/
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4667
|
+
/**
|
|
4668
|
+
* 表示管道
|
|
4669
|
+
*/
|
|
4670
|
+
export declare class MdGePipe extends MdGeObject {
|
|
4671
|
+
constructor(p1?: MdGeWire | object, p2?: MdGeShape, p3?: MdGe.MxGFTrihedron, p4?: boolean);
|
|
4808
4672
|
FirstShape(): MdGeShape;
|
|
4809
4673
|
LastShape(): MdGeShape;
|
|
4810
4674
|
Generated(SSpine: MdGeShape, SProfile: MdGeShape): MdGeShape;
|
|
@@ -4814,48 +4678,53 @@ export declare class MdGePipe {
|
|
|
4814
4678
|
/**
|
|
4815
4679
|
* 表示拟合点B样条曲线
|
|
4816
4680
|
*/
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4681
|
+
/**
|
|
4682
|
+
* 表示拟合B样条曲线
|
|
4683
|
+
*/
|
|
4684
|
+
export declare class MdGePointsToBSpl extends MdGeObject {
|
|
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;
|
|
4821
4687
|
Curve(): MdGeBSplineCurve;
|
|
4822
4688
|
IsDone(): boolean;
|
|
4823
4689
|
}
|
|
4824
4690
|
/**
|
|
4825
4691
|
* 表示拟合B样条曲面
|
|
4826
4692
|
*/
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4693
|
+
/**
|
|
4694
|
+
* 表示拟合B样条曲面
|
|
4695
|
+
*/
|
|
4696
|
+
export declare class MdGePointsToBSplSurface extends MdGeObject {
|
|
4697
|
+
constructor(p1?: MdGeArray2OfPnt, p2?: number, p3?: number, p4?: MdGe.MxGAShapeEnum, p5?: number);
|
|
4698
|
+
Init(Points: MdGeArray2OfPnt, DegMin?: number, DegMax?: number, Continuity?: MdGe.MxGAShapeEnum, Tol3D?: number): void;
|
|
4699
|
+
Interpolate(p1: MdGeArray2OfPnt | MdGeArray2OfReal, p2?: boolean | number, p3?: number, p4?: number, p5?: number): void;
|
|
4833
4700
|
IsDone(): boolean;
|
|
4834
4701
|
Surface(): MdGeBSplineSurface;
|
|
4835
4702
|
}
|
|
4836
4703
|
/**
|
|
4837
4704
|
* 表示拉伸体
|
|
4838
4705
|
*/
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4706
|
+
/**
|
|
4707
|
+
* 表示拉伸体
|
|
4708
|
+
*/
|
|
4709
|
+
export declare class MdGePrism extends MdGeObject {
|
|
4710
|
+
constructor(p1?: MdGeShape | object, p2?: MdGeVec, p3?: boolean, p4?: boolean);
|
|
4711
|
+
FirstShape(theShape?: MdGeShape): MdGeShape;
|
|
4712
|
+
LastShape(theShape?: MdGeShape): MdGeShape;
|
|
4843
4713
|
IsDeleted(S: MdGeShape): boolean;
|
|
4844
|
-
FirstShape(theShape: MdGeShape): MdGeShape;
|
|
4845
|
-
LastShape(theShape: MdGeShape): MdGeShape;
|
|
4846
4714
|
Shape(): MdGeShape;
|
|
4847
4715
|
}
|
|
4848
4716
|
/**
|
|
4849
4717
|
* 表示半径标注
|
|
4850
4718
|
*/
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4719
|
+
/**
|
|
4720
|
+
* 表示半径标注
|
|
4721
|
+
*/
|
|
4722
|
+
export declare class MdGeRadiusDim extends MdGeObject {
|
|
4723
|
+
constructor(p1?: MdGeCircle | object, p2?: MdGePoint);
|
|
4854
4724
|
Circle(): MdGeCircle;
|
|
4855
4725
|
AnchorPoint(): MdGePoint;
|
|
4856
4726
|
Shape(): MdGeShape;
|
|
4857
|
-
SetMeasuredGeometry(theCircle: MdGeCircle): void;
|
|
4858
|
-
SetMeasuredGeometry(theCircle: MdGeCircle, theAnchorPoint: MdGePoint, theHasAnchor?: boolean): void;
|
|
4727
|
+
SetMeasuredGeometry(theCircle: MdGeCircle, theAnchorPoint?: MdGePoint, theHasAnchor?: boolean): void;
|
|
4859
4728
|
SetTextPosition(theTextPos: MdGePoint): void;
|
|
4860
4729
|
GetTextPosition(): MdGePoint;
|
|
4861
4730
|
Display(): void;
|
|
@@ -4863,8 +4732,11 @@ export declare class MdGeRadiusDim {
|
|
|
4863
4732
|
/**
|
|
4864
4733
|
* 表示一个矩形
|
|
4865
4734
|
*/
|
|
4866
|
-
|
|
4867
|
-
|
|
4735
|
+
/**
|
|
4736
|
+
* 表示一个矩形
|
|
4737
|
+
*/
|
|
4738
|
+
export declare class MdGeRect extends MdGeObject {
|
|
4739
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4868
4740
|
Position(): MdGeCSYSR;
|
|
4869
4741
|
SetPosition(thePosition: MdGeCSYSR): void;
|
|
4870
4742
|
X(): number;
|
|
@@ -4883,23 +4755,25 @@ export declare class MdGeRect {
|
|
|
4883
4755
|
/**
|
|
4884
4756
|
* 表示旋转体
|
|
4885
4757
|
*/
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4758
|
+
/**
|
|
4759
|
+
* 表示旋转体
|
|
4760
|
+
*/
|
|
4761
|
+
export declare class MdGeRevol extends MdGeObject {
|
|
4762
|
+
constructor(p1?: MdGeShape | object, p2?: MdGeAxis, p3?: number, p4?: boolean);
|
|
4763
|
+
FirstShape(theShape?: MdGeShape): MdGeShape;
|
|
4764
|
+
LastShape(theShape?: MdGeShape): MdGeShape;
|
|
4890
4765
|
IsDeleted(S: MdGeShape): boolean;
|
|
4891
|
-
FirstShape(theShape: MdGeShape): MdGeShape;
|
|
4892
|
-
LastShape(theShape: MdGeShape): MdGeShape;
|
|
4893
4766
|
HasDegenerated(): boolean;
|
|
4894
4767
|
Shape(): MdGeShape;
|
|
4895
4768
|
}
|
|
4896
4769
|
/**
|
|
4897
4770
|
* 表示一个球体
|
|
4898
4771
|
*/
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4772
|
+
/**
|
|
4773
|
+
* 表示一个球体
|
|
4774
|
+
*/
|
|
4775
|
+
export declare class MdGeSphere extends MdGeObject {
|
|
4776
|
+
constructor(p1?: MdGeCSYS | number | object, p2?: number, p3?: number, p4?: number);
|
|
4903
4777
|
SetLocation(theLoc: MdGePoint): void;
|
|
4904
4778
|
SetPosition(theA3: MdGeCSYS): void;
|
|
4905
4779
|
SetRadius(theR: number): void;
|
|
@@ -4929,20 +4803,17 @@ export declare class MdGeSphere {
|
|
|
4929
4803
|
TranslatedByVec(theV: MdGeVec): MdGeSphere;
|
|
4930
4804
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4931
4805
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeSphere;
|
|
4932
|
-
Face(): MdGeFace;
|
|
4933
|
-
|
|
4934
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4935
|
-
Shape(): MdGeShape;
|
|
4936
|
-
Shape(angle: number): MdGeShape;
|
|
4937
|
-
Shape(angle1: number, angle2: number): MdGeShape;
|
|
4938
|
-
Shape(angle1: number, angle2: number, angle3: number): MdGeShape;
|
|
4806
|
+
Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
|
|
4807
|
+
Shape(p1?: number, p2?: number, p3?: number): MdGeShape;
|
|
4939
4808
|
}
|
|
4940
4809
|
/**
|
|
4941
4810
|
* 表示文字
|
|
4942
4811
|
*/
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4812
|
+
/**
|
|
4813
|
+
* 表示文字
|
|
4814
|
+
*/
|
|
4815
|
+
export declare class MdGeText extends MdGeObject {
|
|
4816
|
+
constructor(p1?: string | object, p2?: number, p3?: MdGeCSYSR);
|
|
4946
4817
|
SetText(theText: string): void;
|
|
4947
4818
|
Position(): MdGePoint;
|
|
4948
4819
|
SetPosition(thePoint: MdGePoint): void;
|
|
@@ -4954,46 +4825,53 @@ export declare class MdGeText {
|
|
|
4954
4825
|
SetOwnAnchorPoint(theHasOwnAnchor: boolean): void;
|
|
4955
4826
|
Height(): number;
|
|
4956
4827
|
SetHeight(theHeight: number): void;
|
|
4957
|
-
HorizontalAlignment(): MxHorizontalTextAlignment;
|
|
4958
|
-
SetHorizontalAlignment(theJustification: MxHorizontalTextAlignment): void;
|
|
4959
|
-
VerticalAlignment(): MxVerticalTextAlignment;
|
|
4960
|
-
SetVerticalAlignment(theJustification: MxVerticalTextAlignment): void;
|
|
4828
|
+
HorizontalAlignment(): MdGe.MxHorizontalTextAlignment;
|
|
4829
|
+
SetHorizontalAlignment(theJustification: MdGe.MxHorizontalTextAlignment): void;
|
|
4830
|
+
VerticalAlignment(): MdGe.MxVerticalTextAlignment;
|
|
4831
|
+
SetVerticalAlignment(theJustification: MdGe.MxVerticalTextAlignment): void;
|
|
4961
4832
|
Shape(): MdGeShape;
|
|
4962
4833
|
}
|
|
4963
4834
|
/**
|
|
4964
4835
|
* 表示文字标签
|
|
4965
4836
|
*/
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4837
|
+
/**
|
|
4838
|
+
* 表示文字标签
|
|
4839
|
+
*/
|
|
4840
|
+
export declare class MdGeTextLabel extends MdGeObject {
|
|
4841
|
+
constructor(p1?: string | object, p2?: number, p3?: MdGePoint);
|
|
4969
4842
|
SetColor(theR: number, theG: number, theB: number): void;
|
|
4970
4843
|
SetText(text: string): void;
|
|
4971
4844
|
SetPositon(position: MdGePoint): void;
|
|
4972
|
-
SetHJustification(theHJust: MxHorizontalTextAlignment): void;
|
|
4973
|
-
SetVJustification(theVJust: MxVerticalTextAlignment): void;
|
|
4845
|
+
SetHJustification(theHJust: MdGe.MxHorizontalTextAlignment): void;
|
|
4846
|
+
SetVJustification(theVJust: MdGe.MxVerticalTextAlignment): void;
|
|
4974
4847
|
SetAngle(theAngle: number): void;
|
|
4975
4848
|
SetZoomable(theIsZoomable: boolean): void;
|
|
4976
4849
|
SetHeight(height: number): void;
|
|
4977
|
-
SetFontAspect(theFontAspect: MxFontAspect): void;
|
|
4850
|
+
SetFontAspect(theFontAspect: MdGe.MxFontAspect): void;
|
|
4978
4851
|
SetFont(theFont: string): void;
|
|
4979
4852
|
SetOrientation3D(theOrientation: MdGeCSYSR): void;
|
|
4980
4853
|
UnsetOrientation3D(): void;
|
|
4981
4854
|
Position(): MdGePoint;
|
|
4982
|
-
FontAspect(): MxFontAspect;
|
|
4855
|
+
FontAspect(): MdGe.MxFontAspect;
|
|
4983
4856
|
Orientation3D(): MdGeCSYSR;
|
|
4984
4857
|
HasOrientation3D(): boolean;
|
|
4985
4858
|
SetFlipping(theIsFlipping: boolean): void;
|
|
4986
4859
|
HasFlipping(): boolean;
|
|
4987
4860
|
HasOwnAnchorPoint(): boolean;
|
|
4988
4861
|
SetOwnAnchorPoint(theOwnAnchorPoint: boolean): void;
|
|
4989
|
-
SetDisplayType(theDisplayType: MxTypeOfDisplayText): void;
|
|
4862
|
+
SetDisplayType(theDisplayType: MdGe.MxTypeOfDisplayText): void;
|
|
4990
4863
|
SetColorSubTitle(theR: number, theG: number, theB: number): void;
|
|
4991
4864
|
Display(): void;
|
|
4992
4865
|
}
|
|
4866
|
+
/**
|
|
4867
|
+
* 拓扑转换类
|
|
4868
|
+
*/
|
|
4993
4869
|
/**
|
|
4994
4870
|
* 拓扑转换类
|
|
4995
4871
|
*/
|
|
4996
4872
|
export declare class MdGeTopo {
|
|
4873
|
+
protected imp: any;
|
|
4874
|
+
constructor();
|
|
4997
4875
|
Vertex(S: MdGeShape): MdGeVertex;
|
|
4998
4876
|
Edge(S: MdGeShape): MdGeEdge;
|
|
4999
4877
|
Wire(S: MdGeShape): MdGeWire;
|
|
@@ -5002,13 +4880,17 @@ export declare class MdGeTopo {
|
|
|
5002
4880
|
Solid(S: MdGeShape): MdGeSolid;
|
|
5003
4881
|
CompSolid(S: MdGeShape): MdGeCompSolid;
|
|
5004
4882
|
Compound(S: MdGeShape): MdGeCompound;
|
|
4883
|
+
DestroyObject(pObj: object): void;
|
|
4884
|
+
SetRegisterFuncPtr(jsFunPtr: number): void;
|
|
5005
4885
|
}
|
|
5006
4886
|
/**
|
|
5007
4887
|
* 表示圆环
|
|
5008
4888
|
*/
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
4889
|
+
/**
|
|
4890
|
+
* 表示圆环
|
|
4891
|
+
*/
|
|
4892
|
+
export declare class MdGeTorus extends MdGeObject {
|
|
4893
|
+
constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
|
|
5012
4894
|
SetAxis(theA1: MdGeAxis): void;
|
|
5013
4895
|
SetLocation(theLoc: MdGePoint): void;
|
|
5014
4896
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -5042,20 +4924,17 @@ export declare class MdGeTorus {
|
|
|
5042
4924
|
TranslatedByVec(theV: MdGeVec): MdGeTorus;
|
|
5043
4925
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
5044
4926
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeTorus;
|
|
5045
|
-
Face(): MdGeFace;
|
|
5046
|
-
|
|
5047
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
5048
|
-
Shape(): MdGeShape;
|
|
5049
|
-
Shape(angle: number): MdGeShape;
|
|
5050
|
-
Shape(angle1: number, angle2: number): MdGeShape;
|
|
5051
|
-
Shape(angle1: number, angle2: number, angle: number): MdGeShape;
|
|
4927
|
+
Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
|
|
4928
|
+
Shape(p1?: number, p2?: number, p3?: number): MdGeShape;
|
|
5052
4929
|
}
|
|
5053
4930
|
/**
|
|
5054
4931
|
* 形状变换类
|
|
5055
4932
|
*/
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
4933
|
+
/**
|
|
4934
|
+
* 形状变换类
|
|
4935
|
+
*/
|
|
4936
|
+
export declare class MdGeTransform extends MdGeObject {
|
|
4937
|
+
constructor(p1?: MdGeTrsf | MdGeShape | object, p2?: MdGeTrsf, p3?: boolean, p4?: boolean);
|
|
5059
4938
|
Perform(theShape: MdGeShape, theCopyGeom?: boolean, theCopyMesh?: boolean): void;
|
|
5060
4939
|
ModifiedShape(S: MdGeShape): MdGeShape;
|
|
5061
4940
|
Shape(): MdGeShape;
|
|
@@ -5063,15 +4942,62 @@ export declare class MdGeTransform {
|
|
|
5063
4942
|
/**
|
|
5064
4943
|
* 表示一个楔形
|
|
5065
4944
|
*/
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
constructor(
|
|
4945
|
+
/**
|
|
4946
|
+
* 表示一个楔形
|
|
4947
|
+
*/
|
|
4948
|
+
export declare class MdGeWedge extends MdGeObject {
|
|
4949
|
+
constructor(p1?: number | MdGeCSYSR | object, p2?: number, p3?: number, p4?: number, p5?: number, p6?: number, p7?: number, p8?: number);
|
|
5071
4950
|
Shell(): MdGeShell;
|
|
5072
4951
|
Solid(): MdGeSolid;
|
|
5073
4952
|
Shape(): MdGeShape;
|
|
5074
4953
|
}
|
|
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
|
+
}
|
|
5075
5001
|
export declare function loadMxCADassembly3d(config: MxDraw3dConfig, call?: (mxDraw3d: MxDraw3d) => void): Promise<MxDraw3d>;
|
|
5076
5002
|
|
|
5077
5003
|
export {};
|