rm-gxf-computing-rusts 0.0.50 → 0.0.52
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 +2 -191
- package/src/index.js +1 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -17,16 +17,6 @@ export interface ArgumentBox3 {
|
|
|
17
17
|
max: Vector3F64
|
|
18
18
|
}
|
|
19
19
|
|
|
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
20
|
export interface ArgumentBoxInfo {
|
|
31
21
|
box3: ArgumentBox3
|
|
32
22
|
positionArr: Array<Vector3F64>
|
|
@@ -41,22 +31,6 @@ export interface ArgumentLine {
|
|
|
41
31
|
objPositionArr?: Array<Array<number>>
|
|
42
32
|
}
|
|
43
33
|
|
|
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
|
-
export interface ArgumentLine2 {
|
|
54
|
-
start?: Vector3F64
|
|
55
|
-
end?: Vector3F64
|
|
56
|
-
checkResults: Array<Quads>
|
|
57
|
-
existSegments: Array<Quads>
|
|
58
|
-
}
|
|
59
|
-
|
|
60
34
|
export interface ArgumentLine2 {
|
|
61
35
|
start?: Vector3F64
|
|
62
36
|
end?: Vector3F64
|
|
@@ -73,19 +47,6 @@ export interface CheckLineSideVisibilityOption {
|
|
|
73
47
|
trajectorys: Record<string, Vector3F64>
|
|
74
48
|
}
|
|
75
49
|
|
|
76
|
-
export interface CheckLineSideVisibilityOption {
|
|
77
|
-
view?: boolean
|
|
78
|
-
pcdDir: string
|
|
79
|
-
lines: Array<Line>
|
|
80
|
-
trajectorys: Record<string, Vector3F64>
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface CheckResult {
|
|
84
|
-
originalVertices: Array<Square>
|
|
85
|
-
allCenterPoints: Array<Point>
|
|
86
|
-
offsets?: Array<number>
|
|
87
|
-
}
|
|
88
|
-
|
|
89
50
|
export interface CheckResult {
|
|
90
51
|
originalVertices: Array<Square>
|
|
91
52
|
allCenterPoints: Array<Point>
|
|
@@ -97,17 +58,6 @@ export interface DepthFilter {
|
|
|
97
58
|
depthThreshold: number
|
|
98
59
|
}
|
|
99
60
|
|
|
100
|
-
export interface DepthFilter {
|
|
101
|
-
searchRadius: number
|
|
102
|
-
depthThreshold: number
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface HasObjectInFrontOptions {
|
|
106
|
-
view?: boolean
|
|
107
|
-
lines: Array<ArgumentLine2>
|
|
108
|
-
boxInfos: Array<ArgumentBoxInfo>
|
|
109
|
-
}
|
|
110
|
-
|
|
111
61
|
export interface HasObjectInFrontOptions {
|
|
112
62
|
view?: boolean
|
|
113
63
|
lines: Array<ArgumentLine2>
|
|
@@ -119,30 +69,6 @@ export interface HasQquareBehindOptions {
|
|
|
119
69
|
lines: Array<ArgumentLine>
|
|
120
70
|
}
|
|
121
71
|
|
|
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
72
|
export interface ImageInfo {
|
|
147
73
|
x: number
|
|
148
74
|
y: number
|
|
@@ -166,25 +92,6 @@ export interface Index {
|
|
|
166
92
|
index: number
|
|
167
93
|
}
|
|
168
94
|
|
|
169
|
-
export interface Index {
|
|
170
|
-
index: number
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface Line {
|
|
174
|
-
start: Vector3F64
|
|
175
|
-
end: Vector3F64
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export interface Line {
|
|
179
|
-
start: Vector3F64
|
|
180
|
-
end: Vector3F64
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface Line {
|
|
184
|
-
start: Vector3F64
|
|
185
|
-
end: Vector3F64
|
|
186
|
-
}
|
|
187
|
-
|
|
188
95
|
export interface Line {
|
|
189
96
|
start: Vector3F64
|
|
190
97
|
end: Vector3F64
|
|
@@ -206,12 +113,6 @@ export interface LineData {
|
|
|
206
113
|
checkResults: Array<CheckResult>
|
|
207
114
|
}
|
|
208
115
|
|
|
209
|
-
export interface LineData {
|
|
210
|
-
start: Vector3F64
|
|
211
|
-
end: Vector3F64
|
|
212
|
-
checkResults: Array<CheckResult>
|
|
213
|
-
}
|
|
214
|
-
|
|
215
116
|
/** 模型 缩略图 */
|
|
216
117
|
export declare function modelPreview(option: Parameter): ModelPreviewResults
|
|
217
118
|
|
|
@@ -221,12 +122,6 @@ export interface ModelPreviewResults {
|
|
|
221
122
|
height: number
|
|
222
123
|
}
|
|
223
124
|
|
|
224
|
-
export interface ModelPreviewResults {
|
|
225
|
-
data: Array<number>
|
|
226
|
-
width: number
|
|
227
|
-
height: number
|
|
228
|
-
}
|
|
229
|
-
|
|
230
125
|
/** 着色全景 */
|
|
231
126
|
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
232
127
|
|
|
@@ -236,16 +131,6 @@ export interface PanoramaOption {
|
|
|
236
131
|
imageGroups: Array<Array<ImageInfo>>
|
|
237
132
|
}
|
|
238
133
|
|
|
239
|
-
export interface PanoramaOption {
|
|
240
|
-
view?: boolean
|
|
241
|
-
baseUrl: string
|
|
242
|
-
imageGroups: Array<Array<ImageInfo>>
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export interface PanoramaResults {
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
134
|
export interface PanoramaResults {
|
|
250
135
|
|
|
251
136
|
}
|
|
@@ -258,22 +143,6 @@ export interface Parameter {
|
|
|
258
143
|
outUrl?: string
|
|
259
144
|
}
|
|
260
145
|
|
|
261
|
-
export interface Parameter {
|
|
262
|
-
view?: boolean
|
|
263
|
-
width: number
|
|
264
|
-
height: number
|
|
265
|
-
url: string
|
|
266
|
-
outUrl?: string
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export interface PcBackfaceTestOptions {
|
|
270
|
-
view?: boolean
|
|
271
|
-
pcdDir: string
|
|
272
|
-
lines: LineDataList
|
|
273
|
-
trajectorys: Record<string, Trajectory>
|
|
274
|
-
distProjection: boolean
|
|
275
|
-
}
|
|
276
|
-
|
|
277
146
|
export interface PcBackfaceTestOptions {
|
|
278
147
|
view?: boolean
|
|
279
148
|
pcdDir: string
|
|
@@ -289,13 +158,6 @@ export interface PcVisibleDirectOption {
|
|
|
289
158
|
trajectorys: Record<string, Vector3F64>
|
|
290
159
|
}
|
|
291
160
|
|
|
292
|
-
export interface PcVisibleDirectOption {
|
|
293
|
-
view?: boolean
|
|
294
|
-
pcdDir: string
|
|
295
|
-
lines: Array<Line>
|
|
296
|
-
trajectorys: Record<string, Vector3F64>
|
|
297
|
-
}
|
|
298
|
-
|
|
299
161
|
/** 点云可见方向检测 */
|
|
300
162
|
export declare function pointCloudVisibleDirection(option: PcVisibleDirectOption): Array<number>
|
|
301
163
|
|
|
@@ -304,17 +166,6 @@ export interface Quads {
|
|
|
304
166
|
allCenterPoints: Array<Vector3F64>
|
|
305
167
|
}
|
|
306
168
|
|
|
307
|
-
export interface Quads {
|
|
308
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
309
|
-
allCenterPoints: Array<Vector3F64>
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export interface Results {
|
|
313
|
-
results: Array<Array<Array<number>>>
|
|
314
|
-
positions: Array<Vector3F64>
|
|
315
|
-
objIds: Array<Array<string>>
|
|
316
|
-
}
|
|
317
|
-
|
|
318
169
|
export interface Results {
|
|
319
170
|
results: Array<Array<Array<number>>>
|
|
320
171
|
positions: Array<Vector3F64>
|
|
@@ -350,32 +201,6 @@ export interface SamplePointsByImageOption {
|
|
|
350
201
|
edgeCorrosionSize?: number
|
|
351
202
|
}
|
|
352
203
|
|
|
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
204
|
/** 检测小方块背面是否有点云 */
|
|
380
205
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
381
206
|
|
|
@@ -385,15 +210,8 @@ export declare function squareHasObjectInFront(option: HasObjectInFrontOptions):
|
|
|
385
210
|
/** 检测 小方块 是否被 其他小方块遮挡 */
|
|
386
211
|
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
387
212
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
y: number
|
|
391
|
-
z: number
|
|
392
|
-
qx: number
|
|
393
|
-
qy: number
|
|
394
|
-
qz: number
|
|
395
|
-
qw: number
|
|
396
|
-
}
|
|
213
|
+
/** 着色全景 */
|
|
214
|
+
export declare function test(): void
|
|
397
215
|
|
|
398
216
|
export interface Trajectory {
|
|
399
217
|
x: number
|
|
@@ -411,10 +229,3 @@ export interface Vector3F64 {
|
|
|
411
229
|
y: number
|
|
412
230
|
z: number
|
|
413
231
|
}
|
|
414
|
-
|
|
415
|
-
/** 三维向量,包含 x、y、z 分量 */
|
|
416
|
-
export interface Vector3F64 {
|
|
417
|
-
x: number
|
|
418
|
-
y: number
|
|
419
|
-
z: number
|
|
420
|
-
}
|
package/src/index.js
CHANGED
|
@@ -597,3 +597,4 @@ module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
|
597
597
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
598
598
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
599
599
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
|
600
|
+
module.exports.test = nativeBinding.test
|