mxcad 1.0.81 → 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 +592 -662
- package/dist/mxcad.es.js +6056 -1890
- package/dist/mxcad.umd.js +46 -45
- package/dist/wasm/2d/mxdrawassembly_min.js +632 -628
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +634 -630
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -227,6 +227,10 @@ export declare class McGeMatrix3d {
|
|
|
227
227
|
*/
|
|
228
228
|
setToScaling(scaleAll: number, center: McGePoint3d): this;
|
|
229
229
|
/**
|
|
230
|
+
* 将矩阵设置为镜向矩阵
|
|
231
|
+
*/
|
|
232
|
+
setMirror(pt1: McGePoint3d, pt2: McGePoint3d): this;
|
|
233
|
+
/**
|
|
230
234
|
* 获取矩阵的缩放因子。
|
|
231
235
|
* @returns 矩阵的缩放因子。
|
|
232
236
|
*/
|
|
@@ -401,7 +405,7 @@ export declare class McObjectId {
|
|
|
401
405
|
* @param id 对象的唯一标识符。
|
|
402
406
|
* @param type 对象的类型。
|
|
403
407
|
*/
|
|
404
|
-
constructor(id
|
|
408
|
+
constructor(id?: number, type?: McObjectIdType);
|
|
405
409
|
/**
|
|
406
410
|
* id是否有效.
|
|
407
411
|
*/
|
|
@@ -612,6 +616,7 @@ export declare class MxCADResbuf extends McRxObject {
|
|
|
612
616
|
*/
|
|
613
617
|
export declare class MxCADUtilityClass {
|
|
614
618
|
private imp;
|
|
619
|
+
MxCADAssist: any;
|
|
615
620
|
constructor();
|
|
616
621
|
/**
|
|
617
622
|
* eraseEntity 方法用于删除指定的图形对象
|
|
@@ -904,6 +909,27 @@ export declare class MxCADUiPrString extends MxCADUiPrBase {
|
|
|
904
909
|
*/
|
|
905
910
|
go(): Promise<string | null>;
|
|
906
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
|
+
}
|
|
907
933
|
/**
|
|
908
934
|
* 表示数据库实体。
|
|
909
935
|
*/
|
|
@@ -2276,7 +2302,7 @@ export declare class McObject {
|
|
|
2276
2302
|
* @param isWorkThread 是否使用工作线程打开文件,默认为 true
|
|
2277
2303
|
* @returns 是否成功打开文件
|
|
2278
2304
|
*/
|
|
2279
|
-
openWebFile(sFileUrl: string, retCall?: (iRet: number) => void, isWorkThread?: boolean,
|
|
2305
|
+
openWebFile(sFileUrl: string, retCall?: (iRet: number) => void, isWorkThread?: boolean, initialParameter?: object): boolean;
|
|
2280
2306
|
/**
|
|
2281
2307
|
* 获取当前文件名
|
|
2282
2308
|
* @returns 当前文件名
|
|
@@ -2297,7 +2323,7 @@ export declare class McObject {
|
|
|
2297
2323
|
* @param isShowSaveFileDialog 是否显示保存文件对话框,默认为 true
|
|
2298
2324
|
* @returns 是否成功保存文件
|
|
2299
2325
|
*/
|
|
2300
|
-
saveFile(filename?: string, call?: (data: any) => void, isDownland?: boolean, isShowSaveFileDialog?: boolean): boolean;
|
|
2326
|
+
saveFile(filename?: string, call?: (data: any) => void, isDownland?: boolean, isShowSaveFileDialog?: boolean, parameter?: object): boolean;
|
|
2301
2327
|
/**
|
|
2302
2328
|
* 获取数据库对象
|
|
2303
2329
|
* @returns 数据库对象
|
|
@@ -2890,7 +2916,7 @@ export interface MxCadConfig {
|
|
|
2890
2916
|
/** 是否支持多选 */
|
|
2891
2917
|
multipleSelect?: boolean;
|
|
2892
2918
|
/** 打开文件参数设置 */
|
|
2893
|
-
openParameter?:
|
|
2919
|
+
openParameter?: object;
|
|
2894
2920
|
}
|
|
2895
2921
|
/** 创建MxCad实例 */
|
|
2896
2922
|
export declare const createMxCad: (config?: MxCadConfig) => Promise<McObject>;
|
|
@@ -2976,6 +3002,8 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
2976
3002
|
* @param fileUrl 文件路径
|
|
2977
3003
|
* */
|
|
2978
3004
|
openFromUrl: (name: string, fileUrl: string) => void;
|
|
3005
|
+
/** 垃圾回收初始化 */
|
|
3006
|
+
InitGC(): void;
|
|
2979
3007
|
/** 设置多维数据集贴图背景 */
|
|
2980
3008
|
setCubemapBackground(url: string): void;
|
|
2981
3009
|
/** 完成初始化 */
|
|
@@ -3068,17 +3096,17 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3068
3096
|
MdGeDiameterDim: typeof MdGeDiameterDim;
|
|
3069
3097
|
/** 表示一个椭圆 */
|
|
3070
3098
|
MdGeEllipse: typeof MdGeEllipse;
|
|
3071
|
-
MxShapeEnum: typeof MxShapeEnum;
|
|
3072
|
-
MxHorizontalTextAlignment: typeof MxHorizontalTextAlignment;
|
|
3073
|
-
MxVerticalTextAlignment: typeof MxVerticalTextAlignment;
|
|
3074
|
-
MxFontAspect: typeof MxFontAspect;
|
|
3075
|
-
MxTypeOfDisplayText: typeof MxTypeOfDisplayText;
|
|
3076
|
-
MxCF3dFilletShapeEnum: typeof MxCF3dFilletShapeEnum;
|
|
3077
|
-
MxCFDSChamfMode: typeof MxCFDSChamfMode;
|
|
3078
|
-
MxGFTrihedron: typeof MxGFTrihedron;
|
|
3079
|
-
MxGAShapeEnum: typeof MxGAShapeEnum;
|
|
3080
|
-
MxOffsetModeEnum: typeof MxOffsetModeEnum;
|
|
3081
|
-
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;
|
|
3082
3110
|
/** 表示拓扑元素遍历 */
|
|
3083
3111
|
MdGeExplorer: typeof MdGeExplorer;
|
|
3084
3112
|
/** 表示倒圆角 */
|
|
@@ -3129,54 +3157,115 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
3129
3157
|
MdGeTextLabel: typeof MdGeTextLabel;
|
|
3130
3158
|
/** 拓扑转换类 */
|
|
3131
3159
|
MdGeTopo: typeof MdGeTopo;
|
|
3160
|
+
mdGeTopo: MdGeTopo;
|
|
3132
3161
|
/** 表示圆环 */
|
|
3133
3162
|
MdGeTorus: typeof MdGeTorus;
|
|
3134
3163
|
/** 形状变换类 */
|
|
3135
3164
|
MdGeTransform: typeof MdGeTransform;
|
|
3136
3165
|
/** 表示一个楔形 */
|
|
3137
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;
|
|
3138
3185
|
}
|
|
3139
3186
|
/**
|
|
3140
3187
|
* 表示一个形状。
|
|
3141
3188
|
*/
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
*/
|
|
3189
|
+
/**
|
|
3190
|
+
* 表示一个形状
|
|
3191
|
+
*/
|
|
3192
|
+
export declare class MdGeShape extends MdGeObject {
|
|
3193
|
+
constructor(p?: object);
|
|
3148
3194
|
Fuse(other: MdGeShape): MdGeShape;
|
|
3149
|
-
/**
|
|
3150
|
-
* 求裁剪后的形状。
|
|
3151
|
-
* @param remove 被裁剪掉的部分形状。
|
|
3152
|
-
* @returns 裁剪后的形状。
|
|
3153
|
-
*/
|
|
3154
3195
|
Cut(remove: MdGeShape): MdGeShape;
|
|
3155
|
-
/**
|
|
3156
|
-
* 求形状相交的部分。
|
|
3157
|
-
* @param other 另一个形状。
|
|
3158
|
-
* @returns 相交部分的形状。
|
|
3159
|
-
*/
|
|
3160
3196
|
Common(other: MdGeShape): MdGeShape;
|
|
3161
|
-
/**
|
|
3162
|
-
* 求相交部分的外轮廓。
|
|
3163
|
-
* @param other 另一个形状。
|
|
3164
|
-
* @returns 相交部分的外轮廓的形状。
|
|
3165
|
-
*/
|
|
3166
3197
|
Section(other: MdGeShape): MdGeShape;
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
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);
|
|
3171
3259
|
Draw(): void;
|
|
3172
3260
|
}
|
|
3173
3261
|
/**
|
|
3174
3262
|
* 表示一个矩阵。
|
|
3175
3263
|
*/
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
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);
|
|
3180
3269
|
SetCol(col: number, value: MdGeXYZ): void;
|
|
3181
3270
|
SetCols(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ): void;
|
|
3182
3271
|
SetCross(ref: MdGeXYZ): void;
|
|
@@ -3216,11 +3305,12 @@ export declare class MdGeMat {
|
|
|
3216
3305
|
/**
|
|
3217
3306
|
* 表示一个坐标。
|
|
3218
3307
|
*/
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
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;
|
|
3224
3314
|
SetX(x: number): void;
|
|
3225
3315
|
SetY(y: number): void;
|
|
3226
3316
|
SetZ(z: number): void;
|
|
@@ -3256,18 +3346,15 @@ export declare class MdGeXYZ {
|
|
|
3256
3346
|
Reversed(): MdGeXYZ;
|
|
3257
3347
|
Subtract(other: MdGeXYZ): void;
|
|
3258
3348
|
Subtracted(other: MdGeXYZ): MdGeXYZ;
|
|
3259
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ, xyz4: MdGeXYZ): void;
|
|
3260
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, a3: number, xyz3: MdGeXYZ): void;
|
|
3261
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ, xyz3: MdGeXYZ): void;
|
|
3262
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, a2: number, xyz2: MdGeXYZ): void;
|
|
3263
|
-
SetLinearForm(a1: number, xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
|
|
3264
|
-
SetLinearForm(xyz1: MdGeXYZ, xyz2: MdGeXYZ): void;
|
|
3265
3349
|
}
|
|
3266
3350
|
/**
|
|
3267
3351
|
* 表示一个变换。
|
|
3268
3352
|
*/
|
|
3269
|
-
|
|
3270
|
-
|
|
3353
|
+
/**
|
|
3354
|
+
* 表示一个变换
|
|
3355
|
+
*/
|
|
3356
|
+
export declare class MdGeTrsf extends MdGeObject {
|
|
3357
|
+
constructor(p?: object);
|
|
3271
3358
|
SetMirrorByPoint(point: MdGePoint): void;
|
|
3272
3359
|
SetMirrorByAxis(axis: MdGeAxis): void;
|
|
3273
3360
|
SetMirrorByCSYSR(csysr: MdGeCSYSR): void;
|
|
@@ -3293,12 +3380,12 @@ export declare class MdGeTrsf {
|
|
|
3293
3380
|
/**
|
|
3294
3381
|
* 表示一个方向。
|
|
3295
3382
|
*/
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
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;
|
|
3302
3389
|
SetX(theXv: number): void;
|
|
3303
3390
|
SetY(theYv: number): void;
|
|
3304
3391
|
SetZ(theZv: number): void;
|
|
@@ -3336,50 +3423,29 @@ export declare class MdGeDir {
|
|
|
3336
3423
|
/**
|
|
3337
3424
|
* 表示一个轴。
|
|
3338
3425
|
*/
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
constructor();
|
|
3344
|
-
/**
|
|
3345
|
-
* 构造函数。
|
|
3346
|
-
* @param loc 轴的位置点。
|
|
3347
|
-
* @param dir 轴的方向。
|
|
3348
|
-
*/
|
|
3349
|
-
constructor(loc: MdGePoint, dir: MdGeDir);
|
|
3350
|
-
/**
|
|
3351
|
-
* 获得轴的方向。
|
|
3352
|
-
* @returns 轴的方向。
|
|
3353
|
-
*/
|
|
3426
|
+
/**
|
|
3427
|
+
* 表示一个轴
|
|
3428
|
+
*/
|
|
3429
|
+
export declare class MdGeAxis extends MdGeObject {
|
|
3430
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir);
|
|
3354
3431
|
Direction(): MdGeDir;
|
|
3355
|
-
/**
|
|
3356
|
-
* 获得轴的位置点。
|
|
3357
|
-
* @returns 轴的位置点。
|
|
3358
|
-
*/
|
|
3359
3432
|
Location(): MdGePoint;
|
|
3360
|
-
/**
|
|
3361
|
-
* 设置轴的方向。
|
|
3362
|
-
* @param dir 要设置的方向。
|
|
3363
|
-
*/
|
|
3364
3433
|
SetDirection(dir: MdGeDir): void;
|
|
3365
|
-
/**
|
|
3366
|
-
* 设置轴的位置点。
|
|
3367
|
-
* @param loc 要设置的位置点。
|
|
3368
|
-
*/
|
|
3369
3434
|
SetLocation(loc: MdGePoint): void;
|
|
3370
3435
|
}
|
|
3371
3436
|
/**
|
|
3372
3437
|
* 表示右手坐标系。
|
|
3373
3438
|
*/
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3439
|
+
/**
|
|
3440
|
+
* 表示右手坐标系。
|
|
3441
|
+
*/
|
|
3442
|
+
export declare class MdGeCSYSR extends MdGeObject {
|
|
3443
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
|
|
3377
3444
|
Origin(): MdGePoint;
|
|
3378
3445
|
XDirection(): MdGeDir;
|
|
3379
3446
|
YDirection(): MdGeDir;
|
|
3380
3447
|
ZDirection(): MdGeDir;
|
|
3381
|
-
SetOrigin(
|
|
3382
|
-
SetOrigin(theX: number, theY: number, theZ: number): void;
|
|
3448
|
+
SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
|
|
3383
3449
|
SetXDirection(x_dir: MdGeDir): void;
|
|
3384
3450
|
SetYDirection(y_dir: MdGeDir): void;
|
|
3385
3451
|
SetZDirection(z_dir: MdGeDir): void;
|
|
@@ -3407,91 +3473,23 @@ export declare class MdGeCSYSR {
|
|
|
3407
3473
|
/**
|
|
3408
3474
|
* 表示一个点。
|
|
3409
3475
|
*/
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
constructor();
|
|
3415
|
-
/**
|
|
3416
|
-
* 构造函数。
|
|
3417
|
-
* @param x
|
|
3418
|
-
* @param y
|
|
3419
|
-
* @param z
|
|
3420
|
-
*/
|
|
3421
|
-
constructor(x: number, y: number, z: number);
|
|
3422
|
-
/**
|
|
3423
|
-
* 获取x坐标值。
|
|
3424
|
-
* @returns x坐标值。
|
|
3425
|
-
*/
|
|
3476
|
+
/**
|
|
3477
|
+
* 表示一个点。
|
|
3478
|
+
*/
|
|
3479
|
+
export declare class MdGePoint extends MdGeObject {
|
|
3480
|
+
constructor(p1?: number | object, p2?: number, p3?: number);
|
|
3426
3481
|
X(): number;
|
|
3427
|
-
/**
|
|
3428
|
-
* 获取y坐标值。
|
|
3429
|
-
* @returns y坐标值。
|
|
3430
|
-
*/
|
|
3431
3482
|
Y(): number;
|
|
3432
|
-
/**
|
|
3433
|
-
* 获取z坐标值。
|
|
3434
|
-
* @returns z坐标值。
|
|
3435
|
-
*/
|
|
3436
3483
|
Z(): number;
|
|
3437
|
-
/**
|
|
3438
|
-
* 设置x坐标。
|
|
3439
|
-
* @param x x 坐标。
|
|
3440
|
-
*/
|
|
3441
3484
|
SetX(x: number): void;
|
|
3442
|
-
/**
|
|
3443
|
-
* 设置y坐标。
|
|
3444
|
-
* @param y y 坐标。
|
|
3445
|
-
*/
|
|
3446
3485
|
SetY(y: number): void;
|
|
3447
|
-
/**
|
|
3448
|
-
* 设置z坐标。
|
|
3449
|
-
* @param z z 坐标。
|
|
3450
|
-
*/
|
|
3451
3486
|
SetZ(z: number): void;
|
|
3452
|
-
/**
|
|
3453
|
-
* 设置x y z坐标值。
|
|
3454
|
-
* @param x 要设置的x坐标值。
|
|
3455
|
-
* @param y 要设置的y坐标值。
|
|
3456
|
-
* @param z 要设置的z坐标值。
|
|
3457
|
-
*/
|
|
3458
3487
|
SetXYZ(x: number, y: number, z: number): void;
|
|
3459
|
-
/**
|
|
3460
|
-
* 获取质心。
|
|
3461
|
-
* @param alpha 参数alpha。
|
|
3462
|
-
* @param point 三维点。
|
|
3463
|
-
* @param beta 参数beta
|
|
3464
|
-
*/
|
|
3465
3488
|
BaryCenter(alpha: number, point: MdGePoint, beta: number): void;
|
|
3466
|
-
/**
|
|
3467
|
-
* 判断两个点是否相等。
|
|
3468
|
-
* @param other 另一个点。
|
|
3469
|
-
* @param linearTolerance 精度。
|
|
3470
|
-
* @returns 是否相等,相等为true,不相等为false。
|
|
3471
|
-
*/
|
|
3472
3489
|
IsEqual(other: MdGePoint, linearTolerance: number): boolean;
|
|
3473
|
-
/**
|
|
3474
|
-
* 获取到另一点的距离。
|
|
3475
|
-
* @param other 另一个点。
|
|
3476
|
-
* @returns 到指定点的距离。
|
|
3477
|
-
*/
|
|
3478
3490
|
Distance(other: MdGePoint): number;
|
|
3479
|
-
/**
|
|
3480
|
-
* 获取到另一点的距离的平方。
|
|
3481
|
-
* @param other 另一个点。
|
|
3482
|
-
* @returns 到指定点的距离的平方。
|
|
3483
|
-
*/
|
|
3484
3491
|
SquareDistance(other: MdGePoint): number;
|
|
3485
|
-
/**
|
|
3486
|
-
* 将点按某一点进行镜像变换。
|
|
3487
|
-
* @param point 镜像点。
|
|
3488
|
-
*/
|
|
3489
3492
|
MirrorByPoint(point: MdGePoint): void;
|
|
3490
|
-
/**
|
|
3491
|
-
* 将点按某一点进行镜像变换后的镜像点。
|
|
3492
|
-
* @param point 镜像点。
|
|
3493
|
-
* @returns 变换后的镜像点。
|
|
3494
|
-
*/
|
|
3495
3493
|
MirroredByPoint(point: MdGePoint): MdGePoint;
|
|
3496
3494
|
MirrorByAxis(axis: MdGeAxis): void;
|
|
3497
3495
|
MirroredByAxis(axis: MdGeAxis): MdGePoint;
|
|
@@ -3507,83 +3505,24 @@ export declare class MdGePoint {
|
|
|
3507
3505
|
TranslatedByVec(vec: MdGeVec): MdGePoint;
|
|
3508
3506
|
TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
|
|
3509
3507
|
TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGePoint;
|
|
3510
|
-
/**
|
|
3511
|
-
* 求点的形状。
|
|
3512
|
-
* @returns 点的形状。
|
|
3513
|
-
*/
|
|
3514
3508
|
Shape(): MdGeShape;
|
|
3515
3509
|
Vertex(): MdGeVertex;
|
|
3516
3510
|
}
|
|
3517
3511
|
/**
|
|
3518
3512
|
* 表示一个向量。
|
|
3519
3513
|
*/
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
constructor();
|
|
3525
|
-
|
|
3526
|
-
* 构造函数。
|
|
3527
|
-
* @param x x 坐标。
|
|
3528
|
-
* @param y y 坐标。
|
|
3529
|
-
* @param z z 坐标。
|
|
3530
|
-
*/
|
|
3531
|
-
constructor(x: number, y: number, z: number);
|
|
3532
|
-
/**
|
|
3533
|
-
* 构造函数。
|
|
3534
|
-
* @param theP1 第一个点。
|
|
3535
|
-
* @param theP2 第二个点。
|
|
3536
|
-
*/
|
|
3537
|
-
constructor(theP1: MdGePoint, theP2: MdGePoint);
|
|
3538
|
-
/**
|
|
3539
|
-
* 设置某个坐标值。
|
|
3540
|
-
* @param theIndex 要设置的坐标,取值1,2,3。
|
|
3541
|
-
* @param theXi 要设置的坐标值。
|
|
3542
|
-
*/
|
|
3543
|
-
SetCoord(theIndex: number, theXi: number): void;
|
|
3544
|
-
/**
|
|
3545
|
-
* 设置x y z坐标值。
|
|
3546
|
-
* @param theXv 要设置的x坐标值。
|
|
3547
|
-
* @param theYv 要设置的y坐标值。
|
|
3548
|
-
* @param theZv 要设置的z坐标值。
|
|
3549
|
-
*/
|
|
3550
|
-
SetCoord(theXv: number, theYv: number, theZv: number): void;
|
|
3551
|
-
/**
|
|
3552
|
-
* 获取x坐标值。
|
|
3553
|
-
* @returns x坐标值。
|
|
3554
|
-
*/
|
|
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;
|
|
3555
3520
|
X(): number;
|
|
3556
|
-
/**
|
|
3557
|
-
* 获取y坐标值。
|
|
3558
|
-
* @returns y坐标值。
|
|
3559
|
-
*/
|
|
3560
3521
|
Y(): number;
|
|
3561
|
-
/**
|
|
3562
|
-
* 获取z坐标值。
|
|
3563
|
-
* @returns z坐标值。
|
|
3564
|
-
*/
|
|
3565
3522
|
Z(): number;
|
|
3566
|
-
/**
|
|
3567
|
-
* 设置x坐标。
|
|
3568
|
-
* @param x x 坐标。
|
|
3569
|
-
*/
|
|
3570
3523
|
SetX(x: number): void;
|
|
3571
|
-
/**
|
|
3572
|
-
* 设置y坐标。
|
|
3573
|
-
* @param y y 坐标。
|
|
3574
|
-
*/
|
|
3575
3524
|
SetY(y: number): void;
|
|
3576
|
-
/**
|
|
3577
|
-
* 设置z坐标。
|
|
3578
|
-
* @param z z 坐标。
|
|
3579
|
-
*/
|
|
3580
3525
|
SetZ(z: number): void;
|
|
3581
|
-
/**
|
|
3582
|
-
* 设置x y z坐标值。
|
|
3583
|
-
* @param x 要设置的x坐标值。
|
|
3584
|
-
* @param y 要设置的y坐标值。
|
|
3585
|
-
* @param z 要设置的z坐标值。
|
|
3586
|
-
*/
|
|
3587
3526
|
SetXYZ(x: number, y: number, z: number): void;
|
|
3588
3527
|
Coord(theIndex: number): number;
|
|
3589
3528
|
IsEqual(other: MdGeVec, linearTolerance: number, angularTolerance: number): boolean;
|
|
@@ -3614,12 +3553,7 @@ export declare class MdGeVec {
|
|
|
3614
3553
|
Normalized(): MdGeVec;
|
|
3615
3554
|
Reverse(): void;
|
|
3616
3555
|
Reversed(): MdGeVec;
|
|
3617
|
-
SetLinearForm(
|
|
3618
|
-
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, a3: number, v3: MdGeVec): void;
|
|
3619
|
-
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec, v3: MdGeVec): void;
|
|
3620
|
-
SetLinearForm(a1: number, v1: MdGeVec, a2: number, v2: MdGeVec): void;
|
|
3621
|
-
SetLinearForm(a1: number, v1: MdGeVec, v2: MdGeVec): void;
|
|
3622
|
-
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;
|
|
3623
3557
|
MirrorByVec(vec: MdGeVec): void;
|
|
3624
3558
|
MirroredByVec(vec: MdGeVec): MdGeVec;
|
|
3625
3559
|
MirrorByAxis(axis: MdGeAxis): void;
|
|
@@ -3636,123 +3570,42 @@ export declare class MdGeVec {
|
|
|
3636
3570
|
/**
|
|
3637
3571
|
* 表示一个Wire形状。
|
|
3638
3572
|
*/
|
|
3639
|
-
export declare class MdGeWire extends MdGeShape {
|
|
3640
|
-
/**
|
|
3641
|
-
* 构造函数。
|
|
3642
|
-
*/
|
|
3643
|
-
constructor();
|
|
3644
|
-
/**
|
|
3645
|
-
* 添加Edge,形成Wire。
|
|
3646
|
-
* @param edge 要添加的Edge。
|
|
3647
|
-
* @returns 最终的Wire。
|
|
3648
|
-
*/
|
|
3649
|
-
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3650
|
-
/**
|
|
3651
|
-
* 添加Wire,形成Wire。
|
|
3652
|
-
* @param wire 要添加的Wire。
|
|
3653
|
-
* @returns 最终的Wire。
|
|
3654
|
-
*/
|
|
3655
|
-
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3656
|
-
/**
|
|
3657
|
-
* 绘制Wire。
|
|
3658
|
-
*/
|
|
3659
|
-
Draw(): void;
|
|
3660
|
-
}
|
|
3661
3573
|
/**
|
|
3662
3574
|
* 表示一个Edge形状。
|
|
3663
3575
|
*/
|
|
3664
|
-
export declare class MdGeEdge extends MdGeShape {
|
|
3665
|
-
/**
|
|
3666
|
-
* 构造函数。
|
|
3667
|
-
*/
|
|
3668
|
-
constructor();
|
|
3669
|
-
/**
|
|
3670
|
-
* 构造函数。
|
|
3671
|
-
* @param pt1 第一个点。
|
|
3672
|
-
* @param pt2 第二个点。
|
|
3673
|
-
*/
|
|
3674
|
-
constructor(pt1: MdGePoint, pt2: MdGePoint);
|
|
3675
|
-
/**
|
|
3676
|
-
* 获得MdGeWire类型的Edge。
|
|
3677
|
-
* @returns MdGeWire类型的Edge形状。
|
|
3678
|
-
*/
|
|
3679
|
-
Wire(): MdGeWire;
|
|
3680
|
-
/**
|
|
3681
|
-
* 添加Edge,形成Wire。
|
|
3682
|
-
* @param edge 要添加的Egde。
|
|
3683
|
-
* @returns 最终的Wire形状。
|
|
3684
|
-
*/
|
|
3685
|
-
AddedEdge(edge: MdGeEdge): MdGeWire;
|
|
3686
|
-
/**
|
|
3687
|
-
* 添加Wire,形成Edge。
|
|
3688
|
-
* @param wire 要添加的Wire。
|
|
3689
|
-
* @returns 最终的Wire形状。
|
|
3690
|
-
*/
|
|
3691
|
-
AddedWire(wire: MdGeWire): MdGeWire;
|
|
3692
|
-
/**
|
|
3693
|
-
* 绘制Edge。
|
|
3694
|
-
*/
|
|
3695
|
-
Draw(): void;
|
|
3696
|
-
}
|
|
3697
3576
|
/**
|
|
3698
3577
|
* 表示一个Vertex形状。
|
|
3699
3578
|
*/
|
|
3700
|
-
export declare class MdGeVertex extends MdGeShape {
|
|
3701
|
-
constructor();
|
|
3702
|
-
constructor(x: number, y: number, z: number);
|
|
3703
|
-
constructor(pt: MdGePoint);
|
|
3704
|
-
Draw(): void;
|
|
3705
|
-
}
|
|
3706
3579
|
/**
|
|
3707
3580
|
* 表示一个Face形状。
|
|
3708
3581
|
*/
|
|
3709
|
-
export declare class MdGeFace extends MdGeShape {
|
|
3710
|
-
constructor();
|
|
3711
|
-
Draw(): void;
|
|
3712
|
-
}
|
|
3713
3582
|
/**
|
|
3714
3583
|
* 表示一个Shell形状。
|
|
3715
3584
|
*/
|
|
3716
|
-
export declare class MdGeShell extends MdGeShape {
|
|
3717
|
-
constructor();
|
|
3718
|
-
Draw(): void;
|
|
3719
|
-
}
|
|
3720
3585
|
/**
|
|
3721
3586
|
* 表示一个Solid形状。
|
|
3722
3587
|
*/
|
|
3723
|
-
export declare class MdGeSolid extends MdGeShape {
|
|
3724
|
-
constructor();
|
|
3725
|
-
Draw(): void;
|
|
3726
|
-
}
|
|
3727
3588
|
/**
|
|
3728
3589
|
* 表示一个CompSolid形状。
|
|
3729
3590
|
*/
|
|
3730
|
-
export declare class MdGeCompSolid extends MdGeShape {
|
|
3731
|
-
constructor();
|
|
3732
|
-
Draw(): void;
|
|
3733
|
-
}
|
|
3734
3591
|
/**
|
|
3735
3592
|
* 表示一个Compound形状。
|
|
3736
3593
|
*/
|
|
3737
|
-
export declare class MdGeCompound extends MdGeShape {
|
|
3738
|
-
constructor();
|
|
3739
|
-
Draw(): void;
|
|
3740
|
-
}
|
|
3741
3594
|
/**
|
|
3742
3595
|
* 表示角度标注。
|
|
3743
3596
|
*/
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3597
|
+
/**
|
|
3598
|
+
* 表示角度标注
|
|
3599
|
+
*/
|
|
3600
|
+
export declare class MdGeAngleDim extends MdGeObject {
|
|
3601
|
+
constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint);
|
|
3747
3602
|
FirstPoint(): MdGePoint;
|
|
3748
3603
|
SecondPoint(): MdGePoint;
|
|
3749
3604
|
CenterPoint(): MdGePoint;
|
|
3750
3605
|
FirstShape(): MdGeShape;
|
|
3751
3606
|
SecondShape(): MdGeShape;
|
|
3752
3607
|
ThirdShape(): MdGeShape;
|
|
3753
|
-
SetMeasuredGeometry(
|
|
3754
|
-
SetMeasuredGeometry(theFirstPoint: MdGePoint, theSecondPoint: MdGePoint, theThridPoint: MdGePoint): void;
|
|
3755
|
-
SetMeasuredGeometry(theCone: MdGeFace): void;
|
|
3608
|
+
SetMeasuredGeometry(p1: MdGeFace | MdGeEdge | MdGePoint, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint): void;
|
|
3756
3609
|
SetTextPosition(theTextPos: MdGePoint): void;
|
|
3757
3610
|
GetTextPosition(): MdGePoint;
|
|
3758
3611
|
GetNormalForMinAngle(): MdGeDir;
|
|
@@ -3762,9 +3615,11 @@ export declare class MdGeAngleDim {
|
|
|
3762
3615
|
/**
|
|
3763
3616
|
* 表示一维整数数组。
|
|
3764
3617
|
*/
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3618
|
+
/**
|
|
3619
|
+
* 表示一维整数数组。
|
|
3620
|
+
*/
|
|
3621
|
+
export declare class MdGeArray1OfInteger extends MdGeObject {
|
|
3622
|
+
constructor(p1?: number | object, p2?: number);
|
|
3768
3623
|
Init(theInteger: number): void;
|
|
3769
3624
|
Size(): number;
|
|
3770
3625
|
Length(): number;
|
|
@@ -3782,9 +3637,11 @@ export declare class MdGeArray1OfInteger {
|
|
|
3782
3637
|
/**
|
|
3783
3638
|
* 表示一维点数组。
|
|
3784
3639
|
*/
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3640
|
+
/**
|
|
3641
|
+
* 表示一维点数组。
|
|
3642
|
+
*/
|
|
3643
|
+
export declare class MdGeArray1OfPnt extends MdGeObject {
|
|
3644
|
+
constructor(p1?: number | object, p2?: number);
|
|
3788
3645
|
Init(thePnt: MdGePoint): void;
|
|
3789
3646
|
Size(): number;
|
|
3790
3647
|
Length(): number;
|
|
@@ -3802,9 +3659,11 @@ export declare class MdGeArray1OfPnt {
|
|
|
3802
3659
|
/**
|
|
3803
3660
|
* 表示一维实数数组。
|
|
3804
3661
|
*/
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3662
|
+
/**
|
|
3663
|
+
* 表示一维实数数组。
|
|
3664
|
+
*/
|
|
3665
|
+
export declare class MdGeArray1OfReal extends MdGeObject {
|
|
3666
|
+
constructor(p1?: number | object, p2?: number);
|
|
3808
3667
|
Init(theReal: number): void;
|
|
3809
3668
|
Size(): number;
|
|
3810
3669
|
Length(): number;
|
|
@@ -3822,10 +3681,11 @@ export declare class MdGeArray1OfReal {
|
|
|
3822
3681
|
/**
|
|
3823
3682
|
* 表示二维点数组。
|
|
3824
3683
|
*/
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3684
|
+
/**
|
|
3685
|
+
* 表示二维点数组。
|
|
3686
|
+
*/
|
|
3687
|
+
export declare class MdGeArray2OfPnt extends MdGeObject {
|
|
3688
|
+
constructor(p1?: number | MdGePoint | object, p2?: number, p3?: number, p4?: number, p5?: number);
|
|
3829
3689
|
Init(thePoint: MdGePoint): void;
|
|
3830
3690
|
Size(): number;
|
|
3831
3691
|
Length(): number;
|
|
@@ -3845,10 +3705,11 @@ export declare class MdGeArray2OfPnt {
|
|
|
3845
3705
|
/**
|
|
3846
3706
|
* 表示二维实数数组。
|
|
3847
3707
|
*/
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3708
|
+
/**
|
|
3709
|
+
* 表示二维实数数组。
|
|
3710
|
+
*/
|
|
3711
|
+
export declare class MdGeArray2OfReal extends MdGeObject {
|
|
3712
|
+
constructor(p1?: number | object, p2?: number, p3?: number, p4?: number, p5?: number);
|
|
3852
3713
|
Init(theReal: number): void;
|
|
3853
3714
|
Size(): number;
|
|
3854
3715
|
Length(): number;
|
|
@@ -3868,25 +3729,25 @@ export declare class MdGeArray2OfReal {
|
|
|
3868
3729
|
/**
|
|
3869
3730
|
* 表示贝塞尔曲线
|
|
3870
3731
|
*/
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3732
|
+
/**
|
|
3733
|
+
* 表示贝塞尔曲线
|
|
3734
|
+
*/
|
|
3735
|
+
export declare class MdGeBezierCurve extends MdGeObject {
|
|
3736
|
+
constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal);
|
|
3874
3737
|
Increase(Degree: number): void;
|
|
3875
|
-
InsertPoleAfter(
|
|
3876
|
-
|
|
3877
|
-
InsertPoleBefore(Index: number, P: MdGePoint): void;
|
|
3878
|
-
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;
|
|
3879
3740
|
RemovePole(Index: number): void;
|
|
3880
3741
|
Reverse(): void;
|
|
3881
3742
|
ReversedParameter(U: number): number;
|
|
3882
3743
|
Segment(U1: number, U2: number): void;
|
|
3883
|
-
SetPole(
|
|
3884
|
-
SetPole(Index: number, P: MdGePoint, Weight: number): void;
|
|
3744
|
+
SetPole(p1: number, p2: MdGePoint, p3?: number): void;
|
|
3885
3745
|
SetWeight(Index: number, Weight: number): void;
|
|
3886
3746
|
IsClosed(): boolean;
|
|
3887
3747
|
IsCN(N: number): boolean;
|
|
3888
3748
|
IsPeriodic(): boolean;
|
|
3889
3749
|
IsRational(): boolean;
|
|
3750
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
3890
3751
|
Degree(): number;
|
|
3891
3752
|
DN(U: number, N: number): MdGeVec;
|
|
3892
3753
|
StartPoint(): MdGePoint;
|
|
@@ -3907,28 +3768,23 @@ export declare class MdGeBezierCurve {
|
|
|
3907
3768
|
/**
|
|
3908
3769
|
* 表示贝塞尔曲面
|
|
3909
3770
|
*/
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3771
|
+
/**
|
|
3772
|
+
* 表示贝塞尔曲面
|
|
3773
|
+
*/
|
|
3774
|
+
export declare class MdGeBezierSurface extends MdGeObject {
|
|
3775
|
+
constructor(p1?: MdGeArray2OfPnt | object, p2?: MdGeArray2OfReal);
|
|
3913
3776
|
ExchangeUV(): void;
|
|
3914
3777
|
Increase(UDeg: number, VDeg: number): void;
|
|
3915
|
-
InsertPoleColAfter(
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3920
|
-
InsertPoleRowAfter(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3921
|
-
InsertPoleRowBefore(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3922
|
-
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;
|
|
3923
3782
|
RemovePoleCol(VIndex: number): void;
|
|
3924
3783
|
RemovePoleRow(UIndex: number): void;
|
|
3925
3784
|
Segment(U1: number, U2: number, V1: number, V2: number): void;
|
|
3926
|
-
SetPole(
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
3930
|
-
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
3931
|
-
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;
|
|
3932
3788
|
SetWeight(UIndex: number, VIndex: number, Weight: number): void;
|
|
3933
3789
|
SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
3934
3790
|
SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
@@ -3936,6 +3792,7 @@ export declare class MdGeBezierSurface {
|
|
|
3936
3792
|
UReversedParameter(U: number): number;
|
|
3937
3793
|
VReverse(): void;
|
|
3938
3794
|
VReversedParameter(V: number): number;
|
|
3795
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
3939
3796
|
DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
|
|
3940
3797
|
NbUPoles(): number;
|
|
3941
3798
|
NbVPoles(): number;
|
|
@@ -3961,11 +3818,12 @@ export declare class MdGeBezierSurface {
|
|
|
3961
3818
|
/**
|
|
3962
3819
|
* 表示倒斜角
|
|
3963
3820
|
*/
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
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;
|
|
3969
3827
|
SetDist(Dis: number, IC: number, F: MdGeFace): void;
|
|
3970
3828
|
GetDist(IC: number, Dis: number): void;
|
|
3971
3829
|
SetDists(Dis1: number, Dis2: number, IC: number, F: MdGeFace): void;
|
|
@@ -3973,6 +3831,7 @@ export declare class MdGeChamfer {
|
|
|
3973
3831
|
AddDA(Dis: number, Angle: number, E: MdGeEdge, F: MdGeFace): void;
|
|
3974
3832
|
SetDistAngle(Dis: number, Angle: number, IC: number, F: MdGeFace): void;
|
|
3975
3833
|
GetDistAngle(IC: number, Dis: number, Angle: number): void;
|
|
3834
|
+
SetMode(theMode: MdGe.MxCFDSChamfMode): void;
|
|
3976
3835
|
IsSymetric(IC: number): boolean;
|
|
3977
3836
|
IsTwoDistances(IC: number): boolean;
|
|
3978
3837
|
IsDistanceAngle(IC: number): boolean;
|
|
@@ -3997,9 +3856,11 @@ export declare class MdGeChamfer {
|
|
|
3997
3856
|
/**
|
|
3998
3857
|
* 表示一个圆
|
|
3999
3858
|
*/
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
3859
|
+
/**
|
|
3860
|
+
* 表示一个圆。
|
|
3861
|
+
*/
|
|
3862
|
+
export declare class MdGeCircle extends MdGeObject {
|
|
3863
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number);
|
|
4003
3864
|
SetAxis(theA1: MdGeAxis): void;
|
|
4004
3865
|
SetLocation(theP: MdGePoint): void;
|
|
4005
3866
|
SetPosition(theA2: MdGeCSYSR): void;
|
|
@@ -4032,24 +3893,23 @@ export declare class MdGeCircle {
|
|
|
4032
3893
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4033
3894
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCircle;
|
|
4034
3895
|
Shape(): MdGeShape;
|
|
4035
|
-
Edge(): MdGeEdge;
|
|
4036
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
3896
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4037
3897
|
Wire(): MdGeWire;
|
|
4038
3898
|
}
|
|
4039
3899
|
/**
|
|
4040
3900
|
* 表示一个坐标系(左手或右手)
|
|
4041
3901
|
*/
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
3902
|
+
/**
|
|
3903
|
+
* 表示一个坐标系(左手或右手)
|
|
3904
|
+
*/
|
|
3905
|
+
export declare class MdGeCSYS extends MdGeObject {
|
|
3906
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
|
|
4046
3907
|
XReverse(): void;
|
|
4047
3908
|
YReverse(): void;
|
|
4048
3909
|
ZReverse(): void;
|
|
4049
3910
|
SetZAxis(z_axis: MdGeAxis): void;
|
|
4050
3911
|
SetZDirection(z_dir: MdGeDir): void;
|
|
4051
|
-
SetOrigin(
|
|
4052
|
-
SetOrigin(theX: number, theY: number, theZ: number): void;
|
|
3912
|
+
SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
|
|
4053
3913
|
SetXDirection(x_dir: MdGeDir): void;
|
|
4054
3914
|
SetYDirection(y_dir: MdGeDir): void;
|
|
4055
3915
|
Angle(other: MdGeCSYS): number;
|
|
@@ -4082,9 +3942,11 @@ export declare class MdGeCSYS {
|
|
|
4082
3942
|
/**
|
|
4083
3943
|
* 表示一个圆锥
|
|
4084
3944
|
*/
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
3945
|
+
/**
|
|
3946
|
+
* 表示一个圆锥
|
|
3947
|
+
*/
|
|
3948
|
+
export declare class MdGeCone extends MdGeObject {
|
|
3949
|
+
constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
|
|
4088
3950
|
SetAxis(theA1: MdGeAxis): void;
|
|
4089
3951
|
SetLocation(theLoc: MdGePoint): void;
|
|
4090
3952
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4118,16 +3980,16 @@ export declare class MdGeCone {
|
|
|
4118
3980
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4119
3981
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCone;
|
|
4120
3982
|
Shape(H: number, Angle?: number): MdGeShape;
|
|
4121
|
-
Face(): MdGeFace;
|
|
4122
|
-
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4123
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
3983
|
+
Face(p1?: number | MdGeWire, p2?: number | boolean, p3?: number, p4?: number): MdGeFace;
|
|
4124
3984
|
}
|
|
4125
3985
|
/**
|
|
4126
3986
|
* 表示一个圆柱
|
|
4127
3987
|
*/
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
3988
|
+
/**
|
|
3989
|
+
* 表示一个圆柱。
|
|
3990
|
+
*/
|
|
3991
|
+
export declare class MdGeCylinder extends MdGeObject {
|
|
3992
|
+
constructor(p1?: MdGeCSYS | object, p2?: number);
|
|
4131
3993
|
SetAxis(theA1: MdGeAxis): void;
|
|
4132
3994
|
SetLocation(theLoc: MdGePoint): void;
|
|
4133
3995
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4158,18 +4020,16 @@ export declare class MdGeCylinder {
|
|
|
4158
4020
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4159
4021
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCylinder;
|
|
4160
4022
|
Shape(H: number, Angle?: number): MdGeShape;
|
|
4161
|
-
Face(): MdGeFace;
|
|
4162
|
-
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4163
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4023
|
+
Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
|
|
4164
4024
|
}
|
|
4165
4025
|
/**
|
|
4166
4026
|
* 表示一个平面
|
|
4167
4027
|
*/
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
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);
|
|
4173
4033
|
SetAxis(theA1: MdGeAxis): void;
|
|
4174
4034
|
SetLocation(theLoc: MdGePoint): void;
|
|
4175
4035
|
SetPosition(theA3: MdGeCSYS): void;
|
|
@@ -4202,16 +4062,16 @@ export declare class MdGePlane {
|
|
|
4202
4062
|
TranslatedByVec(theV: MdGeVec): MdGePlane;
|
|
4203
4063
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4204
4064
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGePlane;
|
|
4205
|
-
Face(): MdGeFace;
|
|
4206
|
-
Face(UMin: number, UMax: number, VMin: number, VMax: number): MdGeFace;
|
|
4207
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4065
|
+
Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
|
|
4208
4066
|
}
|
|
4209
4067
|
/**
|
|
4210
4068
|
* 表示直径标注
|
|
4211
4069
|
*/
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4070
|
+
/**
|
|
4071
|
+
* 表示直径标注
|
|
4072
|
+
*/
|
|
4073
|
+
export declare class MdGeDiameterDim extends MdGeObject {
|
|
4074
|
+
constructor(p1?: MdGeCircle | object, p2?: MdGePlane);
|
|
4215
4075
|
Circle(): MdGeCircle;
|
|
4216
4076
|
AnchorPoint(): MdGePoint;
|
|
4217
4077
|
Shape(): MdGeShape;
|
|
@@ -4223,9 +4083,11 @@ export declare class MdGeDiameterDim {
|
|
|
4223
4083
|
/**
|
|
4224
4084
|
* 表示一个椭圆
|
|
4225
4085
|
*/
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4086
|
+
/**
|
|
4087
|
+
* 表示一个椭圆
|
|
4088
|
+
*/
|
|
4089
|
+
export declare class MdGeEllipse extends MdGeObject {
|
|
4090
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4229
4091
|
SetAxis(theA1: MdGeAxis): void;
|
|
4230
4092
|
SetLocation(theP: MdGePoint): void;
|
|
4231
4093
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4258,100 +4120,99 @@ export declare class MdGeEllipse {
|
|
|
4258
4120
|
Scaled(theP: MdGePoint, theS: number): MdGeEllipse;
|
|
4259
4121
|
Transform(theT: MdGeTrsf): void;
|
|
4260
4122
|
Transformed(theT: MdGeTrsf): MdGeEllipse;
|
|
4261
|
-
Translate(theV: MdGeVec): void;
|
|
4262
|
-
Translated(theV: MdGeVec): MdGeEllipse;
|
|
4263
|
-
Translate(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4264
|
-
Translated(theP1: MdGePoint, theP2: MdGePoint): MdGeEllipse;
|
|
4265
4123
|
Shape(): MdGeShape;
|
|
4266
4124
|
Wire(): MdGeWire;
|
|
4267
|
-
Edge(): MdGeEdge;
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
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
|
-
|
|
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
|
+
}
|
|
4347
4206
|
}
|
|
4348
4207
|
/**
|
|
4349
4208
|
* 表示拓扑元素遍历
|
|
4350
4209
|
*/
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
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;
|
|
4355
4216
|
More(): boolean;
|
|
4356
4217
|
Next(): void;
|
|
4357
4218
|
Value(): MdGeShape;
|
|
@@ -4364,23 +4225,21 @@ export declare class MdGeExplorer {
|
|
|
4364
4225
|
/**
|
|
4365
4226
|
* 表示倒圆角
|
|
4366
4227
|
*/
|
|
4367
|
-
|
|
4368
|
-
|
|
4228
|
+
/**
|
|
4229
|
+
* 表示倒圆角
|
|
4230
|
+
*/
|
|
4231
|
+
export declare class MdGeFillet extends MdGeObject {
|
|
4232
|
+
constructor(p1?: MdGeShape | object, p2?: MdGe.MxCF3dFilletShapeEnum);
|
|
4369
4233
|
SetParams(Tang: number, Tesp: number, T2d: number, TApp3d: number, TolApp2d: number, Fleche: number): void;
|
|
4370
|
-
Add(
|
|
4371
|
-
|
|
4372
|
-
Add(R1: number, R2: number, E: MdGeEdge): void;
|
|
4373
|
-
SetRadius(Radius: number, IC: number, IinC: number): void;
|
|
4374
|
-
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;
|
|
4375
4236
|
ResetContour(IC: number): void;
|
|
4376
|
-
IsConstant(IC: number): boolean;
|
|
4377
|
-
Radius(IC: number): number;
|
|
4378
|
-
IsConstant(IC: number, E: MdGeEdge): boolean;
|
|
4379
|
-
Radius(IC: number, E: MdGeEdge): number;
|
|
4237
|
+
IsConstant(IC: number, E?: MdGeEdge): boolean;
|
|
4238
|
+
Radius(IC: number, E?: MdGeEdge): number;
|
|
4380
4239
|
SetRadiusForEdge(Radius: number, IC: number, E: MdGeEdge): void;
|
|
4381
4240
|
SetRadiusForVertex(Radius: number, IC: number, V: MdGeVertex): void;
|
|
4382
|
-
SetFilletShape(FShape: MxCF3dFilletShapeEnum): void;
|
|
4383
|
-
GetFilletShape(): MxCF3dFilletShapeEnum;
|
|
4241
|
+
SetFilletShape(FShape: MdGe.MxCF3dFilletShapeEnum): void;
|
|
4242
|
+
GetFilletShape(): MdGe.MxCF3dFilletShapeEnum;
|
|
4384
4243
|
NbContours(): number;
|
|
4385
4244
|
Contour(E: MdGeEdge): number;
|
|
4386
4245
|
NbEdges(I: number): number;
|
|
@@ -4409,9 +4268,11 @@ export declare class MdGeFillet {
|
|
|
4409
4268
|
/**
|
|
4410
4269
|
* 表示双曲线
|
|
4411
4270
|
*/
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4271
|
+
/**
|
|
4272
|
+
* 表示双曲线。
|
|
4273
|
+
*/
|
|
4274
|
+
export declare class MdGeHypr extends MdGeObject {
|
|
4275
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4415
4276
|
SetAxis(theA1: MdGeAxis): void;
|
|
4416
4277
|
SetLocation(theP: MdGePoint): void;
|
|
4417
4278
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -4454,20 +4315,17 @@ export declare class MdGeHypr {
|
|
|
4454
4315
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeHypr;
|
|
4455
4316
|
Shape(): MdGeShape;
|
|
4456
4317
|
Wire(): MdGeWire;
|
|
4457
|
-
Edge(): MdGeEdge;
|
|
4458
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
4318
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4459
4319
|
}
|
|
4460
4320
|
/**
|
|
4461
4321
|
* 表示一个Box
|
|
4462
4322
|
*/
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
constructor(
|
|
4468
|
-
Init(
|
|
4469
|
-
Init(thePnt1: MdGePoint, thePnt2: MdGePoint): void;
|
|
4470
|
-
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;
|
|
4471
4329
|
Shape(): MdGeShape;
|
|
4472
4330
|
Shell(): MdGeShell;
|
|
4473
4331
|
Solid(): MdGeSolid;
|
|
@@ -4481,34 +4339,32 @@ export declare class MdGeBox {
|
|
|
4481
4339
|
/**
|
|
4482
4340
|
* 表示B样条曲线
|
|
4483
4341
|
*/
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4342
|
+
/**
|
|
4343
|
+
* 表示B样条曲线
|
|
4344
|
+
*/
|
|
4345
|
+
export declare class MdGeBSplineCurve extends MdGeObject {
|
|
4346
|
+
constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal, p3?: MdGeArray1OfInteger, p4?: number, p5?: boolean);
|
|
4487
4347
|
IncreaseDegree(Degree: number): void;
|
|
4488
|
-
IncreaseMultiplicity(
|
|
4489
|
-
IncreaseMultiplicity(I1: number, I2: number, M: number): void;
|
|
4348
|
+
IncreaseMultiplicity(p1: number, p2: number, p3?: number): void;
|
|
4490
4349
|
IncrementMultiplicity(I1: number, I2: number, M: number): void;
|
|
4491
4350
|
InsertKnot(U: number, M?: number, ParametricTolerance?: number, Add?: boolean): void;
|
|
4492
4351
|
InsertKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
|
|
4493
4352
|
RemoveKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4494
4353
|
Reverse(): void;
|
|
4495
4354
|
ReversedParameter(U: number): number;
|
|
4496
|
-
SetKnot(Index: number, K: number): void;
|
|
4355
|
+
SetKnot(Index: number, K: number, M?: number): void;
|
|
4497
4356
|
SetKnots(K: MdGeArray1OfReal): void;
|
|
4498
|
-
SetKnot(Index: number, K: number, M: number): void;
|
|
4499
4357
|
SetPeriodic(): void;
|
|
4500
|
-
SetOrigin(
|
|
4501
|
-
SetOrigin(U: number, Tol: number): void;
|
|
4358
|
+
SetOrigin(p1: number, p2?: number): void;
|
|
4502
4359
|
SetNotPeriodic(): void;
|
|
4503
|
-
SetPole(Index: number, P: MdGePoint): void;
|
|
4504
|
-
SetPole(Index: number, P: MdGePoint, Weight: number): void;
|
|
4360
|
+
SetPole(Index: number, P: MdGePoint, Weight?: number): void;
|
|
4505
4361
|
SetWeight(Index: number, Weight: number): void;
|
|
4506
4362
|
IsCN(N: number): boolean;
|
|
4507
4363
|
IsG1(theTf: number, theTl: number, theAngTol: number): boolean;
|
|
4508
4364
|
IsClosed(): boolean;
|
|
4509
4365
|
IsPeriodic(): boolean;
|
|
4510
4366
|
IsRational(): boolean;
|
|
4511
|
-
Continuity(): MxGAShapeEnum;
|
|
4367
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
4512
4368
|
Degree(): number;
|
|
4513
4369
|
DN(U: number, N: number): MdGeVec;
|
|
4514
4370
|
LocalValue(U: number, FromK1: number, ToK2: number): MdGePoint;
|
|
@@ -4538,15 +4394,16 @@ export declare class MdGeBSplineCurve {
|
|
|
4538
4394
|
/**
|
|
4539
4395
|
* 表示B样条曲面
|
|
4540
4396
|
*/
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
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);
|
|
4544
4402
|
ExchangeUV(): void;
|
|
4545
4403
|
SetUPeriodic(): void;
|
|
4546
4404
|
SetVPeriodic(): void;
|
|
4547
4405
|
SetUOrigin(Index: number): void;
|
|
4548
4406
|
SetVOrigin(Index: number): void;
|
|
4549
|
-
SetUNotPeriodic(): void;
|
|
4550
4407
|
SetVNotPeriodic(): void;
|
|
4551
4408
|
UReverse(): void;
|
|
4552
4409
|
VReverse(): void;
|
|
@@ -4557,26 +4414,19 @@ export declare class MdGeBSplineSurface {
|
|
|
4557
4414
|
InsertVKnots(Knots: MdGeArray1OfReal, Mults: MdGeArray1OfInteger, ParametricTolerance?: number, Add?: boolean): void;
|
|
4558
4415
|
RemoveUKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4559
4416
|
RemoveVKnot(Index: number, M: number, Tolerance: number): boolean;
|
|
4560
|
-
IncreaseUMultiplicity(
|
|
4561
|
-
|
|
4417
|
+
IncreaseUMultiplicity(p1: number, p2: number, p3?: number): void;
|
|
4418
|
+
IncreaseVMultiplicity(p1: number, p2: number, p3?: number): void;
|
|
4562
4419
|
IncrementUMultiplicity(FromI1: number, ToI2: number, Step: number): void;
|
|
4563
|
-
IncreaseVMultiplicity(VIndex: number, M: number): void;
|
|
4564
|
-
IncreaseVMultiplicity(FromI1: number, ToI2: number, M: number): void;
|
|
4565
4420
|
IncrementVMultiplicity(FromI1: number, ToI2: number, Step: number): void;
|
|
4566
4421
|
InsertUKnot(U: number, M: number, ParametricTolerance: number, Add?: boolean): void;
|
|
4567
4422
|
InsertVKnot(V: number, M: number, ParametricTolerance: number, Add?: boolean): void;
|
|
4568
|
-
SetUKnot(UIndex: number, K: number): void;
|
|
4423
|
+
SetUKnot(UIndex: number, K: number, M?: number): void;
|
|
4424
|
+
SetVKnot(VIndex: number, K: number, M?: number): void;
|
|
4569
4425
|
SetUKnots(UK: MdGeArray1OfReal): void;
|
|
4570
|
-
SetUKnot(UIndex: number, K: number, M: number): void;
|
|
4571
|
-
SetVKnot(VIndex: number, K: number): void;
|
|
4572
4426
|
SetVKnots(VK: MdGeArray1OfReal): void;
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt): void;
|
|
4577
|
-
SetPoleCol(VIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
4578
|
-
SetPoleRow(UIndex: number, CPoles: MdGeArray1OfPnt, CPoleWeights: MdGeArray1OfReal): void;
|
|
4579
|
-
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;
|
|
4580
4430
|
SetWeight(UIndex: number, VIndex: number, Weight: number): void;
|
|
4581
4431
|
SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
4582
4432
|
SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
|
|
@@ -4588,7 +4438,7 @@ export declare class MdGeBSplineSurface {
|
|
|
4588
4438
|
IsURational(): boolean;
|
|
4589
4439
|
IsVPeriodic(): boolean;
|
|
4590
4440
|
IsVRational(): boolean;
|
|
4591
|
-
Continuity(): MxGAShapeEnum;
|
|
4441
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
4592
4442
|
FirstUKnotIndex(): number;
|
|
4593
4443
|
FirstVKnotIndex(): number;
|
|
4594
4444
|
LastUKnotIndex(): number;
|
|
@@ -4624,9 +4474,11 @@ export declare class MdGeBSplineSurface {
|
|
|
4624
4474
|
/**
|
|
4625
4475
|
* 表示插值B样条曲线
|
|
4626
4476
|
*/
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4477
|
+
/**
|
|
4478
|
+
* 表示插值B样条曲线
|
|
4479
|
+
*/
|
|
4480
|
+
export declare class MdGeInterpolateBSpl extends MdGeObject {
|
|
4481
|
+
constructor(p1?: MdGeArray1OfPnt | object, p2?: boolean | MdGeArray1OfReal, p3?: number | boolean, p4?: number);
|
|
4630
4482
|
Load(InitialTangent: MdGeVec, FinalTangent: MdGeVec, Scale?: boolean): void;
|
|
4631
4483
|
Perform(): void;
|
|
4632
4484
|
Curve(): MdGeBSplineCurve;
|
|
@@ -4635,10 +4487,11 @@ export declare class MdGeInterpolateBSpl {
|
|
|
4635
4487
|
/**
|
|
4636
4488
|
* 表示长度标注
|
|
4637
4489
|
*/
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4490
|
+
/**
|
|
4491
|
+
* 表示长度标注
|
|
4492
|
+
*/
|
|
4493
|
+
export declare class MdGeLengthDim extends MdGeObject {
|
|
4494
|
+
constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGePlane | MdGePoint, p3?: MdGePlane);
|
|
4642
4495
|
FirstPoint(): MdGePoint;
|
|
4643
4496
|
SecondPoint(): MdGePoint;
|
|
4644
4497
|
FirstShape(): MdGeShape;
|
|
@@ -4653,9 +4506,11 @@ export declare class MdGeLengthDim {
|
|
|
4653
4506
|
/**
|
|
4654
4507
|
* 表示一条直线
|
|
4655
4508
|
*/
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4509
|
+
/**
|
|
4510
|
+
* 表示一条直线
|
|
4511
|
+
*/
|
|
4512
|
+
export declare class MdGeLine extends MdGeObject {
|
|
4513
|
+
constructor(p1?: MdGePoint | object, p2?: MdGeDir);
|
|
4659
4514
|
Reverse(): void;
|
|
4660
4515
|
Reversed(): MdGeLine;
|
|
4661
4516
|
SetDirection(theV: MdGeDir): void;
|
|
@@ -4689,14 +4544,16 @@ export declare class MdGeLine {
|
|
|
4689
4544
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeLine;
|
|
4690
4545
|
Shape(): MdGeShape;
|
|
4691
4546
|
Wire(): MdGeWire;
|
|
4692
|
-
Edge(): MdGeEdge;
|
|
4693
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
4547
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4694
4548
|
}
|
|
4695
4549
|
/**
|
|
4696
4550
|
* 表示形状链表迭代器
|
|
4697
4551
|
*/
|
|
4698
|
-
|
|
4699
|
-
|
|
4552
|
+
/**
|
|
4553
|
+
* 表示形状链表迭代器
|
|
4554
|
+
*/
|
|
4555
|
+
export declare class MdGeListIteratorOfListOfShape extends MdGeObject {
|
|
4556
|
+
constructor(p?: object);
|
|
4700
4557
|
More(): boolean;
|
|
4701
4558
|
Next(): void;
|
|
4702
4559
|
Value(): MdGeShape;
|
|
@@ -4705,15 +4562,17 @@ export declare class MdGeListIteratorOfListOfShape {
|
|
|
4705
4562
|
/**
|
|
4706
4563
|
* 表示形状链表
|
|
4707
4564
|
*/
|
|
4708
|
-
|
|
4709
|
-
|
|
4565
|
+
/**
|
|
4566
|
+
* 表示形状链表
|
|
4567
|
+
*/
|
|
4568
|
+
export declare class MdGeListOfShape extends MdGeObject {
|
|
4569
|
+
constructor(p?: object);
|
|
4710
4570
|
begin(): MdGeListIteratorOfListOfShape;
|
|
4711
4571
|
end(): MdGeListIteratorOfListOfShape;
|
|
4712
4572
|
Size(): number;
|
|
4713
4573
|
First(): MdGeShape;
|
|
4714
4574
|
Last(): MdGeShape;
|
|
4715
|
-
AppendShape(theShape: MdGeShape): void;
|
|
4716
|
-
AppendShape(theShape: MdGeShape, theIter: MdGeListIteratorOfListOfShape): void;
|
|
4575
|
+
AppendShape(theShape: MdGeShape, theIter?: MdGeListIteratorOfListOfShape): void;
|
|
4717
4576
|
AppendList(theOther: MdGeListOfShape): void;
|
|
4718
4577
|
PrependShape(theShape: MdGeShape): void;
|
|
4719
4578
|
PrependList(theOther: MdGeListOfShape): void;
|
|
@@ -4727,16 +4586,19 @@ export declare class MdGeListOfShape {
|
|
|
4727
4586
|
/**
|
|
4728
4587
|
* 表示放样
|
|
4729
4588
|
*/
|
|
4730
|
-
|
|
4731
|
-
|
|
4589
|
+
/**
|
|
4590
|
+
* 表示放样
|
|
4591
|
+
*/
|
|
4592
|
+
export declare class MdGeLoft extends MdGeObject {
|
|
4593
|
+
constructor(p1?: boolean | object, p2?: boolean, p3?: number);
|
|
4732
4594
|
Init(isSolid?: boolean, ruled?: boolean, pres3d?: number): void;
|
|
4733
4595
|
AddWire(wire: MdGeWire): void;
|
|
4734
4596
|
AddVertex(aVertex: MdGeVertex): void;
|
|
4735
4597
|
CheckCompatibility(check?: boolean): void;
|
|
4736
4598
|
SetSmoothing(UseSmoothing: boolean): void;
|
|
4737
|
-
SetContinuity(C: MxGAShapeEnum): void;
|
|
4599
|
+
SetContinuity(C: MdGe.MxGAShapeEnum): void;
|
|
4738
4600
|
SetMaxDegree(MaxDeg: number): void;
|
|
4739
|
-
Continuity(): MxGAShapeEnum;
|
|
4601
|
+
Continuity(): MdGe.MxGAShapeEnum;
|
|
4740
4602
|
MaxDegree(): number;
|
|
4741
4603
|
UseSmoothing(): boolean;
|
|
4742
4604
|
FirstShape(): MdGeShape;
|
|
@@ -4749,18 +4611,23 @@ export declare class MdGeLoft {
|
|
|
4749
4611
|
/**
|
|
4750
4612
|
* 表示薄实体
|
|
4751
4613
|
*/
|
|
4752
|
-
|
|
4753
|
-
|
|
4614
|
+
/**
|
|
4615
|
+
* 表示薄实体
|
|
4616
|
+
*/
|
|
4617
|
+
export declare class MdGeMakeThickSolid extends MdGeObject {
|
|
4618
|
+
constructor(p?: object);
|
|
4754
4619
|
MakeThickSolidBySimple(theS: MdGeShape, theOffsetValue: number): void;
|
|
4755
|
-
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;
|
|
4756
4621
|
Shape(): MdGeShape;
|
|
4757
4622
|
}
|
|
4758
4623
|
/**
|
|
4759
4624
|
* 表示抛物线
|
|
4760
4625
|
*/
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4626
|
+
/**
|
|
4627
|
+
* 表示抛物线
|
|
4628
|
+
*/
|
|
4629
|
+
export declare class MdGeParab extends MdGeObject {
|
|
4630
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number);
|
|
4764
4631
|
SetAxis(theA1: MdGeAxis): void;
|
|
4765
4632
|
SetFocal(theFocal: number): void;
|
|
4766
4633
|
SetLocation(theP: MdGePoint): void;
|
|
@@ -4792,15 +4659,16 @@ export declare class MdGeParab {
|
|
|
4792
4659
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeParab;
|
|
4793
4660
|
Shape(): MdGeShape;
|
|
4794
4661
|
Wire(): MdGeWire;
|
|
4795
|
-
Edge(): MdGeEdge;
|
|
4796
|
-
Edge(p1: number, p2: number): MdGeEdge;
|
|
4662
|
+
Edge(p1?: number, p2?: number): MdGeEdge;
|
|
4797
4663
|
}
|
|
4798
4664
|
/**
|
|
4799
4665
|
* 表示管道
|
|
4800
4666
|
*/
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4667
|
+
/**
|
|
4668
|
+
* 表示管道
|
|
4669
|
+
*/
|
|
4670
|
+
export declare class MdGePipe extends MdGeObject {
|
|
4671
|
+
constructor(p1?: MdGeWire | object, p2?: MdGeShape, p3?: MdGe.MxGFTrihedron, p4?: boolean);
|
|
4804
4672
|
FirstShape(): MdGeShape;
|
|
4805
4673
|
LastShape(): MdGeShape;
|
|
4806
4674
|
Generated(SSpine: MdGeShape, SProfile: MdGeShape): MdGeShape;
|
|
@@ -4810,48 +4678,53 @@ export declare class MdGePipe {
|
|
|
4810
4678
|
/**
|
|
4811
4679
|
* 表示拟合点B样条曲线
|
|
4812
4680
|
*/
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
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;
|
|
4817
4687
|
Curve(): MdGeBSplineCurve;
|
|
4818
4688
|
IsDone(): boolean;
|
|
4819
4689
|
}
|
|
4820
4690
|
/**
|
|
4821
4691
|
* 表示拟合B样条曲面
|
|
4822
4692
|
*/
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
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;
|
|
4829
4700
|
IsDone(): boolean;
|
|
4830
4701
|
Surface(): MdGeBSplineSurface;
|
|
4831
4702
|
}
|
|
4832
4703
|
/**
|
|
4833
4704
|
* 表示拉伸体
|
|
4834
4705
|
*/
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
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;
|
|
4839
4713
|
IsDeleted(S: MdGeShape): boolean;
|
|
4840
|
-
FirstShape(theShape: MdGeShape): MdGeShape;
|
|
4841
|
-
LastShape(theShape: MdGeShape): MdGeShape;
|
|
4842
4714
|
Shape(): MdGeShape;
|
|
4843
4715
|
}
|
|
4844
4716
|
/**
|
|
4845
4717
|
* 表示半径标注
|
|
4846
4718
|
*/
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4719
|
+
/**
|
|
4720
|
+
* 表示半径标注
|
|
4721
|
+
*/
|
|
4722
|
+
export declare class MdGeRadiusDim extends MdGeObject {
|
|
4723
|
+
constructor(p1?: MdGeCircle | object, p2?: MdGePoint);
|
|
4850
4724
|
Circle(): MdGeCircle;
|
|
4851
4725
|
AnchorPoint(): MdGePoint;
|
|
4852
4726
|
Shape(): MdGeShape;
|
|
4853
|
-
SetMeasuredGeometry(theCircle: MdGeCircle): void;
|
|
4854
|
-
SetMeasuredGeometry(theCircle: MdGeCircle, theAnchorPoint: MdGePoint, theHasAnchor?: boolean): void;
|
|
4727
|
+
SetMeasuredGeometry(theCircle: MdGeCircle, theAnchorPoint?: MdGePoint, theHasAnchor?: boolean): void;
|
|
4855
4728
|
SetTextPosition(theTextPos: MdGePoint): void;
|
|
4856
4729
|
GetTextPosition(): MdGePoint;
|
|
4857
4730
|
Display(): void;
|
|
@@ -4859,8 +4732,11 @@ export declare class MdGeRadiusDim {
|
|
|
4859
4732
|
/**
|
|
4860
4733
|
* 表示一个矩形
|
|
4861
4734
|
*/
|
|
4862
|
-
|
|
4863
|
-
|
|
4735
|
+
/**
|
|
4736
|
+
* 表示一个矩形
|
|
4737
|
+
*/
|
|
4738
|
+
export declare class MdGeRect extends MdGeObject {
|
|
4739
|
+
constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
|
|
4864
4740
|
Position(): MdGeCSYSR;
|
|
4865
4741
|
SetPosition(thePosition: MdGeCSYSR): void;
|
|
4866
4742
|
X(): number;
|
|
@@ -4879,23 +4755,25 @@ export declare class MdGeRect {
|
|
|
4879
4755
|
/**
|
|
4880
4756
|
* 表示旋转体
|
|
4881
4757
|
*/
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
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;
|
|
4886
4765
|
IsDeleted(S: MdGeShape): boolean;
|
|
4887
|
-
FirstShape(theShape: MdGeShape): MdGeShape;
|
|
4888
|
-
LastShape(theShape: MdGeShape): MdGeShape;
|
|
4889
4766
|
HasDegenerated(): boolean;
|
|
4890
4767
|
Shape(): MdGeShape;
|
|
4891
4768
|
}
|
|
4892
4769
|
/**
|
|
4893
4770
|
* 表示一个球体
|
|
4894
4771
|
*/
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4772
|
+
/**
|
|
4773
|
+
* 表示一个球体
|
|
4774
|
+
*/
|
|
4775
|
+
export declare class MdGeSphere extends MdGeObject {
|
|
4776
|
+
constructor(p1?: MdGeCSYS | number | object, p2?: number, p3?: number, p4?: number);
|
|
4899
4777
|
SetLocation(theLoc: MdGePoint): void;
|
|
4900
4778
|
SetPosition(theA3: MdGeCSYS): void;
|
|
4901
4779
|
SetRadius(theR: number): void;
|
|
@@ -4925,20 +4803,17 @@ export declare class MdGeSphere {
|
|
|
4925
4803
|
TranslatedByVec(theV: MdGeVec): MdGeSphere;
|
|
4926
4804
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
4927
4805
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeSphere;
|
|
4928
|
-
Face(): MdGeFace;
|
|
4929
|
-
|
|
4930
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
4931
|
-
Shape(): MdGeShape;
|
|
4932
|
-
Shape(angle: number): MdGeShape;
|
|
4933
|
-
Shape(angle1: number, angle2: number): MdGeShape;
|
|
4934
|
-
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;
|
|
4935
4808
|
}
|
|
4936
4809
|
/**
|
|
4937
4810
|
* 表示文字
|
|
4938
4811
|
*/
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4812
|
+
/**
|
|
4813
|
+
* 表示文字
|
|
4814
|
+
*/
|
|
4815
|
+
export declare class MdGeText extends MdGeObject {
|
|
4816
|
+
constructor(p1?: string | object, p2?: number, p3?: MdGeCSYSR);
|
|
4942
4817
|
SetText(theText: string): void;
|
|
4943
4818
|
Position(): MdGePoint;
|
|
4944
4819
|
SetPosition(thePoint: MdGePoint): void;
|
|
@@ -4950,46 +4825,53 @@ export declare class MdGeText {
|
|
|
4950
4825
|
SetOwnAnchorPoint(theHasOwnAnchor: boolean): void;
|
|
4951
4826
|
Height(): number;
|
|
4952
4827
|
SetHeight(theHeight: number): void;
|
|
4953
|
-
HorizontalAlignment(): MxHorizontalTextAlignment;
|
|
4954
|
-
SetHorizontalAlignment(theJustification: MxHorizontalTextAlignment): void;
|
|
4955
|
-
VerticalAlignment(): MxVerticalTextAlignment;
|
|
4956
|
-
SetVerticalAlignment(theJustification: MxVerticalTextAlignment): void;
|
|
4828
|
+
HorizontalAlignment(): MdGe.MxHorizontalTextAlignment;
|
|
4829
|
+
SetHorizontalAlignment(theJustification: MdGe.MxHorizontalTextAlignment): void;
|
|
4830
|
+
VerticalAlignment(): MdGe.MxVerticalTextAlignment;
|
|
4831
|
+
SetVerticalAlignment(theJustification: MdGe.MxVerticalTextAlignment): void;
|
|
4957
4832
|
Shape(): MdGeShape;
|
|
4958
4833
|
}
|
|
4959
4834
|
/**
|
|
4960
4835
|
* 表示文字标签
|
|
4961
4836
|
*/
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4837
|
+
/**
|
|
4838
|
+
* 表示文字标签
|
|
4839
|
+
*/
|
|
4840
|
+
export declare class MdGeTextLabel extends MdGeObject {
|
|
4841
|
+
constructor(p1?: string | object, p2?: number, p3?: MdGePoint);
|
|
4965
4842
|
SetColor(theR: number, theG: number, theB: number): void;
|
|
4966
4843
|
SetText(text: string): void;
|
|
4967
4844
|
SetPositon(position: MdGePoint): void;
|
|
4968
|
-
SetHJustification(theHJust: MxHorizontalTextAlignment): void;
|
|
4969
|
-
SetVJustification(theVJust: MxVerticalTextAlignment): void;
|
|
4845
|
+
SetHJustification(theHJust: MdGe.MxHorizontalTextAlignment): void;
|
|
4846
|
+
SetVJustification(theVJust: MdGe.MxVerticalTextAlignment): void;
|
|
4970
4847
|
SetAngle(theAngle: number): void;
|
|
4971
4848
|
SetZoomable(theIsZoomable: boolean): void;
|
|
4972
4849
|
SetHeight(height: number): void;
|
|
4973
|
-
SetFontAspect(theFontAspect: MxFontAspect): void;
|
|
4850
|
+
SetFontAspect(theFontAspect: MdGe.MxFontAspect): void;
|
|
4974
4851
|
SetFont(theFont: string): void;
|
|
4975
4852
|
SetOrientation3D(theOrientation: MdGeCSYSR): void;
|
|
4976
4853
|
UnsetOrientation3D(): void;
|
|
4977
4854
|
Position(): MdGePoint;
|
|
4978
|
-
FontAspect(): MxFontAspect;
|
|
4855
|
+
FontAspect(): MdGe.MxFontAspect;
|
|
4979
4856
|
Orientation3D(): MdGeCSYSR;
|
|
4980
4857
|
HasOrientation3D(): boolean;
|
|
4981
4858
|
SetFlipping(theIsFlipping: boolean): void;
|
|
4982
4859
|
HasFlipping(): boolean;
|
|
4983
4860
|
HasOwnAnchorPoint(): boolean;
|
|
4984
4861
|
SetOwnAnchorPoint(theOwnAnchorPoint: boolean): void;
|
|
4985
|
-
SetDisplayType(theDisplayType: MxTypeOfDisplayText): void;
|
|
4862
|
+
SetDisplayType(theDisplayType: MdGe.MxTypeOfDisplayText): void;
|
|
4986
4863
|
SetColorSubTitle(theR: number, theG: number, theB: number): void;
|
|
4987
4864
|
Display(): void;
|
|
4988
4865
|
}
|
|
4866
|
+
/**
|
|
4867
|
+
* 拓扑转换类
|
|
4868
|
+
*/
|
|
4989
4869
|
/**
|
|
4990
4870
|
* 拓扑转换类
|
|
4991
4871
|
*/
|
|
4992
4872
|
export declare class MdGeTopo {
|
|
4873
|
+
protected imp: any;
|
|
4874
|
+
constructor();
|
|
4993
4875
|
Vertex(S: MdGeShape): MdGeVertex;
|
|
4994
4876
|
Edge(S: MdGeShape): MdGeEdge;
|
|
4995
4877
|
Wire(S: MdGeShape): MdGeWire;
|
|
@@ -4998,13 +4880,17 @@ export declare class MdGeTopo {
|
|
|
4998
4880
|
Solid(S: MdGeShape): MdGeSolid;
|
|
4999
4881
|
CompSolid(S: MdGeShape): MdGeCompSolid;
|
|
5000
4882
|
Compound(S: MdGeShape): MdGeCompound;
|
|
4883
|
+
DestroyObject(pObj: object): void;
|
|
4884
|
+
SetRegisterFuncPtr(jsFunPtr: number): void;
|
|
5001
4885
|
}
|
|
5002
4886
|
/**
|
|
5003
4887
|
* 表示圆环
|
|
5004
4888
|
*/
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
4889
|
+
/**
|
|
4890
|
+
* 表示圆环
|
|
4891
|
+
*/
|
|
4892
|
+
export declare class MdGeTorus extends MdGeObject {
|
|
4893
|
+
constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
|
|
5008
4894
|
SetAxis(theA1: MdGeAxis): void;
|
|
5009
4895
|
SetLocation(theLoc: MdGePoint): void;
|
|
5010
4896
|
SetMajorRadius(theMajorRadius: number): void;
|
|
@@ -5038,20 +4924,17 @@ export declare class MdGeTorus {
|
|
|
5038
4924
|
TranslatedByVec(theV: MdGeVec): MdGeTorus;
|
|
5039
4925
|
TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
|
|
5040
4926
|
TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeTorus;
|
|
5041
|
-
Face(): MdGeFace;
|
|
5042
|
-
|
|
5043
|
-
Face(W: MdGeWire, Inside?: boolean): MdGeFace;
|
|
5044
|
-
Shape(): MdGeShape;
|
|
5045
|
-
Shape(angle: number): MdGeShape;
|
|
5046
|
-
Shape(angle1: number, angle2: number): MdGeShape;
|
|
5047
|
-
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;
|
|
5048
4929
|
}
|
|
5049
4930
|
/**
|
|
5050
4931
|
* 形状变换类
|
|
5051
4932
|
*/
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
4933
|
+
/**
|
|
4934
|
+
* 形状变换类
|
|
4935
|
+
*/
|
|
4936
|
+
export declare class MdGeTransform extends MdGeObject {
|
|
4937
|
+
constructor(p1?: MdGeTrsf | MdGeShape | object, p2?: MdGeTrsf, p3?: boolean, p4?: boolean);
|
|
5055
4938
|
Perform(theShape: MdGeShape, theCopyGeom?: boolean, theCopyMesh?: boolean): void;
|
|
5056
4939
|
ModifiedShape(S: MdGeShape): MdGeShape;
|
|
5057
4940
|
Shape(): MdGeShape;
|
|
@@ -5059,15 +4942,62 @@ export declare class MdGeTransform {
|
|
|
5059
4942
|
/**
|
|
5060
4943
|
* 表示一个楔形
|
|
5061
4944
|
*/
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
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);
|
|
5067
4950
|
Shell(): MdGeShell;
|
|
5068
4951
|
Solid(): MdGeSolid;
|
|
5069
4952
|
Shape(): MdGeShape;
|
|
5070
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
|
+
}
|
|
5071
5001
|
export declare function loadMxCADassembly3d(config: MxDraw3dConfig, call?: (mxDraw3d: MxDraw3d) => void): Promise<MxDraw3d>;
|
|
5072
5002
|
|
|
5073
5003
|
export {};
|