build-dxf 0.0.41 → 0.0.43

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.
@@ -22,6 +22,7 @@ type DoorPoint = {
22
22
  declare class DoorsAnalysis {
23
23
  possibleDoorPoints: DoorPoint[];
24
24
  doorPoint: DoorPoint[];
25
+ calculatedDoorPoint: DoorPoint[];
25
26
  dxf: Dxf;
26
27
  pointVirtualGrid: PointVirtualGrid<LineSegment<Record<string, any>>>;
27
28
  findPointVirtualGrid: PointVirtualGrid<LineSegment>;
@@ -35,6 +36,14 @@ declare class DoorsAnalysis {
35
36
  continueFind: boolean;
36
37
  constructor(lineAnalysis: LineAnalysis);
37
38
  private handle;
39
+ /** 查找
40
+ * @param doorPoints
41
+ * @param possibleDoorPoints
42
+ * @param minDoorWidth
43
+ * @param doorSearchDistance
44
+ * @param doorSearchNearAngle
45
+ * @returns
46
+ */
38
47
  private search;
39
48
  /** 添加可查找点的过滤规则
40
49
  * @param rule
@@ -48,7 +57,10 @@ declare class DoorsAnalysis {
48
57
  /**
49
58
  * 查找已知为门的点位
50
59
  */
51
- getDoorPoint(): DoorPoint[];
60
+ getDoorPoint(): {
61
+ doorPoints: DoorPoint[];
62
+ calculatedDoorPoint: DoorPoint[];
63
+ };
52
64
  /**
53
65
  * 查找双线墙的点位
54
66
  * @returns
@@ -153,6 +165,7 @@ export declare class LineAnalysis extends Component<{
153
165
  doorSearchDistance: number;
154
166
  doors: LineSegment[];
155
167
  DoorsAnalysis?: DoorsAnalysis;
168
+ skipFindDoor: boolean;
156
169
  doorsAnalysis(): void;
157
170
  }
158
171
  export {};
@@ -0,0 +1,6 @@
1
+ import { LineSegment } from '../../Quadtree/LineSegment';
2
+ import { LineBasicMaterialParameters, PointsMaterialParameters } from 'three';
3
+ import { Point } from '../../Quadtree/Point';
4
+ export declare function drawLines(lines: LineSegment[] | LineSegment, parameters?: LineBasicMaterialParameters, offset?: number): any;
5
+ export declare function drawPoint(point: Point, parameters?: PointsMaterialParameters, offset?: number): any;
6
+ export declare function drawText(text: any, point: Point, style?: any, offset?: number): any;
@@ -116,6 +116,11 @@ export declare class Point<T = Record<string, any>> {
116
116
  * @returns
117
117
  */
118
118
  angleBetween(point: Point, type?: 'radian' | 'cos' | 'angle', angle?: "180" | "360"): number;
119
+ /**
120
+ * @param point
121
+ * @returns
122
+ */
123
+ angleBetween2(point: Point): number;
119
124
  /** 获取向量长度
120
125
  */
121
126
  length(): number;