rm-gxf-computing-rusts 0.0.53 → 0.0.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-gxf-computing-rusts",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "",
5
5
  "author": "初秋",
6
6
  "type": "commonjs",
Binary file
Binary file
package/src/index.d.ts CHANGED
@@ -17,11 +17,30 @@ export interface ArgumentBox3 {
17
17
  max: Vector3F64
18
18
  }
19
19
 
20
+ export interface ArgumentBox3 {
21
+ min: Vector3F64
22
+ max: Vector3F64
23
+ }
24
+
20
25
  export interface ArgumentBoxInfo {
21
26
  box3: ArgumentBox3
22
27
  positionArr: Array<Vector3F64>
23
28
  }
24
29
 
30
+ export interface ArgumentBoxInfo {
31
+ box3: ArgumentBox3
32
+ positionArr: Array<Vector3F64>
33
+ }
34
+
35
+ export interface ArgumentLine {
36
+ start?: Vector3F64
37
+ end?: Vector3F64
38
+ missingCheckResults: Array<Quads>
39
+ existSegments: Array<Quads>
40
+ intersectionSegments?: Array<Array<Index>>
41
+ objPositionArr?: Array<Array<number>>
42
+ }
43
+
25
44
  export interface ArgumentLine {
26
45
  start?: Vector3F64
27
46
  end?: Vector3F64
@@ -38,6 +57,13 @@ export interface ArgumentLine2 {
38
57
  existSegments: Array<Quads>
39
58
  }
40
59
 
60
+ export interface ArgumentLine2 {
61
+ start?: Vector3F64
62
+ end?: Vector3F64
63
+ checkResults: Array<Quads>
64
+ existSegments: Array<Quads>
65
+ }
66
+
41
67
  export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
42
68
 
43
69
  export interface CheckLineSideVisibilityOption {
@@ -47,6 +73,13 @@ export interface CheckLineSideVisibilityOption {
47
73
  trajectorys: Record<string, Vector3F64>
48
74
  }
49
75
 
76
+ export interface CheckLineSideVisibilityOption {
77
+ view?: boolean
78
+ pcdDir: string
79
+ lines: Array<Line>
80
+ trajectorys: Record<string, Vector3F64>
81
+ }
82
+
50
83
  export interface CheckResult {
51
84
  originalVertices: Array<Square>
52
85
  allCenterPoints: Array<Point>
@@ -58,12 +91,28 @@ export interface DepthFilter {
58
91
  depthThreshold: number
59
92
  }
60
93
 
94
+ export interface DepthFilter {
95
+ searchRadius: number
96
+ depthThreshold: number
97
+ }
98
+
61
99
  export interface HasObjectInFrontOptions {
62
100
  view?: boolean
63
101
  lines: Array<ArgumentLine2>
64
102
  boxInfos: Array<ArgumentBoxInfo>
65
103
  }
66
104
 
105
+ export interface HasObjectInFrontOptions {
106
+ view?: boolean
107
+ lines: Array<ArgumentLine2>
108
+ boxInfos: Array<ArgumentBoxInfo>
109
+ }
110
+
111
+ export interface HasQquareBehindOptions {
112
+ view?: boolean
113
+ lines: Array<ArgumentLine>
114
+ }
115
+
67
116
  export interface HasQquareBehindOptions {
68
117
  view?: boolean
69
118
  lines: Array<ArgumentLine>
@@ -88,6 +137,29 @@ export interface ImageInfo {
88
137
  url: string
89
138
  }
90
139
 
140
+ export interface ImageInfo {
141
+ x: number
142
+ y: number
143
+ z: number
144
+ qx: number
145
+ qy: number
146
+ qz: number
147
+ qw: number
148
+ cq: number
149
+ fx: number
150
+ fy: number
151
+ cx: number
152
+ cy: number
153
+ width: number
154
+ height: number
155
+ dist: Array<number>
156
+ url: string
157
+ }
158
+
159
+ export interface Index {
160
+ index: number
161
+ }
162
+
91
163
  export interface Index {
92
164
  index: number
93
165
  }
@@ -122,12 +194,26 @@ export interface ModelPreviewResults {
122
194
  height: number
123
195
  }
124
196
 
197
+ export interface ModelPreviewResults {
198
+ data: Array<number>
199
+ width: number
200
+ height: number
201
+ }
202
+
125
203
  /** 着色全景 */
126
204
  export declare function panorama(option: PanoramaOption): PanoramaResults
127
205
 
128
206
  export interface PanoramaOption {
129
207
  view?: boolean
130
208
  baseUrl: string
209
+ keys?: Array<string>
210
+ imageGroups: Array<Array<ImageInfo>>
211
+ }
212
+
213
+ export interface PanoramaOption {
214
+ view?: boolean
215
+ baseUrl: string
216
+ keys?: Array<string>
131
217
  imageGroups: Array<Array<ImageInfo>>
132
218
  }
133
219
 
@@ -135,6 +221,18 @@ export interface PanoramaResults {
135
221
 
136
222
  }
137
223
 
224
+ export interface PanoramaResults {
225
+
226
+ }
227
+
228
+ export interface Parameter {
229
+ view?: boolean
230
+ width: number
231
+ height: number
232
+ url: string
233
+ outUrl?: string
234
+ }
235
+
138
236
  export interface Parameter {
139
237
  view?: boolean
140
238
  width: number
@@ -166,6 +264,17 @@ export interface Quads {
166
264
  allCenterPoints: Array<Vector3F64>
167
265
  }
168
266
 
267
+ export interface Quads {
268
+ originalVertices: Array<Array<Vector3F64>>
269
+ allCenterPoints: Array<Vector3F64>
270
+ }
271
+
272
+ export interface Results {
273
+ results: Array<Array<Array<number>>>
274
+ positions: Array<Vector3F64>
275
+ objIds: Array<Array<string>>
276
+ }
277
+
169
278
  export interface Results {
170
279
  results: Array<Array<Array<number>>>
171
280
  positions: Array<Vector3F64>
@@ -201,6 +310,32 @@ export interface SamplePointsByImageOption {
201
310
  edgeCorrosionSize?: number
202
311
  }
203
312
 
313
+ export interface SamplePointsByImageOption {
314
+ view?: boolean
315
+ /** pcd url,pcd_chunk为true时,该值为目录 */
316
+ pcdPath: string
317
+ /** 是否使用pcd片段 */
318
+ pcdChunk?: boolean
319
+ /** 图片url列表 */
320
+ imageUrls: Array<string>
321
+ /** 点云z轴小于该值的过滤掉 */
322
+ minZ?: number
323
+ /** 当前使用版本 */
324
+ version?: string
325
+ /** 点云蔟过滤 */
326
+ clusterFilter?: boolean
327
+ /** 点云蔟分类距离 */
328
+ distanceThreshold?: number
329
+ /** 深度过滤 */
330
+ depthFilter?: DepthFilter
331
+ /** 过滤类型列表 */
332
+ excludeCategoryList?: Array<string>
333
+ /** 形状使用轮廓 */
334
+ contourMode?: boolean
335
+ /** 边缘腐蚀大小 */
336
+ edgeCorrosionSize?: number
337
+ }
338
+
204
339
  /** 检测小方块背面是否有点云 */
205
340
  export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
206
341