rm-gxf-computing-rusts 0.0.49 → 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 +4 -202
- package/src/index.js +1 -0
- package/src/main.js +1 -2
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
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
|
-
export interface ArgumentBox3 {
|
|
16
|
-
min: Vector3F64
|
|
17
|
-
max: Vector3F64
|
|
18
|
-
}
|
|
19
|
-
|
|
20
3
|
export interface ArgumentBox3 {
|
|
21
4
|
min: Vector3F64
|
|
22
5
|
max: Vector3F64
|
|
@@ -27,20 +10,6 @@ export interface ArgumentBoxInfo {
|
|
|
27
10
|
positionArr: Array<Vector3F64>
|
|
28
11
|
}
|
|
29
12
|
|
|
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
|
-
|
|
44
13
|
export interface ArgumentLine {
|
|
45
14
|
start?: Vector3F64
|
|
46
15
|
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,41 +50,11 @@ 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
53
|
export interface HasQquareBehindOptions {
|
|
118
54
|
view?: boolean
|
|
119
55
|
lines: Array<ArgumentLine>
|
|
120
56
|
}
|
|
121
57
|
|
|
122
|
-
export interface HasQquareBehindOptions {
|
|
123
|
-
view?: boolean
|
|
124
|
-
lines: Array<ArgumentLine>
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface ImageInfo {
|
|
128
|
-
x: number
|
|
129
|
-
y: number
|
|
130
|
-
z: number
|
|
131
|
-
qx: number
|
|
132
|
-
qy: number
|
|
133
|
-
qz: number
|
|
134
|
-
qw: number
|
|
135
|
-
cq: number
|
|
136
|
-
fx: number
|
|
137
|
-
fy: number
|
|
138
|
-
cx: number
|
|
139
|
-
cy: number
|
|
140
|
-
width: number
|
|
141
|
-
height: number
|
|
142
|
-
dist: Array<number>
|
|
143
|
-
url: string
|
|
144
|
-
}
|
|
145
|
-
|
|
146
58
|
export interface ImageInfo {
|
|
147
59
|
x: number
|
|
148
60
|
y: number
|
|
@@ -166,15 +78,6 @@ export interface Index {
|
|
|
166
78
|
index: number
|
|
167
79
|
}
|
|
168
80
|
|
|
169
|
-
export interface Index {
|
|
170
|
-
index: number
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface Line {
|
|
174
|
-
start: Vector3F64
|
|
175
|
-
end: Vector3F64
|
|
176
|
-
}
|
|
177
|
-
|
|
178
81
|
export interface Line {
|
|
179
82
|
start: Vector3F64
|
|
180
83
|
end: Vector3F64
|
|
@@ -196,37 +99,15 @@ export interface LineData {
|
|
|
196
99
|
checkResults: Array<CheckResult>
|
|
197
100
|
}
|
|
198
101
|
|
|
199
|
-
export interface LineData {
|
|
200
|
-
start: Vector3F64
|
|
201
|
-
end: Vector3F64
|
|
202
|
-
checkResults: Array<CheckResult>
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/** 模型 缩略图 */
|
|
206
|
-
export declare function modelPreview(option: Parameter): ModelPreviewResults
|
|
207
|
-
|
|
208
|
-
export interface ModelPreviewResults {
|
|
209
|
-
data: Array<number>
|
|
210
|
-
width: number
|
|
211
|
-
height: number
|
|
212
|
-
}
|
|
213
|
-
|
|
214
102
|
export interface ModelPreviewResults {
|
|
215
103
|
data: Array<number>
|
|
216
104
|
width: number
|
|
217
105
|
height: number
|
|
218
106
|
}
|
|
219
107
|
|
|
220
|
-
/** 着色全景 */
|
|
221
|
-
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
222
|
-
|
|
223
|
-
export interface PanoramaOption {
|
|
224
|
-
view?: boolean
|
|
225
|
-
imageGroups: Array<Array<ImageInfo>>
|
|
226
|
-
}
|
|
227
|
-
|
|
228
108
|
export interface PanoramaOption {
|
|
229
109
|
view?: boolean
|
|
110
|
+
baseUrl: string
|
|
230
111
|
imageGroups: Array<Array<ImageInfo>>
|
|
231
112
|
}
|
|
232
113
|
|
|
@@ -234,18 +115,6 @@ export interface PanoramaResults {
|
|
|
234
115
|
|
|
235
116
|
}
|
|
236
117
|
|
|
237
|
-
export interface PanoramaResults {
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export interface Parameter {
|
|
242
|
-
view?: boolean
|
|
243
|
-
width: number
|
|
244
|
-
height: number
|
|
245
|
-
url: string
|
|
246
|
-
outUrl?: string
|
|
247
|
-
}
|
|
248
|
-
|
|
249
118
|
export interface Parameter {
|
|
250
119
|
view?: boolean
|
|
251
120
|
width: number
|
|
@@ -262,17 +131,11 @@ export interface PcBackfaceTestOptions {
|
|
|
262
131
|
distProjection: boolean
|
|
263
132
|
}
|
|
264
133
|
|
|
265
|
-
export interface
|
|
134
|
+
export interface PcVisibleDirectOption {
|
|
266
135
|
view?: boolean
|
|
267
136
|
pcdDir: string
|
|
268
|
-
lines:
|
|
269
|
-
trajectorys: Record<string,
|
|
270
|
-
distProjection: boolean
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface Quads {
|
|
274
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
275
|
-
allCenterPoints: Array<Vector3F64>
|
|
137
|
+
lines: Array<Line>
|
|
138
|
+
trajectorys: Record<string, Vector3F64>
|
|
276
139
|
}
|
|
277
140
|
|
|
278
141
|
export interface Quads {
|
|
@@ -286,15 +149,6 @@ export interface Results {
|
|
|
286
149
|
objIds: Array<Array<string>>
|
|
287
150
|
}
|
|
288
151
|
|
|
289
|
-
export interface Results {
|
|
290
|
-
results: Array<Array<Array<number>>>
|
|
291
|
-
positions: Array<Vector3F64>
|
|
292
|
-
objIds: Array<Array<string>>
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/** 通过图片对点云投影采样 */
|
|
296
|
-
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
297
|
-
|
|
298
152
|
export interface SamplePointsByImageOption {
|
|
299
153
|
view?: boolean
|
|
300
154
|
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
@@ -321,51 +175,6 @@ export interface SamplePointsByImageOption {
|
|
|
321
175
|
edgeCorrosionSize?: number
|
|
322
176
|
}
|
|
323
177
|
|
|
324
|
-
export interface SamplePointsByImageOption {
|
|
325
|
-
view?: boolean
|
|
326
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
327
|
-
pcdPath: string
|
|
328
|
-
/** 是否使用pcd片段 */
|
|
329
|
-
pcdChunk?: boolean
|
|
330
|
-
/** 图片url列表 */
|
|
331
|
-
imageUrls: Array<string>
|
|
332
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
333
|
-
minZ?: number
|
|
334
|
-
/** 当前使用版本 */
|
|
335
|
-
version?: string
|
|
336
|
-
/** 点云蔟过滤 */
|
|
337
|
-
clusterFilter?: boolean
|
|
338
|
-
/** 点云蔟分类距离 */
|
|
339
|
-
distanceThreshold?: number
|
|
340
|
-
/** 深度过滤 */
|
|
341
|
-
depthFilter?: DepthFilter
|
|
342
|
-
/** 过滤类型列表 */
|
|
343
|
-
excludeCategoryList?: Array<string>
|
|
344
|
-
/** 形状使用轮廓 */
|
|
345
|
-
contourMode?: boolean
|
|
346
|
-
/** 边缘腐蚀大小 */
|
|
347
|
-
edgeCorrosionSize?: number
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/** 检测小方块背面是否有点云 */
|
|
351
|
-
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
352
|
-
|
|
353
|
-
/** 检测 小方块 前面是否有 box 且没有其他小方块 */
|
|
354
|
-
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
355
|
-
|
|
356
|
-
/** 检测 小方块 是否被 其他小方块遮挡 */
|
|
357
|
-
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
358
|
-
|
|
359
|
-
export interface Trajectory {
|
|
360
|
-
x: number
|
|
361
|
-
y: number
|
|
362
|
-
z: number
|
|
363
|
-
qx: number
|
|
364
|
-
qy: number
|
|
365
|
-
qz: number
|
|
366
|
-
qw: number
|
|
367
|
-
}
|
|
368
|
-
|
|
369
178
|
export interface Trajectory {
|
|
370
179
|
x: number
|
|
371
180
|
y: number
|
|
@@ -382,10 +191,3 @@ export interface Vector3F64 {
|
|
|
382
191
|
y: number
|
|
383
192
|
z: number
|
|
384
193
|
}
|
|
385
|
-
|
|
386
|
-
/** 三维向量,包含 x、y、z 分量 */
|
|
387
|
-
export interface Vector3F64 {
|
|
388
|
-
x: number
|
|
389
|
-
y: number
|
|
390
|
-
z: number
|
|
391
|
-
}
|
package/src/index.js
CHANGED
|
@@ -592,6 +592,7 @@ module.exports.SquareHasObjectInFront = nativeBinding.SquareHasObjectInFront
|
|
|
592
592
|
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
593
593
|
module.exports.modelPreview = nativeBinding.modelPreview
|
|
594
594
|
module.exports.panorama = nativeBinding.panorama
|
|
595
|
+
module.exports.pointCloudVisibleDirection = nativeBinding.pointCloudVisibleDirection
|
|
595
596
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
596
597
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
597
598
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|