rm-gxf-computing-rusts 0.0.50 → 0.0.51
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 +1 -1
- package/src/gfx.linux-x64-gnu.node +0 -0
- package/src/gfx.win32-x64-msvc.node +0 -0
- package/src/index.d.ts +0 -227
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export declare class SquareBackfacePointCloudTest {
|
|
4
|
-
constructor(option: PcBackfaceTestOptions)
|
|
5
|
-
push(data: LineData): void
|
|
6
|
-
compute(): Array<number>
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export declare class SquareHasObjectInFront {
|
|
10
|
-
constructor(option: HasObjectInFrontOptions)
|
|
11
|
-
push(data: ArgumentLine2): void
|
|
12
|
-
compute(): Array<number>
|
|
13
|
-
}
|
|
14
|
-
|
|
15
3
|
export interface ArgumentBox3 {
|
|
16
4
|
min: Vector3F64
|
|
17
5
|
max: Vector3F64
|
|
18
6
|
}
|
|
19
7
|
|
|
20
|
-
export interface ArgumentBox3 {
|
|
21
|
-
min: Vector3F64
|
|
22
|
-
max: Vector3F64
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface ArgumentBoxInfo {
|
|
26
|
-
box3: ArgumentBox3
|
|
27
|
-
positionArr: Array<Vector3F64>
|
|
28
|
-
}
|
|
29
|
-
|
|
30
8
|
export interface ArgumentBoxInfo {
|
|
31
9
|
box3: ArgumentBox3
|
|
32
10
|
positionArr: Array<Vector3F64>
|
|
@@ -41,15 +19,6 @@ export interface ArgumentLine {
|
|
|
41
19
|
objPositionArr?: Array<Array<number>>
|
|
42
20
|
}
|
|
43
21
|
|
|
44
|
-
export interface ArgumentLine {
|
|
45
|
-
start?: Vector3F64
|
|
46
|
-
end?: Vector3F64
|
|
47
|
-
missingCheckResults: Array<Quads>
|
|
48
|
-
existSegments: Array<Quads>
|
|
49
|
-
intersectionSegments?: Array<Array<Index>>
|
|
50
|
-
objPositionArr?: Array<Array<number>>
|
|
51
|
-
}
|
|
52
|
-
|
|
53
22
|
export interface ArgumentLine2 {
|
|
54
23
|
start?: Vector3F64
|
|
55
24
|
end?: Vector3F64
|
|
@@ -57,22 +26,6 @@ export interface ArgumentLine2 {
|
|
|
57
26
|
existSegments: Array<Quads>
|
|
58
27
|
}
|
|
59
28
|
|
|
60
|
-
export interface ArgumentLine2 {
|
|
61
|
-
start?: Vector3F64
|
|
62
|
-
end?: Vector3F64
|
|
63
|
-
checkResults: Array<Quads>
|
|
64
|
-
existSegments: Array<Quads>
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
68
|
-
|
|
69
|
-
export interface CheckLineSideVisibilityOption {
|
|
70
|
-
view?: boolean
|
|
71
|
-
pcdDir: string
|
|
72
|
-
lines: Array<Line>
|
|
73
|
-
trajectorys: Record<string, Vector3F64>
|
|
74
|
-
}
|
|
75
|
-
|
|
76
29
|
export interface CheckLineSideVisibilityOption {
|
|
77
30
|
view?: boolean
|
|
78
31
|
pcdDir: string
|
|
@@ -86,17 +39,6 @@ export interface CheckResult {
|
|
|
86
39
|
offsets?: Array<number>
|
|
87
40
|
}
|
|
88
41
|
|
|
89
|
-
export interface CheckResult {
|
|
90
|
-
originalVertices: Array<Square>
|
|
91
|
-
allCenterPoints: Array<Point>
|
|
92
|
-
offsets?: Array<number>
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface DepthFilter {
|
|
96
|
-
searchRadius: number
|
|
97
|
-
depthThreshold: number
|
|
98
|
-
}
|
|
99
|
-
|
|
100
42
|
export interface DepthFilter {
|
|
101
43
|
searchRadius: number
|
|
102
44
|
depthThreshold: number
|
|
@@ -108,17 +50,6 @@ export interface HasObjectInFrontOptions {
|
|
|
108
50
|
boxInfos: Array<ArgumentBoxInfo>
|
|
109
51
|
}
|
|
110
52
|
|
|
111
|
-
export interface HasObjectInFrontOptions {
|
|
112
|
-
view?: boolean
|
|
113
|
-
lines: Array<ArgumentLine2>
|
|
114
|
-
boxInfos: Array<ArgumentBoxInfo>
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface HasQquareBehindOptions {
|
|
118
|
-
view?: boolean
|
|
119
|
-
lines: Array<ArgumentLine>
|
|
120
|
-
}
|
|
121
|
-
|
|
122
53
|
export interface HasQquareBehindOptions {
|
|
123
54
|
view?: boolean
|
|
124
55
|
lines: Array<ArgumentLine>
|
|
@@ -143,29 +74,6 @@ export interface ImageInfo {
|
|
|
143
74
|
url: string
|
|
144
75
|
}
|
|
145
76
|
|
|
146
|
-
export interface ImageInfo {
|
|
147
|
-
x: number
|
|
148
|
-
y: number
|
|
149
|
-
z: number
|
|
150
|
-
qx: number
|
|
151
|
-
qy: number
|
|
152
|
-
qz: number
|
|
153
|
-
qw: number
|
|
154
|
-
cq: number
|
|
155
|
-
fx: number
|
|
156
|
-
fy: number
|
|
157
|
-
cx: number
|
|
158
|
-
cy: number
|
|
159
|
-
width: number
|
|
160
|
-
height: number
|
|
161
|
-
dist: Array<number>
|
|
162
|
-
url: string
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface Index {
|
|
166
|
-
index: number
|
|
167
|
-
}
|
|
168
|
-
|
|
169
77
|
export interface Index {
|
|
170
78
|
index: number
|
|
171
79
|
}
|
|
@@ -185,57 +93,18 @@ export interface Line {
|
|
|
185
93
|
end: Vector3F64
|
|
186
94
|
}
|
|
187
95
|
|
|
188
|
-
export interface Line {
|
|
189
|
-
start: Vector3F64
|
|
190
|
-
end: Vector3F64
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export interface Line {
|
|
194
|
-
start: Vector3F64
|
|
195
|
-
end: Vector3F64
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface Line {
|
|
199
|
-
start: Vector3F64
|
|
200
|
-
end: Vector3F64
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface LineData {
|
|
204
|
-
start: Vector3F64
|
|
205
|
-
end: Vector3F64
|
|
206
|
-
checkResults: Array<CheckResult>
|
|
207
|
-
}
|
|
208
|
-
|
|
209
96
|
export interface LineData {
|
|
210
97
|
start: Vector3F64
|
|
211
98
|
end: Vector3F64
|
|
212
99
|
checkResults: Array<CheckResult>
|
|
213
100
|
}
|
|
214
101
|
|
|
215
|
-
/** 模型 缩略图 */
|
|
216
|
-
export declare function modelPreview(option: Parameter): ModelPreviewResults
|
|
217
|
-
|
|
218
102
|
export interface ModelPreviewResults {
|
|
219
103
|
data: Array<number>
|
|
220
104
|
width: number
|
|
221
105
|
height: number
|
|
222
106
|
}
|
|
223
107
|
|
|
224
|
-
export interface ModelPreviewResults {
|
|
225
|
-
data: Array<number>
|
|
226
|
-
width: number
|
|
227
|
-
height: number
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/** 着色全景 */
|
|
231
|
-
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
232
|
-
|
|
233
|
-
export interface PanoramaOption {
|
|
234
|
-
view?: boolean
|
|
235
|
-
baseUrl: string
|
|
236
|
-
imageGroups: Array<Array<ImageInfo>>
|
|
237
|
-
}
|
|
238
|
-
|
|
239
108
|
export interface PanoramaOption {
|
|
240
109
|
view?: boolean
|
|
241
110
|
baseUrl: string
|
|
@@ -246,18 +115,6 @@ export interface PanoramaResults {
|
|
|
246
115
|
|
|
247
116
|
}
|
|
248
117
|
|
|
249
|
-
export interface PanoramaResults {
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export interface Parameter {
|
|
254
|
-
view?: boolean
|
|
255
|
-
width: number
|
|
256
|
-
height: number
|
|
257
|
-
url: string
|
|
258
|
-
outUrl?: string
|
|
259
|
-
}
|
|
260
|
-
|
|
261
118
|
export interface Parameter {
|
|
262
119
|
view?: boolean
|
|
263
120
|
width: number
|
|
@@ -274,14 +131,6 @@ export interface PcBackfaceTestOptions {
|
|
|
274
131
|
distProjection: boolean
|
|
275
132
|
}
|
|
276
133
|
|
|
277
|
-
export interface PcBackfaceTestOptions {
|
|
278
|
-
view?: boolean
|
|
279
|
-
pcdDir: string
|
|
280
|
-
lines: LineDataList
|
|
281
|
-
trajectorys: Record<string, Trajectory>
|
|
282
|
-
distProjection: boolean
|
|
283
|
-
}
|
|
284
|
-
|
|
285
134
|
export interface PcVisibleDirectOption {
|
|
286
135
|
view?: boolean
|
|
287
136
|
pcdDir: string
|
|
@@ -289,21 +138,6 @@ export interface PcVisibleDirectOption {
|
|
|
289
138
|
trajectorys: Record<string, Vector3F64>
|
|
290
139
|
}
|
|
291
140
|
|
|
292
|
-
export interface PcVisibleDirectOption {
|
|
293
|
-
view?: boolean
|
|
294
|
-
pcdDir: string
|
|
295
|
-
lines: Array<Line>
|
|
296
|
-
trajectorys: Record<string, Vector3F64>
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/** 点云可见方向检测 */
|
|
300
|
-
export declare function pointCloudVisibleDirection(option: PcVisibleDirectOption): Array<number>
|
|
301
|
-
|
|
302
|
-
export interface Quads {
|
|
303
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
304
|
-
allCenterPoints: Array<Vector3F64>
|
|
305
|
-
}
|
|
306
|
-
|
|
307
141
|
export interface Quads {
|
|
308
142
|
originalVertices: Array<Array<Vector3F64>>
|
|
309
143
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -315,15 +149,6 @@ export interface Results {
|
|
|
315
149
|
objIds: Array<Array<string>>
|
|
316
150
|
}
|
|
317
151
|
|
|
318
|
-
export interface Results {
|
|
319
|
-
results: Array<Array<Array<number>>>
|
|
320
|
-
positions: Array<Vector3F64>
|
|
321
|
-
objIds: Array<Array<string>>
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/** 通过图片对点云投影采样 */
|
|
325
|
-
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
326
|
-
|
|
327
152
|
export interface SamplePointsByImageOption {
|
|
328
153
|
view?: boolean
|
|
329
154
|
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
@@ -350,41 +175,6 @@ export interface SamplePointsByImageOption {
|
|
|
350
175
|
edgeCorrosionSize?: number
|
|
351
176
|
}
|
|
352
177
|
|
|
353
|
-
export interface SamplePointsByImageOption {
|
|
354
|
-
view?: boolean
|
|
355
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
356
|
-
pcdPath: string
|
|
357
|
-
/** 是否使用pcd片段 */
|
|
358
|
-
pcdChunk?: boolean
|
|
359
|
-
/** 图片url列表 */
|
|
360
|
-
imageUrls: Array<string>
|
|
361
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
362
|
-
minZ?: number
|
|
363
|
-
/** 当前使用版本 */
|
|
364
|
-
version?: string
|
|
365
|
-
/** 点云蔟过滤 */
|
|
366
|
-
clusterFilter?: boolean
|
|
367
|
-
/** 点云蔟分类距离 */
|
|
368
|
-
distanceThreshold?: number
|
|
369
|
-
/** 深度过滤 */
|
|
370
|
-
depthFilter?: DepthFilter
|
|
371
|
-
/** 过滤类型列表 */
|
|
372
|
-
excludeCategoryList?: Array<string>
|
|
373
|
-
/** 形状使用轮廓 */
|
|
374
|
-
contourMode?: boolean
|
|
375
|
-
/** 边缘腐蚀大小 */
|
|
376
|
-
edgeCorrosionSize?: number
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
/** 检测小方块背面是否有点云 */
|
|
380
|
-
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
381
|
-
|
|
382
|
-
/** 检测 小方块 前面是否有 box 且没有其他小方块 */
|
|
383
|
-
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
384
|
-
|
|
385
|
-
/** 检测 小方块 是否被 其他小方块遮挡 */
|
|
386
|
-
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
387
|
-
|
|
388
178
|
export interface Trajectory {
|
|
389
179
|
x: number
|
|
390
180
|
y: number
|
|
@@ -395,23 +185,6 @@ export interface Trajectory {
|
|
|
395
185
|
qw: number
|
|
396
186
|
}
|
|
397
187
|
|
|
398
|
-
export interface Trajectory {
|
|
399
|
-
x: number
|
|
400
|
-
y: number
|
|
401
|
-
z: number
|
|
402
|
-
qx: number
|
|
403
|
-
qy: number
|
|
404
|
-
qz: number
|
|
405
|
-
qw: number
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/** 三维向量,包含 x、y、z 分量 */
|
|
409
|
-
export interface Vector3F64 {
|
|
410
|
-
x: number
|
|
411
|
-
y: number
|
|
412
|
-
z: number
|
|
413
|
-
}
|
|
414
|
-
|
|
415
188
|
/** 三维向量,包含 x、y、z 分量 */
|
|
416
189
|
export interface Vector3F64 {
|
|
417
190
|
x: number
|