mxcad 1.0.195 → 1.0.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mxcad.d.ts CHANGED
@@ -229,6 +229,18 @@ export declare class McDbObject extends McRxObject {
229
229
  * 得到对象拥用者的id
230
230
  */
231
231
  getOwnerID(): number;
232
+ /**
233
+ * 得到对象的扩展字典数据.
234
+ */
235
+ getExtensionDictionary(): McDbDictionary;
236
+ /**
237
+ * 是否有扩展字典数据.
238
+ */
239
+ isHaveExtensionDictionary(): boolean;
240
+ /**
241
+ * 创建对象的扩展字典数据.
242
+ */
243
+ createExtensionDictionary(): boolean;
232
244
  getDatabaseIndexId(): number;
233
245
  moveGripPointsAt(iIndex: number, dXOffset: number, dYOffset: number, dZOffset: number): any;
234
246
  getGripPoints(): McGePoint3dArray;
@@ -1894,6 +1906,14 @@ export declare class McDbPolyline extends McDbCurve {
1894
1906
  * @param bulge 凸度
1895
1907
  */
1896
1908
  setWidthsAt(index: number, dStartWdith: number, dEntWdith: number): boolean;
1909
+ /**
1910
+ * 设置多线段类型
1911
+ */
1912
+ getType(): McDb.PolylineType;
1913
+ /**
1914
+ * 返回多线段类型
1915
+ */
1916
+ setType(type: McDb.PolylineType): boolean;
1897
1917
  }
1898
1918
  /**
1899
1919
  * 表示一个 CAD 图块引用实体。
@@ -2513,6 +2533,16 @@ export declare class McDbRasterImage extends McDbEntity {
2513
2533
  * @public
2514
2534
  */
2515
2535
  export declare namespace McDb {
2536
+ /**
2537
+ * 多线类型
2538
+ * @public
2539
+ */
2540
+ enum PolylineType {
2541
+ /** LW Polyline */
2542
+ kLwPolyline = 0,
2543
+ /** 3D Polyline */
2544
+ k3dPolyline = 2
2545
+ }
2516
2546
  /**
2517
2547
  * 文本水平对齐方式枚举。
2518
2548
  * @public
@@ -4152,6 +4182,8 @@ export declare class MxCADWorldDraw {
4152
4182
  private imp;
4153
4183
  constructor(lPtrWorldDraw: number);
4154
4184
  drawEntity(entity: McDbEntity): void;
4185
+ set trueColor(val: McCmColor);
4186
+ get trueColor(): McCmColor;
4155
4187
  }
4156
4188
  /**
4157
4189
  * 自定义实体。
@@ -4383,1439 +4415,6 @@ declare class PubSub<Events extends PubSubEvent = PubSubEvent> {
4383
4415
  */
4384
4416
  off<Key extends keyof Events>(event: Key, callback?: Events[keyof Events]): void;
4385
4417
  }
4386
- /** wasm importObject 的可配置选项 */
4387
- export interface WasmConfig {
4388
- /** 二进制数据 设置wasmBinary 则 locateFile 不生效**/
4389
- wasmBinary?: ArrayBuffer;
4390
- /** 手动指定wasm文件位置 */
4391
- locateFile?: typeof getWasmURL;
4392
- /** 打印 */
4393
- print?: (theText: string) => string;
4394
- /** 打印错误 */
4395
- printErr?: (theText: string) => void;
4396
- /** 监听运行时初始化 */
4397
- onRuntimeInitialized?: () => void;
4398
- }
4399
- /** MxDraw3d的构造函数参数 的可配置选项 */
4400
- export interface MxDraw3dConfig extends WasmConfig {
4401
- [x: string]: any;
4402
- canvas: string | HTMLCanvasElement;
4403
- /** canvas最小宽度 默认300 */
4404
- minWidth?: number;
4405
- /** canvas最小高度 默认300 */
4406
- minHeight?: number;
4407
- /** 指定更新Canvas大小的函数,不指定则默认自动处理(指定该函数则 minHeight, minWidth无效) */
4408
- updateCanvasSize?: () => void;
4409
- }
4410
- export declare class MxDraw3d extends PubSub<{
4411
- "eventModesSelected": (ids: number[]) => void;
4412
- "eventAddToTree": (node: string) => void;
4413
- "eventRemoveFromTree": (ids: number[]) => void;
4414
- "eventFileSave": (fileName: string) => void;
4415
- "eventRebuildTree": (tree_str: string) => void;
4416
- "eventUpdatePointer": (pointer: number[]) => void;
4417
- "eventUpdateViewSize": (pointer: number[]) => void;
4418
- }> implements MxDraw3dConfig {
4419
- [x: string]: any;
4420
- /** 监听wasm 文件加载成功事件 */
4421
- static onloadWasmMxDraw3dModel: (mxDraw3d: MxDraw3d) => void;
4422
- canvas: HTMLCanvasElement;
4423
- constructor(options: MxDraw3dConfig);
4424
- }
4425
- export interface MxDraw3d extends WasmConfig {
4426
- canvas: HTMLCanvasElement;
4427
- _malloc: (len: number) => number;
4428
- _free: (ptr: number) => void;
4429
- HEAPU8: Uint8Array;
4430
- ctx: WebGLRenderingContext | WebGL2RenderingContext | null;
4431
- /** 设置Canvas大小
4432
- * @param w 宽度
4433
- * @param h 高度
4434
- * @param noUpdate 不更新调整侦听器大小 默认 是true
4435
- * */
4436
- setCanvasSize(w: number, h: number, noUpdate?: boolean): void;
4437
- /** 暂停主循环 */
4438
- pauseMainLoop(): void;
4439
- /** 恢复主循环 */
4440
- resumeMainLoop(): void;
4441
- /** 从内存打开
4442
- * @param fileName 表示文件名称 (可通过浏览器 File对象的name属性或者自定义) 是生成渲染3D对象的唯一标识
4443
- * @param dataBuffer 文件数据的缓冲区
4444
- * @param len 缓冲区的长度
4445
- * @param is 是否为压缩格式
4446
- * */
4447
- openFromMemory(fileName: string, dataBuffer: number, len: number, is?: boolean): boolean;
4448
- /** 从内存打开
4449
- * @param fileName 表示文件名称 (可通过浏览器 File对象的name属性或者自定义) 是生成渲染3D对象的唯一标识
4450
- * @param dataBuffer 文件数据的缓冲区
4451
- * @param len 缓冲区的长度
4452
- * @param is 是否为压缩格式
4453
- * */
4454
- openBRepFromMemory(fileName: string, dataBuffer: Buffer, len: number, is?: boolean): boolean;
4455
- /** 从Url打开
4456
- * @param name 名称 是生成渲染3D对象的唯一标识
4457
- * @param fileUrl 文件路径
4458
- * */
4459
- openFromUrl: (name: string, fileUrl: string) => void;
4460
- /** 获取视图宽度 */
4461
- getViewWidth: () => number;
4462
- /** 获取视图高度 */
4463
- getViewHeight: () => number;
4464
- /** 获取视图缩放比例 */
4465
- getViewScale: () => number;
4466
- /** 获取视图中鼠标X位置 */
4467
- getViewCursorX: () => number;
4468
- /** 获取视图中鼠标Y位置 */
4469
- getViewCursorY: () => number;
4470
- /** 获取视图中鼠标Z位置 */
4471
- getViewCursorZ: () => number;
4472
- /** 删除选中实体 */
4473
- removeSelectedObjects: () => void;
4474
- /** 设置显示/隐藏模型 */
4475
- setObjectShowState: (theId: number, theToShow: boolean) => void;
4476
- /** 获取文件的长度 */
4477
- getFileSize: (theFileName: string) => number;
4478
- /** 获取文件的BufferPointer */
4479
- getFileArryBufferPointer: (theFileName: string) => number;
4480
- /** 新建文档 */
4481
- creatDocument: () => boolean;
4482
- /** 执行undo */
4483
- executeUndo: () => boolean;
4484
- /** 执行redo */
4485
- executeRedo: () => boolean;
4486
- /** 加载贴图图片 */
4487
- loadTextureImg: (fileUrl: string, fileName: string) => void;
4488
- /** 适应选中的对象 */
4489
- fitSelectedObjects: () => void;
4490
- /** 设置多维数据集贴图背景 */
4491
- setCubemapBackground(url: string): void;
4492
- /** 完成初始化 */
4493
- ready: Promise<MxDraw3d>;
4494
- /*** 显示地面或地面网格 */
4495
- displayGround(is: boolean): void;
4496
- /**
4497
- * 显示对象
4498
- * @param 唯一标识名称 是openFromUrl、openBRepFromMemory、 openFromMemory、 (open3DFile参数 file的name属性)
4499
- * */
4500
- displayObject(name: string): boolean;
4501
- /**
4502
- * 擦除对象
4503
- * @param 唯一标识名称 是openFromUrl、openBRepFromMemory、 openFromMemory、 (open3DFile参数 file的name属性)
4504
- * */
4505
- eraseObject(name: string): boolean;
4506
- /** 适应所有对象 */
4507
- fitAllObjects(is: boolean): void;
4508
- /** 删除所有对象 */
4509
- removeAllObjects(): void;
4510
- /** 高亮entry对应模型 */
4511
- highLightSelShape(theEntry: number): void;
4512
- /** 高亮 */
4513
- highLightSelLabelShape(labelEntryStr: string): void;
4514
- /** 通过Entry来进行删除对象 */
4515
- removeObjectByEntry(theEntry: string): void;
4516
- /** 激活选择模式 */
4517
- activateSelectionMode(selectionType: MdGe.MxShapeEnum): void;
4518
- /** 失活所有选择模式 */
4519
- deactivateAllSelectionMode(): void;
4520
- /** 开启关闭操作器 */
4521
- setManipulatorEnabled(isEnabled: boolean): void;
4522
- /** 管理剖切平面 */
4523
- enableXClipPlane(theToEnabled: boolean): void;
4524
- setXClipPlaneXPosition(thePosition: number): void;
4525
- setXClipPlaneReverse(): void;
4526
- enableYClipPlane(theToEnabled: boolean): void;
4527
- setYClipPlaneYPosition(thePosition: number): void;
4528
- setYClipPlaneReverse(): void;
4529
- enableZClipPlane(theToEnabled: boolean): void;
4530
- setZClipPlaneZPosition(thePosition: number): void;
4531
- setZClipPlaneReverse(): void;
4532
- enableCustomClipPlane(theToEnabled: boolean): void;
4533
- setCustomClipPlanePosition(thePosition: number): void;
4534
- setCustomClipPlaneReverse(): void;
4535
- setCustomClipPlaneDirection(x: number, y: number, z: number): void;
4536
- /** 散开模型 */
4537
- explodeModels(theExplodeFactor: number): void;
4538
- /** 设置显示模式 */
4539
- setDisplayMode(theMode: MdGe.MxGlobalDisplayMode): void;
4540
- /** 显示隐藏中心坐标轴体 */
4541
- showCenterTrihedron(theToShow: boolean): void;
4542
- /** 显示隐藏 */
4543
- setObjectShowStateByLabel(labelEntryStr: string, theToShow: boolean): void;
4544
- /** 更新画布大小 */
4545
- updateCanvasSize: () => void;
4546
- /** 通过浏览器器File对象打开3D文件
4547
- * @param file File对象
4548
- */
4549
- open3DFile: (file: File) => void;
4550
- /** 表示一个形状 */
4551
- MdGeShape: typeof MdGeShape;
4552
- /** 表示一个点 */
4553
- MdGePoint: typeof MdGePoint;
4554
- /** 表示一个向量 */
4555
- MdGeVec: typeof MdGeVec;
4556
- /** 表示一个Wire形状 */
4557
- MdGeWire: typeof MdGeWire;
4558
- /** 表示一个Edge形状 */
4559
- MdGeEdge: typeof MdGeEdge;
4560
- /** 表示一个Vertex形状 */
4561
- MdGeVertex: typeof MdGeVertex;
4562
- /** 表示一个Face形状 */
4563
- MdGeFace: typeof MdGeFace;
4564
- /** 表示一个Shell形状 */
4565
- MdGeShell: typeof MdGeShell;
4566
- /** 表示一个Solid形状 */
4567
- MdGeSolid: typeof MdGeSolid;
4568
- /** 表示一个CompSolid形状 */
4569
- MdGeCompSolid: typeof MdGeCompSolid;
4570
- /** 表示一个Compound形状 */
4571
- MdGeCompound: typeof MdGeCompound;
4572
- /** 表示一个矩阵 */
4573
- MdGeMat: typeof MdGeMat;
4574
- /** 表示一个坐标 */
4575
- MdGeXYZ: typeof MdGeXYZ;
4576
- /** 表示一个变换 */
4577
- MdGeTrsf: typeof MdGeTrsf;
4578
- /** 表示一个方向 */
4579
- MdGeDir: typeof MdGeDir;
4580
- /** 表示一个轴 */
4581
- MdGeAxis: typeof MdGeAxis;
4582
- /** 表示一个右手坐标系 */
4583
- MdGeCSYSR: typeof MdGeCSYSR;
4584
- /** 表示角度标注 */
4585
- MdGeAngleDim: typeof MdGeAngleDim;
4586
- /** 表示一维整数数组 */
4587
- MdGeArray1OfInteger: typeof MdGeArray1OfInteger;
4588
- /** 表示一维点数组 */
4589
- MdGeArray1OfPnt: typeof MdGeArray1OfPnt;
4590
- /** 表示一维实数数组 */
4591
- MdGeArray1OfReal: typeof MdGeArray1OfReal;
4592
- /** 表示二维点数组 */
4593
- MdGeArray2OfPnt: typeof MdGeArray2OfPnt;
4594
- /** 表示二维实数数组 */
4595
- MdGeArray2OfReal: typeof MdGeArray2OfReal;
4596
- /** 表示贝塞尔曲线 */
4597
- MdGeBezierCurve: typeof MdGeBezierCurve;
4598
- /** 表示贝塞尔曲面 */
4599
- MdGeBezierSurface: typeof MdGeBezierSurface;
4600
- /** 表示倒斜角 */
4601
- MdGeChamfer: typeof MdGeChamfer;
4602
- /** 表示一个圆 */
4603
- MdGeCircle: typeof MdGeCircle;
4604
- /** 表示一个坐标系(左手或右手) */
4605
- MdGeCSYS: typeof MdGeCSYS;
4606
- /** 表示一个圆锥 */
4607
- MdGeCone: typeof MdGeCone;
4608
- /** 表示一个圆柱 */
4609
- MdGeCylinder: typeof MdGeCylinder;
4610
- /** 表示一个平面 */
4611
- MdGePlane: typeof MdGePlane;
4612
- /** 表示直径标注 */
4613
- MdGeDiameterDim: typeof MdGeDiameterDim;
4614
- /** 表示一个椭圆 */
4615
- MdGeEllipse: typeof MdGeEllipse;
4616
- MxShapeEnum: typeof MdGe.MxShapeEnum;
4617
- MxHorizontalTextAlignment: typeof MdGe.MxHorizontalTextAlignment;
4618
- MxVerticalTextAlignment: typeof MdGe.MxVerticalTextAlignment;
4619
- MxFontAspect: typeof MdGe.MxFontAspect;
4620
- MxTypeOfDisplayText: typeof MdGe.MxTypeOfDisplayText;
4621
- MxCF3dFilletShapeEnum: typeof MdGe.MxCF3dFilletShapeEnum;
4622
- MxCFDSChamfMode: typeof MdGe.MxCFDSChamfMode;
4623
- MxGFTrihedron: typeof MdGe.MxGFTrihedron;
4624
- MxGAShapeEnum: typeof MdGe.MxGAShapeEnum;
4625
- MxOffsetModeEnum: typeof MdGe.MxOffsetModeEnum;
4626
- MxGAJoinTypeEnum: typeof MdGe.MxGAJoinTypeEnum;
4627
- MxNameOfMaterial: typeof MdGe.MxNameOfMaterial;
4628
- MxTypeOfMaterial: typeof MdGe.MxTypeOfMaterial;
4629
- MxTypeOfReflection: typeof MdGe.MxTypeOfReflection;
4630
- MxNameOfColor: typeof MdGe.MxNameOfColor;
4631
- MxTypeOfColor: typeof MdGe.MxTypeOfColor;
4632
- MxDisplayMode: typeof MdGe.MxDisplayMode;
4633
- MxTypeOfAngle: typeof MdGe.MxTypeOfAngle;
4634
- MxTypeOfAngleArrowVisibility: typeof MdGe.MxTypeOfAngleArrowVisibility;
4635
- MxTypeOfLine: typeof MdGe.MxTypeOfLine;
4636
- MxTextPath: typeof MdGe.MxTextPath;
4637
- MxDimensionArrowOrientation: typeof MdGe.MxDimensionArrowOrientation;
4638
- MxDimensionTextVerticalPosition: typeof MdGe.MxDimensionTextVerticalPosition;
4639
- MxDimensionTextHorizontalPosition: typeof MdGe.MxDimensionTextHorizontalPosition;
4640
- MxKindOfDimension: typeof MdGe.MxKindOfDimension;
4641
- MxDocColorType: typeof MdGe.MxDocColorType;
4642
- MxKindOfInteractive: typeof MdGe.MxKindOfInteractive;
4643
- MxPrs3dTypeOfHLR: typeof MdGe.MxPrs3dTypeOfHLR;
4644
- MxDisplayStatus: typeof MdGe.MxDisplayStatus;
4645
- /** 表示拓扑元素遍历 */
4646
- MdGeExplorer: typeof MdGeExplorer;
4647
- /** 表示倒圆角 */
4648
- MdGeFillet: typeof MdGeFillet;
4649
- /** 表示双曲线 */
4650
- MdGeHypr: typeof MdGeHypr;
4651
- /** 表示一个Box */
4652
- MdGeBox: typeof MdGeBox;
4653
- /** 表示B样条曲线 */
4654
- MdGeBSplineCurve: typeof MdGeBSplineCurve;
4655
- /** 表示B样条曲面 */
4656
- MdGeBSplineSurface: typeof MdGeBSplineSurface;
4657
- /** 表示插值B样条曲线 */
4658
- MdGeInterpolateBSpl: typeof MdGeInterpolateBSpl;
4659
- /** 表示长度标注 */
4660
- MdGeLengthDim: typeof MdGeLengthDim;
4661
- /** 表示一条直线 */
4662
- MdGeLine: typeof MdGeLine;
4663
- /** 表示形状链表迭代器 */
4664
- MdGeListIteratorOfListOfShape: typeof MdGeListIteratorOfListOfShape;
4665
- /** 表示形状链表 */
4666
- MdGeListOfShape: typeof MdGeListOfShape;
4667
- /** 表示放样 */
4668
- MdGeLoft: typeof MdGeLoft;
4669
- /** 表示薄实体 */
4670
- MdGeMakeThickSolid: typeof MdGeMakeThickSolid;
4671
- /** 表示抛物线 */
4672
- MdGeParab: typeof MdGeParab;
4673
- /** 表示管道 */
4674
- MdGePipe: typeof MdGePipe;
4675
- /** 表示拟合点B样条曲线 */
4676
- MdGePointsToBSpl: typeof MdGePointsToBSpl;
4677
- /** 表示拟合B样条曲面 */
4678
- MdGePointsToBSplSurface: typeof MdGePointsToBSplSurface;
4679
- /** 表示拉伸体 */
4680
- MdGePrism: typeof MdGePrism;
4681
- /** 表示半径标注 */
4682
- MdGeRadiusDim: typeof MdGeRadiusDim;
4683
- /** 表示一个矩形 */
4684
- MdGeRect: typeof MdGeRect;
4685
- /** 表示旋转体 */
4686
- MdGeRevol: typeof MdGeRevol;
4687
- /** 表示一个球体 */
4688
- MdGeSphere: typeof MdGeSphere;
4689
- /** 表示文字 */
4690
- MdGeText: typeof MdGeText;
4691
- /** 表示文字标签 */
4692
- MdGeTextLabel: typeof MdGeTextLabel;
4693
- /** 拓扑转换类 */
4694
- MdGeTopo: typeof MdGeTopo;
4695
- mdGeTopo: MdGeTopo;
4696
- /** 表示圆环 */
4697
- MdGeTorus: typeof MdGeTorus;
4698
- /** 形状变换类 */
4699
- MdGeTransform: typeof MdGeTransform;
4700
- /** 表示一个楔形 */
4701
- MdGeWedge: typeof MdGeWedge;
4702
- /** 表示BRep工具 */
4703
- MdGeBRep: typeof MdGeBRep;
4704
- mdGeBRep: MdGeBRep;
4705
- /** 表示几何平面句柄 */
4706
- MdGeHGeomPlane: typeof MdGeHGeomPlane;
4707
- mdGeHGeomPlane: MdGeHGeomPlane;
4708
- /** 表示几何曲面句柄 */
4709
- MdGeHGeomSurface: typeof MdGeHGeomSurface;
4710
- /** 所有类的父类,除MdGeTopo,MdGeBRep */
4711
- Mx3dBaseObject: typeof Mx3dBaseObject;
4712
- /** 表示颜色 */
4713
- MdGeColor: typeof MdGeColor;
4714
- /** 表示材质 */
4715
- MdGeMaterialAspect: typeof MdGeMaterialAspect;
4716
- /** 表示形状序列集合 */
4717
- MdGeSequenceOfShape: typeof MdGeSequenceOfShape;
4718
- /** 表示形状序列集合迭代器 */
4719
- MdGeSequenceIteratorOfSequenceOfShape: typeof MdGeSequenceIteratorOfSequenceOfShape;
4720
- /** 表示合并Edges成Wires */
4721
- MdGeMakeWires: typeof MdGeMakeWires;
4722
- /** 表示Wire生成Face */
4723
- MdGeMakeFace: typeof MdGeMakeFace;
4724
- /** 表示三点圆弧 */
4725
- MdGeMakeArcOfCircle: typeof MdGeMakeArcOfCircle;
4726
- /** 表示光照 */
4727
- MdGeLight: typeof MdGeLight;
4728
- /** 箭头样式 */
4729
- MdGeArrowAspect: typeof MdGeArrowAspect;
4730
- /** 标注样式 */
4731
- MdGeDimAspect: typeof MdGeDimAspect;
4732
- /** 线样式 */
4733
- MdGeLineAspect: typeof MdGeLineAspect;
4734
- /** 文本样式 */
4735
- MdGeTextAspect: typeof MdGeTextAspect;
4736
- /** 应用程序 */
4737
- MdGeApplication: typeof MdGeApplication;
4738
- mdGeApplication: MdGeApplication;
4739
- /** 文档 */
4740
- MdGeDocument: typeof MdGeDocument;
4741
- mdGeDocument: MdGeDocument;
4742
- /** 文档图形工具 */
4743
- MdGeDocShapeTool: typeof MdGeDocShapeTool;
4744
- /** 文档颜色工具 */
4745
- MdGeDocColorTool: typeof MdGeDocColorTool;
4746
- /** 文档标签元素 */
4747
- MdGeLabel: typeof MdGeLabel;
4748
- /** 文档标签元素序列 */
4749
- MdGeLabelSequence: typeof MdGeLabelSequence;
4750
- /** Location */
4751
- MdGeLocation: typeof MdGeLocation;
4752
- /** MdGeLabelTree */
4753
- MdGeLabelTree: typeof MdGeLabelTree;
4754
- mdGeLabelTree: MdGeLabelTree;
4755
- /** 文档读取器 */
4756
- MdGeDocReader: typeof MdGeDocReader;
4757
- /** 文件写入器 */
4758
- MdGeDocWriter: typeof MdGeDocWriter;
4759
- /** 上下文 */
4760
- MdGeAisContext: typeof MdGeAisContext;
4761
- mdGeAisContext: MdGeAisContext;
4762
- /** ais对象 */
4763
- MdGeAisObject: typeof MdGeAisObject;
4764
- /** ais形状 */
4765
- MdGeAisShape: typeof MdGeAisShape;
4766
- /** 包围盒 */
4767
- MdGeBndBox: typeof MdGeBndBox;
4768
- /** aistextured形状 */
4769
- MdGeAisTexturedShape: typeof MdGeAisTexturedShape;
4770
- /** MdGeSpliter */
4771
- MdGeSpliter: typeof MdGeSpliter;
4772
- Mx3dGeBndBox: typeof Mx3dGeBndBox;
4773
- Mx3dGeColor: typeof Mx3dGeColor;
4774
- Mx3dDbDocument: typeof Mx3dDbDocument;
4775
- Mx3dDbLabel: typeof Mx3dDbLabel;
4776
- Mx3dLabelSequence: typeof Mx3dLabelSequence;
4777
- Mx3dLabelSequenceIterator: typeof Mx3dLabelSequenceIterator;
4778
- Mx3dGeLocation: typeof Mx3dGeLocation;
4779
- Mx3dGePoint: typeof Mx3dGePoint;
4780
- Mx3dShapeObject: typeof Mx3dShapeObject;
4781
- Mx3dGeObject: typeof Mx3dGeObject;
4782
- Mx3dDbObject: typeof Mx3dDbObject;
4783
- }
4784
- /**
4785
- * 所有类的父类, 除去MdGeTopo以及MdGeBrep
4786
- */
4787
- export declare class Mx3dBaseObject {
4788
- protected imp: any;
4789
- constructor(imp?: any);
4790
- getImp(): any;
4791
- protected initTempObject(imp: any): void;
4792
- }
4793
- export declare class Mx3dShapeObject extends Mx3dBaseObject {
4794
- constructor(p?: object);
4795
- getBndBox(): Mx3dGeBndBox;
4796
- Draw(): void;
4797
- }
4798
- export declare class Mx3dGeObject extends Mx3dBaseObject {
4799
- constructor(p?: object);
4800
- }
4801
- export declare class Mx3dDbObject extends Mx3dBaseObject {
4802
- constructor(p?: object);
4803
- }
4804
- /**
4805
- * 表示一个形状。
4806
- */
4807
- /**
4808
- * 表示一个形状
4809
- */
4810
- export declare class MdGeShape extends Mx3dBaseObject {
4811
- constructor(p?: object);
4812
- Fuse(other: MdGeShape): MdGeShape;
4813
- Cut(remove: MdGeShape): MdGeShape;
4814
- Common(other: MdGeShape): MdGeShape;
4815
- Section(other: MdGeShape): MdGeShape;
4816
- ShapeType(): MdGe.MxShapeEnum;
4817
- Quantities(): MdGeArray1OfReal;
4818
- MirrorByPoint(theP: MdGePoint): void;
4819
- MirroredByPoint(theP: MdGePoint): MdGeShape;
4820
- MirrorByAxis(axis: MdGeAxis): void;
4821
- MirroredByAxis(axis: MdGeAxis): MdGeShape;
4822
- MirrorByCSYSR(csysr: MdGeCSYSR): void;
4823
- MirroredByCSYSR(csysr: MdGeCSYSR): MdGeShape;
4824
- Rotate(axis: MdGeAxis, ang: number): void;
4825
- Rotated(axis: MdGeAxis, ang: number): MdGeShape;
4826
- Scale(point: MdGePoint, s: number): void;
4827
- Scaled(point: MdGePoint, s: number): MdGeShape;
4828
- Transform(trsf: MdGeTrsf): void;
4829
- Transformed(trsf: MdGeTrsf): MdGeShape;
4830
- TranslateByVec(vec: MdGeVec): void;
4831
- TranslatedByVec(vec: MdGeVec): MdGeShape;
4832
- TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
4833
- TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGeShape;
4834
- SetTextureFileName(path: string): void;
4835
- SetMaterialAspect(material: MdGeMaterialAspect): void;
4836
- SetColor(color: MdGeColor): void;
4837
- TextureRepeat(): boolean;
4838
- URepeat(): number;
4839
- VRepeat(): number;
4840
- SetTextureRepeat(theToRepeat: boolean, theURepeat: number, theVRepeat: number): void;
4841
- TextureScale(): boolean;
4842
- TextureScaleU(): number;
4843
- TextureScaleV(): number;
4844
- SetTextureScale(theToSetTextureScale: boolean, theScaleU: number, theScaleV: number): void;
4845
- TextureOrigin(): boolean;
4846
- TextureUOrigin(): number;
4847
- TextureVOrigin(): number;
4848
- SetTextureOrigin(theToSetTextureOrigin: boolean, theUOrigin: number, theVOrigin: number): void;
4849
- IsNull(): boolean;
4850
- SetShapeName(theShapeName: string): void;
4851
- GetShapeName(): string;
4852
- GetBndBox(): MdGeBndBox;
4853
- Draw(): string;
4854
- }
4855
- /**
4856
- * 表示一个点形状
4857
- */
4858
- export declare class MdGeVertex extends MdGeShape {
4859
- constructor(p1?: MdGePoint | number | object, p2?: number, p3?: number);
4860
- }
4861
- /**
4862
- * 表示一个Edge形状
4863
- */
4864
- export declare class MdGeEdge extends MdGeShape {
4865
- constructor(p1?: MdGePoint | object, p2?: MdGePoint);
4866
- Wire(): MdGeWire;
4867
- AddedEdge(edge: MdGeEdge): MdGeWire;
4868
- AddedWire(wire: MdGeWire): MdGeWire;
4869
- }
4870
- /**
4871
- * 表示一个Wire形状
4872
- */
4873
- export declare class MdGeWire extends MdGeShape {
4874
- constructor(p?: object);
4875
- AddedEdge(edge: MdGeEdge): MdGeWire;
4876
- AddedWire(wire: MdGeWire): MdGeWire;
4877
- }
4878
- /**
4879
- * 表示一个Face形状
4880
- */
4881
- export declare class MdGeFace extends MdGeShape {
4882
- constructor(p?: object);
4883
- }
4884
- /**
4885
- * 表示一个Shell形状
4886
- */
4887
- export declare class MdGeShell extends MdGeShape {
4888
- constructor(p?: object);
4889
- }
4890
- /**
4891
- * 表示一个Solid形状
4892
- */
4893
- export declare class MdGeSolid extends MdGeShape {
4894
- constructor(p?: object);
4895
- }
4896
- /**
4897
- * 表示一个CompSolid形状
4898
- */
4899
- export declare class MdGeCompSolid extends MdGeShape {
4900
- constructor(p?: object);
4901
- }
4902
- /**
4903
- * 表示一个Compound形状
4904
- */
4905
- export declare class MdGeCompound extends MdGeShape {
4906
- constructor(p?: object);
4907
- }
4908
- /**
4909
- * 表示一个矩阵。
4910
- */
4911
- /**
4912
- * 表示一个矩阵
4913
- */
4914
- export declare class MdGeMat extends Mx3dBaseObject {
4915
- constructor(p1?: MdGeXYZ | number | object, p2?: MdGeXYZ | number, p3?: MdGeXYZ | number, p4?: number, p5?: number, p6?: number, p7?: number, p8?: number, p9?: number);
4916
- SetCol(col: number, value: MdGeXYZ): void;
4917
- SetCols(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ): void;
4918
- SetCross(ref: MdGeXYZ): void;
4919
- SetDiagonal(x1: number, x2: number, x3: number): void;
4920
- SetDot(ref: MdGeXYZ): void;
4921
- SetIdentity(): void;
4922
- SetRotation(axis: MdGeXYZ, ang: number): void;
4923
- SetRow(row: number, value: MdGeXYZ): void;
4924
- SetRows(row1: MdGeXYZ, row2: MdGeXYZ, row3: MdGeXYZ): void;
4925
- SetScale(s: number): void;
4926
- SetValue(row: number, col: number, value: number): void;
4927
- Column(col: number): MdGeXYZ;
4928
- Determinant(): number;
4929
- Diagonal(): MdGeXYZ;
4930
- Row(row: number): MdGeXYZ;
4931
- Value(row: number, col: number): number;
4932
- ChangeValue(row: number, col: number, value: number): void;
4933
- IsSingular(): boolean;
4934
- Add(other: MdGeMat): void;
4935
- Added(other: MdGeMat): MdGeMat;
4936
- Divide(scalar: number): void;
4937
- Divided(scalar: number): MdGeMat;
4938
- Invert(): void;
4939
- Inverted(): MdGeMat;
4940
- MultipliedByMat(other: MdGeMat): MdGeMat;
4941
- MultiplyByMat(other: MdGeMat): void;
4942
- PreMultiplyByMat(other: MdGeMat): void;
4943
- MultipliedByS(scalar: number): MdGeMat;
4944
- MultiplyByS(scalar: number): void;
4945
- Power(n: number): void;
4946
- Powered(n: number): MdGeMat;
4947
- Subtract(other: MdGeMat): void;
4948
- Subtracted(other: MdGeMat): MdGeMat;
4949
- Transpose(): void;
4950
- Transposed(): MdGeMat;
4951
- }
4952
- /**
4953
- * 表示一个坐标。
4954
- */
4955
- /**
4956
- * 表示一个坐标
4957
- */
4958
- export declare class MdGeXYZ extends Mx3dBaseObject {
4959
- constructor(p1?: number | object, p2?: number, p3?: number);
4960
- SetCoord(x: number, y: number, z?: number): void;
4961
- SetX(x: number): void;
4962
- SetY(y: number): void;
4963
- SetZ(z: number): void;
4964
- Coord(index: number): number;
4965
- ChangeCoord(index: number, value: number): void;
4966
- X(): number;
4967
- Y(): number;
4968
- Z(): number;
4969
- Modulus(): number;
4970
- SquareModulus(): number;
4971
- IsEqual(other: MdGeXYZ, tolerance: number): boolean;
4972
- Add(other: MdGeXYZ): void;
4973
- Added(other: MdGeXYZ): MdGeXYZ;
4974
- Cross(other: MdGeXYZ): void;
4975
- Crossed(other: MdGeXYZ): MdGeXYZ;
4976
- CrossMagnitude(right: MdGeXYZ): number;
4977
- CrossSquareMagnitude(right: MdGeXYZ): number;
4978
- CrossCross(coord1: MdGeXYZ, coord2: MdGeXYZ): void;
4979
- CrossCrossed(coord1: MdGeXYZ, coord2: MdGeXYZ): MdGeXYZ;
4980
- Divide(salar: number): void;
4981
- Divided(scalar: number): MdGeXYZ;
4982
- Dot(other: MdGeXYZ): number;
4983
- DotCross(coord1: MdGeXYZ, coord2: MdGeXYZ): number;
4984
- MultiplyByS(scalar: number): void;
4985
- MultiplyByXYZ(other: MdGeXYZ): void;
4986
- MultiplyByMat(matrix: MdGeMat): void;
4987
- MultipliedByS(scalar: number): MdGeXYZ;
4988
- MultipliedByXYZ(other: MdGeXYZ): MdGeXYZ;
4989
- MultipliedByMat(matrix: MdGeMat): MdGeXYZ;
4990
- Normalize(): void;
4991
- Normalized(): MdGeXYZ;
4992
- Reverse(): void;
4993
- Reversed(): MdGeXYZ;
4994
- Subtract(other: MdGeXYZ): void;
4995
- Subtracted(other: MdGeXYZ): MdGeXYZ;
4996
- }
4997
- /**
4998
- * 表示一个变换。
4999
- */
5000
- /**
5001
- * 表示一个变换
5002
- */
5003
- export declare class MdGeTrsf extends Mx3dBaseObject {
5004
- constructor(p?: object);
5005
- SetMirrorByPoint(point: MdGePoint): void;
5006
- SetMirrorByAxis(axis: MdGeAxis): void;
5007
- SetMirrorByCSYSR(csysr: MdGeCSYSR): void;
5008
- SetRotation(axis: MdGeAxis, ang: number): void;
5009
- SetScale(point: MdGePoint, s: number): void;
5010
- SetTranslationByVec(vec: MdGeVec): void;
5011
- SetTranslationBy2Points(point1: MdGePoint, point2: MdGePoint): void;
5012
- SetTranslationPart(vec: MdGeVec): void;
5013
- SetScaleFactor(s: number): void;
5014
- SetValues(a11: number, a12: number, a13: number, a14: number, a21: number, a22: number, a23: number, a24: number, a31: number, a32: number, a33: number, a34: number): void;
5015
- IsNegative(): number;
5016
- ScaleFactor(): number;
5017
- Value(row: number, col: number): number;
5018
- Invert(): void;
5019
- Inverted(): MdGeTrsf;
5020
- Multiplied(t: MdGeTrsf): MdGeTrsf;
5021
- Multiply(t: MdGeTrsf): void;
5022
- PreMultiply(t: MdGeTrsf): void;
5023
- Power(n: number): void;
5024
- Powered(n: number): MdGeTrsf;
5025
- Transforms(x: number, y: number, z: number): void;
5026
- }
5027
- /**
5028
- * 表示一个方向。
5029
- */
5030
- /**
5031
- * 表示一个方向
5032
- */
5033
- export declare class MdGeDir extends Mx3dBaseObject {
5034
- constructor(p1?: MdGeVec | number | object, p2?: number, p3?: number);
5035
- SetCoord(p1: number, p2: number, p3?: number): void;
5036
- SetX(theXv: number): void;
5037
- SetY(theYv: number): void;
5038
- SetZ(theZv: number): void;
5039
- SetXYZ(theCoord: MdGeXYZ): void;
5040
- Coord(theIndex: number): number;
5041
- X(): number;
5042
- Y(): number;
5043
- Z(): number;
5044
- XYZ(): MdGeXYZ;
5045
- IsEqual(theOther: MdGeDir, theAngularTolerance: number): boolean;
5046
- IsNormal(theOther: MdGeDir, theAngularTolerance: number): boolean;
5047
- IsOpposite(theOther: MdGeDir, theAngularTolerance: number): boolean;
5048
- IsParallel(theOther: MdGeDir, theAngularTolerance: number): boolean;
5049
- Angle(theOther: MdGeDir): number;
5050
- AngleWithRef(theOther: MdGeDir, theVRef: MdGeDir): number;
5051
- Cross(theRight: MdGeDir): void;
5052
- Crossed(theRight: MdGeDir): MdGeDir;
5053
- CrossCross(theV1: MdGeDir, theV2: MdGeDir): void;
5054
- CrossCrossed(theV1: MdGeDir, theV2: MdGeDir): MdGeDir;
5055
- Dot(theOther: MdGeDir): number;
5056
- DotCross(theV1: MdGeDir, theV2: MdGeDir): number;
5057
- Reverse(): void;
5058
- Reversed(): MdGeDir;
5059
- MirrorByVec(theV: MdGeDir): void;
5060
- MirroredByVec(theV: MdGeDir): MdGeDir;
5061
- MirrorByAxis(theA1: MdGeAxis): void;
5062
- MirroredByAxis(theA1: MdGeAxis): MdGeDir;
5063
- MirrorByCSYSR(theA2: MdGeCSYSR): void;
5064
- MirroredByCSYSR(theA2: MdGeCSYSR): MdGeDir;
5065
- Rotate(theA1: MdGeAxis, theAng: number): void;
5066
- Rotated(theA1: MdGeAxis, theAng: number): MdGeDir;
5067
- Transform(theT: MdGeTrsf): void;
5068
- Transformed(theT: MdGeTrsf): MdGeDir;
5069
- }
5070
- /**
5071
- * 表示一个轴。
5072
- */
5073
- /**
5074
- * 表示一个轴
5075
- */
5076
- export declare class MdGeAxis extends Mx3dBaseObject {
5077
- constructor(p1?: MdGePoint | object, p2?: MdGeDir);
5078
- Direction(): MdGeDir;
5079
- Location(): MdGePoint;
5080
- SetDirection(dir: MdGeDir): void;
5081
- SetLocation(loc: MdGePoint): void;
5082
- }
5083
- /**
5084
- * 表示右手坐标系。
5085
- */
5086
- /**
5087
- * 表示右手坐标系。
5088
- */
5089
- export declare class MdGeCSYSR extends Mx3dBaseObject {
5090
- constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
5091
- Origin(): MdGePoint;
5092
- XDirection(): MdGeDir;
5093
- YDirection(): MdGeDir;
5094
- ZDirection(): MdGeDir;
5095
- SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
5096
- SetXDirection(x_dir: MdGeDir): void;
5097
- SetYDirection(y_dir: MdGeDir): void;
5098
- SetZDirection(z_dir: MdGeDir): void;
5099
- Angle(theOther: MdGeCSYSR): number;
5100
- Axis(): MdGeAxis;
5101
- IsCoplanarWithCSYSR(Other: MdGeCSYSR, LinearTolerance: number, AngularTolerance: number): boolean;
5102
- IsCoplanarWithAxis(A1: MdGeAxis, LinearTolerance: number, AngularTolerance: number): boolean;
5103
- MirrorByPoint(P: MdGePoint): void;
5104
- MirroredByPoint(P: MdGePoint): MdGeCSYSR;
5105
- MirrorByAxis(A1: MdGeAxis): void;
5106
- MirroredByAxis(A1: MdGeAxis): MdGeCSYSR;
5107
- MirrorByCSYSR(A2: MdGeCSYSR): void;
5108
- MirroredByCSYSR(A2: MdGeCSYSR): MdGeCSYSR;
5109
- Rotate(theA1: MdGeAxis, theAng: number): void;
5110
- Rotated(theA1: MdGeAxis, theAng: number): MdGeCSYSR;
5111
- Scale(theP: MdGePoint, theS: number): void;
5112
- Scaled(theP: MdGePoint, theS: number): MdGeCSYSR;
5113
- Transform(theT: MdGeTrsf): void;
5114
- Transformed(theT: MdGeTrsf): MdGeCSYSR;
5115
- TranslateByVec(theV: MdGeVec): void;
5116
- TranslatedByVec(theV: MdGeVec): MdGeCSYSR;
5117
- TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
5118
- TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCSYSR;
5119
- }
5120
- /**
5121
- * 表示一个点。
5122
- */
5123
- /**
5124
- * 表示一个点。
5125
- */
5126
- export declare class MdGePoint extends Mx3dBaseObject {
5127
- constructor(p1?: number | object, p2?: number, p3?: number);
5128
- X(): number;
5129
- Y(): number;
5130
- Z(): number;
5131
- SetX(x: number): void;
5132
- SetY(y: number): void;
5133
- SetZ(z: number): void;
5134
- SetXYZ(x: number, y: number, z: number): void;
5135
- BaryCenter(alpha: number, point: MdGePoint, beta: number): void;
5136
- IsEqual(other: MdGePoint, linearTolerance: number): boolean;
5137
- Distance(other: MdGePoint): number;
5138
- SquareDistance(other: MdGePoint): number;
5139
- MirrorByPoint(point: MdGePoint): void;
5140
- MirroredByPoint(point: MdGePoint): MdGePoint;
5141
- MirrorByAxis(axis: MdGeAxis): void;
5142
- MirroredByAxis(axis: MdGeAxis): MdGePoint;
5143
- MirrorByCSYSR(csysr: MdGeCSYSR): void;
5144
- MirroredByCSYSR(csysr: MdGeCSYSR): MdGePoint;
5145
- Rotate(axis: MdGeAxis, ang: number): void;
5146
- Rotated(axis: MdGeAxis, ang: number): MdGePoint;
5147
- Scale(point: MdGePoint, s: number): void;
5148
- Scaled(point: MdGePoint, s: number): MdGePoint;
5149
- Transform(trsf: MdGeTrsf): void;
5150
- Transformed(trsf: MdGeTrsf): MdGePoint;
5151
- TranslateByVec(vec: MdGeVec): void;
5152
- TranslatedByVec(vec: MdGeVec): MdGePoint;
5153
- TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
5154
- TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGePoint;
5155
- Shape(): MdGeShape;
5156
- Vertex(): MdGeVertex;
5157
- }
5158
- /**
5159
- * 表示一个向量。
5160
- */
5161
- /**
5162
- * 表示一个向量。
5163
- */
5164
- export declare class MdGeVec extends Mx3dBaseObject {
5165
- constructor(p1?: MdGePoint | number | object, p2?: MdGePoint | number, p3?: number);
5166
- SetCoord(p1: number, p2: number, p3?: number): void;
5167
- X(): number;
5168
- Y(): number;
5169
- Z(): number;
5170
- SetX(x: number): void;
5171
- SetY(y: number): void;
5172
- SetZ(z: number): void;
5173
- SetXYZ(x: number, y: number, z: number): void;
5174
- Coord(theIndex: number): number;
5175
- IsEqual(other: MdGeVec, linearTolerance: number, angularTolerance: number): boolean;
5176
- IsNormal(other: MdGeVec, angularTolerance: number): boolean;
5177
- IsOpposite(other: MdGeVec, angularTolerance: number): boolean;
5178
- IsParallel(other: MdGeVec, angularTolerance: number): boolean;
5179
- Angle(other: MdGeVec): number;
5180
- AngleWithRef(other: MdGeVec, ref: MdGeVec): number;
5181
- Magnitude(): number;
5182
- SquareMagnitude(): number;
5183
- Add(other: MdGeVec): void;
5184
- Added(other: MdGeVec): MdGeVec;
5185
- Subtract(right: MdGeVec): void;
5186
- Subtracted(right: MdGeVec): MdGeVec;
5187
- Multiply(scalar: number): void;
5188
- Multiplied(scalar: number): MdGeVec;
5189
- Divide(scalar: number): void;
5190
- Divided(scalar: number): MdGeVec;
5191
- Cross(right: MdGeVec): void;
5192
- Crossed(right: MdGeVec): MdGeVec;
5193
- CrossMagnitude(right: MdGeVec): number;
5194
- CrossSquareMagnitude(right: MdGeVec): number;
5195
- CrossCross(v1: MdGeVec, v2: MdGeVec): void;
5196
- CrossCrossed(v1: MdGeVec, v2: MdGeVec): MdGeVec;
5197
- Dot(other: MdGeVec): number;
5198
- DotCross(v1: MdGeVec, v2: MdGeVec): number;
5199
- Normalize(): void;
5200
- Normalized(): MdGeVec;
5201
- Reverse(): void;
5202
- Reversed(): MdGeVec;
5203
- SetLinearForm(p1: MdGeVec | number, p2: MdGeVec, p3?: MdGeVec | number, p4?: MdGeVec, p5?: MdGeVec | number, p6?: MdGeVec, p7?: MdGeVec): void;
5204
- MirrorByVec(vec: MdGeVec): void;
5205
- MirroredByVec(vec: MdGeVec): MdGeVec;
5206
- MirrorByAxis(axis: MdGeAxis): void;
5207
- MirroredByAxis(axis: MdGeAxis): MdGeVec;
5208
- MirrorByCSYSR(csysr: MdGeCSYSR): void;
5209
- MirroredByCSYSR(csysr: MdGeCSYSR): MdGeVec;
5210
- Rotate(axis: MdGeAxis, ang: number): void;
5211
- Rotated(axis: MdGeAxis, ang: number): MdGeVec;
5212
- Scale(s: number): void;
5213
- Scaled(s: number): MdGeVec;
5214
- Transform(t: MdGeTrsf): void;
5215
- Transformed(t: MdGeTrsf): MdGeVec;
5216
- }
5217
- /**
5218
- * 表示一个Wire形状。
5219
- */
5220
- /**
5221
- * 表示一个Edge形状。
5222
- */
5223
- /**
5224
- * 表示一个Vertex形状。
5225
- */
5226
- /**
5227
- * 表示一个Face形状。
5228
- */
5229
- /**
5230
- * 表示一个Shell形状。
5231
- */
5232
- /**
5233
- * 表示一个Solid形状。
5234
- */
5235
- /**
5236
- * 表示一个CompSolid形状。
5237
- */
5238
- /**
5239
- * 表示一个Compound形状。
5240
- */
5241
- /**
5242
- * 表示角度标注。
5243
- */
5244
- /**
5245
- * 表示角度标注
5246
- */
5247
- export declare class MdGeAngleDim extends Mx3dBaseObject {
5248
- constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint);
5249
- FirstPoint(): MdGePoint;
5250
- SecondPoint(): MdGePoint;
5251
- CenterPoint(): MdGePoint;
5252
- FirstShape(): MdGeShape;
5253
- SecondShape(): MdGeShape;
5254
- ThirdShape(): MdGeShape;
5255
- SetMeasuredGeometry(p1: MdGeFace | MdGeEdge | MdGePoint, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint): void;
5256
- SetTextPosition(theTextPos: MdGePoint): void;
5257
- GetTextPosition(): MdGePoint;
5258
- GetDisplayUnits(): string;
5259
- GetModelUnits(): string;
5260
- SetDisplayUnits(theUnits: string): void;
5261
- SetModelUnits(theUnits: string): void;
5262
- SetType(theType: MdGe.MxTypeOfAngle): void;
5263
- GetType(): MdGe.MxTypeOfAngle;
5264
- SetArrowsVisibility(theType: MdGe.MxTypeOfAngleArrowVisibility): void;
5265
- GetArrowsVisibility(): MdGe.MxTypeOfAngleArrowVisibility;
5266
- GetValue(): number;
5267
- SetComputedValue(): void;
5268
- SetCustomValue(theValue: number): void;
5269
- GetPlane(): MdGePlane;
5270
- GetGeometryType(): number;
5271
- SetCustomPlane(thePlane: MdGePlane): void;
5272
- UnsetCustomPlane(): void;
5273
- IsTextPositionCustom(): boolean;
5274
- DimensionAspect(): MdGeDimAspect;
5275
- SetDimensionAspect(theDimensionAspect: MdGeDimAspect): void;
5276
- KindOfDimension(): MdGe.MxKindOfDimension;
5277
- AcceptDisplayMode(theMode: number): boolean;
5278
- UnsetFixedTextPosition(): void;
5279
- SelToleranceForText2d(): number;
5280
- SetSelToleranceForText2d(theTol: number): void;
5281
- GetFlyout(): number;
5282
- SetFlyout(theFlyout: number): void;
5283
- IsValid(): boolean;
5284
- Display(): void;
5285
- }
5286
- /**
5287
- * 表示一维整数数组。
5288
- */
5289
- /**
5290
- * 表示一维整数数组。
5291
- */
5292
- export declare class MdGeArray1OfInteger extends Mx3dBaseObject {
5293
- constructor(p1?: number | object, p2?: number);
5294
- Init(theInteger: number): void;
5295
- Size(): number;
5296
- Length(): number;
5297
- IsEmpty(): boolean;
5298
- Lower(): number;
5299
- Upper(): number;
5300
- IsDeletable(): boolean;
5301
- IsAllocated(): boolean;
5302
- First(): number;
5303
- Last(): number;
5304
- Value(theIndex: number): number;
5305
- SetValue(theIndex: number, theInteger: number): void;
5306
- Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
5307
- }
5308
- /**
5309
- * 表示一维点数组。
5310
- */
5311
- /**
5312
- * 表示一维点数组。
5313
- */
5314
- export declare class MdGeArray1OfPnt extends Mx3dBaseObject {
5315
- constructor(p1?: number | object, p2?: number);
5316
- Init(thePnt: MdGePoint): void;
5317
- Size(): number;
5318
- Length(): number;
5319
- IsEmpty(): boolean;
5320
- Lower(): number;
5321
- Upper(): number;
5322
- IsDeletable(): boolean;
5323
- IsAllocated(): boolean;
5324
- First(): MdGePoint;
5325
- Last(): MdGePoint;
5326
- Value(theIndex: number): MdGePoint;
5327
- SetValue(theIndex: number, thePnt: MdGePoint): void;
5328
- Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
5329
- }
5330
- /**
5331
- * 表示一维实数数组。
5332
- */
5333
- /**
5334
- * 表示一维实数数组。
5335
- */
5336
- export declare class MdGeArray1OfReal extends Mx3dBaseObject {
5337
- constructor(p1?: number | object, p2?: number);
5338
- Init(theReal: number): void;
5339
- Size(): number;
5340
- Length(): number;
5341
- IsEmpty(): boolean;
5342
- Lower(): number;
5343
- Upper(): number;
5344
- IsDeletable(): boolean;
5345
- IsAllocated(): boolean;
5346
- First(): number;
5347
- Last(): number;
5348
- Value(theIndex: number): number;
5349
- SetValue(theIndex: number, theReal: number): void;
5350
- Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
5351
- }
5352
- /**
5353
- * 表示二维点数组。
5354
- */
5355
- /**
5356
- * 表示二维点数组。
5357
- */
5358
- export declare class MdGeArray2OfPnt extends Mx3dBaseObject {
5359
- constructor(p1?: number | MdGePoint | object, p2?: number, p3?: number, p4?: number, p5?: number);
5360
- Init(thePoint: MdGePoint): void;
5361
- Size(): number;
5362
- Length(): number;
5363
- NbRows(): number;
5364
- NbColumns(): number;
5365
- RowLength(): number;
5366
- ColLength(): number;
5367
- LowerRow(): number;
5368
- UpperRow(): number;
5369
- LowerCol(): number;
5370
- UpperCol(): number;
5371
- IsDeletable(): boolean;
5372
- Value(theRow: number, theCol: number): MdGePoint;
5373
- SetValue(theRow: number, theCol: number, thePoint: MdGePoint): void;
5374
- Resize(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number, theToCopyData: boolean): void;
5375
- }
5376
- /**
5377
- * 表示二维实数数组。
5378
- */
5379
- /**
5380
- * 表示二维实数数组。
5381
- */
5382
- export declare class MdGeArray2OfReal extends Mx3dBaseObject {
5383
- constructor(p1?: number | object, p2?: number, p3?: number, p4?: number, p5?: number);
5384
- Init(theReal: number): void;
5385
- Size(): number;
5386
- Length(): number;
5387
- NbRows(): number;
5388
- NbColumns(): number;
5389
- RowLength(): number;
5390
- ColLength(): number;
5391
- LowerRow(): number;
5392
- UpperRow(): number;
5393
- LowerCol(): number;
5394
- UpperCol(): number;
5395
- IsDeletable(): boolean;
5396
- Value(theRow: number, theCol: number): number;
5397
- SetValue(theRow: number, theCol: number, theReal: number): void;
5398
- Resize(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number, theToCopyData: boolean): void;
5399
- }
5400
- /**
5401
- * 表示贝塞尔曲线
5402
- */
5403
- /**
5404
- * 表示贝塞尔曲线
5405
- */
5406
- export declare class MdGeBezierCurve extends Mx3dBaseObject {
5407
- constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal);
5408
- Increase(Degree: number): void;
5409
- InsertPoleAfter(p1: number, p2: MdGePoint, p3?: number): void;
5410
- InsertPoleBefore(p1: number, p2: MdGePoint, p3?: number): void;
5411
- RemovePole(Index: number): void;
5412
- Reverse(): void;
5413
- ReversedParameter(U: number): number;
5414
- Segment(U1: number, U2: number): void;
5415
- SetPole(p1: number, p2: MdGePoint, p3?: number): void;
5416
- SetWeight(Index: number, Weight: number): void;
5417
- IsClosed(): boolean;
5418
- IsCN(N: number): boolean;
5419
- IsPeriodic(): boolean;
5420
- IsRational(): boolean;
5421
- Continuity(): MdGe.MxGAShapeEnum;
5422
- Degree(): number;
5423
- DN(U: number, N: number): MdGeVec;
5424
- StartPoint(): MdGePoint;
5425
- EndPoint(): MdGePoint;
5426
- FirstParameter(): number;
5427
- LastParameter(): number;
5428
- NbPoles(): number;
5429
- Pole(Index: number): MdGePoint;
5430
- Poles(): MdGeArray1OfPnt;
5431
- Weight(Index: number): number;
5432
- Weights(): MdGeArray1OfReal;
5433
- Transform(T: MdGeTrsf): void;
5434
- static MaxDegree(): number;
5435
- Shape(): MdGeShape;
5436
- Edge(): MdGeEdge;
5437
- Wire(): MdGeWire;
5438
- }
5439
- /**
5440
- * 表示贝塞尔曲面
5441
- */
5442
- /**
5443
- * 表示贝塞尔曲面
5444
- */
5445
- export declare class MdGeBezierSurface extends Mx3dBaseObject {
5446
- constructor(p1?: MdGeArray2OfPnt | object, p2?: MdGeArray2OfReal);
5447
- ExchangeUV(): void;
5448
- Increase(UDeg: number, VDeg: number): void;
5449
- InsertPoleColAfter(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
5450
- InsertPoleColBefore(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
5451
- InsertPoleRowAfter(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
5452
- InsertPoleRowBefore(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
5453
- RemovePoleCol(VIndex: number): void;
5454
- RemovePoleRow(UIndex: number): void;
5455
- Segment(U1: number, U2: number, V1: number, V2: number): void;
5456
- SetPole(p1: number, p2: number, p3: MdGePoint, p4?: number): void;
5457
- SetPoleCol(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
5458
- SetPoleRow(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
5459
- SetWeight(UIndex: number, VIndex: number, Weight: number): void;
5460
- SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
5461
- SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
5462
- UReverse(): void;
5463
- UReversedParameter(U: number): number;
5464
- VReverse(): void;
5465
- VReversedParameter(V: number): number;
5466
- Continuity(): MdGe.MxGAShapeEnum;
5467
- DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
5468
- NbUPoles(): number;
5469
- NbVPoles(): number;
5470
- Pole(UIndex: number, VIndex: number): MdGePoint;
5471
- Poles(): MdGeArray2OfPnt;
5472
- UDegree(): number;
5473
- VDegree(): number;
5474
- Weight(UIndex: number, VIndex: number): number;
5475
- Weights(): MdGeArray2OfReal;
5476
- IsUClosed(): boolean;
5477
- IsVClosed(): boolean;
5478
- IsCNu(N: number): boolean;
5479
- IsCNv(N: number): boolean;
5480
- IsUPeriodic(): boolean;
5481
- IsVPeriodic(): boolean;
5482
- IsURational(): boolean;
5483
- IsVRational(): boolean;
5484
- Transform(T: MdGeTrsf): void;
5485
- static MaxDegree(): number;
5486
- Shape(): MdGeShape;
5487
- Face(): MdGeFace;
5488
- }
5489
- /**
5490
- * 表示倒斜角
5491
- */
5492
- /**
5493
- * 表示倒斜角
5494
- */
5495
- export declare class MdGeChamfer extends Mx3dBaseObject {
5496
- constructor(p?: MdGeShape | object);
5497
- Add(p1: MdGeEdge | number, p2?: MdGeEdge | number, p3?: MdGeEdge, p4?: MdGeFace): void;
5498
- SetDist(Dis: number, IC: number, F: MdGeFace): void;
5499
- GetDist(IC: number, Dis: number): void;
5500
- SetDists(Dis1: number, Dis2: number, IC: number, F: MdGeFace): void;
5501
- Dists(IC: number, Dis1: number, Dis2: number): void;
5502
- AddDA(Dis: number, Angle: number, E: MdGeEdge, F: MdGeFace): void;
5503
- SetDistAngle(Dis: number, Angle: number, IC: number, F: MdGeFace): void;
5504
- GetDistAngle(IC: number, Dis: number, Angle: number): void;
5505
- SetMode(theMode: MdGe.MxCFDSChamfMode): void;
5506
- IsSymetric(IC: number): boolean;
5507
- IsTwoDistances(IC: number): boolean;
5508
- IsDistanceAngle(IC: number): boolean;
5509
- ResetContour(IC: number): void;
5510
- NbContours(): number;
5511
- Contour(E: MdGeEdge): number;
5512
- NbEdges(I: number): number;
5513
- Edge(I: number, J: number): MdGeEdge;
5514
- Remove(E: MdGeEdge): void;
5515
- Length(IC: number): number;
5516
- FirstVertex(IC: number): MdGeVertex;
5517
- LastVertex(IC: number): MdGeVertex;
5518
- Abscissa(IC: number, V: MdGeVertex): number;
5519
- RelativeAbscissa(IC: number, V: MdGeVertex): number;
5520
- ClosedAndTangent(IC: number): boolean;
5521
- Closed(IC: number): boolean;
5522
- Reset(): void;
5523
- Simulate(IC: number): void;
5524
- NbSurf(IC: number): number;
5525
- Shape(): MdGeShape;
5526
- }
5527
- /**
5528
- * 表示一个圆
5529
- */
5530
- /**
5531
- * 表示一个圆。
5532
- */
5533
- export declare class MdGeCircle extends Mx3dBaseObject {
5534
- constructor(p1?: MdGeCSYSR | object, p2?: number);
5535
- SetAxis(theA1: MdGeAxis): void;
5536
- SetLocation(theP: MdGePoint): void;
5537
- SetPosition(theA2: MdGeCSYSR): void;
5538
- SetRadius(theRadius: number): void;
5539
- Area(): number;
5540
- Axis(): MdGeAxis;
5541
- Length(): number;
5542
- Location(): MdGePoint;
5543
- Position(): MdGeCSYSR;
5544
- Radius(): number;
5545
- XAxis(): MdGeAxis;
5546
- YAxis(): MdGeAxis;
5547
- Distance(theP: MdGePoint): number;
5548
- SquareDistance(theP: MdGePoint): number;
5549
- Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
5550
- MirrorByPoint(theP: MdGePoint): void;
5551
- MirroredByPoint(theP: MdGePoint): MdGeCircle;
5552
- MirrorByAxis(theA1: MdGeAxis): void;
5553
- MirroredByAxis(theA1: MdGeAxis): MdGeCircle;
5554
- MirrorByCSYSR(theA2: MdGeCSYSR): void;
5555
- MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCircle;
5556
- Rotate(theA1: MdGeAxis, theAng: number): void;
5557
- Rotated(theA1: MdGeAxis, theAng: number): MdGeCircle;
5558
- Scale(theP: MdGePoint, theS: number): void;
5559
- Scaled(theP: MdGePoint, theS: number): MdGeCircle;
5560
- Transform(theT: MdGeTrsf): void;
5561
- Transformed(theT: MdGeTrsf): MdGeCircle;
5562
- TranslateByVec(theV: MdGeVec): void;
5563
- TranslatedByVec(theV: MdGeVec): MdGeCircle;
5564
- TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
5565
- TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCircle;
5566
- Shape(): MdGeShape;
5567
- Edge(p1?: number, p2?: number): MdGeEdge;
5568
- Wire(): MdGeWire;
5569
- }
5570
- /**
5571
- * 表示一个坐标系(左手或右手)
5572
- */
5573
- /**
5574
- * 表示一个坐标系(左手或右手)
5575
- */
5576
- export declare class MdGeCSYS extends Mx3dBaseObject {
5577
- constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
5578
- XReverse(): void;
5579
- YReverse(): void;
5580
- ZReverse(): void;
5581
- SetZAxis(z_axis: MdGeAxis): void;
5582
- SetZDirection(z_dir: MdGeDir): void;
5583
- SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
5584
- SetXDirection(x_dir: MdGeDir): void;
5585
- SetYDirection(y_dir: MdGeDir): void;
5586
- Angle(other: MdGeCSYS): number;
5587
- ZAxis(): MdGeAxis;
5588
- CSYSR(): MdGeCSYSR;
5589
- ZDirection(): MdGeDir;
5590
- Origin(): MdGePoint;
5591
- XDirection(): MdGeDir;
5592
- YDirection(): MdGeDir;
5593
- Direct(): boolean;
5594
- IsCoplanarWithCSYS(other: MdGeCSYS, linearTolerance: number, angularTolerance: number): boolean;
5595
- IsCoplanarWithAxis(axis: MdGeAxis, linearTolerance: number, angularTolerance: number): boolean;
5596
- MirrorByPoint(point: MdGePoint): void;
5597
- MirroredByPoint(point: MdGePoint): MdGeCSYS;
5598
- MirrorByAxis(axis: MdGeAxis): void;
5599
- MirroredByAxis(axis: MdGeAxis): MdGeCSYS;
5600
- MirrorByCSYSR(csysr: MdGeCSYSR): void;
5601
- MirroredByCSYSR(csysr: MdGeCSYSR): MdGeCSYS;
5602
- Rotate(axis: MdGeAxis, ang: number): void;
5603
- Rotated(axis: MdGeAxis, ang: number): MdGeCSYS;
5604
- Scale(point: MdGePoint, s: number): void;
5605
- Scaled(point: MdGePoint, s: number): MdGeCSYS;
5606
- Transform(t: MdGeTrsf): void;
5607
- Transformed(t: MdGeTrsf): MdGeCSYS;
5608
- TranslateByVec(vec: MdGeVec): void;
5609
- TranslatedByVec(vec: MdGeVec): MdGeCSYS;
5610
- TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
5611
- TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGeCSYS;
5612
- }
5613
- /**
5614
- * 表示一个圆锥
5615
- */
5616
- /**
5617
- * 表示一个圆锥
5618
- */
5619
- export declare class MdGeCone extends Mx3dBaseObject {
5620
- constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
5621
- SetAxis(theA1: MdGeAxis): void;
5622
- SetLocation(theLoc: MdGePoint): void;
5623
- SetPosition(theA3: MdGeCSYS): void;
5624
- SetRadius(theR: number): void;
5625
- SetSemiAngle(theAng: number): void;
5626
- Apex(): MdGePoint;
5627
- UReverse(): void;
5628
- VReverse(): void;
5629
- Direct(): boolean;
5630
- Axis(): MdGeAxis;
5631
- Location(): MdGePoint;
5632
- Position(): MdGeCSYS;
5633
- RefRadius(): number;
5634
- SemiAngle(): number;
5635
- XAxis(): MdGeAxis;
5636
- YAxis(): MdGeAxis;
5637
- MirrorByPoint(theP: MdGePoint): void;
5638
- MirroredByPoint(theP: MdGePoint): MdGeCone;
5639
- MirrorByAxis(theA1: MdGeAxis): void;
5640
- MirroredByAxis(theA1: MdGeAxis): MdGeCone;
5641
- MirrorByCSYSR(theA2: MdGeCSYSR): void;
5642
- MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCone;
5643
- Rotate(theA1: MdGeAxis, theAng: number): void;
5644
- Rotated(theA1: MdGeAxis, theAng: number): MdGeCone;
5645
- Scale(theP: MdGePoint, theS: number): void;
5646
- Scaled(theP: MdGePoint, theS: number): MdGeCone;
5647
- Transform(theT: MdGeTrsf): void;
5648
- Transformed(theT: MdGeTrsf): MdGeCone;
5649
- TranslateByVec(theV: MdGeVec): void;
5650
- TranslatedByVec(theV: MdGeVec): MdGeCone;
5651
- TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
5652
- TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCone;
5653
- Shape(H: number, Angle?: number): MdGeShape;
5654
- Face(p1?: number | MdGeWire, p2?: number | boolean, p3?: number, p4?: number): MdGeFace;
5655
- }
5656
- /**
5657
- * 表示一个圆柱
5658
- */
5659
- /**
5660
- * 表示一个圆柱。
5661
- */
5662
- export declare class MdGeCylinder extends Mx3dBaseObject {
5663
- constructor(p1?: MdGeCSYS | object, p2?: number);
5664
- SetAxis(theA1: MdGeAxis): void;
5665
- SetLocation(theLoc: MdGePoint): void;
5666
- SetPosition(theA3: MdGeCSYS): void;
5667
- SetRadius(theR: number): void;
5668
- UReverse(): void;
5669
- VReverse(): void;
5670
- Direct(): boolean;
5671
- Axis(): MdGeAxis;
5672
- Location(): MdGePoint;
5673
- Position(): MdGeCSYS;
5674
- Radius(): number;
5675
- XAxis(): MdGeAxis;
5676
- YAxis(): MdGeAxis;
5677
- MirrorByPoint(theP: MdGePoint): void;
5678
- MirroredByPoint(theP: MdGePoint): MdGeCylinder;
5679
- MirrorByAxis(theA1: MdGeAxis): void;
5680
- MirroredByAxis(theA1: MdGeAxis): MdGeCylinder;
5681
- MirrorByCSYSR(theA2: MdGeCSYSR): void;
5682
- MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCylinder;
5683
- Rotate(theA1: MdGeAxis, theAng: number): void;
5684
- Rotated(theA1: MdGeAxis, theAng: number): MdGeCylinder;
5685
- Scale(theP: MdGePoint, theS: number): void;
5686
- Scaled(theP: MdGePoint, theS: number): MdGeCylinder;
5687
- Transform(theT: MdGeTrsf): void;
5688
- Transformed(theT: MdGeTrsf): MdGeCylinder;
5689
- TranslateByVec(theV: MdGeVec): void;
5690
- TranslatedByVec(theV: MdGeVec): MdGeCylinder;
5691
- TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
5692
- TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCylinder;
5693
- Shape(H: number, Angle?: number): MdGeShape;
5694
- Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
5695
- Shape3d(H: number, Angle?: number): Mx3dShapeObject;
5696
- }
5697
- /**
5698
- * 表示一个平面
5699
- */
5700
- /**
5701
- * 表示一个平面
5702
- */
5703
- export declare class MdGePlane extends Mx3dBaseObject {
5704
- constructor(p1?: MdGeCSYS | MdGePoint | number | object, p2?: MdGeDir | number, p3?: number, p4?: number);
5705
- SetAxis(theA1: MdGeAxis): void;
5706
- SetLocation(theLoc: MdGePoint): void;
5707
- SetPosition(theA3: MdGeCSYS): void;
5708
- UReverse(): void;
5709
- VReverse(): void;
5710
- Direct(): boolean;
5711
- Axis(): MdGeAxis;
5712
- Location(): MdGePoint;
5713
- Position(): MdGeCSYS;
5714
- DistanceToPoint(theP: MdGePoint): number;
5715
- DistanceToPlane(theOther: MdGePlane): number;
5716
- SquareDistanceToPoint(theP: MdGePoint): number;
5717
- SquareDistanceToPlane(theOther: MdGePlane): number;
5718
- XAxis(): MdGeAxis;
5719
- YAxis(): MdGeAxis;
5720
- Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
5721
- MirrorByPoint(theP: MdGePoint): void;
5722
- MirroredByPoint(theP: MdGePoint): MdGePlane;
5723
- MirrorByAxis(theA1: MdGeAxis): void;
5724
- MirroredByAxis(theA1: MdGeAxis): MdGePlane;
5725
- MirrorByCSYSR(theA2: MdGeCSYSR): void;
5726
- MirroredByCSYSR(theA2: MdGeCSYSR): MdGePlane;
5727
- Rotate(theA1: MdGeAxis, theAng: number): void;
5728
- Rotated(theA1: MdGeAxis, theAng: number): MdGePlane;
5729
- Scale(theP: MdGePoint, theS: number): void;
5730
- Scaled(theP: MdGePoint, theS: number): MdGePlane;
5731
- Transform(theT: MdGeTrsf): void;
5732
- Transformed(theT: MdGeTrsf): MdGePlane;
5733
- TranslateByVec(theV: MdGeVec): void;
5734
- TranslatedByVec(theV: MdGeVec): MdGePlane;
5735
- TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
5736
- TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGePlane;
5737
- Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
5738
- }
5739
- /**
5740
- * 表示直径标注
5741
- */
5742
- /**
5743
- * 表示直径标注
5744
- */
5745
- export declare class MdGeDiameterDim extends Mx3dBaseObject {
5746
- constructor(p1?: MdGeCircle | object, p2?: MdGePlane);
5747
- Circle(): MdGeCircle;
5748
- AnchorPoint(): MdGePoint;
5749
- Shape(): MdGeShape;
5750
- SetMeasuredGeometry(theCircle: MdGeCircle): void;
5751
- SetTextPosition(theTextPos: MdGePoint): void;
5752
- GetTextPosition(): MdGePoint;
5753
- SetDisplayUnits(theUnits: string): void;
5754
- SetModelUnits(theUnits: string): void;
5755
- GetValue(): number;
5756
- SetComputedValue(): void;
5757
- SetCustomValue(theValue: number): void;
5758
- GetPlane(): MdGePlane;
5759
- GetGeometryType(): number;
5760
- SetCustomPlane(thePlane: MdGePlane): void;
5761
- UnsetCustomPlane(): void;
5762
- IsTextPositionCustom(): boolean;
5763
- DimensionAspect(): MdGeDimAspect;
5764
- SetDimensionAspect(theDimensionAspect: MdGeDimAspect): void;
5765
- KindOfDimension(): MdGe.MxKindOfDimension;
5766
- AcceptDisplayMode(theMode: number): boolean;
5767
- UnsetFixedTextPosition(): void;
5768
- SelToleranceForText2d(): number;
5769
- SetSelToleranceForText2d(theTol: number): void;
5770
- GetFlyout(): number;
5771
- SetFlyout(theFlyout: number): void;
5772
- IsValid(): boolean;
5773
- Display(): void;
5774
- }
5775
- /**
5776
- * 表示一个椭圆
5777
- */
5778
- /**
5779
- * 表示一个椭圆
5780
- */
5781
- export declare class MdGeEllipse extends Mx3dBaseObject {
5782
- constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
5783
- SetAxis(theA1: MdGeAxis): void;
5784
- SetLocation(theP: MdGePoint): void;
5785
- SetMajorRadius(theMajorRadius: number): void;
5786
- SetMinorRadius(theMinorRadius: number): void;
5787
- SetPosition(theA2: MdGeCSYSR): void;
5788
- Area(): number;
5789
- Axis(): MdGeAxis;
5790
- Directrix1(): MdGeAxis;
5791
- Directrix2(): MdGeAxis;
5792
- Eccentricity(): number;
5793
- Focal(): number;
5794
- Focus1(): MdGePoint;
5795
- Focus2(): MdGePoint;
5796
- Location(): MdGePoint;
5797
- MajorRadius(): number;
5798
- MinorRadius(): number;
5799
- Parameter(): number;
5800
- Position(): MdGeCSYSR;
5801
- XAxis(): MdGeAxis;
5802
- YAxis(): MdGeAxis;
5803
- MirrorByPoint(theP: MdGePoint): void;
5804
- MirroredByPoint(theP: MdGePoint): MdGeEllipse;
5805
- MirrorByAxis(theA1: MdGeAxis): void;
5806
- MirroredByAxis(theA1: MdGeAxis): MdGeEllipse;
5807
- MirrorByCSYSR(theA2: MdGeCSYSR): void;
5808
- MirroredByCSYSR(theA2: MdGeCSYSR): MdGeEllipse;
5809
- Rotate(theA1: MdGeAxis, theAng: number): void;
5810
- Rotated(theA1: MdGeAxis, theAng: number): MdGeEllipse;
5811
- Scale(theP: MdGePoint, theS: number): void;
5812
- Scaled(theP: MdGePoint, theS: number): MdGeEllipse;
5813
- Transform(theT: MdGeTrsf): void;
5814
- Transformed(theT: MdGeTrsf): MdGeEllipse;
5815
- Shape(): MdGeShape;
5816
- Wire(): MdGeWire;
5817
- Edge(p1?: number, p2?: number): MdGeEdge;
5818
- }
5819
4418
  export declare namespace MdGe {
5820
4419
  enum MxShapeEnum {
5821
4420
  Enum_COMPOUND = 0,
@@ -6663,6 +5262,1441 @@ export declare namespace MdGe {
6663
5262
  Format_Blender = 18
6664
5263
  }
6665
5264
  }
5265
+ /** wasm importObject 的可配置选项 */
5266
+ export interface WasmConfig {
5267
+ /** 二进制数据 设置wasmBinary 则 locateFile 不生效**/
5268
+ wasmBinary?: ArrayBuffer;
5269
+ /** 手动指定wasm文件位置 */
5270
+ locateFile?: typeof getWasmURL;
5271
+ /** 打印 */
5272
+ print?: (theText: string) => string;
5273
+ /** 打印错误 */
5274
+ printErr?: (theText: string) => void;
5275
+ /** 监听运行时初始化 */
5276
+ onRuntimeInitialized?: () => void;
5277
+ }
5278
+ /** MxDraw3d的构造函数参数 的可配置选项 */
5279
+ export interface MxDraw3dConfig extends WasmConfig {
5280
+ [x: string]: any;
5281
+ canvas: string | HTMLCanvasElement;
5282
+ /** canvas最小宽度 默认300 */
5283
+ minWidth?: number;
5284
+ /** canvas最小高度 默认300 */
5285
+ minHeight?: number;
5286
+ /** 指定更新Canvas大小的函数,不指定则默认自动处理(指定该函数则 minHeight, minWidth无效) */
5287
+ updateCanvasSize?: () => void;
5288
+ }
5289
+ export declare class MxDraw3d extends PubSub<{
5290
+ "eventModesSelected": (ids: number[]) => void;
5291
+ "eventAddToTree": (node: string) => void;
5292
+ "eventRemoveFromTree": (ids: number[]) => void;
5293
+ "eventFileSave": (fileName: string) => void;
5294
+ "eventRebuildTree": (tree_str: string) => void;
5295
+ "eventUpdatePointer": (pointer: number[]) => void;
5296
+ "eventUpdateViewSize": (pointer: number[]) => void;
5297
+ }> implements MxDraw3dConfig {
5298
+ [x: string]: any;
5299
+ /** 监听wasm 文件加载成功事件 */
5300
+ static onloadWasmMxDraw3dModel: (mxDraw3d: MxDraw3d) => void;
5301
+ canvas: HTMLCanvasElement;
5302
+ constructor(options: MxDraw3dConfig);
5303
+ }
5304
+ export interface MxDraw3d extends WasmConfig {
5305
+ canvas: HTMLCanvasElement;
5306
+ _malloc: (len: number) => number;
5307
+ _free: (ptr: number) => void;
5308
+ HEAPU8: Uint8Array;
5309
+ ctx: WebGLRenderingContext | WebGL2RenderingContext | null;
5310
+ /** 设置Canvas大小
5311
+ * @param w 宽度
5312
+ * @param h 高度
5313
+ * @param noUpdate 不更新调整侦听器大小 默认 是true
5314
+ * */
5315
+ setCanvasSize(w: number, h: number, noUpdate?: boolean): void;
5316
+ /** 暂停主循环 */
5317
+ pauseMainLoop(): void;
5318
+ /** 恢复主循环 */
5319
+ resumeMainLoop(): void;
5320
+ /** 从内存打开
5321
+ * @param fileName 表示文件名称 (可通过浏览器 File对象的name属性或者自定义) 是生成渲染3D对象的唯一标识
5322
+ * @param dataBuffer 文件数据的缓冲区
5323
+ * @param len 缓冲区的长度
5324
+ * @param is 是否为压缩格式
5325
+ * */
5326
+ openFromMemory(fileName: string, dataBuffer: number, len: number, is?: boolean): boolean;
5327
+ /** 从内存打开
5328
+ * @param fileName 表示文件名称 (可通过浏览器 File对象的name属性或者自定义) 是生成渲染3D对象的唯一标识
5329
+ * @param dataBuffer 文件数据的缓冲区
5330
+ * @param len 缓冲区的长度
5331
+ * @param is 是否为压缩格式
5332
+ * */
5333
+ openBRepFromMemory(fileName: string, dataBuffer: Buffer, len: number, is?: boolean): boolean;
5334
+ /** 从Url打开
5335
+ * @param name 名称 是生成渲染3D对象的唯一标识
5336
+ * @param fileUrl 文件路径
5337
+ * */
5338
+ openFromUrl: (name: string, fileUrl: string) => void;
5339
+ /** 获取视图宽度 */
5340
+ getViewWidth: () => number;
5341
+ /** 获取视图高度 */
5342
+ getViewHeight: () => number;
5343
+ /** 获取视图缩放比例 */
5344
+ getViewScale: () => number;
5345
+ /** 获取视图中鼠标X位置 */
5346
+ getViewCursorX: () => number;
5347
+ /** 获取视图中鼠标Y位置 */
5348
+ getViewCursorY: () => number;
5349
+ /** 获取视图中鼠标Z位置 */
5350
+ getViewCursorZ: () => number;
5351
+ /** 删除选中实体 */
5352
+ removeSelectedObjects: () => void;
5353
+ /** 设置显示/隐藏模型 */
5354
+ setObjectShowState: (theId: number, theToShow: boolean) => void;
5355
+ /** 获取文件的长度 */
5356
+ getFileSize: (theFileName: string) => number;
5357
+ /** 获取文件的BufferPointer */
5358
+ getFileArryBufferPointer: (theFileName: string) => number;
5359
+ /** 新建文档 */
5360
+ creatDocument: () => boolean;
5361
+ /** 执行undo */
5362
+ executeUndo: () => boolean;
5363
+ /** 执行redo */
5364
+ executeRedo: () => boolean;
5365
+ /** 加载贴图图片 */
5366
+ loadTextureImg: (fileUrl: string, fileName: string) => void;
5367
+ /** 适应选中的对象 */
5368
+ fitSelectedObjects: () => void;
5369
+ /** 设置多维数据集贴图背景 */
5370
+ setCubemapBackground(url: string): void;
5371
+ /** 完成初始化 */
5372
+ ready: Promise<MxDraw3d>;
5373
+ /*** 显示地面或地面网格 */
5374
+ displayGround(is: boolean): void;
5375
+ /**
5376
+ * 显示对象
5377
+ * @param 唯一标识名称 是openFromUrl、openBRepFromMemory、 openFromMemory、 (open3DFile参数 file的name属性)
5378
+ * */
5379
+ displayObject(name: string): boolean;
5380
+ /**
5381
+ * 擦除对象
5382
+ * @param 唯一标识名称 是openFromUrl、openBRepFromMemory、 openFromMemory、 (open3DFile参数 file的name属性)
5383
+ * */
5384
+ eraseObject(name: string): boolean;
5385
+ /** 适应所有对象 */
5386
+ fitAllObjects(is: boolean): void;
5387
+ /** 删除所有对象 */
5388
+ removeAllObjects(): void;
5389
+ /** 高亮entry对应模型 */
5390
+ highLightSelShape(theEntry: number): void;
5391
+ /** 高亮 */
5392
+ highLightSelLabelShape(labelEntryStr: string): void;
5393
+ /** 通过Entry来进行删除对象 */
5394
+ removeObjectByEntry(theEntry: string): void;
5395
+ /** 激活选择模式 */
5396
+ activateSelectionMode(selectionType: MdGe.MxShapeEnum): void;
5397
+ /** 失活所有选择模式 */
5398
+ deactivateAllSelectionMode(): void;
5399
+ /** 开启关闭操作器 */
5400
+ setManipulatorEnabled(isEnabled: boolean): void;
5401
+ /** 管理剖切平面 */
5402
+ enableXClipPlane(theToEnabled: boolean): void;
5403
+ setXClipPlaneXPosition(thePosition: number): void;
5404
+ setXClipPlaneReverse(): void;
5405
+ enableYClipPlane(theToEnabled: boolean): void;
5406
+ setYClipPlaneYPosition(thePosition: number): void;
5407
+ setYClipPlaneReverse(): void;
5408
+ enableZClipPlane(theToEnabled: boolean): void;
5409
+ setZClipPlaneZPosition(thePosition: number): void;
5410
+ setZClipPlaneReverse(): void;
5411
+ enableCustomClipPlane(theToEnabled: boolean): void;
5412
+ setCustomClipPlanePosition(thePosition: number): void;
5413
+ setCustomClipPlaneReverse(): void;
5414
+ setCustomClipPlaneDirection(x: number, y: number, z: number): void;
5415
+ /** 散开模型 */
5416
+ explodeModels(theExplodeFactor: number): void;
5417
+ /** 设置显示模式 */
5418
+ setDisplayMode(theMode: MdGe.MxGlobalDisplayMode): void;
5419
+ /** 显示隐藏中心坐标轴体 */
5420
+ showCenterTrihedron(theToShow: boolean): void;
5421
+ /** 显示隐藏 */
5422
+ setObjectShowStateByLabel(labelEntryStr: string, theToShow: boolean): void;
5423
+ /** 更新画布大小 */
5424
+ updateCanvasSize: () => void;
5425
+ /** 通过浏览器器File对象打开3D文件
5426
+ * @param file File对象
5427
+ */
5428
+ open3DFile: (file: File) => void;
5429
+ /** 表示一个形状 */
5430
+ MdGeShape: typeof MdGeShape;
5431
+ /** 表示一个点 */
5432
+ MdGePoint: typeof MdGePoint;
5433
+ /** 表示一个向量 */
5434
+ MdGeVec: typeof MdGeVec;
5435
+ /** 表示一个Wire形状 */
5436
+ MdGeWire: typeof MdGeWire;
5437
+ /** 表示一个Edge形状 */
5438
+ MdGeEdge: typeof MdGeEdge;
5439
+ /** 表示一个Vertex形状 */
5440
+ MdGeVertex: typeof MdGeVertex;
5441
+ /** 表示一个Face形状 */
5442
+ MdGeFace: typeof MdGeFace;
5443
+ /** 表示一个Shell形状 */
5444
+ MdGeShell: typeof MdGeShell;
5445
+ /** 表示一个Solid形状 */
5446
+ MdGeSolid: typeof MdGeSolid;
5447
+ /** 表示一个CompSolid形状 */
5448
+ MdGeCompSolid: typeof MdGeCompSolid;
5449
+ /** 表示一个Compound形状 */
5450
+ MdGeCompound: typeof MdGeCompound;
5451
+ /** 表示一个矩阵 */
5452
+ MdGeMat: typeof MdGeMat;
5453
+ /** 表示一个坐标 */
5454
+ MdGeXYZ: typeof MdGeXYZ;
5455
+ /** 表示一个变换 */
5456
+ MdGeTrsf: typeof MdGeTrsf;
5457
+ /** 表示一个方向 */
5458
+ MdGeDir: typeof MdGeDir;
5459
+ /** 表示一个轴 */
5460
+ MdGeAxis: typeof MdGeAxis;
5461
+ /** 表示一个右手坐标系 */
5462
+ MdGeCSYSR: typeof MdGeCSYSR;
5463
+ /** 表示角度标注 */
5464
+ MdGeAngleDim: typeof MdGeAngleDim;
5465
+ /** 表示一维整数数组 */
5466
+ MdGeArray1OfInteger: typeof MdGeArray1OfInteger;
5467
+ /** 表示一维点数组 */
5468
+ MdGeArray1OfPnt: typeof MdGeArray1OfPnt;
5469
+ /** 表示一维实数数组 */
5470
+ MdGeArray1OfReal: typeof MdGeArray1OfReal;
5471
+ /** 表示二维点数组 */
5472
+ MdGeArray2OfPnt: typeof MdGeArray2OfPnt;
5473
+ /** 表示二维实数数组 */
5474
+ MdGeArray2OfReal: typeof MdGeArray2OfReal;
5475
+ /** 表示贝塞尔曲线 */
5476
+ MdGeBezierCurve: typeof MdGeBezierCurve;
5477
+ /** 表示贝塞尔曲面 */
5478
+ MdGeBezierSurface: typeof MdGeBezierSurface;
5479
+ /** 表示倒斜角 */
5480
+ MdGeChamfer: typeof MdGeChamfer;
5481
+ /** 表示一个圆 */
5482
+ MdGeCircle: typeof MdGeCircle;
5483
+ /** 表示一个坐标系(左手或右手) */
5484
+ MdGeCSYS: typeof MdGeCSYS;
5485
+ /** 表示一个圆锥 */
5486
+ MdGeCone: typeof MdGeCone;
5487
+ /** 表示一个圆柱 */
5488
+ MdGeCylinder: typeof MdGeCylinder;
5489
+ /** 表示一个平面 */
5490
+ MdGePlane: typeof MdGePlane;
5491
+ /** 表示直径标注 */
5492
+ MdGeDiameterDim: typeof MdGeDiameterDim;
5493
+ /** 表示一个椭圆 */
5494
+ MdGeEllipse: typeof MdGeEllipse;
5495
+ MxShapeEnum: typeof MdGe.MxShapeEnum;
5496
+ MxHorizontalTextAlignment: typeof MdGe.MxHorizontalTextAlignment;
5497
+ MxVerticalTextAlignment: typeof MdGe.MxVerticalTextAlignment;
5498
+ MxFontAspect: typeof MdGe.MxFontAspect;
5499
+ MxTypeOfDisplayText: typeof MdGe.MxTypeOfDisplayText;
5500
+ MxCF3dFilletShapeEnum: typeof MdGe.MxCF3dFilletShapeEnum;
5501
+ MxCFDSChamfMode: typeof MdGe.MxCFDSChamfMode;
5502
+ MxGFTrihedron: typeof MdGe.MxGFTrihedron;
5503
+ MxGAShapeEnum: typeof MdGe.MxGAShapeEnum;
5504
+ MxOffsetModeEnum: typeof MdGe.MxOffsetModeEnum;
5505
+ MxGAJoinTypeEnum: typeof MdGe.MxGAJoinTypeEnum;
5506
+ MxNameOfMaterial: typeof MdGe.MxNameOfMaterial;
5507
+ MxTypeOfMaterial: typeof MdGe.MxTypeOfMaterial;
5508
+ MxTypeOfReflection: typeof MdGe.MxTypeOfReflection;
5509
+ MxNameOfColor: typeof MdGe.MxNameOfColor;
5510
+ MxTypeOfColor: typeof MdGe.MxTypeOfColor;
5511
+ MxDisplayMode: typeof MdGe.MxDisplayMode;
5512
+ MxTypeOfAngle: typeof MdGe.MxTypeOfAngle;
5513
+ MxTypeOfAngleArrowVisibility: typeof MdGe.MxTypeOfAngleArrowVisibility;
5514
+ MxTypeOfLine: typeof MdGe.MxTypeOfLine;
5515
+ MxTextPath: typeof MdGe.MxTextPath;
5516
+ MxDimensionArrowOrientation: typeof MdGe.MxDimensionArrowOrientation;
5517
+ MxDimensionTextVerticalPosition: typeof MdGe.MxDimensionTextVerticalPosition;
5518
+ MxDimensionTextHorizontalPosition: typeof MdGe.MxDimensionTextHorizontalPosition;
5519
+ MxKindOfDimension: typeof MdGe.MxKindOfDimension;
5520
+ MxDocColorType: typeof MdGe.MxDocColorType;
5521
+ MxKindOfInteractive: typeof MdGe.MxKindOfInteractive;
5522
+ MxPrs3dTypeOfHLR: typeof MdGe.MxPrs3dTypeOfHLR;
5523
+ MxDisplayStatus: typeof MdGe.MxDisplayStatus;
5524
+ /** 表示拓扑元素遍历 */
5525
+ MdGeExplorer: typeof MdGeExplorer;
5526
+ /** 表示倒圆角 */
5527
+ MdGeFillet: typeof MdGeFillet;
5528
+ /** 表示双曲线 */
5529
+ MdGeHypr: typeof MdGeHypr;
5530
+ /** 表示一个Box */
5531
+ MdGeBox: typeof MdGeBox;
5532
+ /** 表示B样条曲线 */
5533
+ MdGeBSplineCurve: typeof MdGeBSplineCurve;
5534
+ /** 表示B样条曲面 */
5535
+ MdGeBSplineSurface: typeof MdGeBSplineSurface;
5536
+ /** 表示插值B样条曲线 */
5537
+ MdGeInterpolateBSpl: typeof MdGeInterpolateBSpl;
5538
+ /** 表示长度标注 */
5539
+ MdGeLengthDim: typeof MdGeLengthDim;
5540
+ /** 表示一条直线 */
5541
+ MdGeLine: typeof MdGeLine;
5542
+ /** 表示形状链表迭代器 */
5543
+ MdGeListIteratorOfListOfShape: typeof MdGeListIteratorOfListOfShape;
5544
+ /** 表示形状链表 */
5545
+ MdGeListOfShape: typeof MdGeListOfShape;
5546
+ /** 表示放样 */
5547
+ MdGeLoft: typeof MdGeLoft;
5548
+ /** 表示薄实体 */
5549
+ MdGeMakeThickSolid: typeof MdGeMakeThickSolid;
5550
+ /** 表示抛物线 */
5551
+ MdGeParab: typeof MdGeParab;
5552
+ /** 表示管道 */
5553
+ MdGePipe: typeof MdGePipe;
5554
+ /** 表示拟合点B样条曲线 */
5555
+ MdGePointsToBSpl: typeof MdGePointsToBSpl;
5556
+ /** 表示拟合B样条曲面 */
5557
+ MdGePointsToBSplSurface: typeof MdGePointsToBSplSurface;
5558
+ /** 表示拉伸体 */
5559
+ MdGePrism: typeof MdGePrism;
5560
+ /** 表示半径标注 */
5561
+ MdGeRadiusDim: typeof MdGeRadiusDim;
5562
+ /** 表示一个矩形 */
5563
+ MdGeRect: typeof MdGeRect;
5564
+ /** 表示旋转体 */
5565
+ MdGeRevol: typeof MdGeRevol;
5566
+ /** 表示一个球体 */
5567
+ MdGeSphere: typeof MdGeSphere;
5568
+ /** 表示文字 */
5569
+ MdGeText: typeof MdGeText;
5570
+ /** 表示文字标签 */
5571
+ MdGeTextLabel: typeof MdGeTextLabel;
5572
+ /** 拓扑转换类 */
5573
+ MdGeTopo: typeof MdGeTopo;
5574
+ mdGeTopo: MdGeTopo;
5575
+ /** 表示圆环 */
5576
+ MdGeTorus: typeof MdGeTorus;
5577
+ /** 形状变换类 */
5578
+ MdGeTransform: typeof MdGeTransform;
5579
+ /** 表示一个楔形 */
5580
+ MdGeWedge: typeof MdGeWedge;
5581
+ /** 表示BRep工具 */
5582
+ MdGeBRep: typeof MdGeBRep;
5583
+ mdGeBRep: MdGeBRep;
5584
+ /** 表示几何平面句柄 */
5585
+ MdGeHGeomPlane: typeof MdGeHGeomPlane;
5586
+ mdGeHGeomPlane: MdGeHGeomPlane;
5587
+ /** 表示几何曲面句柄 */
5588
+ MdGeHGeomSurface: typeof MdGeHGeomSurface;
5589
+ /** 所有类的父类,除MdGeTopo,MdGeBRep */
5590
+ Mx3dBaseObject: typeof Mx3dBaseObject;
5591
+ /** 表示颜色 */
5592
+ MdGeColor: typeof MdGeColor;
5593
+ /** 表示材质 */
5594
+ MdGeMaterialAspect: typeof MdGeMaterialAspect;
5595
+ /** 表示形状序列集合 */
5596
+ MdGeSequenceOfShape: typeof MdGeSequenceOfShape;
5597
+ /** 表示形状序列集合迭代器 */
5598
+ MdGeSequenceIteratorOfSequenceOfShape: typeof MdGeSequenceIteratorOfSequenceOfShape;
5599
+ /** 表示合并Edges成Wires */
5600
+ MdGeMakeWires: typeof MdGeMakeWires;
5601
+ /** 表示Wire生成Face */
5602
+ MdGeMakeFace: typeof MdGeMakeFace;
5603
+ /** 表示三点圆弧 */
5604
+ MdGeMakeArcOfCircle: typeof MdGeMakeArcOfCircle;
5605
+ /** 表示光照 */
5606
+ MdGeLight: typeof MdGeLight;
5607
+ /** 箭头样式 */
5608
+ MdGeArrowAspect: typeof MdGeArrowAspect;
5609
+ /** 标注样式 */
5610
+ MdGeDimAspect: typeof MdGeDimAspect;
5611
+ /** 线样式 */
5612
+ MdGeLineAspect: typeof MdGeLineAspect;
5613
+ /** 文本样式 */
5614
+ MdGeTextAspect: typeof MdGeTextAspect;
5615
+ /** 应用程序 */
5616
+ MdGeApplication: typeof MdGeApplication;
5617
+ mdGeApplication: MdGeApplication;
5618
+ /** 文档 */
5619
+ MdGeDocument: typeof MdGeDocument;
5620
+ mdGeDocument: MdGeDocument;
5621
+ /** 文档图形工具 */
5622
+ MdGeDocShapeTool: typeof MdGeDocShapeTool;
5623
+ /** 文档颜色工具 */
5624
+ MdGeDocColorTool: typeof MdGeDocColorTool;
5625
+ /** 文档标签元素 */
5626
+ MdGeLabel: typeof MdGeLabel;
5627
+ /** 文档标签元素序列 */
5628
+ MdGeLabelSequence: typeof MdGeLabelSequence;
5629
+ /** Location */
5630
+ MdGeLocation: typeof MdGeLocation;
5631
+ /** MdGeLabelTree */
5632
+ MdGeLabelTree: typeof MdGeLabelTree;
5633
+ mdGeLabelTree: MdGeLabelTree;
5634
+ /** 文档读取器 */
5635
+ MdGeDocReader: typeof MdGeDocReader;
5636
+ /** 文件写入器 */
5637
+ MdGeDocWriter: typeof MdGeDocWriter;
5638
+ /** 上下文 */
5639
+ MdGeAisContext: typeof MdGeAisContext;
5640
+ mdGeAisContext: MdGeAisContext;
5641
+ /** ais对象 */
5642
+ MdGeAisObject: typeof MdGeAisObject;
5643
+ /** ais形状 */
5644
+ MdGeAisShape: typeof MdGeAisShape;
5645
+ /** 包围盒 */
5646
+ MdGeBndBox: typeof MdGeBndBox;
5647
+ /** aistextured形状 */
5648
+ MdGeAisTexturedShape: typeof MdGeAisTexturedShape;
5649
+ /** MdGeSpliter */
5650
+ MdGeSpliter: typeof MdGeSpliter;
5651
+ Mx3dGeBndBox: typeof Mx3dGeBndBox;
5652
+ Mx3dGeColor: typeof Mx3dGeColor;
5653
+ Mx3dDbDocument: typeof Mx3dDbDocument;
5654
+ Mx3dDbLabel: typeof Mx3dDbLabel;
5655
+ Mx3dLabelSequence: typeof Mx3dLabelSequence;
5656
+ Mx3dLabelSequenceIterator: typeof Mx3dLabelSequenceIterator;
5657
+ Mx3dGeLocation: typeof Mx3dGeLocation;
5658
+ Mx3dGePoint: typeof Mx3dGePoint;
5659
+ Mx3dShapeObject: typeof Mx3dShapeObject;
5660
+ Mx3dGeObject: typeof Mx3dGeObject;
5661
+ Mx3dDbObject: typeof Mx3dDbObject;
5662
+ Mx3dApplication: typeof Mx3dApplication;
5663
+ app: Mx3dApplication;
5664
+ }
5665
+ /**
5666
+ * 所有类的父类, 除去MdGeTopo以及MdGeBrep
5667
+ */
5668
+ export declare class Mx3dBaseObject {
5669
+ protected imp: any;
5670
+ constructor(imp?: any);
5671
+ getImp(): any;
5672
+ protected initTempObject(imp: any): void;
5673
+ }
5674
+ export declare class Mx3dShapeObject extends Mx3dBaseObject {
5675
+ constructor(p?: object);
5676
+ getBndBox(): Mx3dGeBndBox;
5677
+ Draw(): void;
5678
+ }
5679
+ export declare class Mx3dGeObject extends Mx3dBaseObject {
5680
+ constructor(p?: object);
5681
+ }
5682
+ export declare class Mx3dDbObject extends Mx3dBaseObject {
5683
+ constructor(p?: object);
5684
+ }
5685
+ /**
5686
+ * 表示一个形状。
5687
+ */
5688
+ /**
5689
+ * 表示一个形状
5690
+ */
5691
+ export declare class MdGeShape extends Mx3dBaseObject {
5692
+ constructor(p?: object);
5693
+ Fuse(other: MdGeShape): MdGeShape;
5694
+ Cut(remove: MdGeShape): MdGeShape;
5695
+ Common(other: MdGeShape): MdGeShape;
5696
+ Section(other: MdGeShape): MdGeShape;
5697
+ ShapeType(): MdGe.MxShapeEnum;
5698
+ Quantities(): MdGeArray1OfReal;
5699
+ MirrorByPoint(theP: MdGePoint): void;
5700
+ MirroredByPoint(theP: MdGePoint): MdGeShape;
5701
+ MirrorByAxis(axis: MdGeAxis): void;
5702
+ MirroredByAxis(axis: MdGeAxis): MdGeShape;
5703
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
5704
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGeShape;
5705
+ Rotate(axis: MdGeAxis, ang: number): void;
5706
+ Rotated(axis: MdGeAxis, ang: number): MdGeShape;
5707
+ Scale(point: MdGePoint, s: number): void;
5708
+ Scaled(point: MdGePoint, s: number): MdGeShape;
5709
+ Transform(trsf: MdGeTrsf): void;
5710
+ Transformed(trsf: MdGeTrsf): MdGeShape;
5711
+ TranslateByVec(vec: MdGeVec): void;
5712
+ TranslatedByVec(vec: MdGeVec): MdGeShape;
5713
+ TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
5714
+ TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGeShape;
5715
+ SetTextureFileName(path: string): void;
5716
+ SetMaterialAspect(material: MdGeMaterialAspect): void;
5717
+ SetColor(color: MdGeColor): void;
5718
+ TextureRepeat(): boolean;
5719
+ URepeat(): number;
5720
+ VRepeat(): number;
5721
+ SetTextureRepeat(theToRepeat: boolean, theURepeat: number, theVRepeat: number): void;
5722
+ TextureScale(): boolean;
5723
+ TextureScaleU(): number;
5724
+ TextureScaleV(): number;
5725
+ SetTextureScale(theToSetTextureScale: boolean, theScaleU: number, theScaleV: number): void;
5726
+ TextureOrigin(): boolean;
5727
+ TextureUOrigin(): number;
5728
+ TextureVOrigin(): number;
5729
+ SetTextureOrigin(theToSetTextureOrigin: boolean, theUOrigin: number, theVOrigin: number): void;
5730
+ IsNull(): boolean;
5731
+ SetShapeName(theShapeName: string): void;
5732
+ GetShapeName(): string;
5733
+ GetBndBox(): MdGeBndBox;
5734
+ Draw(): string;
5735
+ }
5736
+ /**
5737
+ * 表示一个点形状
5738
+ */
5739
+ export declare class MdGeVertex extends MdGeShape {
5740
+ constructor(p1?: MdGePoint | number | object, p2?: number, p3?: number);
5741
+ }
5742
+ /**
5743
+ * 表示一个Edge形状
5744
+ */
5745
+ export declare class MdGeEdge extends MdGeShape {
5746
+ constructor(p1?: MdGePoint | object, p2?: MdGePoint);
5747
+ Wire(): MdGeWire;
5748
+ AddedEdge(edge: MdGeEdge): MdGeWire;
5749
+ AddedWire(wire: MdGeWire): MdGeWire;
5750
+ }
5751
+ /**
5752
+ * 表示一个Wire形状
5753
+ */
5754
+ export declare class MdGeWire extends MdGeShape {
5755
+ constructor(p?: object);
5756
+ AddedEdge(edge: MdGeEdge): MdGeWire;
5757
+ AddedWire(wire: MdGeWire): MdGeWire;
5758
+ }
5759
+ /**
5760
+ * 表示一个Face形状
5761
+ */
5762
+ export declare class MdGeFace extends MdGeShape {
5763
+ constructor(p?: object);
5764
+ }
5765
+ /**
5766
+ * 表示一个Shell形状
5767
+ */
5768
+ export declare class MdGeShell extends MdGeShape {
5769
+ constructor(p?: object);
5770
+ }
5771
+ /**
5772
+ * 表示一个Solid形状
5773
+ */
5774
+ export declare class MdGeSolid extends MdGeShape {
5775
+ constructor(p?: object);
5776
+ }
5777
+ /**
5778
+ * 表示一个CompSolid形状
5779
+ */
5780
+ export declare class MdGeCompSolid extends MdGeShape {
5781
+ constructor(p?: object);
5782
+ }
5783
+ /**
5784
+ * 表示一个Compound形状
5785
+ */
5786
+ export declare class MdGeCompound extends MdGeShape {
5787
+ constructor(p?: object);
5788
+ }
5789
+ /**
5790
+ * 表示一个矩阵。
5791
+ */
5792
+ /**
5793
+ * 表示一个矩阵
5794
+ */
5795
+ export declare class MdGeMat extends Mx3dBaseObject {
5796
+ constructor(p1?: MdGeXYZ | number | object, p2?: MdGeXYZ | number, p3?: MdGeXYZ | number, p4?: number, p5?: number, p6?: number, p7?: number, p8?: number, p9?: number);
5797
+ SetCol(col: number, value: MdGeXYZ): void;
5798
+ SetCols(col1: MdGeXYZ, col2: MdGeXYZ, col3: MdGeXYZ): void;
5799
+ SetCross(ref: MdGeXYZ): void;
5800
+ SetDiagonal(x1: number, x2: number, x3: number): void;
5801
+ SetDot(ref: MdGeXYZ): void;
5802
+ SetIdentity(): void;
5803
+ SetRotation(axis: MdGeXYZ, ang: number): void;
5804
+ SetRow(row: number, value: MdGeXYZ): void;
5805
+ SetRows(row1: MdGeXYZ, row2: MdGeXYZ, row3: MdGeXYZ): void;
5806
+ SetScale(s: number): void;
5807
+ SetValue(row: number, col: number, value: number): void;
5808
+ Column(col: number): MdGeXYZ;
5809
+ Determinant(): number;
5810
+ Diagonal(): MdGeXYZ;
5811
+ Row(row: number): MdGeXYZ;
5812
+ Value(row: number, col: number): number;
5813
+ ChangeValue(row: number, col: number, value: number): void;
5814
+ IsSingular(): boolean;
5815
+ Add(other: MdGeMat): void;
5816
+ Added(other: MdGeMat): MdGeMat;
5817
+ Divide(scalar: number): void;
5818
+ Divided(scalar: number): MdGeMat;
5819
+ Invert(): void;
5820
+ Inverted(): MdGeMat;
5821
+ MultipliedByMat(other: MdGeMat): MdGeMat;
5822
+ MultiplyByMat(other: MdGeMat): void;
5823
+ PreMultiplyByMat(other: MdGeMat): void;
5824
+ MultipliedByS(scalar: number): MdGeMat;
5825
+ MultiplyByS(scalar: number): void;
5826
+ Power(n: number): void;
5827
+ Powered(n: number): MdGeMat;
5828
+ Subtract(other: MdGeMat): void;
5829
+ Subtracted(other: MdGeMat): MdGeMat;
5830
+ Transpose(): void;
5831
+ Transposed(): MdGeMat;
5832
+ }
5833
+ /**
5834
+ * 表示一个坐标。
5835
+ */
5836
+ /**
5837
+ * 表示一个坐标
5838
+ */
5839
+ export declare class MdGeXYZ extends Mx3dBaseObject {
5840
+ constructor(p1?: number | object, p2?: number, p3?: number);
5841
+ SetCoord(x: number, y: number, z?: number): void;
5842
+ SetX(x: number): void;
5843
+ SetY(y: number): void;
5844
+ SetZ(z: number): void;
5845
+ Coord(index: number): number;
5846
+ ChangeCoord(index: number, value: number): void;
5847
+ X(): number;
5848
+ Y(): number;
5849
+ Z(): number;
5850
+ Modulus(): number;
5851
+ SquareModulus(): number;
5852
+ IsEqual(other: MdGeXYZ, tolerance: number): boolean;
5853
+ Add(other: MdGeXYZ): void;
5854
+ Added(other: MdGeXYZ): MdGeXYZ;
5855
+ Cross(other: MdGeXYZ): void;
5856
+ Crossed(other: MdGeXYZ): MdGeXYZ;
5857
+ CrossMagnitude(right: MdGeXYZ): number;
5858
+ CrossSquareMagnitude(right: MdGeXYZ): number;
5859
+ CrossCross(coord1: MdGeXYZ, coord2: MdGeXYZ): void;
5860
+ CrossCrossed(coord1: MdGeXYZ, coord2: MdGeXYZ): MdGeXYZ;
5861
+ Divide(salar: number): void;
5862
+ Divided(scalar: number): MdGeXYZ;
5863
+ Dot(other: MdGeXYZ): number;
5864
+ DotCross(coord1: MdGeXYZ, coord2: MdGeXYZ): number;
5865
+ MultiplyByS(scalar: number): void;
5866
+ MultiplyByXYZ(other: MdGeXYZ): void;
5867
+ MultiplyByMat(matrix: MdGeMat): void;
5868
+ MultipliedByS(scalar: number): MdGeXYZ;
5869
+ MultipliedByXYZ(other: MdGeXYZ): MdGeXYZ;
5870
+ MultipliedByMat(matrix: MdGeMat): MdGeXYZ;
5871
+ Normalize(): void;
5872
+ Normalized(): MdGeXYZ;
5873
+ Reverse(): void;
5874
+ Reversed(): MdGeXYZ;
5875
+ Subtract(other: MdGeXYZ): void;
5876
+ Subtracted(other: MdGeXYZ): MdGeXYZ;
5877
+ }
5878
+ /**
5879
+ * 表示一个变换。
5880
+ */
5881
+ /**
5882
+ * 表示一个变换
5883
+ */
5884
+ export declare class MdGeTrsf extends Mx3dBaseObject {
5885
+ constructor(p?: object);
5886
+ SetMirrorByPoint(point: MdGePoint): void;
5887
+ SetMirrorByAxis(axis: MdGeAxis): void;
5888
+ SetMirrorByCSYSR(csysr: MdGeCSYSR): void;
5889
+ SetRotation(axis: MdGeAxis, ang: number): void;
5890
+ SetScale(point: MdGePoint, s: number): void;
5891
+ SetTranslationByVec(vec: MdGeVec): void;
5892
+ SetTranslationBy2Points(point1: MdGePoint, point2: MdGePoint): void;
5893
+ SetTranslationPart(vec: MdGeVec): void;
5894
+ SetScaleFactor(s: number): void;
5895
+ SetValues(a11: number, a12: number, a13: number, a14: number, a21: number, a22: number, a23: number, a24: number, a31: number, a32: number, a33: number, a34: number): void;
5896
+ IsNegative(): number;
5897
+ ScaleFactor(): number;
5898
+ Value(row: number, col: number): number;
5899
+ Invert(): void;
5900
+ Inverted(): MdGeTrsf;
5901
+ Multiplied(t: MdGeTrsf): MdGeTrsf;
5902
+ Multiply(t: MdGeTrsf): void;
5903
+ PreMultiply(t: MdGeTrsf): void;
5904
+ Power(n: number): void;
5905
+ Powered(n: number): MdGeTrsf;
5906
+ Transforms(x: number, y: number, z: number): void;
5907
+ }
5908
+ /**
5909
+ * 表示一个方向。
5910
+ */
5911
+ /**
5912
+ * 表示一个方向
5913
+ */
5914
+ export declare class MdGeDir extends Mx3dBaseObject {
5915
+ constructor(p1?: MdGeVec | number | object, p2?: number, p3?: number);
5916
+ SetCoord(p1: number, p2: number, p3?: number): void;
5917
+ SetX(theXv: number): void;
5918
+ SetY(theYv: number): void;
5919
+ SetZ(theZv: number): void;
5920
+ SetXYZ(theCoord: MdGeXYZ): void;
5921
+ Coord(theIndex: number): number;
5922
+ X(): number;
5923
+ Y(): number;
5924
+ Z(): number;
5925
+ XYZ(): MdGeXYZ;
5926
+ IsEqual(theOther: MdGeDir, theAngularTolerance: number): boolean;
5927
+ IsNormal(theOther: MdGeDir, theAngularTolerance: number): boolean;
5928
+ IsOpposite(theOther: MdGeDir, theAngularTolerance: number): boolean;
5929
+ IsParallel(theOther: MdGeDir, theAngularTolerance: number): boolean;
5930
+ Angle(theOther: MdGeDir): number;
5931
+ AngleWithRef(theOther: MdGeDir, theVRef: MdGeDir): number;
5932
+ Cross(theRight: MdGeDir): void;
5933
+ Crossed(theRight: MdGeDir): MdGeDir;
5934
+ CrossCross(theV1: MdGeDir, theV2: MdGeDir): void;
5935
+ CrossCrossed(theV1: MdGeDir, theV2: MdGeDir): MdGeDir;
5936
+ Dot(theOther: MdGeDir): number;
5937
+ DotCross(theV1: MdGeDir, theV2: MdGeDir): number;
5938
+ Reverse(): void;
5939
+ Reversed(): MdGeDir;
5940
+ MirrorByVec(theV: MdGeDir): void;
5941
+ MirroredByVec(theV: MdGeDir): MdGeDir;
5942
+ MirrorByAxis(theA1: MdGeAxis): void;
5943
+ MirroredByAxis(theA1: MdGeAxis): MdGeDir;
5944
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
5945
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeDir;
5946
+ Rotate(theA1: MdGeAxis, theAng: number): void;
5947
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeDir;
5948
+ Transform(theT: MdGeTrsf): void;
5949
+ Transformed(theT: MdGeTrsf): MdGeDir;
5950
+ }
5951
+ /**
5952
+ * 表示一个轴。
5953
+ */
5954
+ /**
5955
+ * 表示一个轴
5956
+ */
5957
+ export declare class MdGeAxis extends Mx3dBaseObject {
5958
+ constructor(p1?: MdGePoint | object, p2?: MdGeDir);
5959
+ Direction(): MdGeDir;
5960
+ Location(): MdGePoint;
5961
+ SetDirection(dir: MdGeDir): void;
5962
+ SetLocation(loc: MdGePoint): void;
5963
+ }
5964
+ /**
5965
+ * 表示右手坐标系。
5966
+ */
5967
+ /**
5968
+ * 表示右手坐标系。
5969
+ */
5970
+ export declare class MdGeCSYSR extends Mx3dBaseObject {
5971
+ constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
5972
+ Origin(): MdGePoint;
5973
+ XDirection(): MdGeDir;
5974
+ YDirection(): MdGeDir;
5975
+ ZDirection(): MdGeDir;
5976
+ SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
5977
+ SetXDirection(x_dir: MdGeDir): void;
5978
+ SetYDirection(y_dir: MdGeDir): void;
5979
+ SetZDirection(z_dir: MdGeDir): void;
5980
+ Angle(theOther: MdGeCSYSR): number;
5981
+ Axis(): MdGeAxis;
5982
+ IsCoplanarWithCSYSR(Other: MdGeCSYSR, LinearTolerance: number, AngularTolerance: number): boolean;
5983
+ IsCoplanarWithAxis(A1: MdGeAxis, LinearTolerance: number, AngularTolerance: number): boolean;
5984
+ MirrorByPoint(P: MdGePoint): void;
5985
+ MirroredByPoint(P: MdGePoint): MdGeCSYSR;
5986
+ MirrorByAxis(A1: MdGeAxis): void;
5987
+ MirroredByAxis(A1: MdGeAxis): MdGeCSYSR;
5988
+ MirrorByCSYSR(A2: MdGeCSYSR): void;
5989
+ MirroredByCSYSR(A2: MdGeCSYSR): MdGeCSYSR;
5990
+ Rotate(theA1: MdGeAxis, theAng: number): void;
5991
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCSYSR;
5992
+ Scale(theP: MdGePoint, theS: number): void;
5993
+ Scaled(theP: MdGePoint, theS: number): MdGeCSYSR;
5994
+ Transform(theT: MdGeTrsf): void;
5995
+ Transformed(theT: MdGeTrsf): MdGeCSYSR;
5996
+ TranslateByVec(theV: MdGeVec): void;
5997
+ TranslatedByVec(theV: MdGeVec): MdGeCSYSR;
5998
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
5999
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCSYSR;
6000
+ }
6001
+ /**
6002
+ * 表示一个点。
6003
+ */
6004
+ /**
6005
+ * 表示一个点。
6006
+ */
6007
+ export declare class MdGePoint extends Mx3dBaseObject {
6008
+ constructor(p1?: number | object, p2?: number, p3?: number);
6009
+ X(): number;
6010
+ Y(): number;
6011
+ Z(): number;
6012
+ SetX(x: number): void;
6013
+ SetY(y: number): void;
6014
+ SetZ(z: number): void;
6015
+ SetXYZ(x: number, y: number, z: number): void;
6016
+ BaryCenter(alpha: number, point: MdGePoint, beta: number): void;
6017
+ IsEqual(other: MdGePoint, linearTolerance: number): boolean;
6018
+ Distance(other: MdGePoint): number;
6019
+ SquareDistance(other: MdGePoint): number;
6020
+ MirrorByPoint(point: MdGePoint): void;
6021
+ MirroredByPoint(point: MdGePoint): MdGePoint;
6022
+ MirrorByAxis(axis: MdGeAxis): void;
6023
+ MirroredByAxis(axis: MdGeAxis): MdGePoint;
6024
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
6025
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGePoint;
6026
+ Rotate(axis: MdGeAxis, ang: number): void;
6027
+ Rotated(axis: MdGeAxis, ang: number): MdGePoint;
6028
+ Scale(point: MdGePoint, s: number): void;
6029
+ Scaled(point: MdGePoint, s: number): MdGePoint;
6030
+ Transform(trsf: MdGeTrsf): void;
6031
+ Transformed(trsf: MdGeTrsf): MdGePoint;
6032
+ TranslateByVec(vec: MdGeVec): void;
6033
+ TranslatedByVec(vec: MdGeVec): MdGePoint;
6034
+ TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
6035
+ TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGePoint;
6036
+ Shape(): MdGeShape;
6037
+ Vertex(): MdGeVertex;
6038
+ }
6039
+ /**
6040
+ * 表示一个向量。
6041
+ */
6042
+ /**
6043
+ * 表示一个向量。
6044
+ */
6045
+ export declare class MdGeVec extends Mx3dBaseObject {
6046
+ constructor(p1?: MdGePoint | number | object, p2?: MdGePoint | number, p3?: number);
6047
+ SetCoord(p1: number, p2: number, p3?: number): void;
6048
+ X(): number;
6049
+ Y(): number;
6050
+ Z(): number;
6051
+ SetX(x: number): void;
6052
+ SetY(y: number): void;
6053
+ SetZ(z: number): void;
6054
+ SetXYZ(x: number, y: number, z: number): void;
6055
+ Coord(theIndex: number): number;
6056
+ IsEqual(other: MdGeVec, linearTolerance: number, angularTolerance: number): boolean;
6057
+ IsNormal(other: MdGeVec, angularTolerance: number): boolean;
6058
+ IsOpposite(other: MdGeVec, angularTolerance: number): boolean;
6059
+ IsParallel(other: MdGeVec, angularTolerance: number): boolean;
6060
+ Angle(other: MdGeVec): number;
6061
+ AngleWithRef(other: MdGeVec, ref: MdGeVec): number;
6062
+ Magnitude(): number;
6063
+ SquareMagnitude(): number;
6064
+ Add(other: MdGeVec): void;
6065
+ Added(other: MdGeVec): MdGeVec;
6066
+ Subtract(right: MdGeVec): void;
6067
+ Subtracted(right: MdGeVec): MdGeVec;
6068
+ Multiply(scalar: number): void;
6069
+ Multiplied(scalar: number): MdGeVec;
6070
+ Divide(scalar: number): void;
6071
+ Divided(scalar: number): MdGeVec;
6072
+ Cross(right: MdGeVec): void;
6073
+ Crossed(right: MdGeVec): MdGeVec;
6074
+ CrossMagnitude(right: MdGeVec): number;
6075
+ CrossSquareMagnitude(right: MdGeVec): number;
6076
+ CrossCross(v1: MdGeVec, v2: MdGeVec): void;
6077
+ CrossCrossed(v1: MdGeVec, v2: MdGeVec): MdGeVec;
6078
+ Dot(other: MdGeVec): number;
6079
+ DotCross(v1: MdGeVec, v2: MdGeVec): number;
6080
+ Normalize(): void;
6081
+ Normalized(): MdGeVec;
6082
+ Reverse(): void;
6083
+ Reversed(): MdGeVec;
6084
+ SetLinearForm(p1: MdGeVec | number, p2: MdGeVec, p3?: MdGeVec | number, p4?: MdGeVec, p5?: MdGeVec | number, p6?: MdGeVec, p7?: MdGeVec): void;
6085
+ MirrorByVec(vec: MdGeVec): void;
6086
+ MirroredByVec(vec: MdGeVec): MdGeVec;
6087
+ MirrorByAxis(axis: MdGeAxis): void;
6088
+ MirroredByAxis(axis: MdGeAxis): MdGeVec;
6089
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
6090
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGeVec;
6091
+ Rotate(axis: MdGeAxis, ang: number): void;
6092
+ Rotated(axis: MdGeAxis, ang: number): MdGeVec;
6093
+ Scale(s: number): void;
6094
+ Scaled(s: number): MdGeVec;
6095
+ Transform(t: MdGeTrsf): void;
6096
+ Transformed(t: MdGeTrsf): MdGeVec;
6097
+ }
6098
+ /**
6099
+ * 表示一个Wire形状。
6100
+ */
6101
+ /**
6102
+ * 表示一个Edge形状。
6103
+ */
6104
+ /**
6105
+ * 表示一个Vertex形状。
6106
+ */
6107
+ /**
6108
+ * 表示一个Face形状。
6109
+ */
6110
+ /**
6111
+ * 表示一个Shell形状。
6112
+ */
6113
+ /**
6114
+ * 表示一个Solid形状。
6115
+ */
6116
+ /**
6117
+ * 表示一个CompSolid形状。
6118
+ */
6119
+ /**
6120
+ * 表示一个Compound形状。
6121
+ */
6122
+ /**
6123
+ * 表示角度标注。
6124
+ */
6125
+ /**
6126
+ * 表示角度标注
6127
+ */
6128
+ export declare class MdGeAngleDim extends Mx3dBaseObject {
6129
+ constructor(p1?: MdGeEdge | MdGePoint | object, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint);
6130
+ FirstPoint(): MdGePoint;
6131
+ SecondPoint(): MdGePoint;
6132
+ CenterPoint(): MdGePoint;
6133
+ FirstShape(): MdGeShape;
6134
+ SecondShape(): MdGeShape;
6135
+ ThirdShape(): MdGeShape;
6136
+ SetMeasuredGeometry(p1: MdGeFace | MdGeEdge | MdGePoint, p2?: MdGeEdge | MdGePoint, p3?: MdGePoint): void;
6137
+ SetTextPosition(theTextPos: MdGePoint): void;
6138
+ GetTextPosition(): MdGePoint;
6139
+ GetDisplayUnits(): string;
6140
+ GetModelUnits(): string;
6141
+ SetDisplayUnits(theUnits: string): void;
6142
+ SetModelUnits(theUnits: string): void;
6143
+ SetType(theType: MdGe.MxTypeOfAngle): void;
6144
+ GetType(): MdGe.MxTypeOfAngle;
6145
+ SetArrowsVisibility(theType: MdGe.MxTypeOfAngleArrowVisibility): void;
6146
+ GetArrowsVisibility(): MdGe.MxTypeOfAngleArrowVisibility;
6147
+ GetValue(): number;
6148
+ SetComputedValue(): void;
6149
+ SetCustomValue(theValue: number): void;
6150
+ GetPlane(): MdGePlane;
6151
+ GetGeometryType(): number;
6152
+ SetCustomPlane(thePlane: MdGePlane): void;
6153
+ UnsetCustomPlane(): void;
6154
+ IsTextPositionCustom(): boolean;
6155
+ DimensionAspect(): MdGeDimAspect;
6156
+ SetDimensionAspect(theDimensionAspect: MdGeDimAspect): void;
6157
+ KindOfDimension(): MdGe.MxKindOfDimension;
6158
+ AcceptDisplayMode(theMode: number): boolean;
6159
+ UnsetFixedTextPosition(): void;
6160
+ SelToleranceForText2d(): number;
6161
+ SetSelToleranceForText2d(theTol: number): void;
6162
+ GetFlyout(): number;
6163
+ SetFlyout(theFlyout: number): void;
6164
+ IsValid(): boolean;
6165
+ Display(): void;
6166
+ }
6167
+ /**
6168
+ * 表示一维整数数组。
6169
+ */
6170
+ /**
6171
+ * 表示一维整数数组。
6172
+ */
6173
+ export declare class MdGeArray1OfInteger extends Mx3dBaseObject {
6174
+ constructor(p1?: number | object, p2?: number);
6175
+ Init(theInteger: number): void;
6176
+ Size(): number;
6177
+ Length(): number;
6178
+ IsEmpty(): boolean;
6179
+ Lower(): number;
6180
+ Upper(): number;
6181
+ IsDeletable(): boolean;
6182
+ IsAllocated(): boolean;
6183
+ First(): number;
6184
+ Last(): number;
6185
+ Value(theIndex: number): number;
6186
+ SetValue(theIndex: number, theInteger: number): void;
6187
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
6188
+ }
6189
+ /**
6190
+ * 表示一维点数组。
6191
+ */
6192
+ /**
6193
+ * 表示一维点数组。
6194
+ */
6195
+ export declare class MdGeArray1OfPnt extends Mx3dBaseObject {
6196
+ constructor(p1?: number | object, p2?: number);
6197
+ Init(thePnt: MdGePoint): void;
6198
+ Size(): number;
6199
+ Length(): number;
6200
+ IsEmpty(): boolean;
6201
+ Lower(): number;
6202
+ Upper(): number;
6203
+ IsDeletable(): boolean;
6204
+ IsAllocated(): boolean;
6205
+ First(): MdGePoint;
6206
+ Last(): MdGePoint;
6207
+ Value(theIndex: number): MdGePoint;
6208
+ SetValue(theIndex: number, thePnt: MdGePoint): void;
6209
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
6210
+ }
6211
+ /**
6212
+ * 表示一维实数数组。
6213
+ */
6214
+ /**
6215
+ * 表示一维实数数组。
6216
+ */
6217
+ export declare class MdGeArray1OfReal extends Mx3dBaseObject {
6218
+ constructor(p1?: number | object, p2?: number);
6219
+ Init(theReal: number): void;
6220
+ Size(): number;
6221
+ Length(): number;
6222
+ IsEmpty(): boolean;
6223
+ Lower(): number;
6224
+ Upper(): number;
6225
+ IsDeletable(): boolean;
6226
+ IsAllocated(): boolean;
6227
+ First(): number;
6228
+ Last(): number;
6229
+ Value(theIndex: number): number;
6230
+ SetValue(theIndex: number, theReal: number): void;
6231
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
6232
+ }
6233
+ /**
6234
+ * 表示二维点数组。
6235
+ */
6236
+ /**
6237
+ * 表示二维点数组。
6238
+ */
6239
+ export declare class MdGeArray2OfPnt extends Mx3dBaseObject {
6240
+ constructor(p1?: number | MdGePoint | object, p2?: number, p3?: number, p4?: number, p5?: number);
6241
+ Init(thePoint: MdGePoint): void;
6242
+ Size(): number;
6243
+ Length(): number;
6244
+ NbRows(): number;
6245
+ NbColumns(): number;
6246
+ RowLength(): number;
6247
+ ColLength(): number;
6248
+ LowerRow(): number;
6249
+ UpperRow(): number;
6250
+ LowerCol(): number;
6251
+ UpperCol(): number;
6252
+ IsDeletable(): boolean;
6253
+ Value(theRow: number, theCol: number): MdGePoint;
6254
+ SetValue(theRow: number, theCol: number, thePoint: MdGePoint): void;
6255
+ Resize(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number, theToCopyData: boolean): void;
6256
+ }
6257
+ /**
6258
+ * 表示二维实数数组。
6259
+ */
6260
+ /**
6261
+ * 表示二维实数数组。
6262
+ */
6263
+ export declare class MdGeArray2OfReal extends Mx3dBaseObject {
6264
+ constructor(p1?: number | object, p2?: number, p3?: number, p4?: number, p5?: number);
6265
+ Init(theReal: number): void;
6266
+ Size(): number;
6267
+ Length(): number;
6268
+ NbRows(): number;
6269
+ NbColumns(): number;
6270
+ RowLength(): number;
6271
+ ColLength(): number;
6272
+ LowerRow(): number;
6273
+ UpperRow(): number;
6274
+ LowerCol(): number;
6275
+ UpperCol(): number;
6276
+ IsDeletable(): boolean;
6277
+ Value(theRow: number, theCol: number): number;
6278
+ SetValue(theRow: number, theCol: number, theReal: number): void;
6279
+ Resize(theRowLower: number, theRowUpper: number, theColLower: number, theColUpper: number, theToCopyData: boolean): void;
6280
+ }
6281
+ /**
6282
+ * 表示贝塞尔曲线
6283
+ */
6284
+ /**
6285
+ * 表示贝塞尔曲线
6286
+ */
6287
+ export declare class MdGeBezierCurve extends Mx3dBaseObject {
6288
+ constructor(p1?: MdGeArray1OfPnt | object, p2?: MdGeArray1OfReal);
6289
+ Increase(Degree: number): void;
6290
+ InsertPoleAfter(p1: number, p2: MdGePoint, p3?: number): void;
6291
+ InsertPoleBefore(p1: number, p2: MdGePoint, p3?: number): void;
6292
+ RemovePole(Index: number): void;
6293
+ Reverse(): void;
6294
+ ReversedParameter(U: number): number;
6295
+ Segment(U1: number, U2: number): void;
6296
+ SetPole(p1: number, p2: MdGePoint, p3?: number): void;
6297
+ SetWeight(Index: number, Weight: number): void;
6298
+ IsClosed(): boolean;
6299
+ IsCN(N: number): boolean;
6300
+ IsPeriodic(): boolean;
6301
+ IsRational(): boolean;
6302
+ Continuity(): MdGe.MxGAShapeEnum;
6303
+ Degree(): number;
6304
+ DN(U: number, N: number): MdGeVec;
6305
+ StartPoint(): MdGePoint;
6306
+ EndPoint(): MdGePoint;
6307
+ FirstParameter(): number;
6308
+ LastParameter(): number;
6309
+ NbPoles(): number;
6310
+ Pole(Index: number): MdGePoint;
6311
+ Poles(): MdGeArray1OfPnt;
6312
+ Weight(Index: number): number;
6313
+ Weights(): MdGeArray1OfReal;
6314
+ Transform(T: MdGeTrsf): void;
6315
+ static MaxDegree(): number;
6316
+ Shape(): MdGeShape;
6317
+ Edge(): MdGeEdge;
6318
+ Wire(): MdGeWire;
6319
+ }
6320
+ /**
6321
+ * 表示贝塞尔曲面
6322
+ */
6323
+ /**
6324
+ * 表示贝塞尔曲面
6325
+ */
6326
+ export declare class MdGeBezierSurface extends Mx3dBaseObject {
6327
+ constructor(p1?: MdGeArray2OfPnt | object, p2?: MdGeArray2OfReal);
6328
+ ExchangeUV(): void;
6329
+ Increase(UDeg: number, VDeg: number): void;
6330
+ InsertPoleColAfter(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
6331
+ InsertPoleColBefore(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
6332
+ InsertPoleRowAfter(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
6333
+ InsertPoleRowBefore(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
6334
+ RemovePoleCol(VIndex: number): void;
6335
+ RemovePoleRow(UIndex: number): void;
6336
+ Segment(U1: number, U2: number, V1: number, V2: number): void;
6337
+ SetPole(p1: number, p2: number, p3: MdGePoint, p4?: number): void;
6338
+ SetPoleCol(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
6339
+ SetPoleRow(p1: number, p2: MdGeArray1OfPnt, p3?: MdGeArray1OfReal): void;
6340
+ SetWeight(UIndex: number, VIndex: number, Weight: number): void;
6341
+ SetWeightCol(VIndex: number, CPoleWeights: MdGeArray1OfReal): void;
6342
+ SetWeightRow(UIndex: number, CPoleWeights: MdGeArray1OfReal): void;
6343
+ UReverse(): void;
6344
+ UReversedParameter(U: number): number;
6345
+ VReverse(): void;
6346
+ VReversedParameter(V: number): number;
6347
+ Continuity(): MdGe.MxGAShapeEnum;
6348
+ DN(U: number, V: number, Nu: number, Nv: number): MdGeVec;
6349
+ NbUPoles(): number;
6350
+ NbVPoles(): number;
6351
+ Pole(UIndex: number, VIndex: number): MdGePoint;
6352
+ Poles(): MdGeArray2OfPnt;
6353
+ UDegree(): number;
6354
+ VDegree(): number;
6355
+ Weight(UIndex: number, VIndex: number): number;
6356
+ Weights(): MdGeArray2OfReal;
6357
+ IsUClosed(): boolean;
6358
+ IsVClosed(): boolean;
6359
+ IsCNu(N: number): boolean;
6360
+ IsCNv(N: number): boolean;
6361
+ IsUPeriodic(): boolean;
6362
+ IsVPeriodic(): boolean;
6363
+ IsURational(): boolean;
6364
+ IsVRational(): boolean;
6365
+ Transform(T: MdGeTrsf): void;
6366
+ static MaxDegree(): number;
6367
+ Shape(): MdGeShape;
6368
+ Face(): MdGeFace;
6369
+ }
6370
+ /**
6371
+ * 表示倒斜角
6372
+ */
6373
+ /**
6374
+ * 表示倒斜角
6375
+ */
6376
+ export declare class MdGeChamfer extends Mx3dBaseObject {
6377
+ constructor(p?: MdGeShape | object);
6378
+ Add(p1: MdGeEdge | number, p2?: MdGeEdge | number, p3?: MdGeEdge, p4?: MdGeFace): void;
6379
+ SetDist(Dis: number, IC: number, F: MdGeFace): void;
6380
+ GetDist(IC: number, Dis: number): void;
6381
+ SetDists(Dis1: number, Dis2: number, IC: number, F: MdGeFace): void;
6382
+ Dists(IC: number, Dis1: number, Dis2: number): void;
6383
+ AddDA(Dis: number, Angle: number, E: MdGeEdge, F: MdGeFace): void;
6384
+ SetDistAngle(Dis: number, Angle: number, IC: number, F: MdGeFace): void;
6385
+ GetDistAngle(IC: number, Dis: number, Angle: number): void;
6386
+ SetMode(theMode: MdGe.MxCFDSChamfMode): void;
6387
+ IsSymetric(IC: number): boolean;
6388
+ IsTwoDistances(IC: number): boolean;
6389
+ IsDistanceAngle(IC: number): boolean;
6390
+ ResetContour(IC: number): void;
6391
+ NbContours(): number;
6392
+ Contour(E: MdGeEdge): number;
6393
+ NbEdges(I: number): number;
6394
+ Edge(I: number, J: number): MdGeEdge;
6395
+ Remove(E: MdGeEdge): void;
6396
+ Length(IC: number): number;
6397
+ FirstVertex(IC: number): MdGeVertex;
6398
+ LastVertex(IC: number): MdGeVertex;
6399
+ Abscissa(IC: number, V: MdGeVertex): number;
6400
+ RelativeAbscissa(IC: number, V: MdGeVertex): number;
6401
+ ClosedAndTangent(IC: number): boolean;
6402
+ Closed(IC: number): boolean;
6403
+ Reset(): void;
6404
+ Simulate(IC: number): void;
6405
+ NbSurf(IC: number): number;
6406
+ Shape(): MdGeShape;
6407
+ }
6408
+ /**
6409
+ * 表示一个圆
6410
+ */
6411
+ /**
6412
+ * 表示一个圆。
6413
+ */
6414
+ export declare class MdGeCircle extends Mx3dBaseObject {
6415
+ constructor(p1?: MdGeCSYSR | object, p2?: number);
6416
+ SetAxis(theA1: MdGeAxis): void;
6417
+ SetLocation(theP: MdGePoint): void;
6418
+ SetPosition(theA2: MdGeCSYSR): void;
6419
+ SetRadius(theRadius: number): void;
6420
+ Area(): number;
6421
+ Axis(): MdGeAxis;
6422
+ Length(): number;
6423
+ Location(): MdGePoint;
6424
+ Position(): MdGeCSYSR;
6425
+ Radius(): number;
6426
+ XAxis(): MdGeAxis;
6427
+ YAxis(): MdGeAxis;
6428
+ Distance(theP: MdGePoint): number;
6429
+ SquareDistance(theP: MdGePoint): number;
6430
+ Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
6431
+ MirrorByPoint(theP: MdGePoint): void;
6432
+ MirroredByPoint(theP: MdGePoint): MdGeCircle;
6433
+ MirrorByAxis(theA1: MdGeAxis): void;
6434
+ MirroredByAxis(theA1: MdGeAxis): MdGeCircle;
6435
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
6436
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCircle;
6437
+ Rotate(theA1: MdGeAxis, theAng: number): void;
6438
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCircle;
6439
+ Scale(theP: MdGePoint, theS: number): void;
6440
+ Scaled(theP: MdGePoint, theS: number): MdGeCircle;
6441
+ Transform(theT: MdGeTrsf): void;
6442
+ Transformed(theT: MdGeTrsf): MdGeCircle;
6443
+ TranslateByVec(theV: MdGeVec): void;
6444
+ TranslatedByVec(theV: MdGeVec): MdGeCircle;
6445
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
6446
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCircle;
6447
+ Shape(): MdGeShape;
6448
+ Edge(p1?: number, p2?: number): MdGeEdge;
6449
+ Wire(): MdGeWire;
6450
+ }
6451
+ /**
6452
+ * 表示一个坐标系(左手或右手)
6453
+ */
6454
+ /**
6455
+ * 表示一个坐标系(左手或右手)
6456
+ */
6457
+ export declare class MdGeCSYS extends Mx3dBaseObject {
6458
+ constructor(p1?: MdGePoint | object, p2?: MdGeDir, p3?: MdGeDir);
6459
+ XReverse(): void;
6460
+ YReverse(): void;
6461
+ ZReverse(): void;
6462
+ SetZAxis(z_axis: MdGeAxis): void;
6463
+ SetZDirection(z_dir: MdGeDir): void;
6464
+ SetOrigin(p1: MdGePoint | number, p2?: number, p3?: number): void;
6465
+ SetXDirection(x_dir: MdGeDir): void;
6466
+ SetYDirection(y_dir: MdGeDir): void;
6467
+ Angle(other: MdGeCSYS): number;
6468
+ ZAxis(): MdGeAxis;
6469
+ CSYSR(): MdGeCSYSR;
6470
+ ZDirection(): MdGeDir;
6471
+ Origin(): MdGePoint;
6472
+ XDirection(): MdGeDir;
6473
+ YDirection(): MdGeDir;
6474
+ Direct(): boolean;
6475
+ IsCoplanarWithCSYS(other: MdGeCSYS, linearTolerance: number, angularTolerance: number): boolean;
6476
+ IsCoplanarWithAxis(axis: MdGeAxis, linearTolerance: number, angularTolerance: number): boolean;
6477
+ MirrorByPoint(point: MdGePoint): void;
6478
+ MirroredByPoint(point: MdGePoint): MdGeCSYS;
6479
+ MirrorByAxis(axis: MdGeAxis): void;
6480
+ MirroredByAxis(axis: MdGeAxis): MdGeCSYS;
6481
+ MirrorByCSYSR(csysr: MdGeCSYSR): void;
6482
+ MirroredByCSYSR(csysr: MdGeCSYSR): MdGeCSYS;
6483
+ Rotate(axis: MdGeAxis, ang: number): void;
6484
+ Rotated(axis: MdGeAxis, ang: number): MdGeCSYS;
6485
+ Scale(point: MdGePoint, s: number): void;
6486
+ Scaled(point: MdGePoint, s: number): MdGeCSYS;
6487
+ Transform(t: MdGeTrsf): void;
6488
+ Transformed(t: MdGeTrsf): MdGeCSYS;
6489
+ TranslateByVec(vec: MdGeVec): void;
6490
+ TranslatedByVec(vec: MdGeVec): MdGeCSYS;
6491
+ TranslateBy2Points(point1: MdGePoint, point2: MdGePoint): void;
6492
+ TranslatedBy2Points(point1: MdGePoint, point2: MdGePoint): MdGeCSYS;
6493
+ }
6494
+ /**
6495
+ * 表示一个圆锥
6496
+ */
6497
+ /**
6498
+ * 表示一个圆锥
6499
+ */
6500
+ export declare class MdGeCone extends Mx3dBaseObject {
6501
+ constructor(p1?: MdGeCSYS | object, p2?: number, p3?: number);
6502
+ SetAxis(theA1: MdGeAxis): void;
6503
+ SetLocation(theLoc: MdGePoint): void;
6504
+ SetPosition(theA3: MdGeCSYS): void;
6505
+ SetRadius(theR: number): void;
6506
+ SetSemiAngle(theAng: number): void;
6507
+ Apex(): MdGePoint;
6508
+ UReverse(): void;
6509
+ VReverse(): void;
6510
+ Direct(): boolean;
6511
+ Axis(): MdGeAxis;
6512
+ Location(): MdGePoint;
6513
+ Position(): MdGeCSYS;
6514
+ RefRadius(): number;
6515
+ SemiAngle(): number;
6516
+ XAxis(): MdGeAxis;
6517
+ YAxis(): MdGeAxis;
6518
+ MirrorByPoint(theP: MdGePoint): void;
6519
+ MirroredByPoint(theP: MdGePoint): MdGeCone;
6520
+ MirrorByAxis(theA1: MdGeAxis): void;
6521
+ MirroredByAxis(theA1: MdGeAxis): MdGeCone;
6522
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
6523
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCone;
6524
+ Rotate(theA1: MdGeAxis, theAng: number): void;
6525
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCone;
6526
+ Scale(theP: MdGePoint, theS: number): void;
6527
+ Scaled(theP: MdGePoint, theS: number): MdGeCone;
6528
+ Transform(theT: MdGeTrsf): void;
6529
+ Transformed(theT: MdGeTrsf): MdGeCone;
6530
+ TranslateByVec(theV: MdGeVec): void;
6531
+ TranslatedByVec(theV: MdGeVec): MdGeCone;
6532
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
6533
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCone;
6534
+ Shape(H: number, Angle?: number): MdGeShape;
6535
+ Face(p1?: number | MdGeWire, p2?: number | boolean, p3?: number, p4?: number): MdGeFace;
6536
+ }
6537
+ /**
6538
+ * 表示一个圆柱
6539
+ */
6540
+ /**
6541
+ * 表示一个圆柱。
6542
+ */
6543
+ export declare class MdGeCylinder extends Mx3dBaseObject {
6544
+ constructor(p1?: MdGeCSYS | object, p2?: number);
6545
+ SetAxis(theA1: MdGeAxis): void;
6546
+ SetLocation(theLoc: MdGePoint): void;
6547
+ SetPosition(theA3: MdGeCSYS): void;
6548
+ SetRadius(theR: number): void;
6549
+ UReverse(): void;
6550
+ VReverse(): void;
6551
+ Direct(): boolean;
6552
+ Axis(): MdGeAxis;
6553
+ Location(): MdGePoint;
6554
+ Position(): MdGeCSYS;
6555
+ Radius(): number;
6556
+ XAxis(): MdGeAxis;
6557
+ YAxis(): MdGeAxis;
6558
+ MirrorByPoint(theP: MdGePoint): void;
6559
+ MirroredByPoint(theP: MdGePoint): MdGeCylinder;
6560
+ MirrorByAxis(theA1: MdGeAxis): void;
6561
+ MirroredByAxis(theA1: MdGeAxis): MdGeCylinder;
6562
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
6563
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeCylinder;
6564
+ Rotate(theA1: MdGeAxis, theAng: number): void;
6565
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeCylinder;
6566
+ Scale(theP: MdGePoint, theS: number): void;
6567
+ Scaled(theP: MdGePoint, theS: number): MdGeCylinder;
6568
+ Transform(theT: MdGeTrsf): void;
6569
+ Transformed(theT: MdGeTrsf): MdGeCylinder;
6570
+ TranslateByVec(theV: MdGeVec): void;
6571
+ TranslatedByVec(theV: MdGeVec): MdGeCylinder;
6572
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
6573
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGeCylinder;
6574
+ Shape(H: number, Angle?: number): MdGeShape;
6575
+ Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
6576
+ Shape3d(H: number, Angle?: number): Mx3dShapeObject;
6577
+ }
6578
+ /**
6579
+ * 表示一个平面
6580
+ */
6581
+ /**
6582
+ * 表示一个平面
6583
+ */
6584
+ export declare class MdGePlane extends Mx3dBaseObject {
6585
+ constructor(p1?: MdGeCSYS | MdGePoint | number | object, p2?: MdGeDir | number, p3?: number, p4?: number);
6586
+ SetAxis(theA1: MdGeAxis): void;
6587
+ SetLocation(theLoc: MdGePoint): void;
6588
+ SetPosition(theA3: MdGeCSYS): void;
6589
+ UReverse(): void;
6590
+ VReverse(): void;
6591
+ Direct(): boolean;
6592
+ Axis(): MdGeAxis;
6593
+ Location(): MdGePoint;
6594
+ Position(): MdGeCSYS;
6595
+ DistanceToPoint(theP: MdGePoint): number;
6596
+ DistanceToPlane(theOther: MdGePlane): number;
6597
+ SquareDistanceToPoint(theP: MdGePoint): number;
6598
+ SquareDistanceToPlane(theOther: MdGePlane): number;
6599
+ XAxis(): MdGeAxis;
6600
+ YAxis(): MdGeAxis;
6601
+ Contains(theP: MdGePoint, theLinearTolerance: number): boolean;
6602
+ MirrorByPoint(theP: MdGePoint): void;
6603
+ MirroredByPoint(theP: MdGePoint): MdGePlane;
6604
+ MirrorByAxis(theA1: MdGeAxis): void;
6605
+ MirroredByAxis(theA1: MdGeAxis): MdGePlane;
6606
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
6607
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGePlane;
6608
+ Rotate(theA1: MdGeAxis, theAng: number): void;
6609
+ Rotated(theA1: MdGeAxis, theAng: number): MdGePlane;
6610
+ Scale(theP: MdGePoint, theS: number): void;
6611
+ Scaled(theP: MdGePoint, theS: number): MdGePlane;
6612
+ Transform(theT: MdGeTrsf): void;
6613
+ Transformed(theT: MdGeTrsf): MdGePlane;
6614
+ TranslateByVec(theV: MdGeVec): void;
6615
+ TranslatedByVec(theV: MdGeVec): MdGePlane;
6616
+ TranslateBy2Points(theP1: MdGePoint, theP2: MdGePoint): void;
6617
+ TranslatedBy2Points(theP1: MdGePoint, theP2: MdGePoint): MdGePlane;
6618
+ Face(p1?: MdGeWire | number, p2?: boolean | number, p3?: number, p4?: number): MdGeFace;
6619
+ }
6620
+ /**
6621
+ * 表示直径标注
6622
+ */
6623
+ /**
6624
+ * 表示直径标注
6625
+ */
6626
+ export declare class MdGeDiameterDim extends Mx3dBaseObject {
6627
+ constructor(p1?: MdGeCircle | object, p2?: MdGePlane);
6628
+ Circle(): MdGeCircle;
6629
+ AnchorPoint(): MdGePoint;
6630
+ Shape(): MdGeShape;
6631
+ SetMeasuredGeometry(theCircle: MdGeCircle): void;
6632
+ SetTextPosition(theTextPos: MdGePoint): void;
6633
+ GetTextPosition(): MdGePoint;
6634
+ SetDisplayUnits(theUnits: string): void;
6635
+ SetModelUnits(theUnits: string): void;
6636
+ GetValue(): number;
6637
+ SetComputedValue(): void;
6638
+ SetCustomValue(theValue: number): void;
6639
+ GetPlane(): MdGePlane;
6640
+ GetGeometryType(): number;
6641
+ SetCustomPlane(thePlane: MdGePlane): void;
6642
+ UnsetCustomPlane(): void;
6643
+ IsTextPositionCustom(): boolean;
6644
+ DimensionAspect(): MdGeDimAspect;
6645
+ SetDimensionAspect(theDimensionAspect: MdGeDimAspect): void;
6646
+ KindOfDimension(): MdGe.MxKindOfDimension;
6647
+ AcceptDisplayMode(theMode: number): boolean;
6648
+ UnsetFixedTextPosition(): void;
6649
+ SelToleranceForText2d(): number;
6650
+ SetSelToleranceForText2d(theTol: number): void;
6651
+ GetFlyout(): number;
6652
+ SetFlyout(theFlyout: number): void;
6653
+ IsValid(): boolean;
6654
+ Display(): void;
6655
+ }
6656
+ /**
6657
+ * 表示一个椭圆
6658
+ */
6659
+ /**
6660
+ * 表示一个椭圆
6661
+ */
6662
+ export declare class MdGeEllipse extends Mx3dBaseObject {
6663
+ constructor(p1?: MdGeCSYSR | object, p2?: number, p3?: number);
6664
+ SetAxis(theA1: MdGeAxis): void;
6665
+ SetLocation(theP: MdGePoint): void;
6666
+ SetMajorRadius(theMajorRadius: number): void;
6667
+ SetMinorRadius(theMinorRadius: number): void;
6668
+ SetPosition(theA2: MdGeCSYSR): void;
6669
+ Area(): number;
6670
+ Axis(): MdGeAxis;
6671
+ Directrix1(): MdGeAxis;
6672
+ Directrix2(): MdGeAxis;
6673
+ Eccentricity(): number;
6674
+ Focal(): number;
6675
+ Focus1(): MdGePoint;
6676
+ Focus2(): MdGePoint;
6677
+ Location(): MdGePoint;
6678
+ MajorRadius(): number;
6679
+ MinorRadius(): number;
6680
+ Parameter(): number;
6681
+ Position(): MdGeCSYSR;
6682
+ XAxis(): MdGeAxis;
6683
+ YAxis(): MdGeAxis;
6684
+ MirrorByPoint(theP: MdGePoint): void;
6685
+ MirroredByPoint(theP: MdGePoint): MdGeEllipse;
6686
+ MirrorByAxis(theA1: MdGeAxis): void;
6687
+ MirroredByAxis(theA1: MdGeAxis): MdGeEllipse;
6688
+ MirrorByCSYSR(theA2: MdGeCSYSR): void;
6689
+ MirroredByCSYSR(theA2: MdGeCSYSR): MdGeEllipse;
6690
+ Rotate(theA1: MdGeAxis, theAng: number): void;
6691
+ Rotated(theA1: MdGeAxis, theAng: number): MdGeEllipse;
6692
+ Scale(theP: MdGePoint, theS: number): void;
6693
+ Scaled(theP: MdGePoint, theS: number): MdGeEllipse;
6694
+ Transform(theT: MdGeTrsf): void;
6695
+ Transformed(theT: MdGeTrsf): MdGeEllipse;
6696
+ Shape(): MdGeShape;
6697
+ Wire(): MdGeWire;
6698
+ Edge(p1?: number, p2?: number): MdGeEdge;
6699
+ }
6666
6700
  /**
6667
6701
  * 表示拓扑元素遍历
6668
6702
  */
@@ -8105,6 +8139,13 @@ export declare class MdGeSpliter extends Mx3dBaseObject {
8105
8139
  HasWarnings(): boolean;
8106
8140
  Shapes(): MdGeShape[];
8107
8141
  }
8142
+ export declare class Mx3dApplication {
8143
+ protected imp: any;
8144
+ constructor(p?: object);
8145
+ getApp(): Mx3dApplication;
8146
+ getDoc(theDocName: string): Mx3dDbDocument;
8147
+ newDoc(theDocName: string): Mx3dDbDocument;
8148
+ }
8108
8149
  export declare class Mx3dGeBndBox extends Mx3dGeObject {
8109
8150
  constructor(p1?: Mx3dGePoint | object, p2?: Mx3dGePoint);
8110
8151
  }
@@ -8118,6 +8159,8 @@ export declare class Mx3dDbDocument extends Mx3dDbObject {
8118
8159
  getShapesLabel(): Mx3dDbLabel;
8119
8160
  getColorsLabel(): Mx3dDbLabel;
8120
8161
  getLayersLabel(): Mx3dDbLabel;
8162
+ addShapeLabel(): Mx3dDbLabel;
8163
+ getTopFreeLabels(): Mx3dLabelSequence;
8121
8164
  getDocName(): string;
8122
8165
  }
8123
8166
  export declare class Mx3dDbLabel extends Mx3dDbObject {
@@ -8172,6 +8215,153 @@ export declare class Mx3dGePoint extends Mx3dGeObject {
8172
8215
  setZ(theZ: number): void;
8173
8216
  }
8174
8217
  export declare function loadMxCADassembly3d(config: MxDraw3dConfig, call?: (mxDraw3d: MxDraw3d) => void): Promise<MxDraw3d>;
8218
+ /**
8219
+ * MxCppType 类
8220
+ */
8221
+ export declare class MxApp3DType extends PubSub<{
8222
+ "eventModesSelected": (ids: number[]) => void;
8223
+ "eventAddToTree": (node: string) => void;
8224
+ "eventRemoveFromTree": (ids: number[]) => void;
8225
+ "eventFileSave": (fileName: string) => void;
8226
+ "eventRebuildTree": (tree_str: string) => void;
8227
+ "eventUpdatePointer": (pointer: number[]) => void;
8228
+ "eventUpdateViewSize": (pointer: number[]) => void;
8229
+ }> {
8230
+ imp?: any;
8231
+ }
8232
+ export declare let MxApp3D: MxApp3DType;
8233
+ export interface MxCAD3DConfig {
8234
+ [x: string]: any;
8235
+ canvas: string | HTMLCanvasElement;
8236
+ /** canvas最小宽度 默认300 */
8237
+ minWidth?: number;
8238
+ /** canvas最小高度 默认300 */
8239
+ minHeight?: number;
8240
+ /** 指定更新Canvas大小的函数,不指定则默认自动处理(指定该函数则 minHeight, minWidth无效) */
8241
+ updateCanvasSize?: () => void;
8242
+ locateFile?: (fileName: string, base?: string | URL) => string;
8243
+ }
8244
+ export declare class MxCAD3DObject {
8245
+ private event;
8246
+ private imp;
8247
+ private canvas;
8248
+ private ctx;
8249
+ private updateCanvasSizeFun;
8250
+ constructor();
8251
+ getImp(): any;
8252
+ getCtx(): any;
8253
+ updateCanvasSize(): void;
8254
+ init(imp: any): void;
8255
+ open3DFile(file: File): void;
8256
+ on(name: "init", fun: () => void): void;
8257
+ off(name: string, fun?: Function): void;
8258
+ callEvent(sEventName: string, param?: any): boolean;
8259
+ create(config: MxCAD3DConfig): void;
8260
+ }
8261
+ export declare class MxNewMx3dBaseObject {
8262
+ protected imp: any;
8263
+ constructor(imp?: any);
8264
+ getImp(): any;
8265
+ protected initTempObject(imp: any): void;
8266
+ }
8267
+ export declare class MxNewMx3dGeObject extends MxNewMx3dBaseObject {
8268
+ constructor(p?: object);
8269
+ }
8270
+ export declare class MxNewMx3dGePoint extends MxNewMx3dGeObject {
8271
+ constructor(p1?: number | object, p2?: number, p3?: number);
8272
+ X(): number;
8273
+ Y(): number;
8274
+ Z(): number;
8275
+ setX(theX: number): void;
8276
+ setY(theY: number): void;
8277
+ setZ(theZ: number): void;
8278
+ }
8279
+ export declare class MxNewMx3dGeBndBox extends MxNewMx3dGeObject {
8280
+ constructor(p1?: MxNewMx3dGePoint | object, p2?: MxNewMx3dGePoint);
8281
+ }
8282
+ export declare class MxNewMx3dShapeObject extends MxNewMx3dBaseObject {
8283
+ constructor(p?: object);
8284
+ getBndBox(): MxNewMx3dGeBndBox;
8285
+ Draw(): void;
8286
+ }
8287
+ export declare class MxNewMx3dDbObject extends MxNewMx3dBaseObject {
8288
+ constructor(p?: object);
8289
+ }
8290
+ export declare class MxNewMx3dGeColor extends MxNewMx3dBaseObject {
8291
+ constructor(p1?: MdGe.MxNameOfColor | number | object, p2?: number, p3?: number);
8292
+ }
8293
+ /**
8294
+ * 表示一维整数数组。
8295
+ */
8296
+ export declare class MxNewMdGeArray1OfInteger extends MxNewMx3dBaseObject {
8297
+ constructor(p1?: number | object, p2?: number);
8298
+ Init(theInteger: number): void;
8299
+ Size(): number;
8300
+ Length(): number;
8301
+ IsEmpty(): boolean;
8302
+ Lower(): number;
8303
+ Upper(): number;
8304
+ IsDeletable(): boolean;
8305
+ IsAllocated(): boolean;
8306
+ First(): number;
8307
+ Last(): number;
8308
+ Value(theIndex: number): number;
8309
+ SetValue(theIndex: number, theInteger: number): void;
8310
+ Resize(theLower: number, theUpper: number, theToCopyData: boolean): void;
8311
+ }
8312
+ export declare class MxNewMx3dDbDocument extends MxNewMx3dDbObject {
8313
+ constructor(p?: object);
8314
+ read(theFilePath: string, theFormat: MdGe.MxFormat): boolean;
8315
+ getAccessLabel(): MxNewMx3dDbLabel;
8316
+ getShapesLabel(): MxNewMx3dDbLabel;
8317
+ getColorsLabel(): MxNewMx3dDbLabel;
8318
+ getLayersLabel(): MxNewMx3dDbLabel;
8319
+ addShapeLabel(): MxNewMx3dDbLabel;
8320
+ getTopFreeLabels(): MxNewMx3dLabelSequence;
8321
+ getDocName(): string;
8322
+ }
8323
+ export declare class MxNewMx3dDbLabel extends MxNewMx3dDbObject {
8324
+ constructor(p?: object);
8325
+ setShape(theShape: MxNewMx3dShapeObject): boolean;
8326
+ getShape(): MxNewMx3dShapeObject;
8327
+ hasChildLabel(): boolean;
8328
+ getChildLabels(): MxNewMx3dLabelSequence;
8329
+ hasParentLabel(): boolean;
8330
+ getParentLabel(): MxNewMx3dDbLabel;
8331
+ addChildLabel(): MxNewMx3dDbLabel;
8332
+ addChildShape(theShape: MxNewMx3dShapeObject): MxNewMx3dDbLabel;
8333
+ isReference(): boolean;
8334
+ isAssembly(): boolean;
8335
+ isSimpleShape(): boolean;
8336
+ isTopLevel(): boolean;
8337
+ isFree(): boolean;
8338
+ isShape(): boolean;
8339
+ isComponent(): boolean;
8340
+ isCompound(): boolean;
8341
+ isSubShape(): boolean;
8342
+ getReferredLabel(): MxNewMx3dDbLabel;
8343
+ addAssemblyLabel(theShape: MxNewMx3dShapeObject): MxNewMx3dDbLabel;
8344
+ getLocation(): MxNewMx3dGeLocation;
8345
+ isSetColor(): boolean;
8346
+ setColor(theColor: MxNewMx3dGeColor): void;
8347
+ getColor(): MxNewMx3dGeColor;
8348
+ getName(): string;
8349
+ getEntry(): string;
8350
+ getAttributeStr(): string;
8351
+ }
8352
+ export declare class MxNewMx3dLabelSequence extends MxNewMx3dBaseObject {
8353
+ constructor(p?: object);
8354
+ }
8355
+ export declare class MxNewMx3dLabelSequenceIterator extends MxNewMx3dBaseObject {
8356
+ constructor(theLabelSequence: MxNewMx3dLabelSequence | object);
8357
+ More(): boolean;
8358
+ Next(): void;
8359
+ Value(): MxNewMx3dDbLabel;
8360
+ }
8361
+ export declare class MxNewMx3dGeLocation extends MxNewMx3dGeObject {
8362
+ constructor(p?: object);
8363
+ Multiplied(theLocation: MxNewMx3dGeLocation): MxNewMx3dGeLocation;
8364
+ }
8175
8365
  export type Map = any;
8176
8366
  export declare class MxMap {
8177
8367
  private imp;